/* ===== Variables ===== */
:root {
  --bg: #0C0C0E;
  --bg-rgb: 12, 12, 14;
  --surface: #16161A;
  --surface-light: #24242A;
  --surface-lighter: #2E2E36;
  --gold: #DCB450;
  --gold-light: #F0D078;
  --gold-dim: rgba(220, 180, 80, 0.15);
  --gold-glow: rgba(220, 180, 80, 0.3);
  --cyan: #8CA0B4;
  --text: #F0F0F5;
  --text-secondary: #A0A0AA;
  --text-dim: #68686F;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --max-width: 1120px;
  --nav-height: 72px;
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--gold); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }

/* ===== Utility ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }
.gold { color: var(--gold); }

/* ===== Section Headers ===== */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-heading {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 540px;
  line-height: 1.6;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-desc {
  margin: 0 auto;
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.08s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.16s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.24s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.32s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.4s; }

/* ===== Grain Overlay ===== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.35s, border-color 0.35s;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(var(--bg-rgb), 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

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

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.nav-logo:hover { color: var(--text); }

.nav-logo-img {
  height: 34px;
  width: 34px;
  border-radius: 9px;
  object-fit: cover;
}

.nav-logo .logo-accent { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta a {
  color: var(--bg) !important;
  background: var(--gold) !important;
  font-weight: 600;
}

.nav-cta a:hover {
  background: var(--gold-light) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
}

.hamburger:hover { background: rgba(255, 255, 255, 0.05); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--bg-rgb), 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 4px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1.25rem;
    padding: 14px 16px;
    width: 100%;
  }

  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

/* Ambient glow orbs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  will-change: transform;
}

.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: rgba(220, 180, 80, 0.08);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(140, 160, 180, 0.06);
  bottom: -100px;
  right: -100px;
}

.hero-glow-3 {
  width: 350px;
  height: 350px;
  background: rgba(220, 180, 80, 0.05);
  bottom: 100px;
  left: -150px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 180, 80, 0.1);
  border: 1px solid rgba(220, 180, 80, 0.2);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.hero-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 24px;
}

.hero-gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, #F0D078 40%, #E8C860 60%, var(--gold) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--bg);
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 0 0 rgba(220, 180, 80, 0), 0 4px 20px rgba(220, 180, 80, 0.15);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(220, 180, 80, 0.15), 0 8px 32px rgba(220, 180, 80, 0.25);
}

.btn-primary svg { flex-shrink: 0; }

/* App Store Badge */
.app-store-link {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s;
}

.app-store-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.app-store-badge {
  height: 54px;
  width: auto;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bg);
  padding: 16px 28px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  background: var(--gold);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(220, 180, 80, 0.15);
}

.btn-secondary:hover {
  color: var(--bg);
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(220, 180, 80, 0.25);
}

/* Phone Mockup */
.phone-mockup {
  position: relative;
  width: 280px;
  margin: 0 auto;
}

.phone-frame {
  position: relative;
  background: #1A1A1F;
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 120px rgba(220, 180, 80, 0.06);
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 32px;
  background: #1A1A1F;
  border-radius: 0 0 20px 20px;
  z-index: 3;
}

.phone-screen {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: var(--surface);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
}

/* Tracer SVG animation in hero */
.hero-tracer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-tracer svg {
  position: absolute;
  width: 100%;
  height: 100%;
}

.tracer-path {
  fill: none;
  stroke: url(#tracerGradient);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: draw-tracer 3s ease-in-out 0.5s forwards;
  filter: drop-shadow(0 0 8px rgba(220, 180, 80, 0.4));
}

.tracer-path-2 {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-tracer-2 2.5s ease-in-out 1.5s forwards;
  opacity: 0.4;
  stroke-width: 1.5;
}

@keyframes draw-tracer {
  to { stroke-dashoffset: 0; }
}

@keyframes draw-tracer-2 {
  to { stroke-dashoffset: 0; }
}

/* ===== Features — Bento Grid ===== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 180, 80, 0), transparent);
  transition: background 0.4s;
}

.bento-card:hover {
  border-color: rgba(220, 180, 80, 0.15);
  transform: translateY(-4px);
}

.bento-card:hover::before {
  background: linear-gradient(90deg, transparent, rgba(220, 180, 80, 0.4), transparent);
}

/* Span 2 columns */
.bento-wide { grid-column: span 2; }

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.bento-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Feature visual placeholders inside wide cards */
.bento-visual {
  margin-top: 24px;
  background: var(--surface-light);
  border-radius: var(--radius);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { grid-column: span 2; }
}

@media (max-width: 600px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
}

/* ===== Screenshots ===== */
.screenshots-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.screenshots-track::-webkit-scrollbar { display: none; }

.screenshot-card {
  flex: 0 0 240px;
  scroll-snap-align: center;
}

.screenshot-phone {
  background: #1A1A1F;
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.screenshot-card:hover .screenshot-phone {
  transform: translateY(-8px);
}

.screenshot-screen {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: var(--surface);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  overflow: hidden;
}

.screenshot-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scroll indicators */
.scroll-hint {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.scroll-hint span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--surface-light);
}

.scroll-hint span.active {
  width: 24px;
  border-radius: 3px;
  background: var(--gold);
}

/* ===== Stats Row ===== */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.stat-item { text-align: center; }

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gold);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 500;
}

@media (max-width: 600px) {
  .stats-row { gap: 32px; flex-wrap: wrap; }
}

/* ===== Download CTA ===== */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-card {
  position: relative;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  border: 1px solid rgba(220, 180, 80, 0.1);
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(220, 180, 80, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  position: relative;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 36px;
  position: relative;
}

.cta-card .btn-primary { position: relative; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .logo-accent { color: var(--gold); }

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }
}

/* ===== Page Header (Privacy / Support) ===== */
.page-hero {
  padding: 140px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(220, 180, 80, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  position: relative;
}

.page-hero p {
  color: var(--text-secondary);
  margin-top: 12px;
  font-size: 1.05rem;
  position: relative;
}

/* ===== Content Pages ===== */
.page-content {
  padding: 48px 0 100px;
}

.page-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 40px 0 14px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.page-content h2::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--gold);
  border-radius: 2px;
  margin-right: 12px;
  vertical-align: text-bottom;
}

.page-content h2:first-child { margin-top: 0; }

.page-content p,
.page-content li {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.page-content ul {
  padding-left: 24px;
  margin-bottom: 20px;
}

.page-content li { margin-bottom: 10px; }
.page-content a { color: var(--gold); }
.page-content strong { color: var(--text); font-weight: 600; }

/* ===== FAQ ===== */
.faq-item {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 12px;
  transition: border-color 0.3s;
}

.faq-item:hover { border-color: rgba(255, 255, 255, 0.1); }

.faq-item h3 {
  font-size: 1rem;
  font-weight: 650;
  margin-bottom: 8px;
  color: var(--text);
}

.faq-item p { margin-bottom: 0; }

/* ===== Contact Box ===== */
.contact-box {
  background: var(--surface);
  border: 1px solid rgba(220, 180, 80, 0.12);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  margin-top: 48px;
  position: relative;
  overflow: hidden;
}

.contact-box::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(220, 180, 80, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-box h2 {
  color: var(--text);
  margin-bottom: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
}

.contact-box h2::before { display: none; }

.contact-box p { margin-bottom: 28px; position: relative; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  padding: 14px 30px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s;
  position: relative;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--bg);
  box-shadow: 0 0 0 4px rgba(220, 180, 80, 0.15);
}
