/* ============================================================
   ASTROYA — landing stylesheet
   Tokens from docs/DESIGN_SYSTEM.md (mystical premium dark theme)
   ============================================================ */

:root {
  /* Colors */
  --bg-top: #2B1B4D;
  --bg-bottom: #120B26;
  --surface: rgba(36, 22, 64, 0.7);          /* #241640 @ 70% */
  --surface-solid: #241640;
  --surface-border: rgba(108, 79, 163, 0.35); /* #6C4FA3 @ 35% */
  --gold: #E8C48C;
  --gold-soft: #D9B27C;
  --gold-deep: #C89B62;
  --text-primary: #F4EFFA;
  --text-secondary: #B8A8D9;
  --accent-purple: #9B6DFF;
  --accent-pink: #FF7EB6;
  --accent-yellow: #FFD166;
  --accent-blue: #6FB1FF;
  --accent-green: #7ED957;
  --danger: #FF6B6B;

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape */
  --radius-card: 20px;
  --radius-btn: 16px;
  --radius-input: 14px;

  --nav-height: 68px;
  --content-width: 1120px;
}

/* ---------- Reset / base ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%) fixed;
  background-color: var(--bg-bottom);
  overflow-x: hidden;
}

img, svg { max-width: 100%; vertical-align: middle; }

a { color: var(--accent-purple); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; }
p { margin: 0 0 1em; }

section { scroll-margin-top: calc(var(--nav-height) + 16px); }

::selection { background: rgba(155, 109, 255, 0.4); color: #fff; }

/* ---------- Star field (all pages) ---------- */

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    radial-gradient(1px 1px at 22px 34px,  rgba(255,255,255,.50) 50%, transparent 51%),
    radial-gradient(1px 1px at 118px 92px, rgba(255,255,255,.32) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 196px 40px, rgba(232,196,140,.42) 50%, transparent 51%),
    radial-gradient(1px 1px at 254px 148px, rgba(255,255,255,.38) 50%, transparent 51%),
    radial-gradient(1px 1px at 74px 190px,  rgba(255,255,255,.26) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 160px 230px, rgba(184,168,217,.35) 50%, transparent 51%);
  background-size: 290px 270px;
}

body::after {
  background-image:
    radial-gradient(1.6px 1.6px at 64px 60px,  rgba(255,255,255,.85) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 210px 170px, rgba(232,196,140,.8) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 330px 90px,  rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 130px 300px, rgba(155,109,255,.6) 50%, transparent 51%);
  background-size: 420px 380px;
  animation: twinkle 5.5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%   { opacity: 0.25; }
  50%  { opacity: 0.9; }
  100% { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::after, .sparkle { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}

/* Everything above the stars */
.site-header, main, footer { position: relative; z-index: 1; }

/* ---------- Layout helpers ---------- */

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

.section {
  padding: 84px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
}

.section-title .accent { color: var(--gold); }

.section-sub {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font: 600 15px/1.2 var(--font-body);
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--bg-top);
  box-shadow: 0 8px 28px rgba(232, 196, 140, 0.28);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(232, 196, 140, 0.4); }

.btn-ghost {
  background: transparent;
  border-color: var(--surface-border);
  color: var(--text-primary);
}
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold); }

.btn-block { width: 100%; }

/* ---------- Sticky nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 11, 38, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(108, 79, 163, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--nav-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--gold) !important;
  text-decoration: none !important;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo svg { flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--gold); text-decoration: none; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lang-switch a, .lang-switch span {
  padding: 6px 12px;
  color: var(--text-secondary);
  text-decoration: none !important;
}
.lang-switch .active {
  background: rgba(155, 109, 255, 0.22);
  color: var(--text-primary);
}
.lang-switch a:hover { color: var(--gold); }

.burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after  { position: absolute; top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Cosmic background ---------- */

/* A baked nebula plate rather than more CSS gradients. Space reads as space
   only when there is structure at several scales at once — clouds, dust lanes
   and stars of different magnitudes — and that is not something three
   radial-gradients can fake. Generated by landing/tool/generate_background.py.
   The scrim above it is what keeps body text readable over the bright parts. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background: url("../img/cosmos.webp") center / cover no-repeat;
  /* Scaled up slightly and drifting: the plate is square, so on wide screens
     this keeps the interesting part of the nebula in view. */
  animation: cosmosDrift 120s ease-in-out infinite alternate;
}

body::after {
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(20, 11, 40, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(12, 7, 26, 0.72) 0%, rgba(10, 6, 22, 0.86) 100%);
}

