/* ================= Landing page (builds on style.css tokens) ================= */
.landing { overflow-x: hidden; }
html:has(.landing) { scroll-behavior: smooth; scroll-padding-top: 72px; }
.landing a { text-decoration: none; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 11px; }
.muted-ink { opacity: .65; font-weight: 500; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgb(74 222 128 / .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgb(74 222 128 / 0); } 100% { box-shadow: 0 0 0 0 rgb(74 222 128 / 0); } }

/* ---------- nav ---------- */
.lnav { position: sticky; top: 0; z-index: 30; background: rgb(11 13 17 / .72); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.lnav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.lnav .brand { font-size: 15px; }
.lnav-links { display: flex; gap: 4px; flex: 1; }
.lnav-links a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.lnav-links a:hover { color: var(--text); background: var(--panel-2); }
.lnav-cta { display: flex; gap: 8px; }
.lnav-cta[hidden] { display: none; }
[hidden] { display: none !important; }

/* ---------- hero ---------- */
.hero-l { position: relative; padding: 72px 0 88px; }
.hero-l::before {
  content: ""; position: absolute; inset: -120px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 420px at 78% 18%, rgb(228 104 63 / .18), transparent 65%),
    radial-gradient(520px 360px at 8% 80%, rgb(74 222 128 / .07), transparent 65%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.hero-copy h1 {
  font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; margin: 0 0 20px;
  background: linear-gradient(180deg, #fff 30%, #b8c2d6); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 17.5px; line-height: 1.6; color: #aeb6c4; margin: 0 0 28px; max-width: 560px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.fineprint { margin: 18px 0 0; color: var(--faint); font-size: 13px; }

/* product visual */
.hero-visual { position: relative; }
.frame {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #07080b;
  box-shadow: 0 40px 100px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .02) inset;
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
}
.frame-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; background: var(--panel); border-bottom: 1px solid var(--line); font-size: 12px; }
.lights { display: flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #2c323d; }
.frame-title { display: flex; align-items: center; gap: 7px; font-weight: 600; flex: 1; }
.frame-modes { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--muted); }
.frame-modes > * { padding: 2px 8px; border-radius: 6px; font-weight: 500; }
.frame-modes b { background: var(--panel-2); color: var(--text); }
.desk { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(160deg, #0e1014, #1b1f27); overflow: hidden; }
.win { position: absolute; border: 1px solid #2c323d; border-radius: 6px; overflow: hidden; background: #0e1014; box-shadow: 0 16px 40px rgb(0 0 0 / .45); }
.win-title { height: 22px; display: grid; place-items: center; font-size: 10px; font-weight: 600; color: #cdd2da; background: #171a21; border-bottom: 1px solid #20242c; }
.win-browser { left: 5%; top: 7%; width: 62%; height: 70%; }
.browser-body { position: relative; height: calc(100% - 22px); background: #f6f6ef; padding: 10px 12px; }
.fake-addr { font: 9.5px var(--mono); color: #555; background: #fff; border: 1px solid #ddd; border-radius: 5px; padding: 4px 7px; margin-bottom: 10px; }
.fake-lines { display: grid; gap: 9px; }
.fake-lines i { display: block; height: 7px; border-radius: 3px; background: linear-gradient(90deg, #d6d6cf, #e6e6df); }
.fake-lines i:first-child { background: #ff6600; opacity: .85; }
.cursor-ptr {
  position: absolute; width: 14px; height: 14px; left: 30%; top: 40%;
  clip-path: polygon(0 0, 0 100%, 30% 72%, 52% 100%, 66% 92%, 44% 64%, 80% 64%);
  background: #111; filter: drop-shadow(0 1px 1px rgb(255 255 255 / .6));
  animation: roam 8s ease-in-out infinite;
}
@keyframes roam { 0%, 100% { left: 30%; top: 40%; } 30% { left: 62%; top: 22%; } 55% { left: 44%; top: 70%; } 80% { left: 22%; top: 55%; } }
.win-term { right: 5%; top: 34%; width: 50%; height: 44%; }
.term-body { padding: 9px 10px; font: 10.5px/1.6 var(--mono); color: #d4d7dd; }
.term-body .p { color: #4ade80; }
.term-body .dim { color: #6b7280; }
.caret { display: inline-block; width: 6px; height: 11px; background: #d4d7dd; vertical-align: -1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.dock {
  position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); display: flex; align-items: center; gap: 7px;
  padding: 5px 9px; border-radius: 9px; background: rgb(20 23 29 / .92); border: 1px solid #2c323d; font-size: 9px; font-weight: 700;
}
.dock i { width: 14px; height: 14px; border-radius: 4px; background: #252a34; }
.dock i:first-child { background: #E4683F; opacity: .7; }

.agent-log {
  position: absolute; left: -36px; bottom: -34px; width: min(330px, 80%); z-index: 2;
  background: rgb(18 21 27 / .94); backdrop-filter: blur(10px); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 24px 60px rgb(0 0 0 / .5); padding: 10px 12px 6px;
}
.agent-log-head { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.agent-log ol { list-style: none; margin: 0; padding: 0; min-height: 130px; display: flex; flex-direction: column; justify-content: flex-end; }
.agent-log li { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; border-top: 1px solid var(--line); font-size: 12px; animation: slidein .35s ease-out; }
.agent-log li:first-child { border-top: 0; }
.agent-log li code { color: var(--accent); font-size: 11.5px; flex: none; }
.agent-log li span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes slidein { from { opacity: 0; transform: translateY(6px); } }

/* ---------- strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgb(18 21 27 / .5); }
.strip-inner { display: flex; justify-content: space-between; gap: 24px; padding: 18px 24px; color: var(--faint); font-size: 13px; font-weight: 500; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: linear-gradient(180deg, rgb(18 21 27 / .6), rgb(18 21 27 / .2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.035em; font-weight: 700; margin: 0 0 14px; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .muted { font-size: 16px; line-height: 1.6; margin: 0; }

.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fcard {
  padding: 24px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel);
  transition: border-color .2s, transform .2s;
}
.fcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.fcard h3 { font-size: 16px; margin: 16px 0 8px; font-weight: 600; letter-spacing: -.01em; }
.fcard p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14.5px; }
.ficon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgb(228 104 63 / .1); border: 1px solid rgb(228 104 63 / .2); }
.ficon svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* how */
.how-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.steps li { display: flex; gap: 16px; }
.step-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--accent-ink); background: var(--accent); }
.steps h3 { margin: 3px 0 4px; font-size: 16px; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); line-height: 1.55; }
.code-card { border-radius: 14px; border: 1px solid var(--line-2); background: #090a0d; overflow: hidden; box-shadow: 0 30px 80px rgb(0 0 0 / .4); }
.code-tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--line); }
.code-tabs span { padding: 6px 10px; font-size: 12px; color: var(--muted); border-bottom: 2px solid transparent; }
.code-tabs .on { color: var(--text); border-color: var(--accent); }
.code-card pre { margin: 0; padding: 18px; overflow-x: auto; font: 12.5px/1.7 var(--mono); color: #d4d7dd; }
.code-card .c { color: #5b6372; }
.code-card .s { color: #a5d6a7; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.tool-chips span { font: 11.5px var(--mono); padding: 3px 8px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--muted); }
.tool-chips .more { color: var(--accent); border-color: rgb(228 104 63 / .3); }

/* persistence timeline */
.timeline { display: grid; grid-template-columns: 1fr 80px 1fr 80px 1fr; align-items: start; }
.tl-step { text-align: center; padding: 0 8px; }
.tl-step h3 { margin: 16px 0 6px; font-size: 16px; }
.tl-step p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14.5px; }
.tl-dot { width: 18px; height: 18px; border-radius: 50%; margin: 0 auto; border: 3px solid var(--bg); }
.tl-dot.running { background: var(--ok); box-shadow: 0 0 0 1px var(--ok), 0 0 24px rgb(74 222 128 / .35); }
.tl-dot.stopped { background: #3a404b; box-shadow: 0 0 0 1px #4b5260; }
.tl-line { height: 2px; margin-top: 8px; background: linear-gradient(90deg, var(--ok), #3a404b 45%, #3a404b 55%, var(--ok)); opacity: .5; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pcard { position: relative; padding: 24px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.pcard.featured { border-color: rgb(228 104 63 / .5); background: radial-gradient(400px 200px at 50% 0%, rgb(228 104 63 / .1), transparent 70%), var(--panel); }
.pcard .badge { position: absolute; top: -10px; left: 24px; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.pcard h3 { margin: 0 0 12px; font-size: 14px; text-transform: capitalize; color: var(--muted); font-weight: 600; }
.pprice { display: flex; align-items: baseline; gap: 6px; }
.pprice .amt { font-size: 34px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pprice .per { color: var(--muted); }
.pmonth { color: var(--faint); font-size: 13px; margin: 4px 0 16px; }
.pcard ul { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; color: #c3c9d4; }
.pcard li::before { content: "✓"; color: var(--ok); margin-right: 8px; font-weight: 700; }
.price-note { margin: 28px auto 0; max-width: 620px; font-size: 14px; }

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

/* final cta */
.final-cta {
  text-align: center; padding: 64px 24px; border-radius: 20px; border: 1px solid var(--line-2);
  background: radial-gradient(600px 300px at 50% 0%, rgb(228 104 63 / .16), transparent 70%), var(--panel);
}
.final-cta .muted { font-size: 16px; margin: 0 0 26px; }
.center-row { justify-content: center; }

/* footer */
.lfoot { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.lfoot-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.lfoot nav { display: flex; gap: 18px; flex: 1; }
.lfoot nav a { color: var(--muted); font-size: 14px; }
.lfoot nav a:hover { color: var(--text); }
.brand.small svg { width: 18px; height: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .how-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-l { padding-top: 48px; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frame { transform: none; }
  .agent-log { left: 12px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .lnav-links { display: none; }
  .lnav-inner { gap: 12px; justify-content: space-between; }
  .lnav-cta .btn.ghost { display: none; }
  .section { padding: 64px 0; }
  .features-grid, .price-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 8px; }
  .tl-line { width: 2px; height: 28px; margin: 4px auto; }
  .agent-log { position: relative; left: 0; bottom: 0; width: 100%; margin-top: 12px; }
  .strip-inner { justify-content: center; }
  .lede { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.frame-title { white-space: nowrap; min-width: 0; }
@media (max-width: 460px) { .frame-modes span { display: none; } .win-title { font-size: 9px; } }

/* audiences */
.audience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.acard { display: flex; flex-direction: column; gap: 20px; padding: 28px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.acard.featured { border-color: rgb(228 104 63 / .45); background: radial-gradient(500px 240px at 100% 0%, rgb(228 104 63 / .09), transparent 70%), var(--panel); }
.acard h3 { font-size: 22px; letter-spacing: -.02em; margin: 10px 0 8px; }
.acard .muted { margin: 0; line-height: 1.6; }
.acard .btn { align-self: flex-start; margin-top: auto; }
.tag-l { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: #c3c9d4; }
.checks li { display: flex; gap: 10px; line-height: 1.5; }
.checks li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.mini-code { margin: 0; padding: 14px 16px; border-radius: 10px; background: #090a0d; border: 1px solid var(--line); overflow-x: auto; font: 12px/1.7 var(--mono); color: #d4d7dd; }
.mini-code .c { color: #5b6372; }
.mini-code .s { color: #a5d6a7; }
@media (max-width: 860px) { .audience-grid { grid-template-columns: 1fr; } }
