:root {
  --bg: #120D16;
  --bg-2: #1A1320;
  --card: #1F1826;
  --edge: #2E2436;
  --ink: #F4EBDD;
  --ink-soft: #D3C7B5;
  --muted: #9C8F9D;
  --accent: #D9A46E;
  --accent-2: #E6BC8B;
  --plum: #3A2446;
  --glow: rgba(217, 164, 110, 0.18);
  --btn-bg: #F4EBDD;
  --btn-ink: #1A1320;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1180px;
  --radius: 22px;
}

[data-theme='earth'] {
  --bg: #EAE3D6;
  --bg-2: #E3DAC9;
  --card: #F2ECDF;
  --edge: #D9CEB9;
  --ink: #3B342A;
  --ink-soft: #59503F;
  --muted: #8B7F68;
  --accent: #C05F3B;
  --accent-2: #A44A28;
  --plum: #D7C7AE;
  --glow: rgba(192, 95, 59, 0.14);
  --btn-bg: #3B342A;
  --btn-ink: #F2ECDF;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 85% -10%, var(--plum), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, var(--glow), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s ease, color 0.5s ease;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
em { font-style: italic; font-weight: 400; color: var(--accent-2); }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--btn-bg); color: var(--btn-ink); padding: 8px 14px; border-radius: 999px;
}
.skip:focus { left: 12px; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(18px, 4vw, 40px);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--edge) 60%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 10px; }
.brand span { font-weight: 600; letter-spacing: 0.32em; font-size: 14px; color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  background: transparent; border: 1px solid var(--edge); color: var(--ink-soft); cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}
.theme-toggle:hover { transform: rotate(-12deg); border-color: var(--accent); }
.icon-leaf { display: none; }
[data-theme='earth'] .icon-moon { display: none; }
[data-theme='earth'] .icon-leaf { display: block; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-ink);
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px -10px var(--glow);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--accent); }
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--edge); box-shadow: none; }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }

.kicker {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}

section { padding: clamp(80px, 12vw, 150px) clamp(20px, 5vw, 40px); max-width: var(--maxw); margin: 0 auto; }

.big { font-size: clamp(34px, 5.4vw, 64px); max-width: 17ch; }
.section-lede { color: var(--ink-soft); max-width: 52ch; margin-top: 20px; font-size: 18px; }

