.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.wrap.narrow { width: min(780px, 100% - 40px); }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }

/* Nav: sits on the dark hero, turns solid on scroll */
.nav { position: sticky; top: 0; z-index: 20; background: var(--ink); transition: background .2s, box-shadow .2s; }
.nav.scrolled { background: color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav .brand { color: #fff; }
.nav .logo-mark::before { box-shadow: 0 0 0 2px var(--ink); }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { white-space: nowrap; color: rgba(255,255,255,.72); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: 8px; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-cta { display: flex; gap: 8px; }
.nav .btn.ghost { color: rgba(255,255,255,.8); }
.nav .btn.ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
@media (max-width: 1000px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

/* Hero */
.hero { background: radial-gradient(900px 520px at 78% 30%, rgba(91,76,255,.28), transparent 65%),
  radial-gradient(700px 400px at 10% 110%, rgba(239,59,79,.12), transparent 60%), var(--ink); color: #fff; padding: 56px 0 28px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-in { grid-template-columns: 1fr; gap: 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.78); font-size: 13.5px; text-decoration: none;
  padding: 4px 12px 4px 4px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.04); }
.eyebrow:hover { border-color: rgba(255,255,255,.25); color: #fff; }
.eyebrow .pill.accent { background: var(--accent); color: #fff; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(42px, 6.2vw, 72px); line-height: 1.0; letter-spacing: -.035em; margin: 22px 0 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(92deg, #b3aaff, #fff 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.72); max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 14px; }
.btn.ghost-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.btn.ghost-dark:hover { background: rgba(255,255,255,.12); }
.fine { font-size: 13px; color: rgba(255,255,255,.5); }

.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; margin-top: 48px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.55); font-size: 13.5px; }
.facts span::before { content: "●"; color: var(--accent); margin-right: 8px; font-size: 8px; vertical-align: 2px; }

/* The animated product frame */
.stage { position: relative; }
.frame { border-radius: 14px; overflow: hidden; background: #f6f6f3; box-shadow: 0 40px 90px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08);
  transform: perspective(1600px) rotateY(-5deg) rotateX(2deg); transform-origin: left center; }
@media (max-width: 980px) { .frame { transform: none; } }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #e9e9e4; border-bottom: 1px solid #dcdcd5; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfcfc7; }
.frame-url { margin: 0 auto; font-size: 11.5px; color: #6c6e78; background: #fff; padding: 3px 14px; border-radius: 6px; }
.rec-tag { font-size: 10.5px; font-weight: 700; color: #fff; background: var(--rec); padding: 2px 8px; border-radius: 5px; letter-spacing: .04em; animation: blink 1.6s infinite; }
.frame-body { position: relative; display: grid; grid-template-columns: 22% 1fr; aspect-ratio: 16 / 9.4; color: #16171d; }
.mock-side { background: #fff; border-right: 1px solid #e6e6e0; padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.mock-side b { height: 12px; width: 60%; background: #16171d; border-radius: 4px; margin-bottom: 8px; }
.mock-side span { height: 9px; border-radius: 4px; background: #e8e8e2; }
.mock-side span.on { background: #cdc8ff; }
.mock-main { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mock-head { display: flex; align-items: center; justify-content: space-between; }
.mock-head b { height: 14px; width: 34%; background: #d9d9d2; border-radius: 4px; }
.mock-btn { font-size: 11px; font-weight: 700; color: #fff; background: #5b4cff; padding: 6px 10px; border-radius: 7px; }
.mock-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1; }
.mock-col { background: #ededE8; border-radius: 9px; padding: 9px; display: flex; flex-direction: column; gap: 7px; }
.mock-col em { font-style: normal; font-size: 10px; font-weight: 700; color: #6c6e78; text-transform: uppercase; letter-spacing: .06em; }
.mock-col span { height: 30px; background: #fff; border-radius: 7px; box-shadow: 0 1px 2px rgba(0,0,0,.06); font-size: 10.5px; font-weight: 600; padding: 8px; }
.mock-col span.new { animation: pop 8s infinite; transform-origin: top; }
@keyframes pop { 0%, 44% { opacity: 0; transform: scaleY(.4); } 50%, 100% { opacity: 1; transform: none; } }

.mock-spot { position: absolute; right: 3.6%; top: 7.5%; width: 17%; height: 11%; border-radius: 9px;
  box-shadow: 0 0 0 3px #5b4cff, 0 0 0 999px rgba(8,12,24,.36); opacity: 0; animation: spot 8s infinite; }
@keyframes spot { 0%, 12% { opacity: 0; } 18%, 40% { opacity: 1; } 46%, 100% { opacity: 0; } }
.mock-callout { position: absolute; right: 3.6%; top: 21%; background: #5b4cff; color: #fff; font-size: 11.5px; font-weight: 600;
  padding: 6px 10px; border-radius: 7px; box-shadow: 0 8px 20px rgba(0,0,0,.25); opacity: 0; animation: callout 8s infinite; }
@keyframes callout { 0%, 18% { opacity: 0; transform: translateY(5px); } 24%, 40% { opacity: 1; transform: none; } 46%, 100% { opacity: 0; } }
.mock-cursor { position: absolute; width: 22px; height: 22px; left: 40%; top: 60%; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); animation: cursor 8s infinite cubic-bezier(.45,0,.2,1); }
@keyframes cursor {
  0% { left: 40%; top: 62%; }
  16% { left: 87%; top: 11%; }
  36% { left: 87%; top: 11%; transform: scale(1); }
  38% { transform: scale(.82); }
  40% { transform: scale(1); }
  58% { left: 30%; top: 58%; }
  100% { left: 40%; top: 62%; }
}
.mock-caption { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); width: 76%; background: rgba(12,16,28,.88); color: #f5f7fb;
  border-left: 3px solid #5b4cff; border-radius: 9px; padding: 8px 12px; font-size: 12.5px; line-height: 1.35; font-weight: 500; }
.mock-caption small { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #b3aaff; margin-bottom: 2px; }
.timeline { display: flex; gap: 4px; margin-top: 16px; }
.timeline span { flex: 1; font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.45); padding: 6px 8px; border-radius: 6px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.06); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline .t-intro, .timeline .t-outro { flex: .7; }
.timeline .on { color: #fff; background: rgba(91,76,255,.35); border-color: rgba(123,111,255,.6); }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; max-width: 20ch; margin-bottom: 44px; }
.body { color: var(--muted); font-size: 16.5px; margin-bottom: 18px; max-width: 36em; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 38px; width: 8px; height: 8px; border-top: 2px solid var(--line-strong);
  border-right: 2px solid var(--line-strong); transform: rotate(45deg); }
@media (max-width: 900px) { .steps li::after { display: none; } }
.steps .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-text); font-weight: 800; margin-bottom: 16px; }
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 14.5px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.features article { background: var(--surface); padding: 28px; }
.f-ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: #fff; font-size: 16px; margin-bottom: 18px; }
.features h3 { font-size: 16.5px; margin-bottom: 6px; }
.features p { color: var(--muted); font-size: 14.5px; }

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split .h2 { margin-bottom: 18px; }
.checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; font-size: 15px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px;
  background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 800; }
.terminal { background: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.06); }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #34353f; }
.term-bar span { margin-left: auto; font-size: 11.5px; color: rgba(255,255,255,.35); font-family: var(--mono); }
.terminal pre { margin: 0; padding: 20px 22px 24px; color: #e6e6ee; font: 13px/1.7 var(--mono); overflow-x: auto; }
.terminal .c { color: #6f7283; } .terminal .p { color: #8c82ff; } .terminal .s { color: #f5c679; } .terminal .o { color: #9aa0b4; } .terminal .k { color: #5fd7a4; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; max-width: 440px; } }
.plan { padding: 24px; }
.plans-loading { color: var(--muted); }
.plan { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; }
.plan.popular { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan-flag { position: absolute; top: -11px; left: 24px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-family: var(--display); font-size: 22px; }
.plan-tag { color: var(--muted); font-size: 14px; margin: 4px 0 18px; min-height: 2.8em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.plan-price b { font-family: var(--display); font-size: 44px; letter-spacing: -.03em; line-height: 1; }
.plan-price span { color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.plan li svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 3px; }
.plans-note { color: var(--muted); font-size: 13.5px; margin-top: 22px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-weight: 600; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 62ch; }

.cta-band { background: var(--ink); color: #fff; padding: 80px 0; background-image: radial-gradient(600px 300px at 50% 0%, rgba(91,76,255,.35), transparent 70%); }
.cta-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.cta-band h2 { font-family: var(--display); font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -.03em; max-width: 18ch; }

.footer { padding: 34px 0; border-top: 1px solid var(--line); }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-right: auto; margin-left: 20px; }
@media (max-width: 640px) { .footer nav { margin-left: 0; } }
.footer nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer nav a:hover { color: var(--text); }
.footer p { color: var(--faint); font-size: 13px; }

/* Localhost recording */
.section.local { background: var(--ink); color: #fff;
  background-image: radial-gradient(700px 380px at 85% 0%, rgba(91,76,255,.30), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(95,215,164,.10), transparent 70%); }
.local .kicker { color: #b3aaff; }
.local .body { color: rgba(255,255,255,.7); max-width: 44em; }
.local .body code, .local .prompt-box code { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #fff; }
.flow { display: grid; grid-template-columns: 1fr minmax(90px, .55fr) 1fr minmax(90px, .55fr) 1fr; align-items: center; gap: 0; margin: 44px 0 40px; }
.node { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.node.out { border-color: rgba(123,111,255,.6); background: rgba(91,76,255,.14); }
.node-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.08); font-size: 15px; margin-bottom: 6px; }
.node:nth-child(3) .node-ico { color: var(--rec); animation: blink 1.6s infinite; }
.node b { font-size: 16px; }
.node code { align-self: flex-start; font-size: 13px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); color: #5fd7a4; padding: 2px 8px; border-radius: 6px; }
.node small { color: rgba(255,255,255,.55); font-size: 13px; }
.link { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 6px; }
.link em { font-style: normal; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.55); text-align: center; line-height: 1.3; }
.wire { display: block; width: 100%; height: 2px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, #8c82ff 0 8px, transparent 8px 14px); background-size: 28px 2px; animation: flow 1s linear infinite; }
@keyframes flow { to { background-position: 28px 0; } }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .link { flex-direction: row; justify-content: center; padding: 10px 0; }
  .wire { width: 2px; height: 34px; background: repeating-linear-gradient(180deg, #8c82ff 0 8px, transparent 8px 14px); background-size: 2px 28px; animation-name: flow-v; }
}
@keyframes flow-v { to { background-position: 0 28px; } }
.guarantees { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 980px) { .guarantees { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .guarantees { grid-template-columns: 1fr; } }
.guarantees article { border-top: 2px solid #5fd7a4; padding: 18px 4px 0; }
.guarantees h3 { font-size: 16px; margin-bottom: 6px; }
.guarantees h3::before { content: "✓"; color: #5fd7a4; margin-right: 8px; }
.guarantees p { color: rgba(255,255,255,.62); font-size: 14.5px; }
.setup { margin-top: 48px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px 40px; align-items: center; padding: 28px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
@media (max-width: 900px) { .setup { grid-template-columns: 1fr; } }
.setup h3 { font-family: var(--display); font-size: 24px; letter-spacing: -.02em; margin-bottom: 6px; }
.setup-copy p { color: rgba(255,255,255,.62); font-size: 15px; }
.prompt-box { display: flex; gap: 10px; align-items: center; min-width: 0; }
.prompt-box code { flex: 1; min-width: 0; padding: 10px 12px; font-size: 13px; line-height: 1.5; border-radius: 10px; overflow-wrap: anywhere; }
.setup-cta { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.section-more { margin-top: 14px; font-size: 14.5px; }
.section-more a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
