/* ---------- Design Tokens ---------- */
:root {
  --bg: #0a0604;
  --bg-warm: #14100c;
  --surface: rgba(255, 240, 220, 0.03);
  --surface-hover: rgba(255, 240, 220, 0.05);
  --border: rgba(255, 215, 170, 0.08);
  --border-strong: rgba(255, 215, 170, 0.15);
  --text: #f5e6d3;
  --text-muted: rgba(245, 230, 211, 0.55);
  --text-faint: rgba(245, 230, 211, 0.35);
  --accent: #f97316;
  --accent-bright: #fbbf24;
  --accent-deep: #c2410c;
  --glow: rgba(251, 146, 60, 0.4);

  --font-display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  --max-w: 1100px;
  --reading-w: 720px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(249, 115, 22, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(194, 65, 12, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

main, header, footer, section, nav { position: relative; z-index: 2; }

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 230, 211, 0.15);
  transition: border-color 0.2s, color 0.2s;
}

a:hover { color: var(--accent-bright); border-color: var(--accent-bright); }

.muted { color: var(--text-muted); }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.reading { max-width: var(--reading-w); margin: 0 auto; padding: 0 28px; }

/* ---------- Nav ---------- */
.nav { padding: 28px 0; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; }

.brand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  border: none;
}

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

.brand-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, var(--accent-bright) 0%, var(--accent) 60%, var(--accent-deep) 100%);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--glow);
  margin-right: 10px;
  vertical-align: middle;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.nav-links { display: flex; gap: 32px; font-size: 14px; }
.nav-links a { border: none; color: var(--text-muted); }
.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 100px; text-align: center; position: relative; }

.hero-orb {
  width: 220px;
  height: 220px;
  margin: 0 auto 60px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    #fff5d6 0%,
    #fbbf24 18%,
    #f97316 45%,
    #c2410c 75%,
    #7c2d12 100%
  );
  box-shadow:
    0 0 80px rgba(251, 146, 60, 0.5),
    0 0 160px rgba(249, 115, 22, 0.3),
    0 0 240px rgba(194, 65, 12, 0.15);
  animation: orb-glow 6s ease-in-out infinite;
}

@keyframes orb-glow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 em { font-style: italic; color: var(--accent-bright); }

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 48px;
  line-height: 1.5;
}

.cta-row { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 100%);
  color: #1a0a00;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: none;
  box-shadow:
    0 8px 28px -8px rgba(249, 115, 22, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.app-store-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 36px -8px rgba(249, 115, 22, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #1a0a00;
}

.app-store-icon { width: 22px; height: 22px; }
.cta-note { font-size: 13px; color: var(--text-faint); font-style: italic; }

/* ---------- Sections ---------- */
section { padding: 100px 0; }

.section-head { margin-bottom: 64px; max-width: 28ch; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-top: 16px;
}

.section-head h2 em { font-style: italic; color: var(--accent-bright); }
.section-head p { margin-top: 24px; color: var(--text-muted); font-size: 18px; }

/* ---------- Showcase rows ---------- */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.showcase:first-of-type { border-top: none; }

.showcase.reverse .showcase-text { order: 2; }
.showcase.reverse .showcase-image { order: 1; }

.row-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 24px;
}

.showcase-text h3 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.showcase-text h3 em { font-style: italic; color: var(--accent-bright); }

.showcase-text p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 48ch;
}

.showcase-image { display: flex; justify-content: center; position: relative; }

.phone {
  position: relative;
  width: 280px;
  border-radius: 42px;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(255, 215, 170, 0.06),
    0 30px 80px -20px rgba(249, 115, 22, 0.18),
    0 60px 120px -30px rgba(0, 0, 0, 0.6);
  background: #000;
  transition: transform 0.4s ease;
}

.showcase:hover .phone { transform: translateY(-4px); }

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 42px;
}

.showcase-image::before {
  content: "";
  position: absolute;
  inset: 10% -10%;
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.15), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

/* ---------- How It Works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 32px;
}

.step { position: relative; }

.step-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 64px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 24px;
  display: block;
}

.step h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}

.step p { color: var(--text-muted); font-size: 15px; }

/* ---------- Pull quote ---------- */
.pullquote { text-align: center; padding: 100px 0; }

.pullquote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 24ch;
  margin: 0 auto;
  color: var(--text);
}

.pullquote blockquote::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 40px;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 120px 0;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin: 0 auto 32px;
}

.final-cta h2 em { font-style: italic; color: var(--accent-bright); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: 80px;
}

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

.footer-links { display: flex; gap: 28px; font-size: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); border: none; }
.footer-links a:hover { color: var(--text); }

.copyright { font-size: 13px; color: var(--text-faint); }

/* ---------- Legal Pages ---------- */
.legal-page { padding-top: 60px; padding-bottom: 100px; }

.legal-page .eyebrow { margin-bottom: 16px; }

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.legal-page .last-updated {
  color: var(--text-faint);
  font-size: 14px;
  font-style: italic;
  margin-bottom: 60px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin-top: 56px;
  margin-bottom: 16px;
  color: var(--text);
}

.legal-page h2:first-of-type { margin-top: 0; }

.legal-page h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: -0.005em;
}

.legal-page p, .legal-page li {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-page strong { color: var(--text); font-weight: 500; }
.legal-page ul { padding-left: 24px; margin-bottom: 16px; }
.legal-page li { margin-bottom: 8px; }

.legal-page a {
  color: var(--accent-bright);
  border-bottom: 1px solid rgba(251, 191, 36, 0.3);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  border: none;
  margin-bottom: 32px;
}

.back-link:hover { color: var(--accent-bright); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .showcase {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 0;
    text-align: center;
  }
  .showcase.reverse .showcase-text,
  .showcase .showcase-text { order: 1; }
  .showcase.reverse .showcase-image,
  .showcase .showcase-image { order: 2; }
  .showcase-text p { margin: 0 auto; }
  .phone { width: 240px; }
}

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .nav-links { gap: 20px; }
  .hero { padding: 40px 0 60px; }
  .hero-orb { width: 160px; height: 160px; margin-bottom: 40px; }
  section { padding: 64px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