/* HERO */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(30px, 5vw, 70px);
  padding-top: clamp(40px, 8vw, 90px); min-height: calc(100vh - 70px);
}
.hero h1 { font-size: clamp(46px, 7.4vw, 96px); letter-spacing: -0.025em; }
.hero h1 em { display: block; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 46ch; margin-top: 26px; }
.lede strong { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.cta-row.center { justify-content: center; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 30px 0 0; font-size: 14px; color: var(--muted); }
.trust li::before { content: '✦'; color: var(--accent); margin-right: 8px; font-size: 11px; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 620px; }

.orbit { position: absolute; inset: 50% auto auto 50%; width: min(620px, 118%); aspect-ratio: 1; transform: translate(-50%, -50%); }
.orbit-ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.orbit-ring.r1 { width: 100%; height: 100%; }
.orbit-ring.r2 { width: 76%; height: 76%; border-style: dashed; opacity: 0.6; }
.orbit-ring.r3 { width: 52%; height: 52%; opacity: 0.5; }
.orbit-spin { position: absolute; inset: 0; animation: spin 80s linear infinite; }
.planet {
  position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px;
  display: grid; place-items: center; border-radius: 50%;
  font-size: 20px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: 0 0 24px -4px var(--c);
}
.planet span { animation: spin 80s linear infinite reverse; display: inline-block; }

.phone {
  position: relative; z-index: 2; width: min(300px, 70vw); aspect-ratio: 720 / 1473;
  border-radius: 42px; padding: 10px; background: linear-gradient(160deg, #3a3140, #0d0a10);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 0 80px -20px var(--glow);
}
.phone .shot { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; border-radius: 33px; transition: opacity 0.6s ease, transform 0.6s ease; }
.phone-hero { animation: bob 7s ease-in-out infinite; }
.phone-hero .shot-earth { opacity: 0; }
[data-theme='earth'] .phone-hero .shot-dark { opacity: 0; }
[data-theme='earth'] .phone-hero .shot-earth { opacity: 1; }

.float-card {
  position: absolute; z-index: 3; right: max(0px, 4%); bottom: 12%;
  display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 18px;
  background: color-mix(in srgb, var(--card) 85%, transparent); border: 1px solid var(--edge);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  animation: bob 7s ease-in-out -3.5s infinite;
}
.float-card b { display: block; font-size: 14.5px; font-weight: 600; }
.float-card small { color: var(--muted); font-size: 12.5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.2s infinite; flex: none; }
.float-card-alt { right: auto; bottom: auto; left: max(0px, 2%); top: 14%; animation-delay: -1.5s; }
.float-heart { color: var(--accent); font-size: 18px; line-height: 1; }

/* PARTNER */
.partner-phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 60px; align-items: end; }
.partner-phones figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.partner-phones figcaption { color: var(--muted); font-size: 14.5px; text-align: center; }
.phone-mini { width: min(250px, 100%); }
.phone-mini .shot { opacity: 1; }
.phone-lift { transform: translateY(-28px); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 0 90px -10px var(--glow); }
.partner .mini-grid { margin-top: 70px; }

/* MARQUEE */
.marquee { overflow: hidden; border-block: 1px solid var(--edge); padding: 20px 0; background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(22px, 3vw, 34px); color: var(--ink-soft); white-space: nowrap; }
.marquee span::first-letter { color: var(--accent); }

/* WHAT */
.what-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 64px; }
.what-grid h3 { font-size: 24px; margin-bottom: 12px; }
.what-grid p { color: var(--ink-soft); }

/* STORY */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 70px; }
.story-sticky { position: sticky; top: 90px; height: calc(100vh - 120px); display: grid; place-items: center; }
.phone-story { width: min(310px, 100%); }
.phone-story .shot { opacity: 0; transform: scale(0.98); }
.phone-story .shot.is-active { opacity: 1; transform: none; }
.story-steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.35; transition: opacity 0.5s ease; }
.step.is-active { opacity: 1; }
.step-num { font-family: var(--serif); color: var(--accent); font-size: 18px; margin-bottom: 14px; }
.step h3 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 16px; max-width: 16ch; }
.step p { color: var(--ink-soft); max-width: 44ch; font-size: 18px; }
.step-shot { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.chips li { padding: 7px 14px; border: 1px solid var(--edge); border-radius: 999px; font-size: 13.5px; color: var(--ink-soft); background: var(--card); }

.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 90px; }
.mini {
  padding: 28px; border-radius: var(--radius); background: color-mix(in srgb, var(--card) 80%, transparent);
  border: 1px solid var(--edge); transition: transform 0.3s ease, border-color 0.3s ease;
}
.mini:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, var(--edge)); }
.mini-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--glow); color: var(--accent); font-size: 20px; margin-bottom: 18px; }
.mini h3 { font-size: 22px; margin-bottom: 8px; }
.mini p { color: var(--ink-soft); font-size: 15.5px; }

