/* ==========================================================================
   Horae — Tarot & Daily Horoscope · landing page
   Palette "Sapphire Moon" from Figma A052_Horae (Component / Background): night navy-violet,
   moonlit silver for the interface, sun gold kept for the sun itself.
   ========================================================================== */

:root {
  --night: #090626;          /* Nền */
  --night-2: #0e0a35;
  --night-3: #161050;
  --glass: rgba(40, 30, 112, .72);   /* Kính */
  --glass-2: rgba(27, 20, 84, .62);
  --glass-3: rgba(18, 13, 60, .78);
  --line: rgba(201, 214, 242, .16);
  --line-2: rgba(201, 214, 242, .3);
  --silver: #c9d6f2;         /* Accent */
  --silver-2: #eef3ff;       /* Accent sáng */
  --text: #eef2fb;           /* Chữ chính */
  --muted: #aba6d6;          /* Chữ phụ */
  --muted-2: #8580b8;
  --violet: #9c8cff;         /* Accent phụ */
  --violet-2: #6c5ce0;
  --gold: #f2c66d;
  --gold-2: #ffe6a0;
  --gold-3: #c98a2b;
  --online: #34d399;

  --grad-pearl: linear-gradient(115deg, #f4f7ff 0%, #dfe7fb 28%, #a8b8ea 50%, #e9eeff 70%, #c9d6f2 100%);
  --grad-title: linear-gradient(100deg, #eef3ff 0%, #c9d6f2 26%, #a99cff 46%, #eef3ff 64%, #9fb2e6 82%, #eef3ff 100%);
  --grad-gold: linear-gradient(100deg, #c98a2b 0%, #ffe6a0 32%, #f2bf55 58%, #fff1c4 78%, #c98a2b 100%);
  --grad-silver-line: linear-gradient(135deg, rgba(238, 243, 255, .75), rgba(156, 140, 255, .35) 40%, rgba(201, 214, 242, .7) 70%, rgba(238, 243, 255, .25));

  --font-display: 'Cormorant Garamond', 'Cormorant', 'Times New Roman', serif;
  --font-body: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1200px;
  --header-h: 74px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.2, .9, .25, 1.12);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 760px at 82% -8%, rgba(108, 92, 224, .30), transparent 62%),
    radial-gradient(900px 620px at -10% 16%, rgba(242, 198, 109, .07), transparent 60%),
    linear-gradient(180deg, #0d0936 0%, var(--night) 42%, #0b0730 100%);
  background-color: var(--night);
  color: var(--text);
  font: 400 16px/1.62 var(--font-body);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* 3D carousels overflow sideways on purpose; clip them here (body-level overflow is ignored by mobile viewports) */
main { overflow-x: hidden; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.06; letter-spacing: .005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(156, 140, 255, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 12px; background: var(--silver-2); color: var(--night); transition: top .2s; }
.skip-link:focus { top: 12px; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

/* ---------- sky backdrop ---------- */
.starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.nebula { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.neb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.neb.n1 { width: 46vw; height: 46vw; left: -12vw; top: 28vh; background: radial-gradient(circle, rgba(108, 92, 224, .38), transparent 65%); animation: drift 38s ease-in-out infinite; }
.neb.n2 { width: 38vw; height: 38vw; right: -8vw; top: 58vh; background: radial-gradient(circle, rgba(79, 112, 214, .30), transparent 65%); animation: drift 46s ease-in-out infinite reverse; }
.neb.n3 { width: 30vw; height: 30vw; left: 38vw; top: -10vh; background: radial-gradient(circle, rgba(242, 198, 109, .10), transparent 65%); animation: drift 52s ease-in-out infinite; }

/* ---------- text treatments ---------- */
.grad {
  font-style: italic;
  background: var(--grad-title);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 10s linear infinite;
  padding-right: .06em; /* italic overhang would otherwise be clipped by background-clip */
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 12.5px/1.3 var(--font-body);
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--silver);
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 34px; height: 9px; flex: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 9'%3E%3Cpath d='M0 4.5h26' stroke='%23c9d6f2' stroke-opacity='.55'/%3E%3Cpath fill='%23eef3ff' d='M30 0l4 4.5-4 4.5-4-4.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.eyebrow::after { transform: scaleX(-1); }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 8px 30px;
  border-radius: 999px;
  font: 700 16px/1.1 var(--font-display);
  letter-spacing: .14em; text-transform: uppercase;
  text-align: center;
  transition: transform .3s var(--ease-out), box-shadow .3s, filter .3s, background-color .3s, border-color .3s, color .3s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--grad-pearl);
  background-size: 160% 100%;
  color: #1b1552;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -2px 6px rgba(108, 92, 224, .25), 0 10px 34px -10px rgba(201, 214, 242, .55);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .85) 48%, transparent 64%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease-out);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 6px rgba(108, 92, 224, .25), 0 16px 44px -10px rgba(201, 214, 242, .75); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:disabled { filter: grayscale(.3) brightness(.78); cursor: progress; transform: none; }
.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--silver-2);
  background: rgba(201, 214, 242, .05);
  font: 600 18px/1.1 var(--font-display); letter-spacing: .03em; text-transform: none;
}
.btn-ghost:hover { background: rgba(201, 214, 242, .12); border-color: rgba(238, 243, 255, .6); transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 6px 20px; font-size: 13.5px; white-space: nowrap; }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 17px/1 var(--font-display); letter-spacing: .02em;
  color: var(--silver);
  padding: 8px 0;
  transition: gap .25s var(--ease-out), color .2s;
}
.link-btn:hover { gap: 11px; color: #fff; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 25px; padding: 0 11px;
  border-radius: 999px;
  font: 600 11px/1 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--silver-2);
  background: rgba(201, 214, 242, .07);
  border: 1px solid var(--line-2);
}
.round-btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--glass-2);
  border: 1px solid var(--line-2);
  color: var(--silver-2);
  transition: background .2s, transform .2s, border-color .2s;
}
.round-btn:hover { background: rgba(156, 140, 255, .25); border-color: var(--silver); transform: scale(1.06); }
.round-btn.flip .ic { transform: scaleX(-1); }

.play-badge { display: inline-block; line-height: 0; border-radius: 12px; transition: transform .25s var(--ease-out), filter .25s; }
/* The official badge PNG carries transparent padding — trim it visually */
.play-badge img { height: 74px; width: auto; margin: -11px -12px; }
.play-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 22px rgba(201, 214, 242, .3)); }

.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: ping 2.2s infinite; flex: none; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .deal { opacity: 1; transform: none; }

