/* ────────────────────────────────────────────────────────
   Untracker — Apple-style marketing site
   ──────────────────────────────────────────────────────── */

/* Fonts — Inter as SF Pro stand-in */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Reset & Base ───────────────────────────────────────── */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #000;
  --bg-alt: #111;
  --bg-card: #1a1a1a;
  --text: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary: #6e6e73;
  --accent: #2997ff;
  --accent-green: #30d158;
  --accent-red: #ff453a;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1080px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

code {
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace;
  font-size: 0.85em;
}

/* ── Navigation ─────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.nav-icon {
  border-radius: 7px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  opacity: 1;
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  padding: 160px 24px 80px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(41, 151, 255, 0.08) 0%, transparent 70%);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-icon-wrap {
  margin-bottom: 40px;
}

.hero-icon {
  width: 200px;
  height: 200px;
  border-radius: 44px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(41, 151, 255, 0.12);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  background: linear-gradient(to bottom, #fff 30%, #86868b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 20px;
  line-height: 1.5;
  font-weight: 400;
}

.hero-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 40px;
  letter-spacing: 0.01em;
}

/* ── App Store Badges ───────────────────────────────────── */

.hero-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}

.badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  opacity: 1;
}

.badge small {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}

.badge strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.badge-apple {
  flex-shrink: 0;
}

/* ── URL Demo ───────────────────────────────────────────── */

.demo {
  padding: 40px 24px 80px;
}

.demo-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.demo-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  position: relative;
}

.demo-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.demo-label-before {
  color: var(--text-tertiary);
}

.demo-label-after {
  color: var(--accent-green);
}

.demo-url {
  display: block;
  font-size: clamp(12px, 1.6vw, 14px);
  word-break: break-all;
  line-height: 1.6;
}

.demo-url-dirty {
  color: var(--text-secondary);
}

.demo-url-dirty .tracking {
  color: var(--accent-red);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 69, 58, 0.4);
}

.demo-url-clean {
  color: var(--accent-green);
}

.demo-arrow {
  color: var(--text-tertiary);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ── Section Commons ────────────────────────────────────── */

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-align: center;
  margin-bottom: 12px;
  background: linear-gradient(to bottom, #fff 30%, #86868b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 60px;
}

/* ── Features Grid ──────────────────────────────────────── */

.features {
  padding: 120px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-card code {
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12px;
}

/* ── How It Works ───────────────────────────────────────── */

.how-it-works {
  padding: 120px 0;
  background: var(--bg-alt);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 20px;
}

.step {
  text-align: center;
  max-width: 280px;
  padding: 0 24px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0071e3);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-line {
  width: 80px;
  height: 1px;
  background: var(--border);
  margin-top: 28px;
  flex-shrink: 0;
}

/* ── Privacy ────────────────────────────────────────────── */

.privacy {
  padding: 120px 0;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.privacy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

.privacy-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.privacy-icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.privacy-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.privacy-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Languages ──────────────────────────────────────────── */

.languages {
  padding: 100px 0;
  background: var(--bg-alt);
}

.language-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 700px;
  margin: 0 auto;
}

.language-list span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}

.language-list span:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

/* ── Screenshots Preview (main page) ────────────────────── */

.screenshots-preview {
  padding: 120px 0 80px;
  background: var(--bg-alt);
}

.ss-preview-img-wrap {
  max-width: 960px;
  margin: 0 auto;
}

.ss-preview-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ss-preview-img:hover {
  transform: scale(1.01);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.12);
}

.ss-more-link {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.2s;
}

.ss-more-link:hover {
  opacity: 0.8;
}

/* ── CTA ────────────────────────────────────────────────── */

.cta {
  padding: 120px 0;
  text-align: center;
  background: radial-gradient(ellipse at 50% 100%, rgba(41, 151, 255, 0.06) 0%, transparent 70%);
}