/* GRAHAS */
.graha-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.graha {
  position: relative; text-align: left; cursor: pointer; overflow: hidden;
  padding: 26px; border-radius: var(--radius); border: 1px solid var(--edge);
  background: color-mix(in srgb, var(--card) 80%, transparent); color: var(--ink); font: inherit;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.graha::after {
  content: ''; position: absolute; width: 200px; height: 200px; right: -70px; top: -70px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%);
  opacity: 0.5; transition: opacity 0.3s ease;
}
.graha:hover, .graha[aria-pressed='true'] { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 60%, var(--edge)); }
.graha:hover::after, .graha[aria-pressed='true']::after { opacity: 1; }
.graha-glyph { font-size: 34px; color: var(--c); line-height: 1; }
.graha-name { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.graha-name b { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.graha-name small { color: var(--muted); font-size: 14px; }
.graha-season { color: var(--ink-soft); font-size: 15px; margin-top: 4px; }
.graha-line {
  font-family: var(--serif); font-size: 19px; line-height: 1.35; margin-top: 18px; min-height: 2.7em;
  color: var(--ink); opacity: 0.85;
}

/* QUOTE */
.said { text-align: center; }
.quote { margin: 0 auto; max-width: 20ch; }
.quote blockquote {
  margin: 0; font-family: var(--serif); font-size: clamp(36px, 6vw, 76px); line-height: 1.1; letter-spacing: -0.02em;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.quote blockquote.is-swapping { opacity: 0; transform: translateY(10px); }
.quote figcaption { margin-top: 26px; color: var(--accent); font-size: 15px; letter-spacing: 0.08em; }

/* HOW */
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 60px 0 0; padding: 0; counter-reset: how; }
.how-steps li { padding: 32px; border-radius: var(--radius); border: 1px solid var(--edge); background: color-mix(in srgb, var(--card) 70%, transparent); }
.how-num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-family: var(--serif); font-size: 20px; margin-bottom: 22px; }
.how-steps h3 { font-size: 24px; margin-bottom: 10px; }
.how-steps p { color: var(--ink-soft); font-size: 15.5px; }

/* FAQ */
.faq-list { margin-top: 50px; border-top: 1px solid var(--edge); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--edge); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-family: var(--serif); font-size: clamp(19px, 2vw, 23px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 26px; font-weight: 300; color: var(--accent); transition: transform 0.3s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); padding: 0 40px 26px 0; max-width: 70ch; }

/* DOWNLOAD */
.download { text-align: center; display: flex; flex-direction: column; align-items: center; }
.download .big { margin-inline: auto; }
.download .section-lede { margin-inline: auto; }
.download-logo { border-radius: 28px; margin-bottom: 36px; box-shadow: 0 30px 70px -20px var(--glow), 0 0 0 1px var(--edge); }
.soon { color: var(--muted); font-size: 14px; }

/* FOOTER */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 50px clamp(20px, 5vw, 40px) 60px;
  border-top: 1px solid var(--edge); display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center;
}
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand img { border-radius: 12px; }
.footer-brand b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.footer-brand small { color: var(--muted); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--ink-soft); font-size: 14.5px; }
.footer-links a:hover { color: var(--accent); }
.fine { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }

/* PROSE (privacy) */
.prose { max-width: 760px; padding-top: 60px; }
.prose h1 { font-size: clamp(38px, 6vw, 60px); margin-bottom: 14px; }
.prose h2 { font-size: 26px; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; }
.prose .updated { color: var(--muted); font-size: 14px; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; text-align: left; }
  .hero-visual { min-height: 560px; overflow: clip; margin-inline: calc(-1 * clamp(20px, 5vw, 40px)); }
  .what-grid, .how-steps { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-sticky { display: none; }
  .step { min-height: auto; opacity: 1; padding: 44px 0; border-bottom: 1px solid var(--edge); }
  .step-shot { display: block; width: min(280px, 78%); margin: 30px auto 0; border-radius: 28px; border: 8px solid #1d1721; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
  .mini-grid, .graha-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-phones { grid-template-columns: 1fr; gap: 44px; }
  .phone-lift { transform: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand span { display: none; }
  .hero-visual { min-height: 500px; }
  .phone { width: min(250px, 66vw); }
  .float-card { right: 0; bottom: 6%; }
  .float-card-alt { left: 0; top: 6%; right: auto; bottom: auto; }
  .mini-grid, .graha-grid { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
