:root {
  color-scheme: dark;
  --bg: #020811;
  --bg-soft: #07111b;
  --panel: #0d1823;
  --panel-2: #101c28;
  --ink: #f7f8fa;
  --muted: #b4bbc4;
  --faint: #838e9a;
  --yellow: #ffc425;
  --yellow-2: #ffb817;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .22);
  --shell: 1200px;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.skip-link {
  position: fixed; z-index: 200; top: 12px; left: 12px;
  padding: 10px 15px; border-radius: 8px;
  background: var(--yellow); color: #100c00; font-weight: 800; text-decoration: none;
  clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap;
}
.skip-link:focus { clip-path: none; width: auto; height: auto; }

.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(2, 8, 17, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 14px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: auto; height: 40px; }
.brand span { font-size: 1.45rem; font-weight: 900; letter-spacing: -.01em; }
.brand b { color: var(--yellow); font-weight: 900; }
.site-nav { display: flex; gap: 4px; margin-inline: auto; }
.site-nav a {
  position: relative; padding: 10px 12px; border-radius: 8px; white-space: nowrap;
  color: var(--ink); font-size: .95rem; font-weight: 500; text-decoration: none;
}
.site-nav a:hover { color: var(--yellow); }
.site-nav a[aria-current="page"] { color: var(--yellow); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -14px;
  height: 3px; border-radius: 3px; background: var(--yellow);
}
.menu-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { border-color: var(--yellow); }
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }
.btn-primary { background: var(--yellow); border-color: var(--yellow); color: #120d00; }
.btn-primary:hover { background: var(--yellow-2); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: .92rem; white-space: nowrap; }
.store-btn { min-height: 58px; padding: 0 20px 0 16px; text-align: left; }
.store-btn small { display: block; font-size: .7rem; font-weight: 600; opacity: .85; line-height: 1.1; }
.store-btn strong { display: block; font-size: 1.12rem; line-height: 1.15; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(255, 196, 37, .16), transparent 70%),
    linear-gradient(180deg, #030a14 0%, var(--bg) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 80% at 75% 45%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 80% at 75% 45%, #000 0%, transparent 75%);
  opacity: .35;
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px;
  padding: 64px 0 72px;
}
.hero h1 { margin: 0; font-size: clamp(2.4rem, 4.6vw, 3.7rem); line-height: 1.03; letter-spacing: -.025em; font-weight: 850; }
.hero h1 em { display: block; color: var(--yellow); font-style: normal; }
.lead { max-width: 34rem; margin: 22px 0 0; color: var(--muted); font-size: 1.12rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 30px; padding: 0; list-style: none; color: var(--ink); font-weight: 500; }
.chips li { display: inline-flex; align-items: center; gap: 8px; }
.chips svg { color: var(--yellow); }
.built-by { margin: 26px 0 6px; color: var(--muted); font-size: .95rem; }
.built-by strong { color: var(--ink); }
.made-in { margin: 0; color: var(--faint); font-size: .9rem; }

/* Phone */
.phone {
  position: relative; width: min(330px, 100%); margin-inline: auto;
  padding: 11px; border-radius: 54px;
  background: linear-gradient(145deg, #3a4048, #0d1014 40%, #1f242b);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 40px 90px rgba(0, 0, 0, .65), 0 0 120px rgba(255, 196, 37, .12);
}
.phone > img, .phone > video {
  width: 100%; height: auto; aspect-ratio: 1206 / 2622; object-fit: cover;
  border-radius: 44px; background: #fff;
}
.phone-tilt { transform: perspective(1400px) rotateY(-12deg) rotateX(3deg); }

/* Sections */
.section { padding: 84px 0; border-top: 1px solid var(--line); }
.section-soft { background: var(--bg-soft); }
.eyebrow { margin: 0 0 10px; color: var(--yellow); font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section h2, .page-hero h1 { margin: 0; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; letter-spacing: -.02em; }
.section-intro { max-width: 44rem; margin: 14px 0 40px; color: var(--muted); font-size: 1.08rem; }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); }
.benefit { display: flex; gap: 16px; padding: 34px 26px; border-left: 1px solid var(--line); }
.benefit:first-child { border-left: 0; padding-left: 0; }
.benefit svg { flex: none; color: var(--yellow); }
.benefit h3 { margin: 0 0 4px; font-size: 1.12rem; }
.benefit p { margin: 0; color: var(--muted); font-size: .95rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat { padding: 34px 12px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; color: var(--yellow); font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 850; line-height: 1.1; }
.stat span { color: var(--muted); }
.stat .stars { display: flex; justify-content: center; gap: 6px; padding: 6px 0 4px; color: var(--yellow); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.card h3 { margin: 14px 0 8px; font-size: 1.2rem; }
.card p, .card li { color: var(--muted); }
.card ul { margin: 12px 0 0; padding-left: 20px; }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(255, 196, 37, .12); color: var(--yellow); }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.split + .split { margin-top: 96px; }
.split.reverse > :first-child { order: 2; }
.split h2 { margin-bottom: 14px; }
.split p { color: var(--muted); }
.ticks { margin: 20px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; margin-top: 10px; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23120d00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.steps { counter-reset: step; display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--yellow); color: #120d00; font-size: 1.4rem; font-weight: 850;
}
.steps h3 { margin: 4px 0 6px; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.plan.featured { border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow) inset, 0 24px 60px rgba(255, 196, 37, .08); }
.plan h3 { margin: 0; font-size: 1.35rem; }
.plan .tag { align-self: flex-start; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; background: var(--yellow); color: #120d00; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.price { margin: 16px 0 4px; font-size: 2.4rem; font-weight: 850; line-height: 1; }
.price small { color: var(--muted); font-size: 1rem; font-weight: 500; }
.plan .billed { margin: 6px 0 14px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.plan > p { color: var(--muted); }
.plan .ticks { flex: 1; margin-bottom: 26px; }
.fine-print { margin-top: 28px; color: var(--faint); font-size: .9rem; }

.notice { margin-top: 40px; padding: 20px 24px; border: 1px solid rgba(255, 196, 37, .35); border-radius: 14px; background: rgba(255, 196, 37, .06); color: var(--muted); }
.notice strong { color: var(--ink); }

.page-hero { padding: 72px 0 56px; background: radial-gradient(50% 90% at 85% 0%, rgba(255, 196, 37, .14), transparent 70%); }
.page-hero p { max-width: 46rem; margin: 16px 0 0; color: var(--muted); font-size: 1.15rem; }

.cta { text-align: center; }

/* Demo */
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(255, 196, 37, .55); } 80%, 100% { box-shadow: 0 0 0 14px rgba(255, 196, 37, 0); } }
.pulse { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: #120d00; animation: pulse-ring 2.2s infinite; }
.pulse svg { width: 12px; height: 12px; margin-left: 2px; }
.btn-demo { border-color: rgba(255, 196, 37, .55); }
.header-demo { margin-left: auto; }
.site-nav { margin-inline: auto 0; }
.demo-cta {
  display: flex; align-items: center; gap: 16px; width: 100%; max-width: 30rem; margin-top: 18px; padding: 14px 20px 14px 14px;
  border: 1px solid rgba(255, 196, 37, .45); border-radius: 16px; background: linear-gradient(100deg, rgba(255, 196, 37, .14), rgba(255, 196, 37, .03));
  color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s, transform .15s;
}
.demo-cta:hover { border-color: var(--yellow); transform: translateY(-1px); }
.demo-cta strong { display: block; font-size: 1.12rem; }
.demo-cta small { display: block; color: var(--muted); font-size: .9rem; }
.demo-cta-icon { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--yellow); color: #120d00; animation: pulse-ring 2.2s infinite; }
.demo-cta-icon svg { width: 22px; height: 22px; margin-left: 3px; }
.hero-phone { position: relative; }
.phone-play {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 10px; border: 0; border-radius: 999px;
  background: rgba(2, 8, 17, .88); box-shadow: 0 0 0 1px rgba(255, 196, 37, .5), 0 18px 40px rgba(0, 0, 0, .5); color: var(--ink); font-weight: 800; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.phone-play span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: #120d00; animation: pulse-ring 2.2s infinite; }
.phone-play svg { margin-left: 2px; }
.demo-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none; align-items: center; gap: 10px;
  padding: 10px 18px 10px 10px; border: 1px solid rgba(255, 196, 37, .55); border-radius: 999px;
  background: rgba(2, 8, 17, .92); box-shadow: 0 14px 34px rgba(0, 0, 0, .5); color: var(--ink); font-weight: 800; cursor: pointer;
}
.demo-fab .pulse { width: 34px; height: 34px; }
.demo-stage { background: radial-gradient(45% 60% at 22% 50%, rgba(255, 196, 37, .12), transparent 70%), var(--bg); }
.demo-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 72px; }
.stage-phone { position: relative; }
.stage-phone .phone { width: min(340px, 100%); }
.stage-play {
  position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 96px; height: 96px; border: 0; border-radius: 50%;
  background: var(--yellow); color: #120d00; cursor: pointer; animation: pulse-ring 2.2s infinite; box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.stage-play svg { width: 34px; height: 34px; margin-left: 5px; }
.stage-play[hidden] { display: none; }
.chapters { display: grid; gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.chapters button {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; width: 100%; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--ink); text-align: left; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.chapters button:hover, .chapters button.active { border-color: var(--yellow); background: linear-gradient(100deg, rgba(255, 196, 37, .12), var(--panel)); }
.ch-n { color: var(--yellow); font-size: 1.6rem; font-weight: 850; line-height: 1; }
.ch-text strong { display: block; font-size: 1.1rem; }
.ch-text small { display: block; color: var(--muted); font-size: .92rem; }
.ch-t { color: var(--faint); font-variant-numeric: tabular-nums; font-weight: 700; }

/* Prompts */
.thread { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bubble {
  position: relative; margin: 0; padding: 18px 20px 20px; border-radius: 22px 22px 6px 22px;
  background: linear-gradient(140deg, #23a86a, #12784d); color: #fff; font-size: 1.05rem; font-weight: 600; line-height: 1.4;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.bubble:nth-child(3n+2) { transform: translateY(22px); }
.bubble-tag { display: block; margin-bottom: 8px; color: rgba(255, 255, 255, .78); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

/* Numbered features */
.numbered [data-n] { position: relative; }
.numbered [data-n]::before {
  content: attr(data-n); position: absolute; top: -.95em; left: -.04em; z-index: -1;
  font-size: 9rem; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 196, 37, .3);
}
.numbered .split { isolation: isolate; }
.numbered .split:nth-child(even) > :first-child { order: 2; }

.steps-grid { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }

/* About */
.story p + p { margin-top: 14px; }
.pull-quote {
  position: relative; margin: 0; padding: 48px 40px 36px; border: 1px solid rgba(255, 196, 37, .4); border-radius: 24px;
  background: radial-gradient(70% 70% at 100% 0%, rgba(255, 196, 37, .16), transparent 70%), var(--panel);
}
.quote-mark { position: absolute; top: -10px; left: 30px; color: var(--yellow); font-size: 7rem; font-weight: 900; line-height: 1; }
.pull-quote blockquote { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.pull-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 26px; color: var(--muted); font-weight: 700; }
.pull-quote figcaption img { width: auto; height: 32px; }
.bridge { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0 0; padding: 0; list-style: none; }
.bridge::before { content: ""; position: absolute; top: 19px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--line-strong), var(--yellow)); }
.bridge li { position: relative; text-align: center; }
.bridge-n {
  position: relative; display: inline-block; padding: 8px 16px; border: 1px solid var(--yellow); border-radius: 999px;
  background: var(--bg-soft); color: var(--yellow); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.bridge li:last-child .bridge-n { background: var(--yellow); color: #120d00; }
.bridge h3 { margin: 18px 0 6px; font-size: 1.25rem; }
.bridge p { max-width: 20rem; margin: 0 auto; color: var(--muted); }
.spectrum {
  display: flex; justify-content: space-between; margin: 30px 0 24px; padding: 12px 18px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 196, 37, .12), rgba(255, 196, 37, .55)); color: var(--ink); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.cta .btn-row { justify-content: center; margin-top: 28px; }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--faint); font-size: .92rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }

/* Demo dialog */
.demo-dialog { width: min(420px, calc(100% - 32px)); padding: 0; border: 0; background: transparent; overflow: visible; }
.demo-dialog::backdrop { background: rgba(1, 4, 9, .82); backdrop-filter: blur(6px); }
.demo-dialog .phone { width: min(360px, 100%, calc((100dvh - 120px) * .46)); }
.demo-close {
  position: absolute; top: -8px; right: -8px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); cursor: pointer;
}
.demo-caption { margin: 14px 0 0; color: var(--muted); font-size: .85rem; text-align: center; }

@media (max-width: 1180px) {
  .header-demo { display: none; }
}

@media (max-width: 1020px) {
  .menu-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto;
    border: 1px solid var(--line-strong); border-radius: 10px; background: none; color: var(--ink); cursor: pointer;
  }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; padding: 12px 24px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .header-cta, .header-demo { display: none; }
  .demo-fab.show { display: inline-flex; }
  .demo-grid { grid-template-columns: 1fr; gap: 40px; }
  .thread { grid-template-columns: 1fr 1fr; }
  .bubble:nth-child(3n+2) { transform: none; }
  .bubble:nth-child(even) { transform: translateY(18px); }
  .numbered .split:nth-child(even) > :first-child { order: 0; }
  .bridge { grid-template-columns: 1fr; gap: 30px; }
  .bridge::before { top: 0; bottom: 0; left: 50%; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--line-strong), var(--yellow)); }
  .bridge p { background: var(--bg-soft); }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse > :first-child { order: 0; }
  .phone-tilt { transform: none; }
  .benefits, .stats { grid-template-columns: repeat(2, 1fr); }
  .benefit:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(odd) { border-left: 0; }
  .cards, .plans { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .shell { width: calc(100% - 32px); }
  .brand span { font-size: 1.25rem; }
  .benefits, .stats { grid-template-columns: 1fr; }
  .benefit { border-left: 0; padding: 22px 0; border-top: 1px solid var(--line); }
  .benefit:first-child { border-top: 0; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .btn-row .btn { width: 100%; }
  .steps li { grid-template-columns: 1fr; }
  .thread { grid-template-columns: 1fr; }
  .bubble:nth-child(n) { transform: none; }
  .bubble:nth-child(even) { margin-left: 12%; border-radius: 22px 22px 22px 6px; }
  .bubble:nth-child(odd) { margin-right: 12%; }
  .numbered [data-n]::before { font-size: 6.5rem; }
  .pull-quote { padding: 44px 24px 28px; }
  .demo-cta { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

.logo-panel {
  display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 24px;
  background: radial-gradient(60% 60% at 50% 45%, rgba(255, 196, 37, .18), transparent 70%), var(--panel);
}
.logo-panel img { width: 38%; height: auto; }
.split .phone { width: min(290px, 100%); }