/* looping animations stop while their section is off screen (main.js toggles .is-paused) */
.is-paused .spin-slow, .is-paused .spin-rev, .is-paused .spin-mid, .is-paused .spin-rays,
.is-paused .float-card, .is-paused .fc-inner, .is-paused .hero-phone, .is-paused .ec-orbit, .is-paused .ec-ring, .is-paused .medal-shine { animation-play-state: paused; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.site-header.is-scrolled {
  background: rgba(9, 6, 38, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(201, 214, 242, .45), 0 6px 18px -6px rgba(242, 198, 109, .55); }
.brand-name {
  font: 700 22px/1 var(--font-display); letter-spacing: .3em; padding-left: .04em;
  background: var(--grad-title); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav a {
  position: relative; padding: 10px 13px; border-radius: 10px; white-space: nowrap;
  font: 500 14.5px/1 var(--font-body); color: var(--muted);
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: #fff; background: rgba(201, 214, 242, .06); }
.main-nav a.is-active { color: #fff; }
.main-nav a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 5px; height: 5px; margin-left: -2.5px; transform: rotate(45deg); background: var(--silver-2); box-shadow: 0 0 8px var(--silver); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-menu { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px 0 12px; border-radius: 999px;
  background: rgba(201, 214, 242, .06); border: 1px solid var(--line);
  font: 600 12.5px/1 var(--font-body); letter-spacing: .06em; color: var(--muted); transition: background .2s, color .2s, border-color .2s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: rgba(156, 140, 255, .16); border-color: var(--line-2); color: #fff; }
.lang-btn .ic { width: 18px; height: 18px; fill: none; }
.lang-btn .chev { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-list {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  width: 230px; max-height: min(70vh, 540px); overflow-y: auto; padding: 6px;
  border-radius: 18px; background: rgba(14, 10, 53, .98);
  border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
  animation: pop .25s var(--ease-out) both;
}
.lang-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 12px; cursor: pointer; outline: none;
  font: 500 15px/1.2 var(--font-body); color: var(--muted);
}
.lang-list li small { font: 600 11px/1 var(--font-body); letter-spacing: .1em; color: var(--muted-2); }
.lang-list li:hover, .lang-list li:focus-visible { background: rgba(201, 214, 242, .07); color: #fff; }
.lang-list li[aria-selected="true"] { background: var(--glass); color: #fff; }
.lang-list li[aria-selected="true"] small { color: var(--silver); }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(201, 214, 242, .07); position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; border-radius: 2px; background: var(--silver-2); transition: transform .3s var(--ease-out), top .3s; }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 24px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* sun-to-moon scroll line */
.sky-track { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(201, 214, 242, .08); opacity: 0; transition: opacity .35s; }
.site-header.is-scrolled .sky-track { opacity: 1; }
.sky-fill { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold) 0%, var(--gold-2) 30%, var(--silver) 62%, var(--silver-2) 100%); }
.sky-orb {
  position: absolute; top: 0; left: 0; width: 9px; height: 9px; margin: -4px 0 0 -4.5px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fff6d6, var(--gold) 60%, var(--gold-3));
  box-shadow: 0 0 10px 2px rgba(242, 198, 109, .7);
  transition: background .6s, box-shadow .6s;
}
.sky-orb.is-moon { background: radial-gradient(circle at 40% 40%, #fff, var(--silver) 60%, #8b9ad0); box-shadow: inset -3px -1px 3px rgba(9, 6, 38, .9), 0 0 10px 2px rgba(201, 214, 242, .7); }

/* Collapsed navigation — phones/tablets (media query below) and any width where translated labels don't fit (JS adds .is-compact) */
.site-header.is-compact .menu-toggle { display: block; }
.site-header.is-compact .main-nav {
  position: fixed; left: 16px; right: 16px; top: calc(var(--header-h) - 4px);
  flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
  border-radius: 22px; background: rgba(14, 10, 53, .97);
  border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
  opacity: 0; transform: translateY(-10px); pointer-events: none; visibility: hidden;
  transition: opacity .25s, transform .25s var(--ease-out), visibility .25s;
}
.site-header.is-compact .main-nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.site-header.is-compact .main-nav a { padding: 14px 16px; font-size: 17px; }
.site-header.is-compact .main-nav a.is-active::after { display: none; }
.site-header.is-compact .header-actions { margin-left: auto; }

/* ---------- per-language typography ---------- */
html.i18n-wait body { opacity: 0; }
body { transition: opacity .25s; }
html:lang(hi) { --font-display: 'Tiro Devanagari Hindi', 'Mukta', serif; --font-body: 'Mukta', 'DM Sans', sans-serif; }
html:lang(ja) { --font-display: 'Shippori Mincho', 'Cormorant Garamond', serif; --font-body: 'Noto Sans JP', 'DM Sans', sans-serif; }
html:lang(ru), html:lang(uk) { --font-body: 'Manrope', 'DM Sans', sans-serif; }
html:lang(vi) { --font-body: 'Be Vietnam Pro', 'DM Sans', sans-serif; }
/* Devanagari's headline bar breaks with letter-spacing; CJK doesn't need it, nor italics */
html:lang(hi) *, html:lang(ja) * { letter-spacing: normal !important; }
html:lang(hi) .grad, html:lang(ja) .grad { font-style: normal; }
html:lang(hi) .btn, html:lang(ja) .btn { text-transform: none; }
/* Taller scripts need room so gradient-clipped headings don't cut marks */
html:lang(hi) h1, html:lang(hi) h2, html:lang(hi) .sc-name, html:lang(ja) h1, html:lang(ja) h2 { line-height: 1.32; }
html:lang(vi) h1, html:lang(vi) h2 { line-height: 1.16; }
html:lang(de) p, html:lang(ru) p, html:lang(uk) p { hyphens: auto; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3, html:lang(ja) p { word-break: auto-phrase; }
html:lang(ja) .hero-title { font-size: clamp(36px, 5vw, 64px); }

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.section { position: relative; padding: 130px 0; }
.section-head { max-width: 780px; margin: 0 auto 60px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.section-head h2 { font-size: clamp(38px, 5vw, 66px); }
.section-sub { color: var(--muted); font-size: clamp(16px, 1.35vw, 18px); max-width: 640px; }
.section-lineart { position: absolute; left: 50%; top: 50%; width: min(760px, 110vw); transform: translate(-50%, -50%); opacity: .5; mix-blend-mode: screen; pointer-events: none; z-index: -1; -webkit-mask: radial-gradient(closest-side, #000 40%, transparent); mask: radial-gradient(closest-side, #000 40%, transparent); }

/* ==========================================================================
   Hero — the orrery
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 30px) 0 100px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -8%; top: 2%; width: 74vw; max-width: 960px; aspect-ratio: 1; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(242, 198, 109, .12) 0%, rgba(108, 92, 224, .16) 34%, transparent 66%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 20px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; position: relative; z-index: 2; }
.sky-chip {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(14, 10, 53, .66); border: 1px solid var(--line-2);
  font: 500 13.5px/1.2 var(--font-body); color: var(--muted);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: border-color .25s, transform .25s var(--ease-out);
}
.sky-chip:hover { border-color: var(--silver); transform: translateY(-2px); }
.sky-chip > span { display: inline-flex; align-items: center; gap: 7px; }
.sky-sun .ic { width: 17px; height: 17px; color: var(--gold); filter: drop-shadow(0 0 6px rgba(242, 198, 109, .7)); }
.sky-moon .phase-ico { width: 15px; height: 15px; color: var(--silver-2); filter: drop-shadow(0 0 5px rgba(201, 214, 242, .7)); }
.sky-moon .phase-ico svg { width: 100%; height: 100%; }
.sky-sep { width: 1px; height: 14px; background: var(--line-2); }
.hero-title { font-size: clamp(46px, 6.3vw, 88px); font-weight: 600; line-height: .98; letter-spacing: -.005em; }
.hero-title .grad { display: inline; padding-bottom: .08em; }
.hero-sub { color: var(--muted); font-size: clamp(16px, 1.4vw, 18.5px); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; margin-top: 6px; }
.hero-facts { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 30px; margin-top: 10px; }
.hero-facts li { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 1px solid var(--line-2); }
.hero-facts strong { font: 600 32px/1 var(--font-display); background: var(--grad-title); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero-facts span { font-size: 13px; color: var(--muted-2); line-height: 1.3; }

.hero-visual { position: relative; }
.orrery { position: relative; width: 100%; max-width: 680px; margin-inline: auto; aspect-ratio: 1 / 1; }
.orr-scale { position: absolute; left: 50%; top: 50%; width: 640px; height: 640px; transform: translate(-50%, -50%) scale(var(--s, 1)); }
.orr-layer {
  position: absolute; inset: 0; pointer-events: none;
  transform: translate3d(calc(var(--px, 0) * var(--d) * 18px), calc(var(--py, 0) * var(--d) * 13px), 0);
}
.orr-glow {
  position: absolute; inset: -6%; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(242, 198, 109, calc(.26 - var(--eclipse, 0) * .16)) 0%, transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(108, 92, 224, .26) 18%, rgba(79, 112, 214, .1) 44%, transparent 64%);
}
.ring { position: absolute; inset: 20px; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring-hours { opacity: .78; }
.ring-zodiac { opacity: .7; }
.ring-phases { opacity: .9; }
.spin-slow { animation: spin 260s linear infinite; }
.spin-rev { animation: spin 200s linear infinite reverse; }
.spin-mid { animation: spin 140s linear infinite; }
.spin-rays { animation: spin 110s linear infinite; }
.spin-slow, .spin-rev, .spin-mid, .spin-rays { will-change: transform; }

/* the orbit itself: back half behind the medallion, front half in front of it */
.orbit-back::before, .orbit-front::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 572px; height: 156px; margin: -78px 0 0 -286px; border-radius: 50%;
  border: 1px solid transparent; transform: rotate(-16deg);
}
.orbit-back::before { border-top-color: rgba(201, 214, 242, .22); border-left-color: rgba(201, 214, 242, .1); border-right-color: rgba(201, 214, 242, .1); }
.orbit-front::before { border-bottom-color: rgba(201, 214, 242, .4); }
.orb { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; will-change: transform, opacity; }
.orb-sun {
  background: radial-gradient(circle at 36% 34%, #fff8dc 0%, #ffd77c 30%, #f2b347 58%, #c98a2b 100%);
  box-shadow: 0 0 22px 6px rgba(247, 195, 90, .55), 0 0 70px 14px rgba(247, 195, 90, .22);
}
.orb-sun i {
  position: absolute; inset: -14px; border-radius: 50%; z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 128, .75) 0deg 3deg, transparent 3deg 22.5deg);
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 48%, transparent 72%); mask: radial-gradient(circle, transparent 46%, #000 48%, transparent 72%);
  animation: spin 14s linear infinite;
}
.orb-moon {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  background: radial-gradient(circle at 42% 38%, #ffffff 0%, #e6ecff 38%, #a9b6e3 78%, #7c89c4 100%);
  box-shadow: inset -11px -3px 12px rgba(14, 10, 53, .92), 0 0 22px 4px rgba(201, 214, 242, .45), 0 0 60px 10px rgba(156, 140, 255, .18);
}

.medallion { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; }
.rays { position: absolute; left: 50%; top: 50%; width: 434px; height: 434px; margin: -217px 0 0 -217px; opacity: calc(.95 - var(--eclipse, 0) * .55); filter: drop-shadow(0 0 10px rgba(242, 198, 109, .45)); }
.rays svg { width: 100%; height: 100%; overflow: visible; }
.medal-halo { position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 140, .0) 58%, rgba(255, 220, 140, calc(.38 - var(--eclipse, 0) * .3)) 66%, transparent 74%); }
.medal-art {
  position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px rgba(238, 243, 255, .7), 0 0 0 7px rgba(14, 10, 53, .85), 0 0 0 8px rgba(201, 214, 242, .4), 0 0 70px rgba(242, 198, 109, calc(.45 - var(--eclipse, 0) * .3)), 0 30px 80px -20px rgba(0, 0, 0, .9);
  filter: brightness(calc(1 - var(--eclipse, 0) * .32)) saturate(calc(1 - var(--eclipse, 0) * .25));
}
.medal-shine {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none; mix-blend-mode: soft-light;
  background: conic-gradient(from 0deg, transparent 0 30%, rgba(255, 255, 255, .55) 38%, transparent 46% 100%);
  animation: spin 9s linear infinite;
}
.phone.hero-phone { position: absolute; left: 424px; top: 258px; --pw: 164px; transform: rotate(7deg); animation: float 8s ease-in-out infinite; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18), inset 0 0 0 3px #000, 0 30px 70px -20px rgba(0, 0, 0, .95), 0 0 60px -10px rgba(156, 140, 255, .6); }
.float-card { position: absolute; width: 92px; aspect-ratio: 324 / 563; perspective: 700px; animation: bob 7s ease-in-out infinite; }
.float-card.fc1 { left: 26px; top: 64px; rotate: -13deg; }
.float-card.fc2 { left: 70px; top: 430px; width: 82px; rotate: 10deg; animation-delay: -3s; }
.fc-inner { position: absolute; inset: 0; transform-style: preserve-3d; animation: flip 11s var(--ease-in-out) infinite; }
.fc2 .fc-inner { animation-delay: -5.5s; }
.fc-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-backface-visibility: hidden; backface-visibility: hidden; filter: drop-shadow(0 0 14px rgba(156, 140, 255, .55)) drop-shadow(0 14px 18px rgba(0, 0, 0, .6)); }
.fc-inner .fc-back { transform: rotateY(180deg); border-radius: 7px; }
.motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.phone {
  --pw: 236px;
  position: relative; width: var(--pw); aspect-ratio: 1 / 2.16;
  border-radius: calc(var(--pw) * .15);
  padding: calc(var(--pw) * .03);
  background: linear-gradient(150deg, #4c5378 0%, #161838 26%, #07061a 58%, #2c2f55 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), inset 0 0 0 calc(var(--pw) * .014) #000;
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--pw) * .125); overflow: hidden; background: var(--night); }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.phone .screen::after { content: ""; position: absolute; top: 1.6%; left: 50%; width: 4%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: #030206; box-shadow: 0 0 0 1px rgba(255, 255, 255, .07); }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font: 600 11px/1 var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--muted-2); }
.cue-line { position: relative; width: 1px; height: 46px; background: linear-gradient(var(--line-2), transparent); overflow: hidden; }
.cue-line::after { content: ""; position: absolute; left: -2px; top: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--silver-2); box-shadow: 0 0 8px var(--silver); animation: cue 2.4s var(--ease-in-out) infinite; }

/* ==========================================================================
   Readings — six spreads dealt onto the table
   ========================================================================== */
.spread-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 40px; }
.spread { display: flex; flex-direction: column; gap: 20px; }
.deal { opacity: 0; transform: translateY(70px) rotate(var(--tilt, 0deg)) scale(.92); transition: opacity .9s var(--ease-out), transform 1.15s var(--ease-spring); transition-delay: calc(var(--i, 0) * 110ms); }
.deal.is-in { opacity: 1; transform: none; }
.spread-card {
  position: relative;
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .7s var(--ease-out), filter .4s;
  filter: drop-shadow(0 22px 32px rgba(0, 0, 0, .5));
}
.spread-card.is-tilting { transition: transform .12s linear, filter .4s; }
.spread-card:hover { filter: drop-shadow(0 0 26px rgba(156, 140, 255, .55)) drop-shadow(0 26px 36px rgba(0, 0, 0, .55)); }
.sc-frame { position: relative; padding: 1px; border-radius: 16px; background: var(--grad-silver-line); }
.sc-art { position: relative; aspect-ratio: 3 / 4; border-radius: 15px; overflow: hidden; background: var(--night-3); box-shadow: inset 0 0 0 5px rgba(9, 6, 38, .55); }
.sc-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.spread-card:hover .sc-art img { transform: scale(1.07); }
.sc-art::before { content: ""; position: absolute; inset: 7px; z-index: 2; border-radius: 10px; border: 1px solid rgba(238, 243, 255, .22); pointer-events: none; }
.sc-art::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(9, 6, 38, .95) 0%, rgba(9, 6, 38, .6) 22%, transparent 46%), radial-gradient(circle at var(--gx) var(--gy), rgba(238, 243, 255, .22), transparent 42%); pointer-events: none; }
.sheen { position: absolute; inset: -20% -60%; z-index: 3; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgba(238, 243, 255, .32) 50%, transparent 60%); transform: translateX(-70%); }
.spread-card:hover .sheen { transition: transform 1.1s var(--ease-out); transform: translateX(70%); }
.tip { position: absolute; left: 50%; z-index: 4; width: 12px; height: 12px; margin-left: -6px; transform: rotate(45deg); background: linear-gradient(135deg, #fff, var(--silver) 55%, #8b9ad0); box-shadow: 0 0 10px rgba(201, 214, 242, .8); }
.tip.t { top: -6px; } .tip.b { bottom: -6px; }
.sc-name { position: absolute; left: 10px; right: 10px; bottom: 22px; z-index: 4; text-align: center; font: 600 clamp(22px, 2.2vw, 30px)/1.05 var(--font-display); color: #fff; text-shadow: 0 2px 14px rgba(9, 6, 38, .9); }
.spread-info { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 4px; }
.spread-info p { color: var(--muted); font-size: 15.5px; }

/* ==========================================================================
   Draw demo
   ========================================================================== */
.draw { overflow-x: clip; }
.draw .section-lineart { opacity: .42; top: 56%; }
.draw-panel {
  position: relative;
  padding: 28px clamp(14px, 3vw, 36px) 32px;
  border-radius: 34px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(108, 92, 224, .26), transparent 60%),
    linear-gradient(180deg, rgba(27, 20, 84, .72), rgba(9, 6, 38, .86));
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.panel-corner { position: absolute; width: 10px; height: 10px; transform: rotate(45deg); background: var(--silver); box-shadow: 0 0 10px var(--silver); opacity: .8; }
.panel-corner.tl { left: 26px; top: -5px; } .panel-corner.tr { right: 26px; top: -5px; } .panel-corner.bl { left: 26px; bottom: -5px; } .panel-corner.br { right: 26px; bottom: -5px; }
/* columns are chosen in draw.js (6 → 3 → 2) so long translations never overflow */
.spread-tabs { position: relative; display: grid; grid-template-columns: repeat(var(--cols, 3), max-content); gap: 10px; padding: 4px 2px 10px; justify-content: center; }
.spread-tabs::-webkit-scrollbar { display: none; }
.spread-tab {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 16px 0 6px; border-radius: 999px;
  background: rgba(9, 6, 38, .66);
  border: 1px solid var(--line-2);
  font: 600 17px/1 var(--font-display); color: var(--muted);
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease-out);
}
.spread-tab img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 1px solid var(--line-2); }
.spread-tab small { font: 600 11px/1 var(--font-body); color: var(--silver); letter-spacing: .06em; padding: 4px 7px; border-radius: 999px; background: rgba(201, 214, 242, .1); }
.spread-tab:hover { color: #fff; transform: translateY(-1px); }
.spread-tab[aria-selected="true"] { background: var(--grad-pearl); border-color: transparent; color: #1b1552; box-shadow: 0 10px 26px -12px rgba(201, 214, 242, .8); }
.spread-tab[aria-selected="true"] small { background: rgba(27, 21, 82, .12); color: #1b1552; }
@media (min-width: 1240px) {
  .spread-tabs { gap: 7px; }
  .spread-tab { gap: 8px; padding-right: 10px; font-size: 16px; }
  .spread-tab img { width: 34px; height: 34px; }
}
.draw-controls { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 12px auto 0; max-width: 760px; }
.question-field {
  flex: 1; display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px; border-radius: 999px;
  background: rgba(9, 6, 38, .7); border: 1px solid var(--line-2);
  color: var(--silver);
  transition: border-color .2s, box-shadow .2s;
}
.question-field:focus-within { border-color: var(--silver); box-shadow: 0 0 0 4px rgba(201, 214, 242, .12); }
.question-field input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: #fff; font-size: 16px; }
.question-field input::placeholder { color: var(--muted-2); }
.btn-shuffle { min-width: 176px; }

.draw-stage { position: relative; height: clamp(420px, 50vw, 590px); margin-top: 18px; perspective: 1400px; perspective-origin: 50% 35%; user-select: none; -webkit-user-select: none; }
.table-glow { position: absolute; left: 50%; bottom: -48%; width: min(1000px, 140%); aspect-ratio: 1; transform: translateX(-50%) rotateX(72deg); pointer-events: none; }
.table-glow .ring { inset: 0; opacity: .5; }
.table-glow::before { content: ""; position: absolute; inset: 16%; border-radius: 50%; background: radial-gradient(circle, rgba(156, 140, 255, .4), rgba(242, 198, 109, .06) 50%, transparent 70%); }
.slots, .captions { position: absolute; inset: 0; pointer-events: none; }
.slot {
  position: absolute; display: grid; place-items: center; padding: 6px; text-align: center;
  border: 1px dashed rgba(201, 214, 242, .5); border-radius: 12px;
  background: rgba(9, 6, 38, .45);
  font: 600 11px/1.25 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--silver);
  opacity: 0; transform: translateY(10px) scale(.96);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), border-color .3s, box-shadow .3s;
}
.slot.is-shown { opacity: 1; transform: none; }
.slot.is-filled { border-style: solid; border-color: rgba(238, 243, 255, .9); box-shadow: 0 0 26px rgba(201, 214, 242, .3); }
.deck-layer { position: absolute; inset: 0; transform-style: preserve-3d; }
.dcard { position: absolute; left: 50%; top: 0; transform-style: preserve-3d; will-change: transform; -webkit-tap-highlight-color: transparent; }
.dcard-lift { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .3s var(--ease-out); }
.dcard.is-pickable { cursor: pointer; }
.dcard.is-pickable:focus-visible { outline: none; }
.dcard.is-pickable:focus-visible .dface img { outline: 2px solid var(--silver); outline-offset: 2px; }
@media (hover: hover) {
  .dcard.is-pickable:hover .dcard-lift { transform: translateY(-15%) translateZ(40px); }
}
.dcard.is-pickable:focus-visible .dcard-lift { transform: translateY(-15%) translateZ(40px); }
.dcard-inner { position: absolute; inset: 0; transform-style: preserve-3d; }
.dface { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.dface img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.dback img { border-radius: 7% / 4%; box-shadow: 0 8px 18px rgba(0, 0, 0, .5), 0 0 0 1px rgba(201, 214, 242, .22); }
.dfront { transform: rotateY(180deg); }
.dcard.is-revealed .dfront img { filter: drop-shadow(0 0 12px rgba(156, 140, 255, .9)) drop-shadow(0 0 3px rgba(238, 243, 255, .7)); }
.caption {
  position: absolute; transform: translate(-50%, 8px); width: 168px; text-align: center;
  opacity: 0; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.caption.is-shown { opacity: 1; transform: translate(-50%, 0); }
.caption .pos { display: block; font: 600 10.5px/1.2 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.caption .nm { display: block; margin-top: 3px; font: 600 18px/1.15 var(--font-display); color: var(--silver-2); }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.draw-status { min-height: 26px; margin-top: 4px; text-align: center; color: var(--silver); font: 500 15.5px/1.5 var(--font-body); }
.draw-status b { color: #fff; font-weight: 600; }

.draw-result { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.draw-result.is-in { animation: rise .8s var(--ease-out) both; }
.result-cards { padding: 22px; border-radius: 24px; background: rgba(9, 6, 38, .6); border: 1px solid var(--line); }
.result-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.result-head img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line-2); }
.result-head .eyebrow { font-size: 11px; letter-spacing: .2em; gap: 8px; }
.result-head .eyebrow::before, .result-head .eyebrow::after { display: none; }
.result-head h3 { font-size: 26px; }
.result-q { color: var(--muted); font-size: 14px; font-style: italic; margin-top: 2px; }
.result-list { display: flex; flex-direction: column; gap: 12px; }
.result-list li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px; border-radius: 16px; background: var(--glass-2); }
.result-list img { width: 46px; aspect-ratio: 324 / 563; object-fit: cover; }
.result-list .pos { font: 600 10.5px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.result-list strong { display: block; margin: 4px 0 2px; font: 600 20px/1.15 var(--font-display); }
.result-list strong em { font-style: normal; font-weight: 500; color: var(--muted-2); font-size: 15px; }
.result-list p { color: var(--silver); font-size: 13.5px; }
.locked {
  position: relative; overflow: hidden; border-radius: 24px; min-height: 340px;
  background: linear-gradient(#141047, #0b0830) padding-box, var(--grad-silver-line) border-box;
  border: 1px solid transparent;
  padding: 22px;
}
.answer-lock { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; background: rgba(201, 214, 242, .06); border: 1px dashed var(--line-2); font: 600 17px/1.2 var(--font-display); color: var(--silver-2); }
.answer-lock b { font: 700 22px/1 var(--font-display); letter-spacing: .12em; color: transparent; text-shadow: 0 0 10px rgba(238, 243, 255, .9); }
.locked-text { color: var(--muted); filter: blur(5px); user-select: none; -webkit-user-select: none; line-height: 1.75; }
.locked-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: radial-gradient(ellipse at 50% 60%, rgba(9, 6, 38, .92) 0%, rgba(9, 6, 38, .64) 60%, rgba(9, 6, 38, .25) 100%); }
.locked-overlay .lock-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-pearl); color: #1b1552; box-shadow: 0 0 30px rgba(201, 214, 242, .45); }
.locked-overlay h4 { font-size: 26px; }
.locked-overlay p { color: var(--muted); max-width: 360px; font-size: 15px; }
.result-actions { grid-column: 1 / -1; display: flex; justify-content: center; }

/* ==========================================================================
   Zodiac — twelve illustrated signs + the daily horoscope card
   ========================================================================== */
.zod-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 44px; align-items: start; }
.zod-side, .horo-wrap { min-width: 0; }
.zod-pick { font: 600 12px/1 var(--font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 16px 4px; }
.zod-signs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 14px; }
.zsign { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding-bottom: 4px; border-radius: 16px; transition: transform .4s var(--ease-out); }
.zs-art { position: relative; width: 100%; aspect-ratio: 320 / 427; border-radius: 13px; overflow: hidden; margin-bottom: 8px; background: #000; box-shadow: 0 0 0 1px var(--line-2), 0 14px 26px -14px rgba(0, 0, 0, .9); transition: box-shadow .35s, filter .35s; filter: saturate(.8) brightness(.78); }
.zs-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.zs-art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 4px rgba(9, 6, 38, .5); pointer-events: none; }
.zs-name { font: 600 19px/1.1 var(--font-display); color: var(--text); }
.zs-date { font-size: 12px; color: var(--muted-2); }
.zs-sun { position: absolute; right: 7px; top: 7px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; color: var(--gold); background: rgba(9, 6, 38, .75); filter: drop-shadow(0 0 6px rgba(242, 198, 109, .7)); }
.zsign:hover { transform: translateY(-4px); }
.zsign:hover .zs-art { filter: none; }
.zsign:hover .zs-art img { transform: scale(1.06); }
.zsign[aria-checked="true"] { transform: translateY(-6px); }
.zsign[aria-checked="true"] .zs-art { filter: none; box-shadow: 0 0 0 1.5px var(--silver-2), 0 0 0 5px rgba(201, 214, 242, .14), 0 0 34px rgba(156, 140, 255, .6), 0 18px 30px -14px rgba(0, 0, 0, .9); }
.zsign[aria-checked="true"] .zs-name { background: var(--grad-title); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.zsign:focus-visible { outline-offset: 4px; }

.horo-wrap { position: sticky; top: calc(var(--header-h) + 20px); }
.horo-card {
  padding: 22px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(27, 20, 84, .86), rgba(14, 10, 53, .92)) padding-box, var(--grad-silver-line) border-box;
  border: 1px solid transparent;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 60px -30px rgba(156, 140, 255, .55);
  transition: opacity .22s, transform .22s var(--ease-out), filter .22s;
}
.horo-card.is-swapping { opacity: .15; transform: translateY(6px); filter: blur(3px); }
.horo-tabs { display: flex; padding: 4px; border-radius: 999px; background: rgba(9, 6, 38, .8); border: 1px solid var(--line); margin-bottom: 16px; }
.horo-tabs button { flex: 1; height: 38px; border-radius: 999px; font: 600 14px/1 var(--font-body); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: color .2s; }
.horo-tabs button:hover { color: #fff; }
.horo-tabs button[aria-selected="true"] { background: var(--grad-pearl); color: #1b1552; box-shadow: 0 6px 16px -8px rgba(201, 214, 242, .8); }
.horo-tabs .lk { opacity: .6; }
.horo-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.horo-glyph { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #6c5ce0, #2a1f86); box-shadow: inset 0 0 0 1px rgba(238, 243, 255, .25); color: #fff; flex: none; }
.horo-glyph svg { width: 70%; height: 70%; }
.horo-sign { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.horo-sign strong { font: 600 22px/1.1 var(--font-display); }
.horo-sign span { font-size: 12.5px; color: var(--muted-2); }
.horo-date { margin-left: auto; color: var(--muted-2); font-size: 12.5px; text-align: right; }
.horo-text { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(9, 6, 38, .35); color: var(--text); font-size: 15px; margin-bottom: 14px; }
.horo-block { padding: 14px 16px; border-radius: 16px; background: rgba(9, 6, 38, .45); border: 1px solid var(--line); margin-bottom: 12px; }
.horo-block h4 { font: 600 17px/1.2 var(--font-display); color: var(--silver-2); margin-bottom: 8px; }
.rate-row, .lucky-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; font-size: 14.5px; color: var(--muted); }
.rate-row + .rate-row, .lucky-row + .lucky-row { border-top: 1px solid rgba(201, 214, 242, .06); }
.stars { display: inline-flex; gap: 4px; }
.stars i { width: 14px; height: 14px; background: rgba(201, 214, 242, .22); -webkit-mask: var(--star) center/contain no-repeat; mask: var(--star) center/contain no-repeat; }
.stars i.on { background: linear-gradient(135deg, #eef3ff, #a9b9ff); filter: drop-shadow(0 0 3px rgba(169, 185, 255, .8)); }
.horo-card { --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.6 7.1.6-5.4 4.8 1.6 7L12 17.3 5.8 21l1.6-7L2 9.2l7.1-.6z'/%3E%3C/svg%3E"); }
.lucky-row span:last-child { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; text-align: right; }
.swatch { width: 13px; height: 13px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.horo-cta { margin-top: 6px; width: 100%; }

.origins {
  position: relative; margin-top: 72px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) auto minmax(0, 1fr); align-items: center; gap: 36px;
  padding: 26px; border-radius: 30px;
  background: linear-gradient(120deg, rgba(27, 20, 84, .8), rgba(9, 6, 38, .85)) padding-box, var(--grad-silver-line) border-box;
  border: 1px solid transparent;
}
.origins-art { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px var(--line); }
.origins-art img { width: 100%; height: 100%; object-fit: cover; }
.origins-sign { width: 132px; margin: -60px 0; rotate: 4deg; filter: drop-shadow(0 0 24px rgba(156, 140, 255, .55)); }
.origins-sign img { width: 100%; height: auto; aspect-ratio: 320 / 427; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 1.5px var(--silver-2), 0 24px 40px -12px rgba(0, 0, 0, .9); transition: opacity .22s, transform .45s var(--ease-out); }
.origins-sign img.is-swapping { opacity: 0; transform: translateY(8px) scale(.96); }
.origins-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.origins-copy h3 { font-size: clamp(30px, 3vw, 40px); }
.origins-copy p { color: var(--muted); }

/* ==========================================================================
   AI Specialists — coverflow + chat preview (Figma: SPECIALISTS / chat)
   ========================================================================== */
.spec-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.spec-side { min-width: 0; }
.spec-carousel { position: relative; height: 470px; perspective: 1100px; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; cursor: grab; }
.spec-carousel.is-dragging { cursor: grabbing; }
.spec-card {
  position: absolute; left: 50%; top: 50%; width: 244px;
  border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #1b1454, #0e0a35) padding-box, var(--grad-silver-line) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
  transition: transform .75s var(--ease-out), opacity .5s, box-shadow .4s;
  will-change: transform;
}
.spec-carousel.is-dragging .spec-card { transition: none; }
.spec-card.is-active { box-shadow: 0 0 0 1px rgba(238, 243, 255, .35), 0 0 50px -6px rgba(156, 140, 255, .75), 0 40px 70px -30px rgba(0, 0, 0, .9); }
.spec-photo { position: relative; aspect-ratio: 1; overflow: hidden; }
.spec-photo img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.spec-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #1b1454 0%, transparent 32%); }
.spec-rating { position: absolute; top: 10px; right: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: rgba(9, 6, 38, .78); border: 1px solid var(--line); font: 600 12.5px/1 var(--font-body); }
.spec-rating::before { content: "★"; color: #ffd76a; font-size: 12px; }
.spec-body { padding: 4px 14px 16px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.spec-name { font: 600 23px/1.15 var(--font-display); }
.spec-persona { color: var(--muted); font-size: 13.5px; min-height: 1.5em; }
.btn-chat { margin-top: 10px; width: 100%; height: 42px; border-radius: 999px; background: rgba(9, 6, 38, .7); border: 1px solid var(--line-2); font: 700 13px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--silver-2); transition: background .2s, transform .2s, color .2s; }
.btn-chat:hover { background: var(--glass); }
.spec-card.is-active .btn-chat { background: var(--grad-pearl); color: #1b1552; border-color: transparent; }
.spec-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 10px; }
.spec-dots { display: flex; gap: 8px; }
.spec-dots button { width: 7px; height: 7px; border-radius: 50%; background: rgba(201, 214, 242, .3); transition: width .3s var(--ease-out), background .3s; }
.spec-dots button[aria-current="true"] { width: 26px; border-radius: 6px; background: var(--grad-pearl); }
.spec-disclaimer { margin: 18px auto 0; max-width: 460px; text-align: center; color: var(--muted-2); font-size: 13px; }

.chat-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.chat-phone {
  width: min(390px, 100%);
  padding: 11px; border-radius: 54px;
  background: linear-gradient(150deg, #4c5378 0%, #161838 26%, #07061a 58%, #2c2f55 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), inset 0 0 0 5px #000, 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 80px -20px rgba(108, 92, 224, .6);
}
.chat {
  position: relative; height: 700px; border-radius: 44px; overflow: hidden;
  display: flex; flex-direction: column;
  background: radial-gradient(ellipse at 50% 0%, rgba(108, 92, 224, .5), transparent 55%), linear-gradient(180deg, #221a6b 0%, #120d48 30%, var(--night) 70%);
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 22px 18px 12px; }
.chat-back { width: 22px; height: 22px; color: #fff; }
.chat-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1.5px rgba(238, 243, 255, .7); }
.chat-name { font: 600 20px/1.1 var(--font-display); }
.chat-status { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; }
.chat-status .online-dot { width: 7px; height: 7px; }
.chat-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 14px 14px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: rgba(201, 214, 242, .25) transparent; }
.msg { display: flex; align-items: flex-end; gap: 8px; animation: msgIn .45s var(--ease-out) both; }
.msg.me { justify-content: flex-end; }
.msg-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(238, 243, 255, .5); }
.bubble { position: relative; max-width: 86%; padding: 12px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; }
.msg.ai .bubble { background: var(--glass); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.me .bubble { background: rgba(201, 214, 242, .12); border: 1px solid var(--line-2); border-bottom-right-radius: 6px; font-weight: 500; display: flex; align-items: flex-start; gap: 10px; }
.msg.me .bubble .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--violet); flex: none; }
.bubble p + p { margin-top: 8px; }
.bubble .muted { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.topics { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.topic {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 44px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: rgba(9, 6, 38, .72); border: 1px solid var(--line);
  text-align: left; font-size: 14px; line-height: 1.25;
  transition: background .2s, border-color .2s, transform .2s var(--ease-out);
}
.topic:hover { background: rgba(27, 20, 84, .9); border-color: var(--silver); transform: translateX(2px); }
.topic img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.topic span { flex: 1; }
.topic .plane { width: 20px; height: 20px; flex: none; color: var(--silver); }
.msg-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 10px; }
.msg-actions button { width: 26px; height: 26px; display: grid; place-items: center; color: var(--violet); border-radius: 8px; transition: color .2s, background .2s; }
.msg-actions button:hover { color: var(--silver-2); background: rgba(201, 214, 242, .08); }
.msg-actions .ic { width: 18px; height: 18px; }
.typing .bubble { display: inline-flex; gap: 5px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--silver); animation: dot 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.pick-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 10px 10px 16px; border-radius: 16px;
  background: linear-gradient(#1b1454, #120d48) padding-box, var(--grad-silver-line) border-box;
  border: 1px solid transparent; font-size: 14px;
  animation: msgIn .45s var(--ease-out) both;
}
.btn-gold { background: var(--grad-pearl); color: #1b1552; box-shadow: 0 6px 20px -8px rgba(201, 214, 242, .8); }
.pick-bar .btn-gold { min-height: 36px; padding: 6px 18px; border-radius: 999px; font: 700 13px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.pick-bar .btn-gold.nudge { animation: nudge .6s var(--ease-out); }
.pick-box {
  align-self: flex-end; width: 92%;
  padding: 14px 12px; border-radius: 18px;
  background: linear-gradient(#1b1454, #0e0a35) padding-box, var(--grad-silver-line) border-box;
  border: 1px solid transparent;
  animation: msgIn .45s var(--ease-out) both;
}
.pick-title { font: 600 17px/1.2 var(--font-display); margin-bottom: 12px; display: flex; justify-content: space-between; }
.pick-title span { color: var(--silver); font-family: var(--font-body); font-size: 13px; }
.pick-slots { display: flex; justify-content: center; gap: 12px; margin-bottom: 14px; }
.mini { width: 64px; aspect-ratio: 324 / 563; perspective: 600px; }
.mini-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s var(--ease-out); }
.mini.is-flipped .mini-inner { transform: rotateY(180deg); }
.mini .mf { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 6px; overflow: hidden; }
.mini .mf img { width: 100%; height: 100%; object-fit: cover; }
.mini .mf.front { transform: rotateY(180deg); }
.mini.is-flipped .mf.front img { filter: drop-shadow(0 0 7px rgba(156, 140, 255, .9)); }
.mini.is-empty .mf.back { border: 1px dashed var(--line-2); background: rgba(9, 6, 38, .5); }
.mini.is-empty .mf.back img { display: none; }
.pick-row { display: flex; justify-content: center; gap: 0; padding-top: 6px; }
.pick-row button { position: relative; width: 44px; aspect-ratio: 280 / 480; margin: 0 -6px; border-radius: 5px; transform: rotate(var(--r)); transition: transform .25s var(--ease-out), opacity .3s; }
.pick-row button img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.pick-row button:hover:not(:disabled) { transform: rotate(var(--r)) translateY(-10px); z-index: 2; }
.pick-row button:disabled { opacity: 0; transform: rotate(var(--r)) translateY(-30px) scale(.8); pointer-events: none; }
.locked-chat { position: relative; margin-top: 10px; border-radius: 12px; overflow: hidden; }
.locked-chat .blur { filter: blur(4.5px); color: var(--muted); user-select: none; -webkit-user-select: none; }
.lock-cta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 10px; text-align: center; background: linear-gradient(180deg, rgba(27, 20, 84, .3), rgba(27, 20, 84, .94) 55%); font-size: 13px; color: var(--silver-2); }
.lock-cta .btn { min-height: 38px; padding: 6px 16px; font-size: 12px; }
.gate-cta { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.gate-cta .qr-tile { width: 96px; padding: 6px; border-radius: 12px; }
.gate-cta .play-badge img { height: 58px; margin: -9px -9px; }
.chat-foot { padding: 8px 14px 18px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, transparent, rgba(9, 6, 38, .92) 30%); }
.chat-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chat-chips:empty { display: none; }
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips button { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(9, 6, 38, .6); font-size: 13.5px; white-space: nowrap; transition: background .2s, border-color .2s; }
.chat-chips button:hover { background: var(--glass); border-color: var(--silver); }
.chat-form { display: flex; gap: 10px; align-items: center; }
.chat-form input { flex: 1; min-width: 0; height: 52px; padding: 0 20px; border-radius: 999px; background: rgba(9, 6, 38, .8); border: 1px solid var(--line-2); outline: 0; color: #fff; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.chat-form input:focus { border-color: var(--silver); box-shadow: 0 0 0 3px rgba(201, 214, 242, .14); }
.chat-form input::placeholder { color: var(--muted-2); }
.send-btn { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad-pearl); color: #2a2290; box-shadow: 0 10px 24px -10px rgba(201, 214, 242, .9); transition: transform .2s var(--ease-out), filter .2s; }
.send-btn:hover { transform: scale(1.06); }
.send-btn .ic { width: 22px; height: 22px; margin-left: -2px; }
.chat-note { color: var(--muted-2); font-size: 13px; text-align: center; }

/* ==========================================================================
   Inside the app — eight screens, eight phases of the moon
   ========================================================================== */
.inside .section-lineart.swirl { width: min(560px, 90vw); opacity: .55; top: 46%; }
.phases { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.ph-stage { position: relative; width: 100%; height: 560px; perspective: 1600px; perspective-origin: 50% 40%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.ph-stage.is-dragging { cursor: grabbing; }
.ph-stage::after { content: ""; position: absolute; left: 50%; bottom: 0; width: min(760px, 90%); height: 110px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(108, 92, 224, .42), rgba(108, 92, 224, .1) 45%, transparent 70%); filter: blur(8px); pointer-events: none; z-index: -1; }
.ph-item { position: absolute; left: 50%; top: 48%; transition: transform .9s var(--ease-out), opacity .6s; will-change: transform; }
.ph-stage.is-dragging .ph-item { transition: none; }
.ph-item .phone { --pw: 230px; transition: filter .6s, box-shadow .6s; filter: brightness(.5) saturate(.75); }
.ph-item.is-active .phone { filter: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18), inset 0 0 0 3px #000, 0 0 80px -12px rgba(156, 140, 255, .85), 0 40px 70px -30px rgba(0, 0, 0, .9); }
.ph-tabs { display: flex; gap: 6px; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 4px; }
.ph-tabs::-webkit-scrollbar { display: none; }
.ph-tab { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 104px; padding: 10px 6px 12px; border-radius: 16px; color: var(--muted-2); transition: color .3s, background .3s; }
.ph-moon { width: 26px; height: 26px; color: var(--muted-2); transition: color .3s, filter .3s, transform .4s var(--ease-out); }
.ph-moon svg { width: 100%; height: 100%; }
.ph-label { font: 600 15.5px/1.15 var(--font-display); text-align: center; }
.ph-bar { position: absolute; left: 22px; right: 22px; bottom: 4px; height: 1.5px; border-radius: 2px; background: rgba(201, 214, 242, .12); overflow: hidden; }
.ph-bar::after { content: ""; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad-pearl); }
.ph-tab:hover { color: var(--text); background: rgba(201, 214, 242, .04); }
.ph-tab[aria-selected="true"] { color: #fff; background: rgba(40, 30, 112, .45); }
.ph-tab[aria-selected="true"] .ph-moon { color: var(--silver-2); filter: drop-shadow(0 0 8px rgba(201, 214, 242, .9)); transform: scale(1.12); }
.ph-tab[aria-selected="true"] .ph-bar::after { transform: scaleX(1); }
.ph-tab.is-timing .ph-bar::after { transform: scaleX(0); animation: wax 4.2s linear forwards; }
.ph-caption { min-height: 52px; max-width: 560px; text-align: center; color: var(--muted); }
.ph-caption strong { color: #fff; font: 600 22px/1.2 var(--font-display); margin-right: 4px; }
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 22px; background: rgba(27, 20, 84, .5); border: 1px solid var(--line); }
.perks .ic { width: 42px; height: 42px; padding: 10px; border-radius: 50%; color: var(--silver-2); background: rgba(201, 214, 242, .08); border: 1px solid var(--line-2); flex: none; }
.perks strong { display: block; font: 600 19px/1.2 var(--font-display); margin-bottom: 4px; }
.perks span { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ==========================================================================
   Download — an eclipse
   ========================================================================== */
.download { padding-top: 60px; padding-bottom: 90px; }
.eclipse {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 40px;
  background:
    radial-gradient(ellipse at 24% 50%, rgba(242, 198, 109, .16), transparent 50%),
    radial-gradient(ellipse at 90% 0%, rgba(108, 92, 224, .3), transparent 55%),
    linear-gradient(160deg, #1b1454, var(--night)) padding-box,
    var(--grad-silver-line) border-box;
  border: 1px solid transparent;
}
.ec-visual { position: relative; width: min(420px, 100%); aspect-ratio: 1; margin-inline: auto; }
.ec-ring { position: absolute; inset: 0; opacity: .55; animation: spin 220s linear infinite; }
.ec-ring svg { width: 100%; height: 100%; overflow: visible; }
.ec-medal { position: absolute; inset: 23%; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgba(238, 243, 255, .7), 0 0 0 7px rgba(9, 6, 38, .8), 0 0 80px rgba(242, 198, 109, .45); }
.ec-medal img { width: 100%; height: 100%; object-fit: cover; }
.ec-orbit { position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(201, 214, 242, .25); animation: spin 18s linear infinite; }
.ec-moon {
  position: absolute; left: 50%; top: -18px; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #fff 0%, #e6ecff 38%, #a9b6e3 78%, #7c89c4 100%);
  box-shadow: inset -10px -3px 11px rgba(14, 10, 53, .92), 0 0 22px 4px rgba(201, 214, 242, .5);
}
.ec-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ec-copy h2 { font-size: clamp(38px, 4.4vw, 60px); }
.dl-icon { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 0 0 1px rgba(201, 214, 242, .5), 0 16px 40px -12px rgba(242, 198, 109, .6); }
.dl-actions { display: flex; align-items: center; gap: 28px; margin-top: 10px; flex-wrap: wrap; }
.dl-buttons { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.dl-meta { color: var(--muted-2); font-size: 14px; }
.qr-block { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr-block p { font-size: 13px; color: var(--muted-2); }
.qr-tile { position: relative; width: 156px; aspect-ratio: 1; padding: 12px; border-radius: 20px; background: linear-gradient(145deg, #ffffff, #e6ecff); box-shadow: 0 0 0 1px rgba(201, 214, 242, .6), 0 18px 40px -16px rgba(201, 214, 242, .55); }
.qr-tile > img:first-child { width: 100%; height: 100%; }
.qr-logo { position: absolute; left: 50%; top: 50%; width: 24%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 22%; box-shadow: 0 0 0 3px #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(9, 6, 38, .7)); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.footer-brand p { color: var(--muted-2); font-size: 14.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: flex-start; }
.footer-links a { color: var(--muted); font: 500 14.5px/1.6 var(--font-body); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(201, 214, 242, .06); color: var(--muted-2); font-size: 13px; flex-wrap: wrap; }
.disclaimer { max-width: 720px; }

/* ==========================================================================
   Modal + toast
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 3, 20, .74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fadeIn .3s both; }
.modal-dialog {
  position: relative; width: min(620px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 28px; border-radius: 30px;
  background: radial-gradient(ellipse at 50% 0%, rgba(108, 92, 224, .35), transparent 60%), linear-gradient(180deg, #1b1454, var(--night)) padding-box, var(--grad-silver-line) border-box;
  border: 1px solid transparent;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .95);
  animation: pop .5s var(--ease-out) both;
  outline: none;
}
.modal-close { position: absolute; right: 14px; top: 12px; width: 40px; height: 40px; border-radius: 50%; font-size: 26px; line-height: 1; color: var(--muted); transition: background .2s, color .2s; }
.modal-close:hover { background: rgba(201, 214, 242, .08); color: #fff; }
.modal-app { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.modal-app img { width: 56px; height: 56px; border-radius: 15px; box-shadow: 0 0 0 1px rgba(201, 214, 242, .5); }
.modal-app-name { font: 600 19px/1.2 var(--font-display); }
.modal-app-meta { color: var(--muted-2); font-size: 13px; }
.modal-title { margin-top: 20px; font-size: clamp(30px, 4.4vw, 40px); }
.modal-sub { margin-top: 8px; color: var(--muted); }
.modal-cards { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.modal-cards:empty { display: none; }
.modal-cards img { width: 54px; aspect-ratio: 324 / 563; object-fit: cover; filter: drop-shadow(0 0 8px rgba(156, 140, 255, .8)); }
.modal-get { display: flex; gap: 26px; align-items: center; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.modal-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.modal-steps { counter-reset: s; display: flex; flex-direction: column; gap: 8px; }
.modal-steps li { counter-increment: s; display: flex; gap: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.modal-steps li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font-body); background: var(--grad-pearl); color: #1b1552; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: #1b1454; border: 1px solid var(--line-2); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8); font-size: 14.5px; transition: opacity .3s, transform .3s var(--ease-out); }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
html.modal-open { overflow: hidden; }

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes shimmer { to { background-position: 220% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes flip { 0%, 38% { transform: rotateY(0); } 50%, 88% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6vw, -4vh) scale(1.12); } }
@keyframes cue { 0% { top: -6px; opacity: 0; } 30% { opacity: 1; } 100% { top: 46px; opacity: 0; } }
@keyframes wax { to { transform: scaleX(1); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-6px); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: scale(1.14); box-shadow: 0 0 24px rgba(238, 243, 255, .9); } 60% { transform: scale(.96); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .main-nav a { padding: 10px 9px; font-size: 14px; }
  .hero-facts { grid-template-columns: repeat(2, auto); }
  .spec-layout { gap: 24px; }
  .zod-layout { gap: 28px; }
}
@media (max-width: 1024px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; left: 16px; right: 16px; top: calc(var(--header-h) - 4px);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    border-radius: 22px; background: rgba(14, 10, 53, .97);
    border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
    opacity: 0; transform: translateY(-10px); pointer-events: none; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease-out), visibility .25s;
  }
  .main-nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .main-nav a { padding: 14px 16px; font-size: 17px; }
  .main-nav a.is-active::after { display: none; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 960px) {
  .section { padding: 100px 0; }
  .hero { padding-bottom: 84px; }
  /* Interleave copy and the orrery on small screens: chip → title → orrery → text → CTAs */
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; justify-items: center; text-align: center; }
  .hero-copy { display: contents; }
  .sky-chip { order: 1; }
  .hero-copy .eyebrow { order: 2; }
  .hero-title { order: 3; }
  .hero-visual { order: 4; width: 100%; margin-top: -4px; }
  .hero-sub { order: 5; }
  .hero-ctas { order: 6; justify-content: center; }
  .hero-facts { order: 7; grid-template-columns: repeat(4, auto); justify-content: center; }
  .orrery { max-width: 540px; }
  .scroll-cue { display: none; }
  .spread-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 26px; }
  .zod-layout { grid-template-columns: 1fr; }
  .horo-wrap { position: static; }
  .origins { grid-template-columns: minmax(0, 1fr) auto; }
  .origins-art { grid-column: 1 / -1; }
  .origins-sign { margin: 0; order: 2; }
  .spec-layout { grid-template-columns: 1fr; gap: 28px; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eclipse { grid-template-columns: 1fr; text-align: center; }
  .ec-copy { align-items: center; order: -1; }
  .ec-visual { width: min(320px, 80%); }
  .dl-actions { justify-content: center; }
  .dl-buttons { align-items: center; }
  .draw-result { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .header-cta { display: none; }
  .brand-name { font-size: 20px; letter-spacing: .24em; }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 42px; gap: 14px; }
  .eyebrow { font-size: 11px; letter-spacing: .2em; gap: 9px; }
  .eyebrow::before, .eyebrow::after { width: 22px; }
  .hero { padding-top: calc(var(--header-h) + 16px); }
  .hero-title { font-size: clamp(40px, 11.5vw, 52px); }
  .sky-chip { font-size: 12.5px; padding: 7px 13px 7px 10px; gap: 9px; }
  .hero-sub { font-size: 15.5px; }
  .hero-facts { grid-template-columns: repeat(2, auto); gap: 14px 26px; }
  .play-badge img { height: 66px; margin: -10px -11px; }
  .spread-grid { gap: 34px 14px; }
  .sc-name { bottom: 14px; font-size: 20px; }
  .spread-info p { font-size: 14px; }
  .spread-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; margin: 0 -14px; padding-inline: 14px; }
  .spread-tab { height: 46px; font-size: 15.5px; }
  .spread-tab img { width: 34px; height: 34px; }
  .draw-controls { flex-direction: column; align-items: stretch; }
  .question-field { flex: none; }
  .draw-panel { border-radius: 26px; }
  .caption .pos { font-size: 9px; letter-spacing: .08em; white-space: nowrap; }
  .caption .nm { font-size: 14px; margin-top: 2px; }
  .slot { font-size: 9.5px; letter-spacing: .06em; padding: 4px; }
  /* a sideways belt of signs on phones, so the horoscope card stays close to the picker */
  .zod-signs { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 10px 16px 6px; }
  .zod-signs::-webkit-scrollbar { display: none; }
  .zsign { flex: 0 0 104px; scroll-snap-align: center; }
  .zs-name { font-size: 17px; }
  .zs-date { font-size: 11px; }
  .horo-card { padding: 16px; }
  .horo-date { display: none; }
  .origins { grid-template-columns: 1fr; padding: 18px; gap: 18px; text-align: left; }
  .origins-sign { display: none; }
  .spec-carousel { height: 420px; }
  .spec-card { width: 214px; }
  .chat-phone { padding: 0; border-radius: 30px; background: none; box-shadow: 0 0 0 1px var(--line-2), 0 0 60px -20px rgba(108, 92, 224, .6); }
  .chat { height: 620px; border-radius: 30px; }
  .ph-stage { height: 440px; }
  .ph-item .phone { --pw: 178px; }
  .ph-tab { width: 86px; }
  .ph-label { font-size: 14px; }
  .perks { grid-template-columns: 1fr; margin-top: 40px; }
  .dl-actions .qr-block { display: none; } /* can't scan your own phone screen */
  .modal-dialog { padding: 22px 18px; }
  .modal-get { flex-direction: column; align-items: stretch; }
  .modal-get .qr-block { display: none; }
  .footer-bottom { flex-direction: column; }
}
@media (hover: none) {
  .modal-get .qr-block, .gate-cta .qr-tile { display: none; }
}

/* Touch devices (html.lite, set in <head>): same look, less GPU work per frame so scrolling stays smooth */
.lite .starfield { bottom: auto; }
.lite .neb { animation: none; filter: blur(50px); }
.lite .ring-hours, .lite .ring-zodiac, .lite .table-glow .ring, .lite .ec-ring { animation: none; }
.lite .float-card, .lite .hero-phone { animation: none; }
.lite .rays { filter: none; }
.lite .medal-shine { display: none; }
.lite .grad, .lite .brand-name, .lite .hero-facts strong { animation: none; }
.lite .site-header.is-scrolled { background: rgba(9, 6, 38, .94); -webkit-backdrop-filter: none; backdrop-filter: none; }
.lite .draw-panel { -webkit-backdrop-filter: none; backdrop-filter: none; }
.lite .sky-chip { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* The chat preview is nearly a screen tall on phones: let swipes that reach its end keep scrolling the page */
.lite .chat-body { overscroll-behavior: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .reveal, .deal { transition: opacity .4s; transform: none; }
  .grad { animation: none; }
}
