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

:root {
  --gold: #FBBE22;
  --amber: #EF9F27;
  --orange: #F1692A;
  --bg: #0a0806;
  --bg-raised: #120f0b;
  --bg-card: #151210;
  --text: #f3efe8;
  --text-mid: #aaa39a;
  --text-dim: #6b645b;
  --line: rgba(239, 159, 39, 0.14);
  --line-soft: rgba(255, 255, 255, 0.07);
  --gradient: linear-gradient(135deg, var(--gold), var(--orange));
  --glow: rgba(239, 159, 39, 0.16);
  --radius: 18px;
  --max: 1120px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }

/* Nav */
nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 2rem;
  background: rgba(10, 8, 6, .78);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-weight: 600; font-size: 1.1rem; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a { font-size: .9rem; color: var(--text-mid); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 .95rem 'Outfit', sans-serif; text-decoration: none;
  padding: .85rem 1.5rem; border-radius: 100px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.btn-primary { background: var(--gradient); color: #140c02; box-shadow: 0 8px 30px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(239, 159, 39, .3); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--amber); }
.nav-links .btn { padding: .5rem 1.1rem; font-size: .85rem; color: #140c02; }

/* Type */
.label {
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: .8rem;
}
.title {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.12; letter-spacing: -.01em;
  margin-bottom: 1rem;
}
.title em, h1 em {
  font-style: italic;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 1.08rem; font-weight: 300; color: var(--text-mid); max-width: 36rem; }

/* Hero */
.hero { position: relative; text-align: center; padding: 9rem 2rem 5rem; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -260px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 900px; pointer-events: none;
  background: radial-gradient(circle, rgba(251, 190, 34, .13) 0%, rgba(241, 105, 42, .06) 40%, transparent 70%);
}
.hero > * { position: relative; }
.hero-icon { width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 2rem; box-shadow: 0 0 70px var(--glow); }
.pill {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .4rem 1rem; border-radius: 100px; border: 1px solid rgba(251, 190, 34, .45);
  color: var(--gold); background: rgba(251, 190, 34, .07); margin-bottom: 1.6rem;
}
.hero h1 {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.04; letter-spacing: -.02em;
  margin-bottom: 1.4rem;
}
.hero .lede { margin: 0 auto 2.2rem; font-size: 1.2rem; }
.cta-row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; }
.hero .tv { max-width: 980px; margin: 0 auto; }

/* Device frames */
.tv {
  border-radius: 20px; padding: 10px; background: #050403;
  border: 1px solid var(--line-soft);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7), 0 0 90px var(--glow);
}
.tv img { border-radius: 12px; width: 100%; height: auto; }
/* The iPhone shots are flattened into Apple's own bezel (bezel-shots.mjs in the
   casavargas.github.io repo). Apple's rules: nothing added on or around it. */
.phone img { width: 100%; height: auto; }

/* Sections */
section { padding: 6rem 0; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 3.5rem; align-items: center; }
.split.flip { grid-template-columns: 7fr 5fr; }
.split.flip .copy { order: 2; }
.points { list-style: none; margin-top: 1.6rem; display: grid; gap: .7rem; }
.points li { display: flex; gap: .7rem; color: var(--text-mid); font-size: .98rem; }
.points li::before {
  content: ''; flex: 0 0 7px; height: 7px; margin-top: .6rem; border-radius: 50%; background: var(--gradient);
}

/* Features */
.features-head { max-width: 40rem; margin-bottom: 3rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(239, 159, 39, .32); }
.icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 1.1rem;
  display: flex; align-items: center; justify-content: center; background: rgba(239, 159, 39, .09);
}
.icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .45rem; }
.card p { font-size: .92rem; font-weight: 300; color: var(--text-mid); }

/* Phones row */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 900px; margin: 3rem auto 0; }
.center { text-align: center; }
.center .lede { margin: 0 auto; }

