/* ============================================================
   LUNA — Your Personal Wellness Companion
   Design system: deep-night glass, lunar cycle motif
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  /* --- brand tokens (as specified) --- */
  --bg:        #0F1021;
  --primary:   #6C4DFF;
  --secondary: #8B5CF6;
  --accent:    #FF6FB5;
  --white:     #FFFFFF;

  /* --- derived dark-mode surface system --- */
  --bg-deep:      #08091A;
  --bg-elevated:  #14152B;
  --surface:      rgba(255,255,255,0.055);
  --surface-hi:   rgba(255,255,255,0.09);
  --border-soft:  rgba(255,255,255,0.10);
  --border-hi:    rgba(255,255,255,0.18);
  --ink:          #F4F2FF;
  --ink-dim:      rgba(244,242,255,0.68);
  --ink-faint:    rgba(244,242,255,0.42);
  --mint:         #8FF3D0; /* sparing use — wellness/positive stat accent */

  /* --- gradients --- */
  --grad-aurora: radial-gradient(60% 60% at 20% 20%, rgba(108,77,255,0.55) 0%, rgba(108,77,255,0) 60%),
                 radial-gradient(55% 55% at 85% 15%, rgba(255,111,181,0.35) 0%, rgba(255,111,181,0) 60%),
                 radial-gradient(70% 70% at 50% 100%, rgba(139,92,246,0.40) 0%, rgba(139,92,246,0) 60%);
  --grad-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 55%, var(--accent) 100%);
  --grad-text:  linear-gradient(135deg, #C9BBFF 0%, #FF9CD0 100%);

  /* --- type scale --- */
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 28px;
  --radius-xl: 40px;

  --shadow-soft: 0 20px 60px rgba(5,4,20,0.45);
  --shadow-glow: 0 0 0 1px rgba(255,255,255,0.06), 0 20px 50px rgba(108,77,255,0.25);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;

  color-scheme: dark;
}

/* ---------- Light mode overrides ---------- */
html[data-theme="light"]{
  --bg: #FBFAFE;
  --bg-deep: #F3F1FB;
  --bg-elevated: #FFFFFF;
  --surface: rgba(15,16,33,0.04);
  --surface-hi: rgba(15,16,33,0.07);
  --border-soft: rgba(15,16,33,0.08);
  --border-hi: rgba(15,16,33,0.14);
  --ink: #14152B;
  --ink-dim: rgba(20,21,43,0.68);
  --ink-faint: rgba(20,21,43,0.46);
  --shadow-soft: 0 20px 60px rgba(108,77,255,0.12);
  color-scheme: light;
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; }
input, textarea, select{ font-family:inherit; font-size:inherit; }

::selection{ background: var(--primary); color:#fff; }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.container{
  width:100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight:500;
}
.eyebrow::before{
  content:'';
  width:6px; height:6px;
  border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--white);
}
html[data-theme="light"] h1, html[data-theme="light"] h2, html[data-theme="light"] h3, html[data-theme="light"] h4{ color: var(--ink); }

h1{ font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 500; }
h2{ font-size: clamp(2rem, 3.6vw, 3rem); }
h3{ font-size: clamp(1.25rem, 2vw, 1.6rem); }

p{ color: var(--ink-dim); }
.lede{ font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-dim); max-width: 46ch; }

.text-gradient{
  background: var(--grad-text);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight:600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn-primary{
  background: var(--grad-brand);
  background-size: 160% 160%;
  color:#fff;
  box-shadow: 0 12px 30px rgba(108,77,255,0.4);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255,111,181,0.35); background-position: 100% 50%; }
.btn-ghost{
  background: var(--surface);
  border-color: var(--border-soft);
  color: var(--ink);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover{ background: var(--surface-hi); border-color: var(--border-hi); transform: translateY(-2px); }
.btn-sm{ padding: 10px 18px; font-size:13px; }
.btn-block{ width:100%; }

/* ---------- Glass card ---------- */
.glass{
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-l);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

/* ---------- Ambient aurora background ---------- */
.aurora{
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg);
  overflow:hidden;
}
.aurora::before{
  content:'';
  position:absolute;
  inset: -20%;
  background: var(--grad-aurora);
  filter: blur(10px);
  animation: driftAurora 22s ease-in-out infinite alternate;
}
@keyframes driftAurora{
  0%{ transform: translate3d(0,0,0) scale(1); }
  100%{ transform: translate3d(-3%, 3%, 0) scale(1.08); }
}
.noise{
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  opacity:.035; mix-blend-mode: overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="light"] .noise{ opacity:.02; }