@keyframes cosmosDrift {
  from { transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
  to   { transform: scale(1.12) translate3d(1.5%, 1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; transform: scale(1.06); }
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--gold); }

.hero-sub {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 30px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 16px;
  min-height: 60px;
  border-radius: 14px;
  border: 1px solid var(--surface-border);
  background: rgba(13, 8, 32, 0.85);
  color: var(--text-primary) !important;
  text-decoration: none !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.store-badge:hover {
  transform: translateY(-2px);
  border-color: var(--gold-soft);
  box-shadow: 0 10px 30px rgba(232, 196, 140, 0.18);
}
.store-badge svg { flex: none; }
.store-badge .badge-text { display: flex; flex-direction: column; line-height: 1.25; }
.store-badge .badge-text small { font-size: 10.5px; color: var(--text-secondary); letter-spacing: 0.02em; }
.store-badge .badge-text strong { font-size: 17px; font-weight: 600; }

/* Unused until the app has real ratings in the stores — the hero showed an
   invented 4.9, which is dishonest and a false-advertising risk. Put the
   row back in the hero once there are real numbers to print. */
.rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 13.5px;
}
.rating-stars { display: inline-flex; gap: 3px; color: var(--gold); }
.rating-row strong { color: var(--gold); font-size: 15px; }

/* decorative 4-point sparkles */
.sparkle {
  position: absolute;
  color: var(--gold);
  opacity: 0.7;
  animation: sparklePulse 4s ease-in-out infinite;
  pointer-events: none;
}
.sparkle-2 { animation-delay: 1.3s; color: var(--accent-purple); }
.sparkle-3 { animation-delay: 2.4s; }

@keyframes sparklePulse {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50%      { opacity: 0.9;  transform: scale(1.1); }
}

/* ---------- Phone mockup (App Home screen) ---------- */

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.phone-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

/* ambient light pooling behind the device */
.phone-aura {
  position: absolute;
  inset: -10% 0;          /* must not widen the hero, or narrow screens clip the copy */
  background:
    radial-gradient(52% 44% at 50% 34%, rgba(155, 109, 255, 0.30) 0%, transparent 70%),
    radial-gradient(38% 30% at 62% 68%, rgba(232, 196, 140, 0.16) 0%, transparent 72%);
  filter: blur(14px);
  pointer-events: none;
}

.phone {
  /* iPhone 15 Pro proportions: 71.5 x 146.6 mm shell around a 393 x 852 pt screen.
     The bezel is uniform on all four sides and the radii are concentric
     (inner = outer - bezel), otherwise the frame reads as warped. */
  --bezel: 12px;
  position: relative;
  z-index: 1;
  width: 352px;
  max-width: 100%;
  padding: var(--bezel);
  border-radius: 56px;
  /* symmetric brushed titanium: bright rails on both edges, dark in the middle */
  background:
    linear-gradient(90deg,
      #9A90A6 0%, #4A4356 3.5%, #2C2637 16%,
      #322C3E 50%,
      #2C2637 84%, #4A4356 96.5%, #9A90A6 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    0 42px 90px rgba(0, 0, 0, 0.62),
    0 0 100px rgba(155, 109, 255, 0.20);
}

/* black inner bezel ring between the rails and the glass */
.phone::after {
  content: "";
  position: absolute;
  inset: calc(var(--bezel) - 3px);
  border-radius: 47px;
  border: 3px solid #07050F;
  pointer-events: none;
  z-index: 2;
}

/* side buttons — positioned as a share of device height so they track any scale */
.phone-btn {
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #7A7086, #3A3446 42%, #7A7086);
}
.btn-mute   { left: -3px; top: 13.5%; height: 3.6%; }
.btn-vol-up { left: -3px; top: 19.6%; height: 7.6%; }
.btn-vol-dn { left: -3px; top: 28%;   height: 7.6%; }
.btn-power  { right: -3px; top: 21.5%; height: 12.4%; }

.phone-screen {
  position: relative;
  aspect-ratio: 393 / 852;
  border-radius: 44px;   /* = outer 56 - bezel 12, keeps the corners concentric */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 62% at 22% 4%, #3B2568 0%, transparent 62%),
    linear-gradient(180deg, #241645 0%, #180E31 42%, #0F0824 100%);
  color: var(--text-primary);
  font-size: 11px;
}

/* The screenshot is the screen: same aspect as the frame's glass, so it fills
   it edge to edge with no letterboxing. */
.phone-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* star field inside the screen */
.phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 26px 88px, rgba(255,255,255,.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 132px 46px, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 268px 122px, rgba(232,196,140,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 74px 210px, rgba(255,255,255,.42) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 300px 300px, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 40px 420px, rgba(201,184,232,.55) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 250px 520px, rgba(255,255,255,.4) 50%, transparent 51%);
  background-repeat: no-repeat;
}

/* ---- status bar + Dynamic Island ---- */
.phone-status {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 26px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  z-index: 4;
}
.ps-time { letter-spacing: 0.01em; }
.ps-icons { display: inline-flex; align-items: center; gap: 5px; color: #fff; }
.phone-island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 26px;
  border-radius: 14px;
  background: #05030C;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ---- scrollable content column ---- */
.phone-scroll {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0 12px;
  overflow: hidden;   /* content continues under the tab bar, like a real scrolled screen */
}

/* ---- header: moon + brand bar + greeting ---- */
.phone-head { position: relative; flex: none; padding-bottom: 4px; }

.ph-moon-lg {
  position: absolute;
  object-fit: contain;
  left: -30px;
  top: -20px;
  width: 130px;
  height: 130px;
  pointer-events: none;
}

/* scrim keeps the bar icons legible where the moon passes behind them */
.phone-bar::before {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: -14px;
  bottom: -8px;
  background: linear-gradient(180deg, rgba(14, 8, 30, 0.62) 0%, rgba(14, 8, 30, 0.34) 58%, transparent 100%);
  pointer-events: none;
}

.phone-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 0;
}
.pb-icon { position: relative; color: #F0E8FF; display: inline-flex; filter: drop-shadow(0 1px 3px rgba(10,6,24,.9)); }
.pb-brand { position: relative; text-align: center; line-height: 1.05; }
.pb-brand em {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  color: var(--gold);
}
.pb-brand small {
  display: block;
  font-size: 7.5px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-top: 2px;
}

.phone-greet {
  position: relative;
  z-index: 2;
  text-align: right;
  padding: 22px 2px 0 78px;
}
.phone-greet h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: #fff;
}
.pg-spark { color: var(--gold); font-size: 12px; }
.phone-greet p { margin: 3px 0 0; font-size: 9.5px; color: var(--text-secondary); line-height: 1.3; }
.pg-date { color: var(--gold-soft) !important; }

/* ---- metric cards ---- */
.phone-metrics {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.pm-card {
  background: linear-gradient(160deg, rgba(58, 38, 100, 0.72), rgba(28, 18, 52, 0.72));
  border: 1px solid rgba(140, 106, 200, 0.34);
  border-radius: 14px;
  padding: 6px 3px 7px;
  text-align: center;
}
.pm-card svg { display: block; margin: 1px auto 2px; }
.pm-card .pm-label { display: block; font-size: 8px; color: var(--text-secondary); }
.pm-card .pm-value { display: block; font-size: 14px; font-weight: 700; line-height: 1.25; }
.pm-love   .pm-value { color: var(--accent-pink);   text-shadow: 0 0 10px rgba(255, 126, 182, 0.45); }
.pm-energy .pm-value { color: var(--accent-yellow); text-shadow: 0 0 10px rgba(255, 209, 102, 0.45); }
.pm-career .pm-value { color: var(--accent-blue);   text-shadow: 0 0 10px rgba(111, 177, 255, 0.45); }
.pm-money  .pm-value { color: var(--accent-green);  text-shadow: 0 0 10px rgba(126, 217, 87, 0.40); }

/* ---- content cards ---- */
.phone-card {
  flex: none;
  display: flex;
  gap: 8px;
  align-items: center;
  background: linear-gradient(155deg, rgba(52, 34, 92, 0.68), rgba(24, 15, 46, 0.78));
  border: 1px solid rgba(140, 106, 200, 0.30);
  border-radius: 16px;
  padding: 9px 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.phone-card .pc-body { flex: 1; min-width: 0; }
.phone-card h5 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0 0 3px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.phone-card p { margin: 0; font-size: 8.8px; line-height: 1.42; color: var(--text-secondary); }
.pc-lead { font-size: 10px !important; margin-bottom: 1px !important; }
.pc-gold { color: var(--gold); font-weight: 600; }
.pc-big {
  font-size: 20px !important;
  font-weight: 700;
  color: #fff !important;
  line-height: 1.1;
  margin: 1px 0 !important;
}

.ai-pill {
  flex: none;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #A97BFF, #6C4FA3);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 0 12px rgba(155, 109, 255, 0.5);
}

.pc-art { flex: none; }
.pc-art-ball  { width: 52px; height: 52px; object-fit: contain; }
.pc-art-moon  { width: 58px; height: 58px; }
.pc-art-ring  { width: 46px; height: 46px; }
.pc-art-tarot { width: 42px; height: 63px; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5)); }

/* ---- lunar calendar strip ---- */
.phone-strip { flex: none; }
.phone-strip h5 {
  margin: 0 0 5px 2px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.ps-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ps-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 0 6px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--text-secondary);
}
.ps-day b { font-size: 9.5px; font-weight: 600; }
.ps-day svg { width: 15px; height: 15px; }
.ps-day.active {
  background: linear-gradient(160deg, rgba(72, 46, 128, 0.9), rgba(40, 25, 78, 0.9));
  border-color: rgba(155, 109, 255, 0.55);
  color: var(--gold);
  box-shadow: 0 0 14px rgba(155, 109, 255, 0.28);
}

.phone-home-bar {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.55);
  z-index: 5;
}

/* ---- bottom tab bar ---- */
.phone-nav {
  position: relative;
  z-index: 3;
  flex: none;
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 9px 6px 20px;
  background: rgba(10, 6, 24, 0.86);
  border-top: 1px solid rgba(140, 106, 200, 0.26);
  backdrop-filter: blur(8px);
}
.phone-nav .pn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 7.5px;
  color: var(--text-secondary);
}
.phone-nav .pn-item.active {
  color: var(--accent-purple);
  filter: drop-shadow(0 0 8px rgba(155, 109, 255, 0.55));
}

