/* Landing page — the "Industry" cut of the design system.
   Tokens come from style.css (--bg/--surface/--accent/--font-heading/--mono/...), so the marketing
   page and the app are one visual system and a token change moves both. Nothing here redefines a
   colour; the accent stays the single runtime-swappable variable. */

.lp { background: var(--bg); color: var(--text); font-family: var(--font); }
.lp section, .lp .lp-nav, .lp .lp-foot { max-width: 1280px; margin-inline: auto; }

/* ---------- nav ---------- */
.lp-nav {
  display: flex; align-items: center; gap: 18px; padding: 16px 28px;
  border-bottom: 1px solid var(--border);
}
/* The lockup: mark, hairline rule, wordmark — the banner, rebuilt as markup.
   Inline SVG rather than an <img> so the mark inherits currentColor, and the underscore is a real
   element so it can BLINK. A flattened PNG banner could do neither, and would go soft on a
   high-DPI screen. */
.lp-lockup { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--accent); }
.lp-lockup-mark { width: 34px; height: 34px; flex: 0 0 34px; display: block; }
.lp-lockup-rule { width: 1px; height: 30px; background: var(--border); flex: 0 0 1px; }
.lp-lockup-word {
  font-family: var(--font-heading); font-weight: 600; font-size: 22px; letter-spacing: .13em;
  color: var(--text); line-height: 1; white-space: nowrap;
}
.lp-lockup-word .lp-caret { font-style: normal; color: var(--accent); }
@media (max-width: 560px) { .lp-lockup-word { font-size: 18px; letter-spacing: .1em; } .lp-lockup-rule { display: none; } }
/* The blinking caret is the one piece of ornament: a terminal that is waiting for you. */
.lp-caret { color: var(--accent); animation: lp-blink 1.1s step-end infinite; }
@keyframes lp-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.lp-brand-sub { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lp-links { display: flex; gap: 18px; margin-left: auto; }
.lp-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.lp-links a:hover { color: var(--text); }
.lp-lang { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.lp-lang button {
  font: inherit; font-size: 11px; letter-spacing: .08em; padding: 5px 9px; cursor: pointer;
  background: transparent; color: var(--muted); border: 0;
}
.lp-lang button.active { background: var(--accent); color: #17131f; font-weight: 600; }

/* ---------- ticker ---------- */
/* Real log lines, scrolling. It says what the product says: a command, an exit code, a price. */
.lp-ticker { border-bottom: 1px solid var(--border); overflow: hidden; background: color-mix(in srgb, #000 25%, var(--surface)); }
.lp-ticker-run {
  display: flex; gap: 40px; white-space: nowrap; padding: 7px 0;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  animation: lp-marquee 42s linear infinite;
}
.lp-ticker-run b { color: var(--accent); font-weight: 500; }
.lp-ticker-run .ok { color: var(--green); }
@keyframes lp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- hero ---------- */
.lp-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 64px 28px 40px; align-items: start; }
.lp-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--muted); margin-bottom: 22px; }
.lp-hero h1 {
  font-family: var(--font-heading); font-weight: 600; font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.02; letter-spacing: -.01em; margin: 0 0 20px;
}
.lp-h1-accent { color: var(--accent); }
.lp-lede { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 46ch; }
.lp-cta { display: flex; gap: 12px; margin: 26px 0 18px; flex-wrap: wrap; }
.lp-trust { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.lp-trust li { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- demo panel ---------- */
.lp-demo { border: 1px solid var(--border); padding: 18px; background: var(--surface); }
.lp-demo-head { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.lp-demo-user {
  margin: 16px 0 14px; margin-left: auto; width: fit-content; max-width: 90%;
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  border: 1px solid var(--accent-line); padding: 8px 12px; font-size: 14px;
}
/* The approval box is the product's key trust moment, so it is the loudest object on the page. */
.lp-approve { border: 1px solid var(--accent-line); padding: 12px; margin-bottom: 14px; }
.lp-approve-t { font-family: var(--font-heading); font-size: 11px; letter-spacing: .1em; color: var(--accent); margin-bottom: 9px; }
.lp-cmd { display: block; font-family: var(--mono); font-size: 13px; background: var(--deep); border: 1px solid var(--border); padding: 9px 11px; margin-bottom: 11px; overflow-x: auto; }
.lp-approve-btns { display: flex; gap: 8px; align-items: center; }
/* Deny sits apart from Allow — a destructive answer must never be a mis-tap away from the safe one. */
.lp-deny { margin-left: auto; }
.btn-sm { padding: 5px 11px; font-size: 12.5px; }
.lp-stream { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); border: 1px solid var(--border); padding: 9px 11px; }
.lp-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.lp-eq i { width: 3px; height: 100%; background: var(--accent); animation: lp-eq 1s ease-in-out infinite; }
.lp-eq i:nth-child(2) { animation-delay: .18s; } .lp-eq i:nth-child(3) { animation-delay: .36s; }
@keyframes lp-eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.lp-cost {
  display: flex; align-items: center; gap: 14px; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.lp-chf { color: var(--accent); }
.lp-budget { margin-left: auto; width: 90px; height: 4px; background: var(--surface2); position: relative; overflow: hidden; }
.lp-budget i { position: absolute; inset: 0 auto 0 0; width: 78%; background: var(--accent); transition: width .4s linear; }
.lp-demo-foot { margin-top: 12px; font-size: 12px; color: var(--muted); }

/* ---------- numbered blocks ---------- */
.lp-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); }
.lp-blocks article { padding: 34px 28px; border-right: 1px solid var(--border); }
.lp-blocks article:last-child { border-right: 0; }
.lp-num { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 12px; }
.lp-blocks h2, .lp-how h2, .lp-pricing h2 { font-family: var(--font-heading); font-weight: 600; font-size: 24px; margin-bottom: 10px; letter-spacing: -.005em; }
.lp-blocks p { color: var(--muted); font-size: 14.5px; line-height: 1.62; }
.lp-blocks code { font-family: var(--mono); color: var(--accent); }

/* ---------- how / pricing ---------- */
.lp-how, .lp-pricing { padding: 48px 28px; border-top: 1px solid var(--border); }
.lp-how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.lp-how-grid b { font-family: var(--font-heading); font-size: 16px; display: block; margin-bottom: 6px; }
.lp-how-grid p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.lp-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 24px 0 14px; }
.lp-tier { border: 1px solid var(--border); padding: 18px; background: var(--surface); }
.lp-tier h3 { font-family: var(--font-heading); font-size: 18px; margin-bottom: 4px; }
.lp-tier .lp-price { font-family: var(--mono); color: var(--accent); font-size: 20px; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.lp-tier ul { list-style: none; padding: 0; margin: 0; }
.lp-tier li { font-size: 13.5px; color: var(--muted); padding: 3px 0; }
.lp-fine { font-size: 12.5px; color: var(--muted); }

/* ---------- footer ---------- */
.lp-foot { display: flex; gap: 18px; padding: 26px 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.lp-foot a { color: var(--muted); text-decoration: none; }
.lp-foot a:hover { color: var(--text); }

/* ---------- mobile ---------- */
/* One column, and the demo panel comes FIRST-class rather than being an afterthought squeezed below
   the fold: on a phone it is the clearest explanation of what this product does. */
@media (max-width: 900px) {
  .lp-hero, .lp-blocks, .lp-how-grid { grid-template-columns: 1fr; }
  .lp-hero { gap: 34px; padding: 40px 18px 28px; }
  .lp-blocks article { border-right: 0; border-bottom: 1px solid var(--border); padding: 26px 18px; }
  .lp-links, .lp-brand-sub, .lp-signin { display: none; }
  .lp-nav { gap: 10px; padding: 12px 16px; flex-wrap: wrap; }
  .lp-lang { margin-left: auto; }
  .lp-how, .lp-pricing { padding: 34px 18px; }
  .lp-foot { padding: 20px 18px; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-caret, .lp-ticker-run, .lp-eq i { animation: none; }
  .lp-budget i { transition: none; }
}

/* ---------- why not a hyperscaler ---------- */
/* Cards rather than prose: this section is scanned, not read. Each one is a single claim the
   product can actually back, so a visitor comparing tabs can settle the question in ten seconds. */
.lp-vs { padding: 48px 28px; border-top: 1px solid var(--border); }
.lp-vs-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px;
  margin-top: 24px; background: var(--border); border: 1px solid var(--border);
}
.lp-vs-card { background: var(--bg); padding: 22px 20px; }
.lp-vs-card h3 {
  font-family: var(--font-heading); font-size: 16.5px; font-weight: 600; margin: 0 0 8px;
  color: var(--accent); letter-spacing: -.003em;
}
.lp-vs-card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }
@media (max-width: 900px) {
  .lp-vs { padding: 34px 18px; }
  .lp-vs-grid { grid-template-columns: 1fr; }
}

/* ---------- feature detail ---------- */
.lp-feat { padding: 48px 28px; border-top: 1px solid var(--border); }
.lp-feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px 30px; margin-top: 24px; }
.lp-feat-grid h3 { font-family: var(--font-heading); font-size: 16px; font-weight: 600; margin: 0 0 7px; }
.lp-feat-grid p { color: var(--muted); font-size: 14.5px; line-height: 1.62; margin: 0; }
.lp-feat-grid code { font-family: var(--mono); color: var(--accent); font-size: 13.5px; }

/* ---------- interactive walkthrough ---------- */
/* The stage is a fixed-height scroller, not a growing block: a section that lengthens as the demo
   runs would shove the rest of the page down under the reader's cursor. */
.lp-try { padding: 48px 28px; border-top: 1px solid var(--border); }
.lp-try-picks { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 14px; }
.lp-pick {
  font: inherit; font-size: 13.5px; padding: 8px 13px; cursor: pointer;
  background: var(--surface); color: var(--muted); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.lp-pick:hover { color: var(--text); }
.lp-pick.is-on { border-color: var(--accent-line); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.lp-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.lp-try-stage { border: 1px solid var(--border); background: var(--surface); }
.lp-try-head {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.lp-try-head .lp-dot { background: var(--muted); }
.lp-try-head .lp-dot.busy { background: var(--green); animation: lp-blink 1s step-end infinite; }
.lp-try-cost { margin-left: auto; color: var(--accent); font-variant-numeric: tabular-nums; }

.lp-try-log { height: 340px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.lp-try-user {
  align-self: flex-end; max-width: 82%; padding: 8px 12px; font-size: 14.5px;
  background: color-mix(in srgb, var(--accent) 18%, var(--surface)); border: 1px solid var(--accent-line);
}
.lp-try-ai { max-width: 88%; font-size: 14.5px; line-height: 1.6; color: var(--text); }
.lp-try-out {
  font-family: var(--mono); font-size: 12.5px; white-space: pre-wrap; color: var(--muted);
  background: var(--deep); border: 1px solid var(--border); padding: 9px 11px; overflow-x: auto;
}
.lp-try-denied { font-size: 13.5px; color: var(--red, #e0736d); }
.lp-try-ask { border: 1px solid var(--accent-line); padding: 11px; }
.lp-try-ask.danger { border-color: var(--red, #e0736d); }
.lp-try-ask.done { opacity: .72; }
.lp-try-ask-t { font-family: var(--font-heading); font-size: 10.5px; letter-spacing: .1em; color: var(--accent); margin-bottom: 8px; }
.lp-try-ask.danger .lp-try-ask-t { color: var(--red, #e0736d); }
.lp-try-cmd {
  display: block; font-family: var(--mono); font-size: 13px; background: var(--deep);
  border: 1px solid var(--border); padding: 9px 11px; margin-bottom: 10px; overflow-x: auto; white-space: pre;
}
.lp-try-btns { display: flex; gap: 8px; align-items: center; }
/* Deny is pushed away from Allow — a destructive answer must never be a mis-tap from the safe one. */
.lp-try-btns .lp-deny { margin-left: auto; }
.lp-try-verdict { font-family: var(--mono); font-size: 12px; }
.lp-try-verdict.ok { color: var(--green); } .lp-try-verdict.no { color: var(--red, #e0736d); }
.lp-try-foot { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.lp-try-foot .lp-fine { margin-left: auto; }

@media (max-width: 900px) {
  .lp-feat, .lp-try { padding: 34px 18px; }
  .lp-try-log { height: 300px; }
  .lp-try-foot .lp-fine { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .lp-try-head .lp-dot.busy { animation: none; } }

/* ---------- proof band ---------- */
.lp-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px;
  background: var(--border); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.lp-band-i { background: var(--bg); padding: 26px 20px; text-align: center; }
.lp-band-i b {
  display: block; font-family: var(--font-heading); font-size: 40px; line-height: 1;
  color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: 7px; letter-spacing: -.02em;
}
.lp-band-i span { color: var(--muted); font-size: 13px; }

/* ---------- model marquee ---------- */
.lp-models { padding: 40px 28px 34px; text-align: center; border-bottom: 1px solid var(--border); }
.lp-mq { overflow: hidden; margin: 18px 0 14px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lp-mq-run { display: flex; gap: 10px; white-space: nowrap; width: max-content; animation: lp-marquee 40s linear infinite; }
.lp-mq-run span {
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  border: 1px solid var(--border); background: var(--surface); padding: 6px 12px; border-radius: var(--radius-sm);
}
.lp-mq-run span b { color: var(--accent); font-weight: 500; }

/* ---------- what people build ---------- */
.lp-build { padding: 48px 28px; border-top: 1px solid var(--border); }
.lp-build-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 24px; }
.lp-build-card {
  border: 1px solid var(--border); background: var(--surface); padding: 18px;
  transition: border-color .18s ease, transform .18s ease;
}
.lp-build-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.lp-build-cmd {
  font-size: 12.5px; color: var(--accent); background: var(--deep); border: 1px solid var(--border);
  padding: 8px 10px; margin: 0 0 11px; overflow-x: auto; white-space: nowrap;
}
.lp-build-card p:last-child { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* ---------- documentation ---------- */
/* Tabs down the side, prose on the right: a manual is scanned by topic, and a twelve-item accordion
   would hide eleven of them behind a click each. */
.lp-docs { padding: 48px 28px; border-top: 1px solid var(--border); }
.lp-docs-wrap { display: grid; grid-template-columns: 230px 1fr; gap: 0; margin-top: 24px; border: 1px solid var(--border); }
.lp-docs-nav { display: flex; flex-direction: column; border-right: 1px solid var(--border); background: var(--surface); }
.lp-doc-tab {
  font: inherit; font-size: 14px; text-align: left; padding: 11px 15px; cursor: pointer;
  background: transparent; color: var(--muted); border: 0; border-bottom: 1px solid var(--border);
  border-left: 2px solid transparent;
}
.lp-doc-tab:last-child { border-bottom: 0; }
.lp-doc-tab:hover { color: var(--text); }
.lp-doc-tab.is-on { color: var(--accent); border-left-color: var(--accent); background: var(--bg); }
.lp-doc-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lp-docs-body { padding: 26px 28px; background: var(--bg); min-height: 320px; }
.lp-doc { display: none; }
.lp-doc.is-on { display: block; animation: lp-fade .22s ease; }
@keyframes lp-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.lp-doc h3 { font-family: var(--font-heading); font-size: 19px; margin: 0 0 10px; }
.lp-doc p { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin: 0 0 12px; }
.lp-doc ul { margin: 0; padding-left: 18px; }
.lp-doc li { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 7px; }
.lp-doc code { font-family: var(--mono); color: var(--accent); font-size: 13px; }
.lp-doc b { color: var(--text); font-weight: 600; }

@media (max-width: 900px) {
  .lp-models, .lp-build, .lp-docs { padding: 34px 18px; }
  .lp-band-i { padding: 20px 14px; }
  .lp-band-i b { font-size: 32px; }
  .lp-docs-wrap { grid-template-columns: 1fr; }
  .lp-docs-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .lp-doc-tab { white-space: nowrap; border-bottom: 0; border-left: 0; border-bottom: 2px solid transparent; }
  .lp-doc-tab.is-on { border-left-color: transparent; border-bottom-color: var(--accent); }
  .lp-docs-body { padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-mq-run { animation: none; }
  .lp-doc.is-on { animation: none; }
  .lp-build-card:hover { transform: none; }
}
