/* =========================================================
   sino — landing page
   Palette: near-black, warm paper, signal lime, alert coral.
   Type: Inter Tight / Instrument Serif / JetBrains Mono.
   ========================================================= */

:root {
  --bg: #07080a;
  --bg-elev: #0b0d10;
  --panel: #0e1115;
  --panel-2: #11151a;
  --code: #090b0e;
  --line: #1b2128;
  --line-2: #2a323b;
  --text: #f0eee6;
  --text-2: #c3c6c2;
  --muted: #8b929b;
  --dim: #5c646e;
  --lime: #c8fa4b;
  --lime-2: #a8e02f;
  --lime-soft: rgba(200, 250, 75, 0.1);
  --coral: #ff6a55;
  --coral-soft: rgba(255, 106, 85, 0.1);
  --amber: #ffc45c;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 14px;
  --max: 1280px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--lime); color: #07080a; }

img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, blockquote { margin: 0; }
code, pre, kbd { font-family: var(--mono); }

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--lime);
  color: #07080a;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.skip:focus { top: 12px; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------------------------------------------------------
   Nav
   --------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--nav-h);
  border-bottom: 1px solid rgba(42, 50, 59, 0.55);
  background: rgba(7, 8, 10, 0.76);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}
.nav-inner {
  max-width: 1360px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand.glyph {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--lime);
  letter-spacing: -0.04em;
  line-height: 1;
}
.brand.glyph span { color: var(--text); }
.brand-word {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 6px;
}
.nav-links a {
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-gh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-gh svg { width: 14px; height: 14px; fill: currentColor; }
.nav-gh:hover { color: var(--text); border-color: var(--line-2); }
.nav-toggle {
  display: none;
  width: 38px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle span:first-child { top: 14px; }
.nav-toggle span:last-child { top: 20px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 17px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 17px; transform: rotate(-45deg); }
.nav-mobile {
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 24px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.6);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a {
  font-size: 17px;
  color: var(--text-2);
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a.btn { border-bottom: 0; margin-top: 12px; justify-content: center; color: #07080a; }

/* ---------------------------------------------------------
   Buttons & small atoms
   --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lime {
  background: var(--lime);
  border-color: var(--lime);
  color: #07080a;
}
.btn-lime:hover {
  background: #d4ff63;
  border-color: #d4ff63;
  box-shadow: 0 0 0 5px var(--lime-soft);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-small {
  height: 37px;
  padding: 0 15px;
  font-size: 12px;
}
.arrow { font-size: 14px; line-height: 1; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.text-link:hover { color: var(--lime); border-color: var(--lime); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px var(--lime-soft);
  flex: none;
}
.eyebrow .dot.coral { background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.eyebrow .dot.lime { background: var(--lime); }
.eyebrow-rule { width: 34px; height: 1px; background: var(--line-2); }
.eyebrow-dim { color: var(--dim); }

.tag-mono {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag-mono.dim { color: var(--dim); }
.lime-text { color: var(--lime) !important; }
.allow-text { color: var(--lime) !important; }
.deny-text, .coral { color: var(--coral) !important; }
.dim { color: var(--dim) !important; }

.pill {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}
.pill.allow { color: var(--lime); border-color: rgba(200, 250, 75, 0.3); background: var(--lime-soft); }
.pill.deny { color: var(--coral); border-color: rgba(255, 106, 85, 0.3); background: var(--coral-soft); }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 38px) 0 0;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(42, 50, 59, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 50, 59, 0.2) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 88% 76% at 46% 38%, black 6%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 88% 76% at 46% 38%, black 6%, transparent 78%);
  opacity: 0.7;
}
.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-bottom: 30px;
}
.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 34px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}
.hero-meta span + span::before {
  content: "/";
  margin-right: 10px;
  color: #303841;
}
.hero-copy { max-width: 1100px; align-self: center; }
.hero h1 {
  margin: 0 0 30px;
  font-size: clamp(3.4rem, 8.4vw, 7.9rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.058em;
}
.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--text);
}
.hero-sub {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.62;
  color: var(--text-2);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin: 36px 0 0;
}
.hero-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.hero-rail div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hero-rail dt {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero-rail dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.01em;
  color: var(--text-2);
}
.hero-rail div:nth-child(2) dd { color: var(--coral); }
.hero-rail div:nth-child(3) dd { color: var(--lime); }
.comment { color: #4d5862; font-style: italic; }

/* ---------------------------------------------------------
   Sections
   --------------------------------------------------------- */

.section {
  position: relative;
  padding: 124px 0;
  border-top: 1px solid var(--line);
}
.section h2 {
  margin-top: 20px;
  font-size: clamp(2.6rem, 4.7vw, 4.4rem);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.055em;
}
.section h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.section-head {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.section-lede { padding-bottom: 4px; }
.section-lede p {
  max-width: 520px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-2);
}
.section-lede p + p { margin-top: 10px; }
.section-lede p.small { font-family: var(--mono); font-size: 10px; color: var(--dim); }
.section-lede strong { color: var(--text); font-weight: 600; }
.section-lede em { font-family: var(--serif); font-style: italic; }

/* ---------------------------------------------------------
   Incidents
   --------------------------------------------------------- */

.incidents { background: linear-gradient(180deg, #08090b, var(--bg)); }
.x-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding-top: 6px;
  margin-top: -6px;
  mask-image: linear-gradient(90deg, transparent, black 2%, black 98%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 2%, black 98%, transparent);
}
.x-carousel::-webkit-scrollbar { display: none; }
.x-track {
  display: flex;
  width: max-content;
}
.x-group {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding-right: 14px;
}
.x-group .x-card {
  width: 374px;
  flex: none;
  scroll-snap-align: start;
}

.x-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 17px 18px 15px;
  border: 1px solid #2b3037;
  border-radius: 16px;
  background: linear-gradient(180deg, #17191e, #121418);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  color: #e7e9ea;
  text-decoration: none;
  transition: border-color 0.22s ease, background 0.22s ease,
    transform 0.22s ease, box-shadow 0.22s ease;
}
.x-card:hover,
.x-card:focus-visible {
  border-color: #454d57;
  background: linear-gradient(180deg, #1b1e24, #15181c);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}
.x-card:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.xc-head { display: flex; align-items: center; gap: 10px; }
.xc-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--av, var(--lime));
  color: #0a0c0f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.xc-id { display: flex; flex-direction: column; min-width: 0; line-height: 1.32; }
.xc-name {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #eff1f3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xc-handle { font-family: var(--mono); font-size: 9.5px; color: #7d848e; }
.xc-logo {
  flex: none;
  width: 18px;
  height: 18px;
  margin-left: auto;
  fill: #6b727c;
  transition: fill 0.2s ease;
}
.x-card:hover .xc-logo { fill: #e7e9ea; }
.xc-text {
  font-size: 14px;
  line-height: 1.52;
  letter-spacing: -0.005em;
  color: #e7e9ea;
}

.xc-attach {
  display: block;
  border: 1px solid #2b3037;
  border-radius: 12px;
  overflow: hidden;
  background: #0d0f12;
}
.xc-attach-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border-bottom: 1px solid #22262c;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7d848e;
}
.xc-source { color: var(--coral); white-space: nowrap; }
.xc-attach-body { display: block; padding: 10px 11px 11px; }
.xc-cmd {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.55;
  color: #e7e9ea;
  overflow-wrap: anywhere;
}
.xc-dim { color: #7d848e; }
.xc-damage {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 8.8px;
  line-height: 1.55;
  color: #ff9c8e;
}

.xc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #22262c;
}
.xc-time { font-family: var(--mono); font-size: 9px; color: #7d848e; }
.xc-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 9px;
  color: #7d848e;
  transition: color 0.2s ease;
}
.x-card:hover .xc-open { color: #1d9bf0; }

/* ---------------------------------------------------------
   Intent
   --------------------------------------------------------- */

.intent { background: #080a0c; }
.intent-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 48px;
}
.intent-lede {
  max-width: 540px;
  padding-bottom: 4px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-2);
}
.intent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.intent-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: linear-gradient(180deg, #0d1014, #0a0c0f);
  min-width: 0;
}
.intent-card.guard {
  border-color: rgba(200, 250, 75, 0.2);
  box-shadow: 0 0 0 1px rgba(200, 250, 75, 0.03) inset, 0 20px 60px rgba(0, 0, 0, 0.25);
}
.intent-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.intent-code {
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.9;
  overflow-x: auto;
}
.code-line { white-space: pre; }
.code-line.indent { padding-left: 20px; }
.c-dim { color: #4f5963; }
.c-key { color: #b8c8ff; }
.c-str { color: #c7d6a8; }
.c-num { color: var(--lime); }
.intent-result {
  display: flex;
  gap: 11px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.intent-result.bad { background: rgba(255, 106, 85, 0.045); border-color: rgba(255, 106, 85, 0.16); }
.intent-result.good { background: rgba(200, 250, 75, 0.045); border-color: rgba(200, 250, 75, 0.16); }
.verdict-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 5px;
}
.verdict-dot.bad { background: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); }
.verdict-dot.good { background: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
.intent-result strong { font-size: 12.5px; font-weight: 600; }
.intent-result p { margin-top: 4px; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.intent-result code { font-size: 10.5px; color: var(--text-2); }
.intent-fail {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--dim);
}
.intent-fail span:last-child { color: var(--coral); }
.intent-fail.good-fail span:last-child { color: var(--lime); }

/* ---------------------------------------------------------
   Demo console
   --------------------------------------------------------- */

.demo-section {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(200, 250, 75, 0.04), transparent 70%),
    #08090c;
}
.demo-head { margin-bottom: 38px; }
.console {
  border: 1px solid var(--line-2);
  border-radius: 17px;
  background: linear-gradient(180deg, #0c0f13, #090b0e);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.035) inset,
    0 40px 100px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.console-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: #0a0d10;
}
.console-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.console-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-soft);
}
.console-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--dim);
}
.console-meta .sep { color: #303841; }
.console-live { display: inline-flex; align-items: center; gap: 5px; color: var(--lime); }
.console-live i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 2s ease-in-out infinite;
}
.preset-strip { margin-bottom: 14px; }
.preset-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--dim);
}
.preset-title { color: var(--text-2); }
.preset-hint { letter-spacing: 0.04em; color: var(--dim); }
.preset-scroll {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 1px 1px 4px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.preset-scroll::-webkit-scrollbar { display: none; }
.preset {
  flex: none;
  width: 214px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #0d1014, #0a0c10);
  text-align: left;
  color: var(--muted);
  scroll-snap-align: start;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.preset:hover { border-color: var(--line-2); transform: translateY(-1px); }
.preset.active {
  border-color: rgba(200, 250, 75, 0.42);
  background: linear-gradient(180deg, rgba(200, 250, 75, 0.07), #0a0c10);
}
.preset-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.preset-num { font-family: var(--mono); font-size: 8px; color: var(--dim); }
.preset.active .preset-num { color: var(--lime); }
.preset-verdict {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  padding: 2px 4px;
  border-radius: 3px;
  border: 1px solid currentColor;
}
.preset-verdict.allow { color: var(--lime); }
.preset-verdict.deny { color: var(--coral); }
.preset-name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.preset-cmd {
  display: block;
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1.4;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preset-req {
  font-size: 10px;
  line-height: 1.4;
  color: var(--dim);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 258px;
  min-height: 620px;
}

.workbench {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.workbench-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}
.workbench-head p { margin-top: 4px; font-size: 10px; color: var(--dim); }
.workbench-head .mini-btn { flex: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.field-label label {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dim);
}
.field-label label span {
  color: #3f4852;
  letter-spacing: 0.04em;
  text-transform: none;
  margin-left: 6px;
}
.mini-btn {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  padding: 3px 7px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--dim);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.mini-btn:hover { color: var(--lime); border-color: rgba(200, 250, 75, 0.3); background: var(--lime-soft); }
textarea {
  width: 100%;
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  min-height: 0;
}
#request-input {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--text);
}
textarea:focus {
  border-color: rgba(200, 250, 75, 0.4);
  box-shadow: 0 0 0 3px var(--lime-soft);
}
textarea::placeholder { color: var(--dim); }
.field-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--dim);
}
.field-foot code { color: var(--muted); font-size: 8px; }
.actions { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.actions .btn { height: 37px; padding: 0 15px; font-size: 11.5px; }
.kbd {
  font-family: var(--mono);
  font-size: 8px;
  border: 1px solid rgba(7, 8, 10, 0.25);
  border-radius: 3px;
  padding: 2px 4px;
  margin-left: 2px;
  opacity: 0.7;
}
.action-hint { font-family: var(--mono); font-size: 8.5px; color: var(--dim); }

.pipeline {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 0 2px;
}
.pipe-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.pipe-num { font-family: var(--mono); font-size: 7px; color: var(--dim); }
.pipe-name { font-family: var(--mono); font-size: 8.5px; color: var(--muted); }
.pipe-state { font-family: var(--mono); font-size: 7px; color: var(--dim); }
.pipe-step.active .pipe-name,
.pipe-step.done .pipe-name { color: var(--text-2); }
.pipe-step.active .pipe-state { color: var(--lime); }
.pipe-step.done .pipe-state { color: var(--lime); }
.pipe-step.active .pipe-num { color: var(--lime); }
.pipe-line { flex: 1; height: 1px; background: var(--line); min-width: 8px; }

.output-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 10px;
  min-width: 0;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--code);
  overflow: hidden;
  min-width: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.panel-badge {
  font-family: var(--mono);
  font-size: 7px;
  color: #46505a;
  letter-spacing: 0.02em;
}
.judge-input {
  margin: 0;
  padding: 11px;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.65;
  color: var(--muted);
  max-height: 250px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.judge-input .jk {
  color: #4e5964;
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.judge-input .jv { color: var(--text-2); }
.judge-input .jt { color: var(--lime); }
.judge-input .jc { color: var(--coral); }
.parse-list { padding: 10px 11px; display: flex; flex-direction: column; gap: 8px; }
.parse-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}
.parse-num {
  font-family: var(--mono);
  font-size: 7.5px;
  color: var(--dim);
  padding-top: 2px;
}
.parse-cmd { font-family: var(--mono); font-size: 10px; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; }
.parse-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 7px;
  color: var(--dim);
}
.op-pill {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 4px;
  color: var(--muted);
}
.flag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 11px 11px;
}
.flag {
  font-family: var(--mono);
  font-size: 7.5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 5px;
  color: var(--muted);
}
.flag.tripwire { color: var(--coral); border-color: rgba(255, 106, 85, 0.3); background: var(--coral-soft); }
.flag.none { color: var(--dim); border-style: dashed; }

.audit-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--code);
  overflow: hidden;
}
.audit-details summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--text-2);
}
.audit-details summary::-webkit-details-marker { display: none; }
.summary-meta { color: var(--dim); font-size: 7.5px; }
.summary-chev { margin-left: auto; color: var(--dim); font-size: 12px; line-height: 1; }
.audit-details[open] .summary-chev { transform: rotate(45deg); }
.audit-body { padding: 0 10px 10px; border-top: 1px solid var(--line); }
.audit-body pre {
  margin: 9px 0 0;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 150px;
  overflow: auto;
}