/* ---- hero trust badge + cosmic factor strip (from the app's own feature set) ---- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  margin-bottom: 24px;
  border-radius: 16px;
  border: 1px solid rgba(232, 196, 140, 0.34);
  background: linear-gradient(135deg, rgba(52, 34, 92, 0.5), rgba(20, 12, 40, 0.5));
}
.hero-badge svg { flex: none; color: var(--gold); }
.hero-badge .hb-text { line-height: 1.3; }
.hero-badge .hb-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.hero-badge .hb-sub { display: block; font-size: 12.5px; color: var(--text-secondary); }

.factor-strip {
  border: 1px solid var(--surface-border);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(46, 30, 84, 0.42), rgba(18, 11, 38, 0.42));
  padding: 22px 24px 24px;
  margin-top: 56px;
}
.factor-strip h3 {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 25px);
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--text-primary);
}
.factor-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.factor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-secondary);
}
.factor-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(232, 196, 140, 0.42);
  background: radial-gradient(circle at 34% 28%, rgba(232, 196, 140, 0.16), rgba(20, 12, 40, 0.5) 70%);
  transition: transform .2s ease, box-shadow .2s ease;
}
.factor:hover .factor-ring {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 196, 140, 0.22);
}

/* ---------- Features grid ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 196, 140, 0.45);
  box-shadow: 0 14px 44px rgba(155, 109, 255, 0.18);
}

/* with 10 cards in a 3-column grid, center the orphan in the last row
   (3 columns are guaranteed at >=900px given the container max-width) */