/* ---------- Cycle ring — signature motif ---------- */
.cycle-ring{
  --ring-size: 520px;
  position:absolute;
  width: var(--ring-size); height: var(--ring-size);
  border-radius:50%;
  border: 1px dashed var(--border-hi);
  pointer-events:none;
}
.cycle-ring::after{
  content:'';
  position:absolute;
  top:-4px; left:50%;
  width:8px; height:8px;
  transform: translateX(-50%);
  border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}
.cycle-ring.spin{ animation: spinRing 60s linear infinite; }
.cycle-ring.spin-slow{ animation: spinRing 110s linear infinite reverse; }
@keyframes spinRing{ to{ transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top:0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s var(--ease), border-color .3s var(--ease), padding .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled{
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border-soft);
  padding: 12px 0;
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight:600;
  color: var(--white);
}
html[data-theme="light"] .brand{ color: var(--ink); }
.brand img{ width:34px; height:34px; border-radius:9px; }

.nav-links{
  display:flex;
  align-items:center;
  gap: 28px;
}
.nav-links a{
  font-size: 14.5px;
  font-weight:500;
  color: var(--ink-dim);
  position:relative;
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav-links a:hover, .nav-links a.active{ color: var(--white); }
html[data-theme="light"] .nav-links a:hover, html[data-theme="light"] .nav-links a.active{ color: var(--ink); }
.nav-links a::after{
  content:'';
  position:absolute; left:0; right:100%; bottom:-2px;
  height:2px; border-radius:2px;
  background: var(--grad-brand);
  transition: right .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after{ right:0; }

.header-actions{ display:flex; align-items:center; gap:12px; }

.theme-toggle{
  width:40px; height:40px;
  display:grid; place-items:center;
  border-radius:50%;
  background: var(--surface);
  border:1px solid var(--border-soft);
  color: var(--ink);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.theme-toggle:hover{ background: var(--surface-hi); transform: rotate(20deg); }
.theme-toggle svg{ width:18px; height:18px; }
.theme-toggle .sun{ display:none; }
html[data-theme="light"] .theme-toggle .moon{ display:none; }
html[data-theme="light"] .theme-toggle .sun{ display:block; }

.nav-toggle{
  display:none;
  width:40px; height:40px;
  border-radius:50%;
  background: var(--surface);
  border:1px solid var(--border-soft);
  align-items:center; justify-content:center;
  flex-direction:column; gap:4px;
}
.nav-toggle span{ width:16px; height:2px; background:var(--ink); border-radius:2px; transition:.3s var(--ease); }
.nav-toggle.open span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* ---------- Mobile nav ---------- */
@media (max-width: 880px){
  .nav-links{
    position: fixed;
    inset: 72px 16px auto 16px;
    flex-direction:column;
    align-items: flex-start;
    padding: 22px;
    gap: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-soft);
    transform-origin: top right;
    transform: scale(.96) translateY(-8px);
    opacity:0;
    visibility:hidden;
    transition: all .3s var(--ease);
  }
  .nav-links.open{ opacity:1; visibility:visible; transform:none; }
  .nav-links a{ padding:10px 4px; width:100%; }
  .nav-links .btn{ margin-top:8px; width:100%; }
  .nav-toggle{ display:flex; }
  .header-actions .btn-primary.desktop-only{ display:none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position: relative;
  padding: 96px 0 60px;
  overflow: hidden;
}
.hero .container{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items:center;
  gap: 40px;
}
.hero-copy .eyebrow{ margin-bottom: 20px; }
.hero-copy h1{ margin-bottom: 22px; }
.hero-copy .lede{ margin-bottom: 34px; }
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom: 36px; }

.store-badges{ display:flex; gap:12px; flex-wrap:wrap; }
.store-badge{
  display:flex; align-items:center; gap:10px;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  background: var(--surface);
  border:1px solid var(--border-soft);
  font-size:13px;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.store-badge:hover{ transform: translateY(-2px); background: var(--surface-hi); }
.store-badge svg{ width:20px; height:20px; }
.store-badge .store-lines{ display:flex; flex-direction:column; line-height:1.2; }
.store-badge .store-lines small{ font-size:10px; color: var(--ink-faint); text-transform:uppercase; letter-spacing:.06em; }
.store-badge .store-lines strong{ font-size:14px; color: var(--white); }
html[data-theme="light"] .store-badge .store-lines strong{ color: var(--ink); }

.hero-visual{ position:relative; display:grid; place-items:center; min-height: 560px; }
.hero-visual .cycle-ring:nth-child(1){ --ring-size: 460px; }
.hero-visual .cycle-ring:nth-child(2){ --ring-size: 560px; opacity:.6; }

.phone{
  position:relative;
  width: 270px;
  height: 560px;
  border-radius: 46px;
  background: linear-gradient(160deg, #1B1C36, #0B0C1E);
  border: 1px solid var(--border-hi);
  box-shadow: var(--shadow-glow);
  padding: 14px;
  animation: floatPhone 6s ease-in-out infinite;
  z-index:2;
}
@keyframes floatPhone{
  0%,100%{ transform: translateY(0) rotate(-1.5deg); }
  50%{ transform: translateY(-16px) rotate(1.2deg); }
}
.phone-screen{
  width:100%; height:100%;
  border-radius: 34px;
  overflow:hidden;
  background: linear-gradient(200deg, #201F45, #0D0E22 60%, #1C1030);
  position:relative;
  display:flex; flex-direction:column;
  padding: 22px 18px;
}
.phone-notch{
  position:absolute; top:10px; left:50%; transform:translateX(-50%);
  width:90px; height:22px; background:#08091A; border-radius:20px;
}
.phone-greeting{ margin-top: 34px; }
.phone-greeting span{ display:block; font-family: var(--font-mono); font-size:11px; color: var(--ink-faint); letter-spacing:.08em; text-transform:uppercase;}
.phone-greeting strong{ display:block; font-family: var(--font-display); font-size:22px; color:#fff; margin-top:4px; }
.phone-card{
  margin-top: 22px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(10px);
}
.phone-card .row{ display:flex; justify-content:space-between; align-items:center; font-size:12px; color: rgba(255,255,255,0.6); margin-bottom:10px; }
.phone-ring-wrap{ display:flex; align-items:center; gap:14px; }
.phone-ring{ width:64px; height:64px; }
.phone-ring-text strong{ display:block; color:#fff; font-size:20px; font-family:var(--font-display); }
.phone-ring-text span{ font-size:11px; color: rgba(255,255,255,0.55); }
.phone-tags{ display:flex; gap:8px; margin-top:16px; flex-wrap:wrap; }
.phone-tag{ font-size:10.5px; padding:6px 10px; border-radius:100px; background: rgba(255,255,255,0.08); color:#fff; border:1px solid rgba(255,255,255,0.12); }
.phone-nav{ margin-top:auto; display:flex; justify-content:space-around; padding-top:16px; }
.phone-nav i{ width:20px; height:20px; border-radius:6px; background: rgba(255,255,255,0.14); display:block; }
.phone-nav i:first-child{ background: var(--grad-brand); }

.float-chip{
  position:absolute;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(16px);
  display:flex; align-items:center; gap:8px;
  font-size:12.5px; font-weight:600; color:var(--white);
  box-shadow: var(--shadow-soft);
  z-index:3;
  animation: floatChip 5s ease-in-out infinite;
}
html[data-theme="light"] .float-chip{ color: var(--ink); }
.float-chip.chip-a{ top: 14%; left: -4%; animation-delay: .3s; }
.float-chip.chip-b{ bottom: 18%; right: -6%; animation-delay: 1.1s; }
.float-chip .dot{ width:8px; height:8px; border-radius:50%; background: var(--mint); box-shadow:0 0 10px var(--mint); }
@keyframes floatChip{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
}

/* ---------- Trust strip ---------- */
.trust-strip{ padding: 30px 0; border-top:1px solid var(--border-soft); border-bottom:1px solid var(--border-soft); }
.trust-strip .container{ display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.trust-item{ display:flex; align-items:center; gap:10px; color: var(--ink-faint); font-size:13px; font-weight:500; }
.trust-item svg{ width:18px; height:18px; color: var(--secondary); }

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section{ padding: 110px 0; position:relative; }
.section-head{ max-width: 640px; margin: 0 auto 60px; text-align:center; }
.section-head .eyebrow{ justify-content:center; margin-bottom:16px; }
.section-head h2{ margin-bottom: 16px; }
.section-head p{ margin: 0 auto; }

/* ---------- Feature grid ---------- */
.feature-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card{
  padding: 32px 26px;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
  position:relative;
  overflow:hidden;
}
.feature-card:hover{ transform: translateY(-6px); border-color: var(--border-hi); background: var(--surface-hi); }
.feature-card .ficon{
  width: 52px; height:52px;
  border-radius: 16px;
  display:grid; place-items:center;
  background: var(--grad-brand);
  margin-bottom: 22px;
  box-shadow: 0 10px 24px rgba(108,77,255,0.35);
}
.feature-card .ficon svg{ width:24px; height:24px; color:#fff; }
.feature-card h3{ margin-bottom: 10px; }
.feature-card p{ font-size: 14.5px; }
.feature-card.span-2{ grid-column: span 2; }

.shot-card .shot-img{
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius-m);
  border: 1px solid var(--border-soft);
  margin-bottom: 20px;
  background: var(--bg-elevated);
}
.shot-card h3{ font-size: 15px; margin-bottom: 6px; }
.shot-card p{ font-size: 13.5px; margin: 0; }

/* ---------- Stats ---------- */
.stats-band{
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  position:relative;
  overflow:hidden;
  background: linear-gradient(135deg, rgba(108,77,255,0.16), rgba(255,111,181,0.10));
  border: 1px solid var(--border-soft);
}
.stats-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position:relative; z-index:2;
}
.stat{ text-align:center; }
.stat strong{
  display:block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--white);
  font-weight:500;
}
html[data-theme="light"] .stat strong{ color:var(--ink); }
.stat span{ font-size: 13px; color: var(--ink-faint); font-family: var(--font-mono); letter-spacing: .02em; }

/* ---------- How it works / phases ---------- */
.phase-row{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position:relative;
}
.phase-row::before{
  content:'';
  position:absolute; top: 26px; left:6%; right:6%; height:1px;
  background: linear-gradient(90deg, transparent, var(--border-hi), transparent);
  z-index:0;
}
.phase{ position:relative; z-index:1; text-align:center; padding: 0 10px; }
.phase-moon{
  width: 52px; height:52px;
  margin: 0 auto 18px;
  border-radius:50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hi);
  display:grid; place-items:center;
  box-shadow: var(--shadow-soft);
}
.phase-moon svg{ width:24px; height:24px; }
.phase h3{ font-size: 16px; margin-bottom:8px; }
.phase p{ font-size: 13.5px; }

/* ---------- Testimonials ---------- */
.testi-track-wrap{ overflow:hidden; margin: 0 -24px; padding: 0 24px; }
.testi-track{ display:flex; gap: 20px; }
.testi-card{
  min-width: 340px;
  max-width: 340px;
  padding: 28px;
  display:flex;
  flex-direction:column;
  gap: 18px;
}
.testi-stars{ display:flex; gap:3px; }
.testi-stars svg{ width:14px; height:14px; color: var(--accent); }
.testi-card p{ font-size: 14.5px; color: var(--ink-dim); }
.testi-person{ display:flex; align-items:center; gap:12px; margin-top:auto; }
.testi-avatar{
  width:38px; height:38px; border-radius:50%;
  background: var(--grad-brand);
  display:grid; place-items:center;
  color:#fff; font-weight:700; font-size:14px;
  font-family: var(--font-display);
}
.testi-person strong{ display:block; font-size:13.5px; color: var(--white); }
html[data-theme="light"] .testi-person strong{ color: var(--ink); }
.testi-person span{ font-size:12px; color: var(--ink-faint); }
.testi-controls{ display:flex; gap:10px; justify-content:center; margin-top: 30px; }
.testi-controls button{
  width:38px; height:38px; border-radius:50%;
  background: var(--surface); border:1px solid var(--border-soft);
  display:grid; place-items:center;
}
.testi-controls button:hover{ background: var(--surface-hi); }
.testi-controls svg{ width:16px; height:16px; }

/* ---------- Privacy pillars (used on homepage + privacy page) ---------- */
.pillars{ display:grid; grid-template-columns: repeat(4,1fr); gap:18px; }
.pillar{ padding: 26px 22px; text-align:left; }
.pillar svg{ width:24px; height:24px; color: var(--secondary); margin-bottom:14px; }
.pillar h3{ font-size:15px; margin-bottom:6px; }
.pillar p{ font-size:13px; }

/* ---------- FAQ ---------- */
.faq-list{ max-width: 760px; margin: 0 auto; display:flex; flex-direction:column; gap:12px; }
.faq-item{ overflow:hidden; }
.faq-q{
  width:100%;
  display:flex; align-items:center; justify-content:space-between;
  gap: 16px;
  padding: 22px 26px;
  background:none; border:none; color: var(--white);
  font-family: var(--font-body); font-weight:600; font-size:15.5px;
  text-align:left;
}
html[data-theme="light"] .faq-q{ color: var(--ink); }
.faq-q .plus{
  flex-shrink:0;
  width: 26px; height:26px; border-radius:50%;
  background: var(--surface-hi);
  display:grid; place-items:center;
  position:relative;
  transition: transform .35s var(--ease);
}
.faq-q .plus::before, .faq-q .plus::after{
  content:''; position:absolute; background: var(--ink); border-radius:2px;
}
.faq-q .plus::before{ width:10px; height:2px; }
.faq-q .plus::after{ width:2px; height:10px; }
.faq-item.open .faq-q .plus{ transform: rotate(135deg); background: var(--grad-brand); }
.faq-item.open .faq-q .plus::before, .faq-item.open .faq-q .plus::after{ background:#fff; }
.faq-a{
  max-height:0;
  overflow:hidden;
  transition: max-height .4s var(--ease);
  padding: 0 26px;
}
.faq-a p{ padding-bottom: 22px; font-size:14.5px; }
.faq-item.open .faq-a{ max-height: 300px; }

/* ---------- CTA band ---------- */
.cta-band{
  text-align:center;
  padding: 80px 40px;
  border-radius: var(--radius-xl);
  position:relative;
  overflow:hidden;
  background: var(--grad-brand);
}
.cta-band h2{ color:#fff; margin-bottom:16px; }
.cta-band p{ color: rgba(255,255,255,0.85); max-width:520px; margin:0 auto 32px; }
.cta-band .hero-ctas{ justify-content:center; }
.cta-band .btn-ghost{ background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); color:#fff; }
.cta-band .btn-primary{ background:#fff; color: var(--primary); box-shadow:0 12px 30px rgba(0,0,0,0.25); }

/* ---------- About LUNA ---------- */
.about-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items:stretch;
}
.about-copy{ padding: 40px; display:flex; flex-direction:column; justify-content:center; }
.about-copy h2{ margin-bottom:18px; }
.about-copy p{ margin-bottom: 16px; font-size:15px; }
.about-side{ display:flex; flex-direction:column; gap:22px; }
.value-card{ padding: 28px; flex:1; display:flex; flex-direction:column; gap:10px; }
.value-card .ficon{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background: var(--grad-brand);
  box-shadow: 0 10px 24px rgba(108,77,255,0.3);
}
.value-card .ficon svg{ width:20px; height:20px; color:#fff; }
.value-card h3{ font-size:16px; }
.value-card p{ font-size:13.5px; margin:0; }

/* ---------- Meet the Developer ---------- */
.dev-card{
  display:grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  padding: 46px;
  align-items:start;
}
.dev-photo-col{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:18px; }
.dev-photo{
  width: 200px; height: 200px;
  border-radius: 32px;
  background: var(--grad-brand);
  display:grid; place-items:center;
  position:relative;
  overflow:hidden;
  border: 1px solid var(--border-hi);
  box-shadow: var(--shadow-glow);
}
.dev-photo .placeholder-mark{
  display:flex; flex-direction:column; align-items:center; gap:8px;
  color: rgba(255,255,255,0.92);
}
.dev-photo .placeholder-mark svg{ width:40px; height:40px; }
.dev-photo .placeholder-mark span{ font-family: var(--font-mono); font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; opacity:.85; }
.dev-name{ font-family: var(--font-display); font-size:22px; color:var(--white); }
html[data-theme="light"] .dev-name{ color:var(--ink); }
.dev-role{ font-size:13.5px; color: var(--secondary); font-weight:600; }
.dev-location{ display:flex; align-items:center; gap:6px; font-size:12.5px; color: var(--ink-faint); font-family: var(--font-mono); }
.dev-location svg{ width:14px; height:14px; }
.social-row{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.social-row a{
  width:38px; height:38px; border-radius:50%;
  background: var(--surface); border:1px solid var(--border-soft);
  display:grid; place-items:center;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.social-row a:hover{ background: var(--surface-hi); transform: translateY(-2px); }
.social-row svg{ width:16px; height:16px; }

.dev-story h3{ font-size:14px; text-transform:uppercase; letter-spacing:.06em; color: var(--ink-faint); font-family: var(--font-mono); font-weight:500; margin-bottom:10px; margin-top:26px; }
.dev-story h3:first-child{ margin-top:0; }
.dev-story p{ font-size:14.5px; margin-bottom:0; }

@media (max-width: 900px){
  .about-grid{ grid-template-columns:1fr; }
  .dev-card{ grid-template-columns:1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{ padding: 70px 0 30px; border-top: 1px solid var(--border-soft); margin-top: 40px; }
.footer-top{
  display:grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand .brand{ margin-bottom: 16px; }
.footer-brand p{ font-size: 13.5px; max-width: 30ch; margin-bottom: 20px; }
.footer-social{ display:flex; gap:10px; }
.footer-social a{
  width:36px; height:36px; border-radius:50%;
  background: var(--surface); border:1px solid var(--border-soft);
  display:grid; place-items:center;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.footer-social a:hover{ background: var(--surface-hi); transform: translateY(-2px); }
.footer-social svg{ width:16px; height:16px; }
.footer-col h4{ font-family: var(--font-body); font-size:13px; text-transform:uppercase; letter-spacing:.08em; color: var(--ink-faint); margin-bottom:18px; font-weight:600; }
.footer-col ul{ display:flex; flex-direction:column; gap:12px; }
.footer-col a{ font-size:14px; color: var(--ink-dim); transition: color .25s var(--ease); }
.footer-col a:hover{ color: var(--white); }
html[data-theme="light"] .footer-col a:hover{ color: var(--ink); }
.footer-bottom{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap: 14px;
  padding-top: 30px; border-top: 1px solid var(--border-soft);
  font-size: 12.5px; color: var(--ink-faint);
}
.footer-bottom .made{ display:flex; align-items:center; gap:6px; }

/* ============================================================
   INNER PAGES (privacy / terms / delete / support / 404)
   ============================================================ */
.page-hero{ padding: 150px 0 70px; text-align:center; }
.page-hero .eyebrow{ justify-content:center; margin-bottom:18px; }
.page-hero h1{ margin-bottom: 16px; }
.page-hero p{ max-width: 560px; margin: 0 auto; }
.updated-badge{
  display:inline-flex; align-items:center; gap:8px;
  margin-top: 22px;
  padding: 8px 16px;
  border-radius:100px;
  background: var(--surface);
  border:1px solid var(--border-soft);
  font-size:12.5px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}

.legal-layout{ display:grid; grid-template-columns: 260px 1fr; gap: 50px; align-items:start; }
.legal-toc{ position:sticky; top: 110px; padding: 22px; }
.legal-toc h4{ font-size:12px; text-transform:uppercase; letter-spacing:.08em; color: var(--ink-faint); margin-bottom:16px; }
.legal-toc ul{ display:flex; flex-direction:column; gap:10px; }
.legal-toc a{ font-size: 13.5px; color: var(--ink-dim); display:block; padding: 4px 0; border-left:2px solid transparent; padding-left:12px; transition:.25s var(--ease); }
.legal-toc a:hover, .legal-toc a.active{ color: var(--white); border-left-color: var(--accent); }
html[data-theme="light"] .legal-toc a:hover, html[data-theme="light"] .legal-toc a.active{ color: var(--ink); }

.legal-content{ padding: 46px; }
.legal-content section{ margin-bottom: 46px; scroll-margin-top: 110px; }
.legal-content section:last-child{ margin-bottom:0; }
.legal-content h2{ font-size: 1.5rem; margin-bottom: 16px; display:flex; align-items:center; gap:12px; }
.legal-content h2 .num{ font-family: var(--font-mono); font-size:14px; color: var(--secondary); border:1px solid var(--border-hi); width:32px; height:32px; border-radius:50%; display:grid; place-items:center; flex-shrink:0; }
.legal-content h3{ font-size: 1.05rem; margin: 22px 0 10px; color: var(--white); }
html[data-theme="light"] .legal-content h3{ color: var(--ink); }
.legal-content p{ margin-bottom: 14px; font-size: 15px; }
.legal-content ul{ margin: 0 0 14px 0; display:flex; flex-direction:column; gap:10px; }
.legal-content ul li{ font-size:14.5px; color: var(--ink-dim); padding-left: 22px; position:relative; }
.legal-content ul li::before{ content:''; position:absolute; left:0; top:8px; width:6px; height:6px; border-radius:50%; background: var(--accent); }
.legal-content table{ width:100%; border-collapse:collapse; margin-bottom:16px; font-size:13.5px; }
.legal-content th, .legal-content td{ text-align:left; padding: 12px 14px; border-bottom:1px solid var(--border-soft); }
.legal-content th{ color: var(--ink-faint); font-weight:600; font-family:var(--font-mono); font-size:11.5px; text-transform:uppercase; letter-spacing:.04em; }
.callout{
  padding: 18px 20px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  display:flex; gap:14px;
  margin-bottom: 16px;
}
.callout svg{ width:20px; height:20px; flex-shrink:0; color: var(--accent); margin-top:2px; }
.callout p{ margin:0; font-size:13.5px; }
.callout.warn{ border-color: rgba(255,111,181,0.35); }
.callout.info{ border-color: rgba(108,77,255,0.35); }

/* ---------- Forms ---------- */
.form-card{ padding: 40px; }
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field{ display:flex; flex-direction:column; gap:8px; margin-bottom: 20px; }
.form-field.full{ grid-column: 1 / -1; }
.form-field label{ font-size:13.5px; font-weight:600; color: var(--white); }
html[data-theme="light"] .form-field label{ color: var(--ink); }
.form-field .hint{ font-size:12px; color: var(--ink-faint); font-weight:400; }
.form-field input, .form-field textarea, .form-field select{
  padding: 13px 16px;
  border-radius: var(--radius-s);
  background: var(--bg-deep);
  border: 1px solid var(--border-soft);
  color: var(--ink);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
html[data-theme="light"] .form-field input, html[data-theme="light"] .form-field textarea, html[data-theme="light"] .form-field select{ background:#fff; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus{ border-color: var(--secondary); outline:none; }
.form-field textarea{ resize: vertical; min-height:120px; }
.checkbox-field{ display:flex; align-items:flex-start; gap:10px; margin-bottom: 24px; }
.checkbox-field input{ margin-top:3px; accent-color: var(--primary); width:16px; height:16px; }
.checkbox-field label{ font-size:13.5px; color: var(--ink-dim); }
.form-note{ display:flex; align-items:center; gap:8px; font-size:13px; color: var(--ink-faint); margin-top:18px; }
.form-note svg{ width:16px; height:16px; }

.form-success{
  display:none;
  text-align:center;
  padding: 50px 20px;
}
.form-success.show{ display:block; }
.form-success .check{
  width:64px; height:64px; margin:0 auto 20px;
  border-radius:50%;
  background: var(--grad-brand);
  display:grid; place-items:center;
}
.form-success .check svg{ width:28px; height:28px; color:#fff; }

/* ---------- Timeline (delete-account) ---------- */
.timeline{ display:flex; flex-direction:column; gap:0; }
.timeline-item{ display:grid; grid-template-columns: 100px 40px 1fr; gap: 4px; }
.timeline-time{ font-family: var(--font-mono); font-size:12.5px; color: var(--secondary); padding-top:2px; }
.timeline-dot-col{ display:flex; flex-direction:column; align-items:center; }
.timeline-dot{ width:12px; height:12px; border-radius:50%; background: var(--grad-brand); margin-top:4px; flex-shrink:0; }
.timeline-line{ flex:1; width:1px; background: var(--border-hi); margin-top:6px; }
.timeline-item:last-child .timeline-line{ display:none; }
.timeline-body{ padding-bottom: 34px; }
.timeline-body h3{ font-size:15px; margin-bottom:6px; }
.timeline-body p{ font-size:13.5px; }

/* ---------- Support ---------- */
.support-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:20px; }
.support-card{ padding: 30px 26px; text-align:left; transition: transform .35s var(--ease), border-color .35s var(--ease); }
.support-card:hover{ transform: translateY(-6px); border-color: var(--border-hi); }
.support-card .ficon{ width:46px; height:46px; border-radius:14px; background: var(--surface-hi); display:grid; place-items:center; margin-bottom:18px; border:1px solid var(--border-hi); }
.support-card .ficon svg{ width:22px; height:22px; color: var(--accent); }
.support-card h3{ font-size:16px; margin-bottom:8px; }
.support-card p{ font-size:13.5px; margin-bottom:16px; }

.wa-float{
  position:fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 58px; height:58px; border-radius:50%;
  background: #25D366;
  display:grid; place-items:center;
  box-shadow: 0 14px 34px rgba(37,211,102,0.4);
  transition: transform .3s var(--ease);
}
.wa-float:hover{ transform: scale(1.08); }
.wa-float svg{ width:28px; height:28px; color:#fff; }

/* ---------- 404 ---------- */
.error-page{ min-height: 100vh; display:flex; align-items:center; justify-content:center; text-align:center; padding: 40px 24px; }
.error-moon{ width: 180px; height:180px; margin: 0 auto 32px; position:relative; }
.error-code{ font-family: var(--font-display); font-size: clamp(4rem,10vw,7rem); font-weight:500; line-height:1; }

/* ---------- Reveal-on-scroll ---------- */
[data-reveal]{ opacity:0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in-view{ opacity:1; transform: translateY(0); }
[data-reveal="scale"]{ transform: scale(.94); }
[data-reveal="scale"].in-view{ transform: scale(1); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px){
  .feature-grid{ grid-template-columns: repeat(2,1fr); }
  .stats-grid{ grid-template-columns: repeat(2,1fr); gap: 34px; }
  .pillars{ grid-template-columns: repeat(2,1fr); }
  .phase-row{ grid-template-columns: repeat(2,1fr); gap: 30px; }
  .phase-row::before{ display:none; }
  .legal-layout{ grid-template-columns: 1fr; }
  .legal-toc{ position:static; display:flex; overflow-x:auto; gap:18px; padding: 16px 20px; }
  .legal-toc ul{ flex-direction:row; }
  .support-grid{ grid-template-columns: repeat(2,1fr); }
  .footer-top{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-visual{ order:-1; min-height: 420px; transform: scale(.85); }
  .hero-copy{ text-align:center; }
  .hero-copy .eyebrow{ justify-content:center; }
  .hero-ctas{ justify-content:center; }
  .store-badges{ justify-content:center; }
  .section{ padding: 80px 0; }
  .feature-grid{ grid-template-columns: 1fr; }
  .feature-card.span-2{ grid-column: span 1; }
  .stats-grid{ grid-template-columns: repeat(2,1fr); }
  .pillars{ grid-template-columns: 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
  .support-grid{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr; gap: 34px; }
  .legal-content{ padding: 28px; }
  .cta-band{ padding: 56px 24px; }
  .timeline-item{ grid-template-columns: 76px 32px 1fr; }
}


/* ---------- Direct APK Download Card ---------- */
.apk-download-box {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-m);
  padding: 20px 24px;
  max-width: 480px;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(12px);
  margin-top: 12px;
}
.apk-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.apk-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--grad-brand);
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.apk-chip-outline {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--surface-hi);
  border: 1px solid var(--border-soft);
  color: var(--ink-dim);
}
.apk-note {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 12px;
  line-height: 1.4;
}