.verdict-panel {
  padding: 17px 15px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 60%);
  min-width: 0;
}
.vp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.13em;
  color: var(--dim);
}
.vp-transport {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 2px 5px;
  letter-spacing: 0.03em;
  text-transform: none;
}
.verdict-stamp {
  margin: 20px 0 8px;
  width: fit-content;
  padding: 3px 9px 5px;
  border: 2px solid currentColor;
  border-radius: 7px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  transform: rotate(-1.5deg);
  color: var(--lime);
  transition: color 0.2s ease;
}
.verdict-stamp.deny { color: var(--coral); }
.verdict-stamp.pop { animation: stamp 0.44s cubic-bezier(0.2, 0.9, 0.2, 1); }
.verdict-reason {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.verdict-message {
  margin: 11px 0 16px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  min-height: 54px;
}
.vp-metrics { border-top: 1px solid var(--line); }
.vp-metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.vp-metric > span { font-family: var(--mono); font-size: 7.5px; color: var(--dim); letter-spacing: 0.05em; }
.vp-metric > strong { font-family: var(--mono); font-size: 9.5px; font-weight: 500; color: var(--text-2); }
.vp-metric > strong.allow-text { color: var(--lime); }
.vp-metric > strong.deny-text { color: var(--coral); }
.prob-bar {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-top: 3px;
}
.prob-bar i {
  display: block;
  height: 100%;
  background: var(--lime);
  border-radius: inherit;
  transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease;
}
.prob-bar.deny i { background: var(--coral); }
.vp-note {
  display: flex;
  gap: 8px;
  margin-top: 13px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.015);
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--dim);
}
.vp-note-dot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  margin-top: 5px;
}
.vp-note.deny .vp-note-dot { background: var(--coral); }
.vp-same {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.vp-same-label {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.13em;
  color: var(--lime);
}
.vp-same p { margin-top: 4px; font-size: 9.5px; line-height: 1.5; color: var(--dim); }
.console-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  background: #0a0c0f;
  font-family: var(--mono);
  font-size: 7.5px;
  color: var(--dim);
}
.console-foot > span { display: inline-flex; align-items: center; gap: 6px; }
.foot-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--lime); }
.console-foot-right { margin-left: auto; color: #46505a; }
.console-foot code { font-size: 7.5px; color: var(--muted); }
/* ---------------------------------------------------------
   How it works
   --------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.step {
  background: linear-gradient(180deg, #0d1014, #0a0c0f);
  padding: 21px;
  min-width: 0;
}
.step-top { display: flex; justify-content: space-between; align-items: center; }
.step-num { font-family: var(--mono); font-size: 8.5px; color: var(--dim); }
.step-icon {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--lime);
  width: 28px;
  height: 28px;
  border: 1px solid rgba(200, 250, 75, 0.18);
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--lime-soft);
}
.step h3 { margin: 18px 0 7px; font-size: 16px; font-weight: 600; letter-spacing: -0.03em; }
.step p { font-size: 11.5px; line-height: 1.6; color: var(--muted); min-height: 92px; }
.step strong { color: var(--text-2); font-weight: 600; }
.step-art {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.sa-label {
  display: block;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}
.step-art code {
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.how-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.detail-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
  min-width: 0;
}
.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #0a0c0f;
}
.code-block {
  margin: 0;
  padding: 15px;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.75;
  color: var(--text-2);
  overflow: auto;
  max-height: 360px;
}
/* ---------------------------------------------------------
   Design
   --------------------------------------------------------- */

.design { background: #090b0e; }
.design-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.design-card {
  display: flex;
  flex-direction: column;
  min-height: 302px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0e1115, #0b0e12);
}
.design-card.highlight {
  border-color: rgba(200, 250, 75, 0.28);
  background:
    radial-gradient(ellipse 120% 80% at 0% 0%, rgba(200, 250, 75, 0.08), transparent 62%),
    linear-gradient(180deg, #10140f, #0b0e12);
}
.design-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.design-meter {
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.design-meter i { display: block; height: 100%; background: var(--coral); }
.design-card:nth-child(2) .design-meter i { background: var(--amber); }
.design-chip {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid rgba(200, 250, 75, 0.28);
  border-radius: 999px;
  padding: 3px 7px;
}
.design-card h3 {
  margin: 18px 0 10px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.design-card p { font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.design-card p code { font-size: 11px; color: var(--text-2); }
.design-tradeoff {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 18px;
}
.design-tradeoff span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.03em;
  color: var(--dim);
}
.design-card.highlight .design-tradeoff span {
  color: var(--text-2);
  border-color: rgba(200, 250, 75, 0.18);
}
.design-sub {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: end;
  margin: 72px 0 28px;
  padding-top: 54px;
  border-top: 1px solid var(--line);
}
.design-sub h3 {
  margin-top: 16px;
  font-size: clamp(2.1rem, 3.8vw, 3.3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}
.design-sub h3 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.design-sub-lede {
  max-width: 520px;
  padding-bottom: 3px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ---------------------------------------------------------
   Compare
   --------------------------------------------------------- */

.compare { background: #080a0c; }
.table-scroll-hint {
  display: none;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.table-scroll-hint span { color: var(--lime); }
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: auto;
  background: var(--panel);
}
.compare-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  text-align: left;
}
.compare-table th,
.compare-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.compare-table thead th {
  padding-top: 15px;
  padding-bottom: 15px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  background: #0a0c0f;
}
.th-kicker { display: block; font-size: 11.5px; letter-spacing: -0.01em; }
.th-sub {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--dim);
  white-space: nowrap;
}
.compare-table tbody th {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  width: 27%;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr:hover { background: rgba(255, 255, 255, 0.012); }
.compare-table td { text-align: center; width: 14.6%; }
.compare-table code { font-size: 9.5px; color: var(--muted); }
.col-guard {
  background: rgba(200, 250, 75, 0.035);
  border-left: 1px solid rgba(200, 250, 75, 0.14);
  border-right: 1px solid rgba(200, 250, 75, 0.14);
}
.compare-table thead .col-guard .th-kicker { color: var(--lime); }
.mark { font-family: var(--mono); font-size: 13px; }
.mark.yes { color: var(--lime); }
.mark.no { color: #3c454f; }
.mark.part { color: var(--amber); font-size: 9px; letter-spacing: 0.02em; }
.compare-notes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.compare-note { border-top: 1px solid var(--line); padding-top: 13px; }
.compare-note p { margin-top: 7px; font-size: 10.5px; line-height: 1.6; color: var(--dim); }
.compare-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 26px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
}
.compare-callout p { font-size: 12px; line-height: 1.55; color: var(--muted); }
.compare-callout strong { color: var(--text); font-weight: 600; }
.compare-callout .text-link { flex: none; }

/* ---------------------------------------------------------
   Security bento
   --------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.bento-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: linear-gradient(180deg, #0d1014, #0a0c0f);
  min-width: 0;
}
.bento-wide { grid-column: span 2; }
.bento-head { display: flex; justify-content: space-between; align-items: center; }
.bento-num { font-family: var(--mono); font-size: 8px; color: var(--dim); }
.bento-kicker { font-family: var(--mono); font-size: 7.5px; letter-spacing: 0.12em; color: var(--lime); }
.bento-card h3 {
  margin: 16px 0 7px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.bento-card p { font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.bento-card p strong { color: var(--text-2); font-weight: 600; }
.bento-card code { font-size: 10px; color: var(--text-2); }
.bento-art { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.fail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--dim);
}
.fail-row:last-child { border-bottom: 0; }
.code-art code {
  display: block;
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.trip {
  display: block;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.05em;
  color: var(--coral);
}
.binary-art { display: flex; align-items: baseline; gap: 10px; }
.bin { font-size: 27px; font-weight: 700; letter-spacing: -0.06em; }
.bin.allow { color: var(--lime); }
.bin.deny { color: var(--coral); }
.bin-sep { color: #3c454f; font-family: var(--mono); font-size: 12px; }
.cache-art { display: grid; gap: 4px; }
.cache-art > div {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--dim);
}
.cache-art > div:last-child { border-bottom: 0; }
.cache-art code { font-size: 9px; color: var(--text-2); }
.tool-art { display: flex; gap: 5px; }
.tool {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 6px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--dim);
}
.tool i { font-style: normal; color: #4c5660; }
.tool.shell { border-color: rgba(200, 250, 75, 0.25); color: var(--lime); }
.tool.shell i { color: var(--lime); opacity: 0.7; }
.audit-art pre {
  margin: 0;
  padding: 10px;
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 8.5px;
  line-height: 1.6;
  color: var(--muted);
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.policy-quote {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: start;
  margin-top: 36px;
  padding: 22px 24px;
  border-left: 2px solid var(--lime);
  background: linear-gradient(90deg, var(--lime-soft), transparent 70%);
}
.pq-mark {
  font-family: var(--serif);
  font-size: 58px;
  line-height: 0.6;
  color: var(--lime);
  opacity: 0.7;
}
.policy-quote blockquote {
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--text-2);
}
.policy-quote cite {
  font-family: var(--mono);
  font-style: normal;
  font-size: 8px;
  color: var(--dim);
  white-space: nowrap;
  padding-top: 5px;
}

/* ---------------------------------------------------------
   Install
   --------------------------------------------------------- */

.install { background: #08090b; }
.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  align-items: center;
}
.install-grid > * { min-width: 0; }
.install-copy h2 { margin-top: 18px; }
.install-copy > p {
  max-width: 520px;
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
}
.install-copy code { font-size: 12px; color: var(--lime); }
.install-list { margin: 26px 0 28px; }
.install-list > div {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.install-list span {
  flex: none;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--lime);
  padding-top: 2px;
}
.install-list p { font-size: 12px; line-height: 1.55; color: var(--muted); }
.install-list code { font-size: 10.5px; color: var(--text-2); }
.install-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.code-window {
  border: 1px solid var(--line-2);
  border-radius: 13px;
  overflow: hidden;
  background: var(--code);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}
.code-window-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  background: #0b0e12;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--dim);
}
.code-window pre {
  margin: 0;
  padding: 17px;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.7;
  color: var(--text-2);
  overflow: auto;
  max-height: 520px;
}
.terminal-strip {
  margin-top: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--code);
  overflow: hidden;
}
.terminal-strip > div {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--text-2);
}
.terminal-strip > div:last-child { border-bottom: 0; }
.prompt-char { color: var(--lime); margin-right: 5px; }

/* ---------------------------------------------------------
   Motion
   --------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(200, 250, 75, 0.35); }
  50% { opacity: 0.65; box-shadow: 0 0 0 4px rgba(200, 250, 75, 0); }
}
@keyframes stamp {
  0% { transform: rotate(-1.5deg) scale(1.28); opacity: 0.2; }
  60% { transform: rotate(-1.5deg) scale(0.98); opacity: 1; }
  100% { transform: rotate(-1.5deg) scale(1); opacity: 1; }
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1120px) {
  .th-sub { display: none; }
}

@media (max-width: 1000px) {
  .table-scroll-hint { display: flex; }
  .compare-table tbody th {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--panel);
    box-shadow: 1px 0 0 var(--line);
  }
  .compare-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #0a0c0f;
    box-shadow: 1px 0 0 var(--line);
  }
}

@media (max-width: 1180px) {
  .console-grid { grid-template-columns: minmax(0, 1fr) 238px; }
  .compare-note p { font-size: 10px; }
}

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero { padding-top: calc(var(--nav-h) + 34px); }
  .section-head,
  .intent-head { grid-template-columns: 1fr; gap: 26px; }
  .section-lede p { max-width: 640px; }
  .console-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .design-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .design-card.highlight { grid-column: span 2; min-height: 0; }
  .workbench { border-right: 0; }
  .verdict-panel { border-top: 1px solid var(--line); }
  .verdict-stamp { font-size: 40px; }
  .verdict-message { min-height: 0; }
  .vp-same { margin-top: 16px; }
  .install-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step p { min-height: 0; }
  .compare-notes { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { grid-column: span 2; }
  .policy-quote { grid-template-columns: auto 1fr; }
  .policy-quote cite { grid-column: 2; padding-top: 0; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 0 20px; gap: 12px; }
  .nav-gh span { display: none; }
  .nav-gh { width: 36px; justify-content: center; padding: 0; }
  .nav-actions .btn-small { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 30px); }
  .hero-head { padding-bottom: 26px; }
  .hero-meta { display: none; }
  .hero h1 { font-size: clamp(2.8rem, 10.5vw, 4.4rem); }
  .hero-sub { font-size: 15.5px; }
  .hero-cta { margin-top: 28px; }
  .hero-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
  .hero-inner { padding-bottom: 24px; }
  .section { padding: 82px 0; }
  .section h2 { font-size: clamp(2.3rem, 9vw, 3.4rem); }
  .section-head { margin-bottom: 36px; }
  .x-carousel {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    mask-image: none;
    -webkit-mask-image: none;
    padding-bottom: 4px;
  }
  .x-carousel::-webkit-scrollbar { display: none; }
  .x-group .x-card { width: min(84vw, 374px); }
  .intent-grid { grid-template-columns: 1fr; }
  .intent-card { padding: 18px; }
  .intent-fail { flex-direction: column; gap: 4px; }
  .design-grid { grid-template-columns: 1fr; }
  .design-card.highlight { grid-column: span 1; }
  .design-sub {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 52px;
    padding-top: 38px;
  }
  .demo-head { margin-bottom: 30px; }
  .console-top { align-items: flex-start; }
  .console-meta span:not(.console-live) { display: none; }
  .preset { width: 200px; }
  .preset-hint { display: none; }
  .workbench { padding: 13px; }
  .workbench-head { flex-direction: column; gap: 10px; }
  .output-grid { grid-template-columns: 1fr; }
  .judge-input { max-height: 190px; }
  .actions { align-items: flex-start; flex-direction: column; }
  .action-hint { font-size: 8px; }
  .pipeline { flex-wrap: wrap; row-gap: 5px; }
  .pipe-line { min-width: 14px; }
  .console-foot { font-size: 7px; gap: 10px; }
  .console-foot-right { width: 100%; margin-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 18px; }
  .how-detail { grid-template-columns: 1fr; }
  .compare-notes { grid-template-columns: 1fr; gap: 14px; }
  .compare-callout { flex-direction: column; align-items: flex-start; gap: 12px; }
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
  .policy-quote { padding: 18px; gap: 12px; }
  .policy-quote blockquote { font-size: 15.5px; }
  .pq-mark { font-size: 44px; }
  .policy-quote cite { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(2.45rem, 11.5vw, 3.4rem); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .preset { width: 84vw; }
  .section h2 { font-size: clamp(2.1rem, 9.4vw, 2.9rem); }
  .verdict-stamp { font-size: 34px; }
  .verdict-panel { padding: 14px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .x-carousel {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .console-live i { animation: none; }
}