@media (min-width: 900px) {
  .features-grid > .feature-card:last-child { grid-column: 2; }
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--gold-soft);
  background: rgba(232, 196, 140, 0.08);
  border: 1px solid rgba(232, 196, 140, 0.22);
}

.feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 13.5px; color: var(--text-secondary); margin: 0; }

.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  vertical-align: 2px;
}
.tag-free { background: rgba(126, 217, 87, 0.14); color: var(--accent-green); }
.tag-premium { background: rgba(232, 196, 140, 0.14); color: var(--gold); }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 30px 24px 26px;
  text-align: center;
}

.step-num {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--bg-top);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: 0 0 26px rgba(232, 196, 140, 0.35);
}

.step h3 { font-size: 16px; font-weight: 600; }
.step p { font-size: 13px; color: var(--text-secondary); margin: 0; }

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  /* Three plans: weekly (which carries the free trial), monthly, yearly. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  max-width: 960px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 32px 28px 28px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-4px); }

.price-card.featured {
  border: 1.5px solid rgba(232, 196, 140, 0.65);
  background: linear-gradient(180deg, rgba(232, 196, 140, 0.08), rgba(36, 22, 64, 0.75));
  box-shadow: 0 0 60px rgba(232, 196, 140, 0.16);
}

.price-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--bg-top);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.price-card h3 { font-size: 15px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }
.price-amount { font-family: var(--font-display); font-size: 46px; font-weight: 700; color: var(--gold); line-height: 1.1; }
.price-period { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }
.price-note { font-size: 12.5px; color: var(--accent-green); font-weight: 600; margin-bottom: 14px; min-height: 18px; }

.price-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  text-align: left;
  font-size: 13.5px;
  color: var(--text-secondary);
  flex: 1;
}
.price-list li {
  padding: 6px 0 6px 26px;
  position: relative;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 15px;
  height: 15px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8C48C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 7'/%3E%3C/svg%3E");
}

.pricing-footnote {
  text-align: center;
  color: var(--text-secondary);
  font-size: 12.5px;
  max-width: 640px;
  margin: 28px auto 0;
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font: 600 15px/1.4 var(--font-body);
  text-align: left;
  cursor: pointer;
}
.faq-q .chev { flex: none; color: var(--gold-soft); transition: transform .25s ease; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a-inner {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 14px;
}
.faq-a-inner p:last-child { margin-bottom: 0; }

.faq-item.open .chev { transform: rotate(180deg); }
.faq-item.open { border-color: rgba(232, 196, 140, 0.4); }

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  padding: 56px 28px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 0%, rgba(155, 109, 255, 0.18), transparent 55%);
  pointer-events: none;
}
.cta-band > * { position: relative; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(108, 79, 163, 0.22);
  background: rgba(13, 8, 32, 0.6);
  padding: 48px 0 36px;
  margin-top: 40px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
  margin-bottom: 12px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-secondary); }
.footer-grid a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(108, 79, 163, 0.18);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 12px;
}

.footer-disclaimer { font-size: 11.5px; opacity: 0.85; max-width: 760px; }

/* ---------- Legal pages ---------- */