/* Platforms */
.platform-row { display: flex; justify-content: center; gap: 2.6rem; flex-wrap: wrap; margin-top: 2.5rem; }
.platform { display: flex; flex-direction: column; align-items: center; gap: .7rem; color: var(--text-mid); font-size: .88rem; }
.platform span.ico {
  width: 64px; height: 64px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.platform svg { width: 28px; height: 28px; stroke: var(--text-mid); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Pricing */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 820px; margin: 3rem auto 0; text-align: left; }
.tier { background: var(--bg-card); border: 1px solid var(--line); border-radius: 22px; padding: 2.2rem; }
.tier.premium { border-color: rgba(251, 190, 34, .45); box-shadow: 0 0 60px rgba(239, 159, 39, .09); }
.tier h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mid); font-weight: 600; }
.price { font-family: 'DM Serif Display', serif; font-size: 3rem; line-height: 1.1; margin: .6rem 0 .2rem; }
.price small { font-family: 'Outfit', sans-serif; font-size: 1rem; color: var(--text-mid); font-weight: 400; }
.tier .note { color: var(--text-mid); font-size: .92rem; margin-bottom: 1.3rem; }
.tier ul { list-style: none; display: grid; gap: .55rem; }
.tier li { display: flex; gap: .6rem; font-size: .93rem; color: #cfc8bd; }
.tier li::before { content: '✓'; color: var(--gold); font-weight: 600; }
.byo {
  max-width: 820px; margin: 1.6rem auto 0; padding: 1.1rem 1.4rem; border-radius: 14px;
  border: 1px dashed var(--line); color: var(--text-mid); font-size: .92rem; text-align: center;
}

/* Beta */
.beta { text-align: center; padding: 5rem 2rem 6rem; }
.beta-card {
  max-width: 760px; margin: 0 auto; padding: 3.2rem 2rem; border-radius: 26px;
  background: radial-gradient(circle at 50% 0%, rgba(251, 190, 34, .12), transparent 60%), var(--bg-raised);
  border: 1px solid var(--line);
}
.beta-card .lede { margin: 0 auto 2rem; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2.6rem 2rem 3rem; text-align: center; }
footer .links { display: flex; justify-content: center; gap: 1.4rem; margin-bottom: 1rem; }
footer .links a { color: var(--text-mid); text-decoration: none; font-size: .9rem; }
footer .links a:hover { color: var(--gold); }
footer p { color: var(--text-dim); font-size: .8rem; line-height: 1.8; max-width: 44rem; margin: 0 auto; }
footer p a { color: var(--text-mid); }

/* Document pages (privacy, support) */
.doc { max-width: 760px; margin: 0 auto; padding: 8.5rem 2rem 5rem; }
.doc h1 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; margin-bottom: .6rem; }
.doc .updated { color: var(--text-dim); font-size: .9rem; margin-bottom: 2.4rem; }
.doc h2 { font-size: 1.2rem; font-weight: 600; margin: 2.4rem 0 .7rem; }
.doc p, .doc li { color: #cfc8bd; font-weight: 300; }
.doc p + p { margin-top: .9rem; }
.doc ul { margin: .6rem 0 0 1.2rem; display: grid; gap: .45rem; }
.doc a { color: var(--gold); }
.doc strong { color: var(--text); font-weight: 600; }
.faq { margin-top: 1rem; display: grid; gap: .8rem; }
.faq details { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; color: var(--gold); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: .7rem; }
.contact {
  margin-top: 2.6rem; padding: 1.6rem; border-radius: 18px; border: 1px solid rgba(251, 190, 34, .35);
  background: rgba(251, 190, 34, .05);
}

/* Responsive */
@media (max-width: 900px) {
  .split, .split.flip { grid-template-columns: 1fr; gap: 2.2rem; }
  .split.flip .copy { order: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  nav { padding: .75rem 1rem; }
  .nav-links a:not(.btn) { display: none; }
  .wrap { padding: 0 1rem; }
  .hero { padding: 7.5rem 1rem 3.5rem; }
  .hero-icon { width: 84px; height: 84px; border-radius: 20px; }
  .hero .lede { font-size: 1.05rem; }
  section { padding: 4rem 0; }
  .feature-grid, .tiers { grid-template-columns: 1fr; }
  .phones {
    grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 1rem; padding: 0 1rem 1rem; margin: 2rem -1rem 0;
  }
  .phones .phone { scroll-snap-align: center; }
  .platform-row { gap: 1.4rem; }
  .tv { padding: 6px; border-radius: 14px; }
  .tv img { border-radius: 9px; }
  .doc { padding: 7rem 1rem 4rem; }
  .beta { padding: 3.5rem 1rem 4.5rem; }
}