.cta-icon {
  border-radius: 22px;
  margin-bottom: 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.cta-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer p {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-links {
  margin-top: 8px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-sep {
  margin: 0 8px;
  color: var(--text-tertiary);
}

.footer-legal {
  margin-top: 8px;
  font-size: 12px;
}

.footer-legal a {
  color: var(--text-tertiary);
  text-decoration: underline;
  text-decoration-color: rgba(110, 110, 115, 0.4);
}

/* ── Scroll Animations ──────────────────────────────────── */

.feature-card,
.privacy-card,
.step,
.demo-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible,
.privacy-card.visible,
.step.visible,
.demo-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger */
.feature-card:nth-child(2), .privacy-card:nth-child(2) { transition-delay: 0.08s; }
.feature-card:nth-child(3), .privacy-card:nth-child(3) { transition-delay: 0.16s; }
.feature-card:nth-child(4) { transition-delay: 0.08s; }
.feature-card:nth-child(5) { transition-delay: 0.16s; }
.feature-card:nth-child(6) { transition-delay: 0.24s; }
.feature-card:nth-child(7) { transition-delay: 0.08s; }
.feature-card:nth-child(8) { transition-delay: 0.16s; }
.feature-card:nth-child(9) { transition-delay: 0.24s; }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .features-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-line {
    width: 1px;
    height: 40px;
    margin: 0;
  }

  .hero-icon {
    width: 140px;
    height: 140px;
    border-radius: 32px;
  }

  .hero {
    padding: 120px 24px 60px;
  }

  .features,
  .how-it-works,
  .privacy,
  .cta {
    padding: 80px 0;
  }
}

@media (max-width: 480px) {
  .hero-badges {
    flex-direction: column;
    align-items: center;
  }

  .badge {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }
}

/* ── Legal Pages (Privacy Policy, etc.) ─────────────────── */

.legal {
  padding: 140px 24px 80px;
}

.legal-inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal-inner h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 40px;
}

.legal-tldr {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: rgba(41, 151, 255, 0.06);
  border: 1px solid rgba(41, 151, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.legal-inner h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-inner p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal-inner ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.legal-inner ul li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.legal-inner ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.legal-inner code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.legal-inner a {
  color: var(--accent);
}

/* ── Screenshots Page ───────────────────────────────────── */

.ss-hero {
  padding: 140px 24px 40px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(41, 151, 255, 0.08) 0%, transparent 70%);
}

.ss-composite {
  padding: 0 24px 80px;
}

.ss-hero-img {
  display: block;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
}

.ss-platform {
  padding: 100px 0;
}

.ss-platform-alt {
  background: var(--bg-alt);
}

.ss-platform-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ss-platform-icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.ss-platform-desc {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-secondary);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 48px;
}

/* Gallery — macOS (horizontal scroll) */
.ss-gallery {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.ss-gallery::-webkit-scrollbar {
  height: 6px;
}

.ss-gallery::-webkit-scrollbar-track {
  background: transparent;
}

.ss-gallery::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.ss-gallery-mac .ss-figure {
  flex: 0 0 auto;
  scroll-snap-align: center;
  max-width: 540px;
  min-width: 340px;
}

.ss-gallery-mac .ss-figure img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ss-gallery-mac .ss-figure img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.12);
}

/* Gallery — mobile (centered grid) */
.ss-gallery-mobile {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  justify-items: center;
}

.ss-figure {
  text-align: center;
}

.ss-figure-phone {
  max-width: 240px;
}

.ss-figure-phone img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ss-figure-phone img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.12);
}

.ss-figure figcaption {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Lightbox */
.ss-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ss-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.ss-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.ss-lightbox.active .ss-lightbox-img {
  transform: scale(1);
}

.ss-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.ss-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Screenshots page responsive */
@media (max-width: 768px) {
  .ss-gallery-mobile {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .ss-gallery-mac .ss-figure {
    min-width: 280px;
  }
}

@media (max-width: 480px) {
  .ss-gallery-mobile {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }
}