.legal-main { padding: 56px 0 72px; }

.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: clamp(26px, 5vw, 52px);
}

.legal-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  color: var(--gold);
}

.legal-updated { color: var(--text-secondary); font-size: 13px; margin-bottom: 28px; }

.legal-wrap h2 {
  font-size: 19px;
  font-weight: 600;
  margin-top: 36px;
  color: var(--text-primary);
}
.legal-wrap h3 { font-size: 16px; font-weight: 600; margin-top: 24px; }

.legal-wrap p, .legal-wrap li { color: var(--text-secondary); font-size: 14.5px; }
.legal-wrap ul { padding-left: 22px; }
.legal-wrap li { margin-bottom: 6px; }
.legal-wrap strong { color: var(--text-primary); }
.legal-wrap a { color: var(--accent-purple); }

.legal-callout {
  background: rgba(232, 196, 140, 0.08);
  border: 1px solid rgba(232, 196, 140, 0.35);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 24px 0;
}
.legal-callout p { margin: 0; color: var(--text-primary); }

.legal-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 16px 0; }
.legal-table th, .legal-table td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  vertical-align: top;
}
.legal-table th { color: var(--gold-soft); font-weight: 600; background: rgba(108, 79, 163, 0.12); }
.legal-table-wrap { overflow-x: auto; }

/* Support contact card */
.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(155, 109, 255, 0.1);
  border: 1px solid rgba(155, 109, 255, 0.35);
  border-radius: 18px;
  padding: 22px 24px;
  margin: 24px 0;
}
.contact-card .ci {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(155, 109, 255, 0.18);
  color: var(--accent-purple);
}
.contact-card h3 { margin: 0 0 4px; font-size: 16px; }
.contact-card p { margin: 0; font-size: 13.5px; }
.contact-card a { color: var(--gold); font-weight: 600; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .store-badges, .rating-row { justify-content: center; }
  .phone-wrap { order: 2; margin-top: 12px; }
  .factor-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .factor-strip { margin-top: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; }
  .price-card.featured { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #150D2E;
    border-bottom: 1px solid var(--surface-border);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
    padding: 8px 20px 18px;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 4px; font-size: 15px; border-bottom: 1px solid rgba(108, 79, 163, 0.15); }
  .nav-links .lang-switch { margin-top: 14px; align-self: flex-start; }
  .lang-switch a, .lang-switch span { padding: 8px 16px; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 64px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  /* scale the whole device: narrowing it alone would push content out of the screen */
  .phone { transform: scale(0.80); transform-origin: top center; margin-bottom: -147px; }
  .factor-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .phone-aura { inset: -4% 0; }
  .factor-strip { padding: 18px 16px 20px; margin-top: 32px; border-radius: 18px; }
  .hero-badge { width: 100%; gap: 10px; padding: 10px 14px; }
  .hero-badge .hb-title { font-size: 14px; }
  .hero-badge .hb-sub { font-size: 12px; }
  .store-badge { min-height: 54px; padding: 8px 16px 8px 13px; }
  .store-badge .badge-text strong { font-size: 15px; }
  .contact-card { flex-direction: column; text-align: center; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .phone { transform: scale(0.70); margin-bottom: -220px; }
  .factor { font-size: 11.5px; }
  .factor-ring { width: 50px; height: 50px; }
  .logo { letter-spacing: 0.22em; font-size: 19px; }
}
