/* A2SPA site styles. AImodularity family look in A2SPA brand colors (logo: blue to purple to gold), Inter.
   All styling lives here: the CSP forbids inline styles. */

:root {
  --bg: #000411;
  --bg-2: #050a18;
  --panel: rgba(10, 16, 32, 0.92);
  --panel-solid: #0b1222;
  --panel-2: #0e1628;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.26);
  --text: #f5f7fb;
  --soft: #d6dbe6;
  --muted: #9aa4b8;
  --dim: #6b7487;
  --accent: #1784db;
  --accent-bright: #4ba3ec;
  --purple: #5423bb;
  --gold: #b78410;
  --gold-bright: #d9a521;
  --blue: #4ba3ec;
  --violet: #5423bb;
  --grad: #1784db;
  --logo: linear-gradient(90deg, #1784db 0%, #3436c2 35%, #5423bb 55%, #925854 75%, #b78410 100%);
  --grad-text: var(--logo);
  --ok: #34d399;
  --ok-bg: rgba(52, 211, 153, 0.1);
  --hold: #f5b942;
  --hold-bg: rgba(245, 185, 66, 0.1);
  --deny: #f87171;
  --deny-bg: rgba(248, 113, 113, 0.1);
  --radius: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shell: 1200px;
  --head: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wordmark: "Poppins", "Inter", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--soft);
  background: radial-gradient(ellipse 80% 40% at 50% -10%, rgba(23, 132, 219, 0.12), transparent 70%), var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--accent-bright); text-decoration: none; }
a:hover { color: #8cc4f2; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--text); line-height: 1.12; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
strong { color: var(--text); }
code, pre, kbd { font-family: var(--mono); font-size: 0.88em; }
::selection { background: rgba(75, 163, 236, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text { color: var(--accent-bright); }
.logo-text { background: var(--logo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.hidden, [hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(0, 4, 17, 0.82); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(148, 163, 184, 0.12); }
.site-header__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; flex-direction: column; line-height: 1; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__name { font-family: var(--wordmark); font-weight: 700; font-size: 1.45rem; letter-spacing: 0.01em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__sub { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); margin-top: 5px; }
.brand__release { margin-left: 8px; font-size: 0.65rem; font-weight: 800; color: var(--hold); background: var(--hold-bg); padding: 2px 8px; border-radius: 999px; }
.site-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.site-nav__links { display: flex; gap: 2px; }
.site-nav__actions { display: flex; gap: 10px; margin-left: auto; align-items: center; }
.site-nav a.nav-link, .site-nav button.nav-link { white-space: nowrap; color: var(--soft); font-weight: 600; font-size: 0.93rem; padding: 8px 12px; border-radius: 999px; background: none; border: 0; cursor: pointer; font-family: var(--font); }
.site-nav a.nav-link:hover, .site-nav button.nav-link:hover { color: #fff; background: rgba(148, 163, 184, 0.12); }
.site-nav a.nav-link[aria-current="page"] { color: #fff; background: rgba(23, 132, 219, 0.2); }
.site-nav form { margin: 0; }
.nav-toggle { display: none; margin-left: auto; }
.nav-toggle summary { list-style: none; cursor: pointer; padding: 8px 16px; border: 1px solid var(--border-strong); border-radius: 999px; font-weight: 700; color: var(--text); }
.nav-toggle summary::-webkit-details-marker { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent; font: 800 0.95rem/1.2 var(--font); cursor: pointer; white-space: nowrap; color: #fff; background: var(--grad); box-shadow: none; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s; }
.btn:hover { color: #fff; background: #1373c2; }
.btn--ghost { background: transparent; border-color: var(--border-strong); box-shadow: none; color: var(--text); }
.btn--ghost:hover { background: rgba(23, 132, 219, 0.14); border-color: var(--accent); box-shadow: none; }
.btn--small { padding: 8px 16px; font-size: 0.85rem; }
.btn--danger { background: var(--deny-bg); border-color: rgba(248, 113, 113, 0.4); color: var(--deny); box-shadow: none; }
.btn--danger:hover { background: rgba(248, 113, 113, 0.2); color: #fecaca; box-shadow: none; }
.btn--block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { font-weight: 700; color: var(--soft); }
.text-link:hover { color: #fff; }

/* ---------- Badges, pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(10, 16, 32, 0.7); font-size: 0.85rem; color: var(--soft); }
.badge b { background: var(--grad); color: #fff; font-size: 0.75rem; padding: 3px 10px; border-radius: 999px; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 14px; }
.pill { display: inline-block; font-size: 0.74rem; font-weight: 800; padding: 4px 11px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.pill--ok { color: var(--ok); background: var(--ok-bg); border-color: rgba(74, 222, 128, 0.3); }
.pill--hold { color: var(--hold); background: var(--hold-bg); border-color: rgba(251, 191, 36, 0.3); }
.pill--deny { color: var(--deny); background: var(--deny-bg); border-color: rgba(248, 113, 113, 0.3); }
.pill--neutral { color: var(--muted); background: rgba(148, 163, 184, 0.1); border-color: var(--border); }
.pill--accent { color: var(--accent-bright); background: rgba(23, 132, 219, 0.14); border-color: rgba(75, 163, 236, 0.35); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 56px 0; }
.section--line { border-top: 1px solid rgba(148, 163, 184, 0.12); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.lede { font-size: 1.2rem; color: var(--soft); max-width: 700px; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero__product { font-family: var(--wordmark); font-weight: 700; font-size: clamp(2.8rem, 5vw, 3.6rem); line-height: 1; letter-spacing: 0.02em; margin: 26px 0 8px; }
.hero__subtitle { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); margin-bottom: 26px; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 30px; }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 8px; font-size: 0.92rem; color: var(--muted); }
.ticks li::before { content: "✓"; color: var(--accent-bright); font-weight: 800; margin-right: 10px; }
.page-hero { padding: 72px 0 40px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); }

/* ---------- Console (hero visual) ---------- */
.console { background: linear-gradient(180deg, rgba(14, 24, 54, 0.95), rgba(8, 14, 34, 0.95)); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(75, 163, 236, 0.05) inset; overflow: hidden; }
.console__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.console__head strong { font-family: var(--head); font-size: 0.95rem; }
.console__live { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.78rem; }
.console__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.15); }
.console__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 20px 6px; }
.stat { background: rgba(148, 163, 184, 0.07); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; }
.stat span { display: block; font-size: 0.72rem; color: var(--muted); }
.stat b { font-family: var(--head); font-size: 1.45rem; color: var(--text); }
.stat--accent { border-color: rgba(75, 163, 236, 0.45); }
.stat--accent b { color: var(--accent-bright); }
.console__rows { display: grid; gap: 8px; padding: 12px 20px 16px; }
.decision { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md); background: rgba(148, 163, 184, 0.06); border: 1px solid rgba(148, 163, 184, 0.12); }
.decision b { display: block; color: var(--text); font-size: 0.92rem; font-weight: 700; }
.decision small { color: var(--muted); font-size: 0.78rem; }
.console__foot { padding: 12px 20px 16px; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--dim); }
.console__foot code { color: var(--accent-bright); }

/* ---------- Logo strip ---------- */
.strip { border-top: 1px solid rgba(148, 163, 184, 0.12); border-bottom: 1px solid rgba(148, 163, 184, 0.12); background: rgba(8, 13, 31, 0.6); padding: 20px 0; text-align: center; }
.strip p { font-size: 0.8rem; color: var(--dim); margin-bottom: 10px; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; font-weight: 800; color: var(--soft); }

/* ---------- Cards, grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: 10px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card--glow { border-color: rgba(75, 163, 236, 0.4);  }
.card--quote h3 { font-size: 1.15rem; }
.card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(23, 132, 219, 0.16); border: 1px solid rgba(75, 163, 236, 0.3); color: var(--accent-bright); font-weight: 800; font-size: 1.1rem; margin-bottom: 18px; }
.card--link { display: block; color: inherit; transition: border-color 0.15s, transform 0.15s; }
.card--link:hover { border-color: var(--accent); color: inherit; transform: translateY(-2px); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px 26px; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--head); font-weight: 700; font-size: 0.9rem; color: var(--accent-bright); display: block; margin-bottom: 14px; letter-spacing: 0.1em; }

/* ---------- Check list ---------- */
.checks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; }
.checks li::before { content: "✓"; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(23, 132, 219, 0.16); border: 1px solid rgba(75, 163, 236, 0.35); color: var(--accent-bright); font-weight: 800; }
.checks strong { display: block; font-family: var(--head); font-size: 1.02rem; }
.checks span { color: var(--muted); font-size: 0.93rem; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--top { align-items: start; }
.split--wide { grid-template-columns: 0.8fr 1.2fr; }

/* ---------- Callout ---------- */
.callout { border: 1px solid rgba(75, 163, 236, 0.35); background: rgba(23, 132, 219, 0.1); border-radius: var(--radius-md); padding: 18px 22px; color: var(--soft); }
.callout p:last-child { margin: 0; }
.callout--warn { border-color: rgba(251, 191, 36, 0.35); background: var(--hold-bg); }
.callout--deny { border-color: rgba(248, 113, 113, 0.35); background: var(--deny-bg); }

/* ---------- Code ---------- */
.code { background: #040713; color: #dbe6ff; border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 20px 22px; overflow-x: auto; font-family: var(--mono); font-size: 0.84rem; line-height: 1.75; margin: 0; }
.code .c { color: #6f7ea8; }
.code .k { color: #8ab4ff; }
.code .s { color: #7ee2a8; }
.code-file { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--dim); margin-bottom: 8px; font-family: var(--mono); }
:not(pre) > code { background: rgba(148, 163, 184, 0.12); padding: 2px 7px; border-radius: 6px; color: var(--text); }

/* ---------- Media ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong); background: var(--panel-solid); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-strong); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 22px; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-bright); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border: 1px solid rgba(75, 163, 236, 0.4); border-radius: 28px; padding: 64px; text-align: center; background: var(--panel-solid); }
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--soft); max-width: 600px; margin: 0 auto 28px; }
.cta .btn-row { justify-content: center; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 800; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; background: rgba(148, 163, 184, 0.06); }
td { color: var(--soft); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(148, 163, 184, 0.04); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label, .label { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.field .hint { font-size: 0.8rem; color: var(--dim); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], input[type="search"], input[type="datetime-local"], select, textarea {
  width: 100%; font: 500 0.95rem/1.4 var(--font); color: var(--text); background: rgba(0, 4, 17, 0.7); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 120px; resize: vertical; font-family: var(--mono); font-size: 0.85rem; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-bright); box-shadow: 0 0 0 3px rgba(75, 163, 236, 0.18); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--soft); }
.check input { margin-top: 4px; accent-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.9rem; border: 1px solid; }
.alert--error { color: #fecaca; background: var(--deny-bg); border-color: rgba(248, 113, 113, 0.4); }
.alert--ok { color: #bbf7d0; background: var(--ok-bg); border-color: rgba(74, 222, 128, 0.4); }
.alert--info { color: var(--soft); background: rgba(23, 132, 219, 0.12); border-color: rgba(75, 163, 236, 0.4); }

/* ---------- Auth pages ---------- */
.auth { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 64px 16px; }
.auth__card { width: 100%; max-width: 460px; background: var(--panel); border: 1px solid var(--border-strong); border-radius: 26px; padding: 40px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); }
.auth__card h1 { font-size: 2rem; margin-bottom: 6px; }
.auth__card .lede { font-size: 1rem; color: var(--muted); margin-bottom: 26px; }
.auth__foot { margin-top: 22px; text-align: center; font-size: 0.9rem; color: var(--muted); }

/* ---------- Prose ---------- */
.prose { max-width: 780px; color: var(--soft); }
.prose h2 { margin-top: 2em; font-size: 1.7rem; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Docs layout ---------- */
.docs { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.docs__nav { position: sticky; top: 96px; display: grid; gap: 2px; font-size: 0.9rem; }
.docs__nav a { color: var(--muted); padding: 7px 12px; border-radius: 8px; border-left: 2px solid transparent; }
.docs__nav a:hover { color: #fff; background: rgba(148, 163, 184, 0.08); }
.docs__nav h4 { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin: 18px 12px 6px; font-family: var(--font); }
.docs__body > section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--border); scroll-margin-top: 96px; }
.docs__body > section:last-child { border-bottom: 0; }

/* ---------- App (dashboard) ---------- */
.app { padding: 40px 0 80px; }
.app__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.app__head h1 { font-size: 2.2rem; margin: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: 700 0.92rem var(--font); padding: 12px 16px; cursor: pointer; margin-bottom: -1px; }
.tab:hover { color: #fff; }
.tab[aria-selected="true"], .tab.is-active { color: #fff; border-bottom-color: var(--accent-bright); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-head h2, .panel-head h3 { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; }
.kpi span { display: block; font-size: 0.78rem; color: var(--muted); }
.kpi b { font-family: var(--head); font-size: 1.8rem; color: var(--text); }
.secret { font-family: var(--mono); font-size: 0.85rem; background: #040713; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 12px 14px; word-break: break-all; color: var(--accent-bright); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius-md); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input, .toolbar select { width: auto; min-width: 180px; padding: 9px 12px; }
dialog { background: var(--panel-solid); color: var(--soft); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 28px; max-width: 560px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(2, 4, 12, 0.7); backdrop-filter: blur(4px); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(148, 163, 184, 0.14); background: rgba(0, 4, 17, 0.7); padding: 64px 0 40px; font-size: 0.9rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; }
.site-footer h4 { font-family: var(--font); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--dim); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: #fff; }
.site-footer__brand p { color: var(--muted); max-width: 320px; margin-top: 14px; }
.site-footer__base { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(148, 163, 184, 0.12); display: flex; justify-content: space-between; gap: 16px; color: var(--dim); font-size: 0.82rem; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__grid, .split, .split--wide, .docs { grid-template-columns: 1fr; gap: 40px; }
  .docs__nav { position: static; grid-template-columns: repeat(2, 1fr); }
  .grid--3, .grid--4, .steps, .kpis { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .cta { padding: 44px 28px; }
}
@media (max-width: 1040px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; position: relative; }
  .nav-toggle[open] .site-nav { display: flex; flex-direction: column; align-items: stretch; position: absolute; right: 0; top: 50px; background: var(--panel-solid); border: 1px solid var(--border-strong); border-radius: 18px; padding: 10px; min-width: 240px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
  .nav-toggle[open] .site-nav__links, .nav-toggle[open] .site-nav__actions { flex-direction: column; align-items: stretch; margin: 0; }
  .nav-toggle[open] .site-nav__actions { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px; }
}
@media (max-width: 800px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; position: relative; }
  .nav-toggle[open] .site-nav { display: flex; flex-direction: column; align-items: stretch; position: absolute; right: 0; top: 50px; background: var(--panel-solid); border: 1px solid var(--border-strong); border-radius: 18px; padding: 10px; min-width: 240px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
  .nav-toggle[open] .site-nav__links, .nav-toggle[open] .site-nav__actions { flex-direction: column; align-items: stretch; margin: 0; }
  .nav-toggle[open] .site-nav__actions { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0; }
  .grid--2, .grid--3, .grid--4, .steps, .kpis, .form-row, .console__stats { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .shell { padding: 0 16px; }
  .auth__card { padding: 28px 22px; }
}

/* ---------- Small helpers ---------- */
.mx-auto { margin-left: auto; margin-right: auto; }
.center-row { justify-content: center; }
.strength { display: grid; gap: 6px; margin-top: 4px; }
.strength-bar { height: 6px; border-radius: 999px; background: rgba(148, 163, 184, 0.15); overflow: hidden; }
.strength-fill { height: 100%; width: 0; background: var(--deny); transition: width 0.2s, background 0.2s; }
.strength-fill.strength-medium { background: var(--hold); }
.strength-fill.strength-strong { background: var(--ok); }
.strength-20 { width: 20%; } .strength-35 { width: 35%; } .strength-50 { width: 50%; } .strength-75 { width: 75%; } .strength-100 { width: 100%; }
.hint { font-size: 0.8rem; color: var(--dim); }

/* =====================================================================
   v2 layout components (remake)
   ===================================================================== */
.brand__tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); margin-top: 5px; }

/* Centered hero */
.hero--center { text-align: center; padding: 96px 0 40px; }
.hero--center h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 980px; margin: 0 auto 24px; }
.hero--center .lede { margin: 0 auto 34px; font-size: 1.25rem; max-width: 760px; }
.hero--center .btn-row { justify-content: center; }
.kicker-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong); background: rgba(10, 16, 32, 0.7); border-radius: 999px; padding: 6px 16px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); margin-bottom: 26px; }
.kicker-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 4px rgba(75, 163, 236, 0.18); }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin-top: 40px; font-size: 0.88rem; color: var(--muted); font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust span::before { content: "◆"; color: var(--accent); font-size: 0.6rem; }

/* Product shot (app window mock) */
.shot { margin: 56px auto 0; max-width: 1100px; border-radius: 22px; border: 1px solid var(--border-strong); background: #070c1d; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55); overflow: hidden; text-align: left; }
.shot__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(10, 16, 32, 0.9); }
.shot__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3555; display: inline-block; }
.shot__bar span { margin-left: 14px; font-size: 0.78rem; color: var(--dim); font-family: var(--mono); }
.shot__body { display: grid; grid-template-columns: 200px 1fr; min-height: 420px; }
.shot__side { border-right: 1px solid var(--border); padding: 18px 12px; display: grid; align-content: start; gap: 4px; font-size: 0.85rem; }
.shot__side b { font-family: var(--head); color: var(--text); padding: 0 10px 12px; font-size: 1rem; }
.shot__side span { padding: 8px 10px; border-radius: 8px; color: var(--muted); }
.shot__side span.on { background: rgba(23, 132, 219, 0.18); color: #fff; }
.shot__main { padding: 22px 24px; display: grid; gap: 16px; align-content: start; }
.shot__title { display: flex; justify-content: space-between; align-items: center; }
.shot__title h4 { margin: 0; font-size: 1.15rem; }
.shot__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.shot__kpis div { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: rgba(148, 163, 184, 0.05); }
.shot__kpis span { display: block; font-size: 0.72rem; color: var(--muted); }
.shot__kpis b { font-family: var(--head); font-size: 1.4rem; color: var(--text); }
.shot__kpis .up b { color: var(--accent-bright); }
.shot table { font-size: 0.82rem; }
.shot td, .shot th { padding: 10px 12px; }
.shot code { font-size: 0.75rem; }

/* Flow diagram */
.flow { display: grid; grid-template-columns: 1fr auto 1.2fr auto 1fr; align-items: center; gap: 18px; }
.flow__node { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; padding: 22px; text-align: center; }
.flow__node h3 { margin: 8px 0 6px; font-size: 1.05rem; }
.flow__node p { margin: 0; font-size: 0.88rem; color: var(--muted); }
.flow__node small { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.flow__node--core { border-color: rgba(75, 163, 236, 0.55); background: var(--panel-solid);  }
.flow__node--core h3 { font-size: 1.3rem; }
.flow__arrow { color: var(--accent-bright); font-size: 1.6rem; font-weight: 700; }
.flow__out { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 56px 0; }
.feature + .feature { border-top: 1px solid rgba(148, 163, 184, 0.1); }
.feature--flip > :first-child { order: 2; }
.feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.feature p { font-size: 1.05rem; color: var(--soft); }
.feature .ticks { margin-top: 18px; }
.visual { background: var(--panel); border: 1px solid var(--border-strong); border-radius: 22px; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.visual__label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; display: flex; justify-content: space-between; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-family: var(--mono); font-size: 0.82rem; margin: 0; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; color: var(--text); word-break: break-all; }
.kv dd.ok { color: var(--ok); }
.diff { font-family: var(--mono); font-size: 0.82rem; display: grid; gap: 6px; }
.diff div { padding: 8px 12px; border-radius: 8px; background: rgba(148, 163, 184, 0.06); }
.diff .del { background: rgba(148, 163, 184, 0.06); color: var(--muted); text-decoration: line-through; }
.diff .add { background: var(--deny-bg); color: #fecaca; }
.rules { display: grid; gap: 8px; }
.rule { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(0, 4, 17, 0.5); font-size: 0.88rem; }
.rule code { background: none; padding: 0; color: var(--accent-bright); }

/* Bands */
.band { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; background: var(--panel); }
.band > div { padding: 26px 24px; border-right: 1px solid var(--border); }
.band > div:last-child { border-right: 0; }
.band b { display: block; font-family: var(--head); color: var(--text); font-size: 1.05rem; margin-bottom: 6px; }
.band span { font-size: 0.88rem; color: var(--muted); }

/* Platform family */
.family { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.family a { display: block; color: inherit; background: var(--panel); border: 1px solid var(--border); border-radius: 22px; padding: 28px; transition: border-color 0.15s, transform 0.15s; }
.family a:hover { transform: translateY(-2px); color: inherit; }
.family small { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.family h3 { margin: 10px 0 8px; font-size: 1.5rem; }
.family p { margin: 0; color: var(--muted); }
.family .av small { color: #9d86ff; }
.family .av:hover { border-color: #5423bb; }
.family .sp { border-color: rgba(75, 163, 236, 0.5); background: var(--panel-solid); }
.family .sp small { color: var(--accent-bright); }
.family .ea small { color: #7be36a; }
.family .ea:hover { border-color: #7be36a; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: 24px; padding: 32px; position: relative; }
.plan--featured { border-color: rgba(75, 163, 236, 0.6); background: var(--panel-solid);  }
.plan__tag { position: absolute; top: -13px; left: 32px; background: var(--grad); color: #fff; font-size: 0.72rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan__for { color: var(--muted); font-size: 0.92rem; min-height: 44px; }
.plan__price { font-family: var(--head); font-size: 2.6rem; color: var(--text); font-weight: 700; margin: 18px 0 2px; line-height: 1; }
.plan__price small { font-size: 0.95rem; color: var(--muted); font-family: var(--font); font-weight: 600; }
.plan__note { font-size: 0.85rem; color: var(--dim); margin-bottom: 22px; }
.plan .ticks { margin: 0 0 28px; flex: 1; }
.plan .btn { width: 100%; }

/* App shell (dashboard) */
.appshell { display: grid; grid-template-columns: 236px 1fr; min-height: calc(100vh - 72px); }
.appnav { border-right: 1px solid rgba(148, 163, 184, 0.14); background: rgba(0, 4, 17, 0.55); padding: 26px 14px; position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.appnav h4 { font-family: var(--font); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin: 18px 12px 8px; }
.appnav h4:first-child { margin-top: 0; }
.appnav a { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: 0.92rem; padding: 9px 12px; border-radius: 10px; }
.appnav a:hover { color: #fff; background: rgba(148, 163, 184, 0.1); }
.appnav a.is-active { color: #fff; background: rgba(23, 132, 219, 0.2); }
.appnav a span { width: 18px; text-align: center; color: var(--accent-bright); }
.appnav__foot { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--dim); }
.appmain { min-width: 0; }
.appmain [id] { scroll-margin-top: 90px; }

@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr; }
  .flow__arrow { transform: rotate(90deg); justify-self: center; }
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 32px; }
  .feature--flip > :first-child { order: 0; }
  .band { grid-template-columns: 1fr 1fr; }
  .band > div:nth-child(2) { border-right: 0; }
  .band > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .family, .plans { grid-template-columns: 1fr; }
  .shot__body { grid-template-columns: 1fr; }
  .shot__side { display: none; }
  .shot__kpis { grid-template-columns: 1fr 1fr; }
  .appshell { grid-template-columns: 1fr; }
  .appnav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--border); padding: 10px; }
  .appnav h4, .appnav__foot { display: none; }
}
@media (max-width: 640px) {
  .band { grid-template-columns: 1fr; }
  .band > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .hero--center { padding-top: 56px; }
}

/* ---------- Demo terminals ---------- */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.term { background: #02060f; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.term__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--panel-2); font-size: 0.85rem; font-weight: 700; color: var(--text); }
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3346; display: inline-block; }
.term__bar span:first-of-type { margin-left: 8px; }
.term__badge { margin-left: auto; }
.term__screen { margin: 0; min-height: 210px; padding: 18px 20px; font-family: var(--mono); font-size: 0.84rem; line-height: 1.8; white-space: pre-wrap; word-break: break-word; color: var(--soft); }
.term__line { display: block; }
.term__line--cmd { color: var(--text); }
.term__line--cmd::after { content: "▍"; color: var(--accent-bright); animation: blink 1s steps(1) infinite; }
.term__line--cmd + .term__line::before, .term__line--dim + .term__line::before { content: none; }
.term__line:not(:last-child)::after { content: none; }
.term__line--dim { color: var(--dim); }
.term__line--bad { color: var(--deny); font-weight: 700; }
.term__line--good { color: var(--ok); font-weight: 700; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Incident tracker ---------- */
.incident-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.incident-tab { background: transparent; border: 1px solid var(--border-strong); color: var(--muted); border-radius: 999px; padding: 7px 14px; font: 600 0.85rem var(--font); cursor: pointer; }
.incident-tab:hover { color: #fff; border-color: var(--accent); }
.incident-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.table-summary { color: var(--dim); font-size: 0.85rem; margin: 0 0 14px; }
.incident-card-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tracker-incident-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.tracker-incident-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--dim); }
.incident-type-pill { font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(23, 132, 219, 0.14); color: var(--accent-bright); }
.tracker-incident-source { display: flex; justify-content: space-between; gap: 8px; font-size: 0.8rem; color: var(--muted); }
.source-link { font-weight: 700; }
.tracker-incident-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tracker-incident-body h3 { font-size: 1rem; line-height: 1.35; margin: 0; }
.tracker-incident-body p { font-size: 0.88rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.a2spa-mit-btn { margin-top: auto; align-self: flex-start; background: transparent; border: 1px solid var(--border-strong); color: var(--text); border-radius: 8px; padding: 7px 12px; font: 600 0.82rem var(--font); cursor: pointer; }
.a2spa-mit-btn:hover, .a2spa-mit-btn.active { border-color: var(--accent); color: var(--accent-bright); }
.a2spa-mit-btn-arrow { font-size: 0.7rem; margin-left: 4px; }
.incident-empty { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.incident-pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 20px; }
.incident-pagination .table-summary { margin: 0; }
.a2spa-popup { position: fixed; z-index: 60; right: 24px; bottom: 24px; width: min(440px, calc(100% - 32px)); max-height: 70vh; overflow-y: auto; background: var(--panel-solid); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); font-size: 0.9rem; color: var(--soft); }
.a2spa-popup-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.a2spa-popup-title { font-weight: 800; color: var(--text); }
.a2spa-popup-close { background: none; border: 0; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.a2spa-popup-close:hover { color: #fff; }
.a2spa-mit-intro { color: var(--soft); }
.a2spa-mit-list { padding-left: 1.2em; margin: 0 0 12px; display: grid; gap: 6px; }
.a2spa-mit-note { color: var(--dim); font-size: 0.82rem; margin: 0; }
.clipboard-fallback { position: fixed; left: -9999px; }

@media (max-width: 1000px) {
  .demo { grid-template-columns: 1fr; }
  .incident-card-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .incident-card-list { grid-template-columns: 1fr; }
}

/* ---------- Docs ---------- */
.docs-hero { padding: 64px 0 24px; border-bottom: 1px solid var(--border); }
.docs-hero h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 10px; }
.docs-hero__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.doc-search { max-width: 420px; }
.docs__nav a.is-active { color: #fff; background: rgba(23, 132, 219, 0.16); }
.docs__body h2 { font-size: 1.6rem; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.docs__body h3 { font-size: 1.1rem; margin-top: 28px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.docs__body ul, .docs__body ol { padding-left: 1.3em; }
.docs__body li { margin-bottom: 8px; }
.docs__body table code, .docs__body li code, .docs__body p code { font-size: 0.82em; }
.docs-noresults { color: var(--muted); padding: 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.method { font-family: var(--mono); font-size: 0.72rem; font-weight: 800; padding: 4px 8px; border-radius: 6px; letter-spacing: 0.04em; }
.method--post { background: rgba(23, 132, 219, 0.18); color: var(--accent-bright); }
.method--get { background: var(--ok-bg); color: var(--ok); }
.defs { display: grid; grid-template-columns: 140px 1fr; gap: 14px 24px; margin: 0; }
.defs dt { font-weight: 800; color: var(--text); }
.defs dd { margin: 0; color: var(--soft); }
.doc-steps { counter-reset: d; list-style: none; padding-left: 0 !important; display: grid; gap: 10px; margin-bottom: 16px; }
.doc-steps li { counter-increment: d; position: relative; padding-left: 40px; }
.doc-steps li::before { content: counter(d); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 0.8rem; display: grid; place-items: center; }
.code-tabs__bar { display: flex; gap: 4px; margin-bottom: -1px; }
.code-tabs__bar button { background: transparent; border: 1px solid var(--border-strong); border-bottom: 0; color: var(--muted); font: 600 0.82rem var(--font); padding: 8px 14px; border-radius: 8px 8px 0 0; cursor: pointer; }
.code-tabs__bar button.is-active { background: #040713; color: #fff; }
.code-tabs .code { border-top-left-radius: 0; }
.chips-list { display: flex; flex-wrap: wrap; gap: 8px; }
.copy-wrap { position: relative; }
.copy-btn { position: absolute; top: 10px; right: 10px; }
@media (max-width: 760px) { .defs { grid-template-columns: 1fr; gap: 4px; } .defs dd { margin-bottom: 12px; } }
.docs__body { min-width: 0; }
.docs__body pre { max-width: 100%; }

/* ---------- Brand: logo image and three-color system (blue, purple, gold) ---------- */
:root {
  --purple-text: #a68cff;
  --purple-bg: rgba(84, 35, 187, 0.2);
  --purple-border: rgba(140, 100, 255, 0.4);
  --gold-text: #e3b23c;
  --gold-bg: rgba(183, 132, 16, 0.14);
  --gold-border: rgba(227, 178, 60, 0.4);
}
.site-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--logo); }
.brand__row { display: flex; align-items: center; gap: 8px; }
.brand__logo { height: 30px; width: auto; display: block; }
.brand__logo--footer { height: 32px; margin-bottom: 4px; }
.brand__tag { margin-top: 6px; }
.grad-text { background: var(--logo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { color: var(--gold-text); }
.kicker-pill::before { background: var(--gold-text); box-shadow: 0 0 0 4px var(--gold-bg); }
.trust span::before { color: var(--gold-text); }
.card__icon { background: var(--purple-bg); border-color: var(--purple-border); color: var(--purple-text); }
.step::before { color: var(--gold-text); }
.checks li::before { background: var(--purple-bg); border-color: var(--purple-border); color: var(--purple-text); }
.ticks li::before { color: var(--gold-text); }
.pill--accent { color: var(--purple-text); background: var(--purple-bg); border-color: var(--purple-border); }
.stat--accent b, .shot__kpis .up b { color: var(--gold-text); }
.plan__tag { background: var(--logo); }
.plan--featured { border-color: var(--purple-border); }
.cta { border-color: var(--purple-border); position: relative; }
.cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--logo); }
.flow__node--core { border-color: var(--purple-border); }
.flow__arrow { color: var(--gold-text); }
.family .sp { border-color: var(--purple-border); }
.family .sp small { color: var(--gold-text); }
.doc-steps li::before { background: var(--purple); }
.docs__nav h4 { color: var(--gold-text); opacity: 0.85; }
.method--post { background: var(--purple-bg); color: var(--purple-text); }
.incident-type-pill { background: var(--purple-bg); color: var(--purple-text); }
.callout { border-color: var(--purple-border); background: var(--purple-bg); }

/* =====================================================================
   v4 refinements: lighter type, restrained color, dropdown navigation
   ===================================================================== */

/* Type: lighter and smaller */
body { font-size: 15.5px; line-height: 1.65; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1.12; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
.hero--center { padding: 80px 0 32px; }
.hero--center h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 650; max-width: 860px; }
.hero--center .lede { font-size: 1.12rem; }
.lede { font-size: 1.08rem; color: var(--muted); }
.page-hero h1, .docs-hero h1 { font-size: clamp(2rem, 3.6vw, 2.7rem); }
.feature h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 600; }
.feature p { font-size: 1rem; color: var(--muted); }
.section-head { margin-bottom: 40px; }
.section { padding: 84px 0; }
.btn { font-weight: 600; font-size: 0.92rem; }
.eyebrow { font-weight: 700; font-size: 0.74rem; letter-spacing: 0.14em; }
.kicker-pill { font-weight: 700; font-size: 0.72rem; }
.plan__price { font-size: 2.2rem; font-weight: 650; }
.shot__kpis b, .stat b, .kpi b { font-weight: 650; }
.card h3, .step h3 { font-weight: 600; }
.checks strong { font-weight: 600; font-size: 0.98rem; }
.brand__tag { font-weight: 600; }

/* Color: brand colors in a few deliberate places only */
.grad-text { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent-bright); }
.hero--center h1 .grad-text { background: var(--logo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { color: var(--muted); }
.kicker-pill::before { background: var(--accent-bright); box-shadow: 0 0 0 4px rgba(23, 132, 219, 0.18); }
.trust span::before { color: var(--accent); }
.card__icon { background: rgba(148, 163, 184, 0.08); border-color: var(--border-strong); color: var(--accent-bright); }
.step::before { color: var(--accent-bright); }
.checks li::before { background: rgba(23, 132, 219, 0.12); border-color: rgba(75, 163, 236, 0.35); color: var(--accent-bright); }
.ticks li::before { color: var(--accent-bright); }
.pill--accent { color: var(--accent-bright); background: rgba(23, 132, 219, 0.12); border-color: rgba(75, 163, 236, 0.35); }
.stat--accent b, .shot__kpis .up b { color: var(--text); }
.plan__tag { background: var(--accent); }
.plan--featured { border-color: rgba(75, 163, 236, 0.5); }
.cta { border-color: var(--border-strong); }
.cta::before { content: none; }
.flow__node--core { border-color: rgba(75, 163, 236, 0.5); }
.flow__arrow { color: var(--muted); }
.family .sp { border-color: rgba(75, 163, 236, 0.5); }
.family .sp small { color: var(--accent-bright); }
.doc-steps li::before { background: var(--accent); }
.docs__nav h4 { color: var(--dim); opacity: 1; }
.method--post { background: rgba(23, 132, 219, 0.16); color: var(--accent-bright); }
.incident-type-pill { background: rgba(148, 163, 184, 0.1); color: var(--soft); }
.callout { border-color: var(--border-strong); background: rgba(148, 163, 184, 0.06); }

/* Header: dropdown navigation */
.site-header::before { height: 2px; }
.site-header__inner { gap: 20px; }
.nav-item { position: relative; }
.nav-item > .nav-link { display: inline-flex; align-items: center; gap: 6px; }
.nav-item > .nav-link::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.7; }
.nav-menu { position: absolute; top: 100%; left: -8px; min-width: 300px; padding: 10px; margin-top: 8px; background: var(--panel-solid); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s; z-index: 40; }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--soft); }
.nav-menu a:hover { background: rgba(148, 163, 184, 0.08); color: #fff; }
.nav-menu a b { display: block; font-weight: 600; font-size: 0.92rem; color: var(--text); }
.nav-menu a span { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.nav-menu hr { margin: 6px 4px; }
.nav-menu small { display: block; padding: 6px 12px 4px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 1040px) {
  .nav-item { width: 100%; }
  .nav-item > .nav-link::after { display: none; }
  .nav-item > .nav-link { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); padding-bottom: 2px; }
  .nav-menu { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; margin: 0 0 6px; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav-menu a span, .nav-menu small, .nav-menu hr { display: none; }
  .nav-menu a b { font-weight: 500; }
}

/* Demo: single terminal with a toggle */
.demo-one { max-width: 860px; margin: 0 auto; }
.demo-switch { display: inline-flex; padding: 4px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--panel); gap: 4px; }
.demo-switch button { background: none; border: 0; color: var(--muted); font: 600 0.88rem var(--font); padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.demo-switch button[aria-pressed="true"] { background: var(--panel-2); color: #fff; box-shadow: inset 0 0 0 1px var(--border-strong); }
.demo-switch button[data-mode="protected"][aria-pressed="true"] { color: var(--ok); }
.demo-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.demo-one .term__screen { min-height: 230px; }

/* ---------- v5: smaller logo, account menu ---------- */
.brand__logo { height: 22px; }
.brand__logo--footer { height: 26px; }
.brand__tag { font-size: 0.62rem; margin-top: 5px; }
.site-header__inner { height: 64px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(135deg, #1784db, #5423bb); color: #fff; font-weight: 700; font-size: 0.8rem; flex-shrink: 0; }
.account-menu__button { display: inline-flex; align-items: center; gap: 8px; }
.account-menu__email { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-menu--right { left: auto; right: -8px; min-width: 260px; }
.menu-signout { width: 100%; text-align: left; background: none; border: 0; color: var(--deny); font: 600 0.92rem var(--font); padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.menu-signout:hover { background: var(--deny-bg); }
@media (max-width: 1040px) { .account-menu__email { display: none; } .menu-signout { padding-left: 0; } }

/* ---------- Six attacks (replaces the infographic image) ---------- */
.attack-chain { display: flex; align-items: stretch; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.attack-chain div { border: 1px solid var(--border); border-radius: 12px; padding: 10px 16px; background: var(--panel); text-align: center; min-width: 150px; }
.attack-chain b { display: block; font-size: 0.86rem; font-weight: 600; color: var(--text); }
.attack-chain span { font-size: 0.76rem; color: var(--muted); }
.attack-chain i { align-self: center; color: var(--muted); font-style: normal; }
.attack-chain__bad { border-color: rgba(248, 113, 113, 0.45) !important; }
.attack-chain__bad b { color: var(--deny) !important; }
.attacks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.attack { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.attack header { display: flex; gap: 12px; align-items: flex-start; }
.attack__n { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(23, 132, 219, 0.16); color: var(--accent-bright); font-weight: 700; font-size: 0.85rem; }
.attack h3 { margin: 2px 0 2px; font-size: 1rem; }
.attack header p { margin: 0; font-size: 0.82rem; color: var(--muted); }
.attack__cols { display: grid; grid-template-columns: 1fr; gap: 10px; }
.attack__col { border-radius: 12px; border: 1px solid var(--border); background: #02060f; overflow: hidden; }
.attack__col--bad { border-color: rgba(248, 113, 113, 0.3); }
.attack__col--good { border-color: rgba(52, 211, 153, 0.3); }
.attack__label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.attack__col--bad .attack__label { color: var(--deny); }
.attack__col--good .attack__label { color: var(--ok); }
.attack pre { margin: 0; padding: 10px 12px; font-family: var(--mono); font-size: 0.74rem; line-height: 1.6; color: var(--soft); white-space: pre-wrap; word-break: break-word; }
.attack pre .c { color: #6f7ea8; }
.attack__result { font-size: 0.8rem; font-weight: 600; padding: 8px 12px; border-top: 1px solid var(--border); }
.attack__col--bad .attack__result { color: var(--deny); background: var(--deny-bg); }
.attack__col--good .attack__result { color: var(--ok); background: var(--ok-bg); }
.verifies { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; margin-top: 28px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.verifies h3 { font-size: 1.2rem; margin-bottom: 8px; }
.verifies p { margin: 0; color: var(--muted); }
.verifies__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.verifies__list li { font-size: 0.92rem; color: var(--soft); }
.verifies__list li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 10px; }
@media (max-width: 1000px) { .attacks { grid-template-columns: 1fr 1fr; } .verifies { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .attacks { grid-template-columns: 1fr; } .attack-chain i { display: none; } }

/* ---------- Product demo playground ---------- */
.mt-16 { margin-top: 16px; }
.pg { display: grid; gap: 18px; }
.pg__scenarios { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pg__scenarios button { font: inherit; text-align: left; cursor: pointer; border: 1px solid var(--border); background: var(--panel); color: var(--soft); border-radius: 12px; padding: 10px 14px; min-width: 150px; transition: border-color .15s, background .15s; }
.pg__scenarios button b { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); }
.pg__scenarios button span { font-size: 0.74rem; color: var(--muted); }
.pg__scenarios button:hover { border-color: var(--border-strong); }
.pg__scenarios button[aria-selected="true"] { border-color: rgba(75, 163, 236, 0.6); background: rgba(23, 132, 219, 0.1); }
.pg__stage { display: grid; grid-template-columns: 1.15fr 1fr 0.9fr; gap: 16px; align-items: stretch; }
.pg__panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); padding: 16px; min-width: 0; }
.pg__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.pg__code { margin: 0; font-family: var(--mono); font-size: 0.76rem; line-height: 1.6; color: var(--soft); background: #02060f; border: 1px solid var(--border); border-radius: 10px; padding: 12px; white-space: pre-wrap; word-break: break-word; }
.pg__code mark { background: rgba(248, 113, 113, 0.18); color: #fecaca; border-radius: 4px; padding: 0 2px; }
.pg__checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pg__checks li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; transition: border-color .2s, opacity .2s; opacity: 0.75; }
.pg__checks b { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); }
.pg__checks small { font-size: 0.76rem; color: var(--muted); }
.pg__dot { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; }
.pg__checks li.is-running { opacity: 1; border-color: rgba(75, 163, 236, 0.5); }
.pg__checks li.is-running .pg__dot { border-color: var(--accent-bright); border-top-color: transparent; animation: pg-spin .7s linear infinite; }
.pg__checks li.is-pass { opacity: 1; border-color: rgba(52, 211, 153, 0.35); }
.pg__checks li.is-pass .pg__dot { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.pg__checks li.is-pass .pg__dot::after { content: "✓"; }
.pg__checks li.is-fail { opacity: 1; border-color: rgba(248, 113, 113, 0.45); }
.pg__checks li.is-fail .pg__dot { border-color: var(--deny); background: var(--deny-bg); color: var(--deny); }
.pg__checks li.is-fail .pg__dot::after { content: "✗"; }
@keyframes pg-spin { to { transform: rotate(360deg); } }
.pg__decision p { font-size: 0.9rem; color: var(--soft); }
.pg__verdict { display: inline-block; font-weight: 700; font-size: 1.1rem; padding: 6px 14px; border-radius: 10px; margin-bottom: 12px; }
.pg__verdict--ok { color: var(--ok); background: var(--ok-bg); }
.pg__verdict--deny { color: var(--deny); background: var(--deny-bg); }
.pg__verdict--hold { color: var(--hold); background: var(--hold-bg); }
.tour__tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.tour__tabs button { font: inherit; font-size: 0.88rem; cursor: pointer; border: 1px solid var(--border); background: transparent; color: var(--muted); border-radius: 999px; padding: 7px 16px; }
.tour__tabs button[aria-selected="true"] { color: var(--text); border-color: rgba(75, 163, 236, 0.6); background: rgba(23, 132, 219, 0.12); }
.tour .shot { margin-top: 24px; }
.tour__pane { padding: 22px 24px; }
.tour__caption { margin: 16px 0 0; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 1000px) { .pg__stage { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .pg__scenarios button { min-width: 0; flex: 1 1 140px; } .shot__kpis { grid-template-columns: 1fr 1fr; } }
.pg__scenarios { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.pg__scenarios button { min-width: 0; }

/* ---------- v6: header wordmark, copied from the original site ---------- */
.brand { display: inline-flex; flex-direction: column; gap: 2px; line-height: 1.05; }
.brand__mark { display: inline-block; width: max-content; font-family: "Google Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif; font-size: 24px; font-weight: 500; letter-spacing: 0; background: linear-gradient(90deg, #1784db, #5423bb 60%, #b78410); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__mark--footer { font-size: 26px; margin-bottom: 4px; }
.brand__tag { margin-top: 0; font-family: "Google Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif; font-size: 9.9px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #8f9bac; }

/* ---------- v6: split auth pages ---------- */
.auth--split { display: grid; grid-template-columns: 1fr 1fr; place-items: stretch; padding: 0; min-height: calc(100vh - 64px); }
.auth__aside { position: relative; overflow: hidden; border-right: 1px solid var(--border); background: radial-gradient(600px 400px at 0% 0%, rgba(23, 132, 219, 0.14), transparent 60%), radial-gradient(500px 400px at 100% 100%, rgba(84, 35, 187, 0.16), transparent 60%), #020818; display: grid; align-items: center; padding: 56px; }
.auth__aside-inner { max-width: 460px; margin-left: auto; }
.auth__mark { font-size: 30px; }
.auth__tm { margin: 4px 0 28px; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.auth__aside h2 { font-size: 1.7rem; font-weight: 600; line-height: 1.25; margin-bottom: 26px; }
.auth__feed { display: grid; gap: 10px; margin-bottom: 28px; }
.auth__feed div { display: grid; grid-template-columns: 92px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(10, 16, 32, 0.6); }
.auth__feed .pill { grid-row: span 2; justify-self: start; }
.auth__feed b { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; color: var(--text); }
.auth__feed small { font-size: 0.8rem; color: var(--muted); }
.auth__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.auth__points li { font-size: 0.92rem; color: var(--soft); }
.auth__points li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 10px; }
.auth__main { display: grid; place-items: center; padding: 56px 24px; }
.auth--split .auth__card { max-width: 420px; background: transparent; border: 0; box-shadow: none; padding: 0; }
.auth--split .auth__card h1 { font-size: 1.8rem; font-weight: 600; }
.auth--split .auth__foot { text-align: left; border-top: 1px solid var(--border); padding-top: 18px; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; }
.field__link { font-size: 0.82rem; }
@media (max-width: 900px) { .auth--split { grid-template-columns: 1fr; } .auth__aside { display: none; } }

/* ---------- v6: Ask your AI ---------- */
.askai { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.askai h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 8px; }
.askai p { margin: 0; color: var(--muted); max-width: 520px; }
.askai__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.askai__btn { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border: 1px solid var(--border-strong); border-radius: 14px; background: #040815; color: var(--text); transition: border-color .15s, transform .15s; }
.askai__btn:hover { color: #fff; border-color: rgba(75, 163, 236, 0.6); transform: translateY(-1px); }
.askai__btn b { display: block; font-size: 0.92rem; font-weight: 600; }
.askai__btn small { font-size: 0.74rem; color: var(--muted); }
.askai__logo { width: 30px; height: 30px; padding: 5px; border-radius: 9px; background: #fff; color: #0d0d0d; flex-shrink: 0; }
.askai__logo--claude { background: #d97757; color: #fff; }
.askai__logo--pplx { background: #1f3a3d; color: #20c4cb; }
.askai--compact { grid-template-columns: 1fr; padding: 24px; }
@media (max-width: 900px) { .askai { grid-template-columns: 1fr; } }

/* ---------- v6: integration guide ---------- */
.hero--page { padding-bottom: 8px; }
.isteps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.isteps li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--panel); }
.isteps__n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(23, 132, 219, 0.16); color: var(--accent-bright); font-weight: 700; font-size: 0.9rem; }
.isteps h3 { font-size: 1rem; margin: 4px 0 6px; }
.isteps p { margin: 0 0 6px; color: var(--muted); font-size: 0.92rem; }
.code--inline { padding: 12px 16px; font-size: 0.8rem; margin-top: 8px; }
.code--tall { max-height: 420px; overflow: auto; }
.callout { padding: 14px 18px; border: 1px solid rgba(75, 163, 236, 0.35); border-left: 3px solid var(--accent-bright); border-radius: 10px; background: rgba(23, 132, 219, 0.07); color: var(--soft); font-size: 0.92rem; }
.filetabs { border: 1px solid var(--border-strong); border-radius: var(--radius-md); overflow: hidden; background: #040713; }
.filetabs__bar { display: flex; align-items: center; gap: 2px; padding: 6px 6px 0; border-bottom: 1px solid var(--border); background: rgba(10, 16, 32, 0.9); overflow-x: auto; }
.filetabs__bar [role="tab"] { font: 500 0.8rem var(--mono); color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 12px; cursor: pointer; white-space: nowrap; }
.filetabs__bar [role="tab"][aria-selected="true"] { color: #fff; border-bottom-color: var(--accent-bright); }
.filetabs__name { font: 500 0.8rem var(--mono); color: var(--soft); padding: 9px 12px; }
.filetabs__copy { margin-left: auto; font: 600 0.78rem var(--font); color: var(--soft); background: rgba(148, 163, 184, 0.1); border: 1px solid var(--border); border-radius: 8px; padding: 5px 12px; cursor: pointer; margin-bottom: 6px; }
.filetabs__copy + .filetabs__copy { margin-left: 6px; }
.filetabs__copy:hover { color: #fff; border-color: var(--border-strong); }
.filetabs .code { border: 0; border-radius: 0; max-height: 460px; overflow: auto; font-size: 0.8rem; }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.pkg { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); color: var(--text); }
.pkg:hover { border-color: rgba(75, 163, 236, 0.5); color: #fff; }
.pkg b { font-weight: 600; font-size: 0.92rem; }
.pkg code { font-size: 0.76rem; color: var(--muted); }
.numlist { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: var(--soft); }
.numlist li::marker { color: var(--accent-bright); font-weight: 700; }
.rulelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rulelist li { padding: 12px 14px 12px 40px; position: relative; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--soft); font-size: 0.92rem; }
.rulelist li::before { content: "!"; position: absolute; left: 14px; top: 12px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; color: var(--hold); background: var(--hold-bg); }
.docs__body code { overflow-wrap: anywhere; }

/* ---------- v6: play button centered in the terminal ---------- */
.demo-controls { justify-content: center; }
.term__body { position: relative; }
.term__screen { min-height: 260px; }
.term__play { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; display: flex; flex-direction: column; align-items: center; gap: 12px; background: none; border: 0; color: var(--text); font: 600 0.92rem var(--font); cursor: pointer; }
.term__play[hidden] { display: none; }
.term__play-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; padding-left: 5px; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, #1784db, #5423bb); box-shadow: 0 0 0 8px rgba(23, 132, 219, 0.14), 0 16px 40px rgba(23, 132, 219, 0.3); transition: transform .15s, box-shadow .15s; }
.term__play:hover .term__play-icon { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(23, 132, 219, 0.18), 0 16px 40px rgba(23, 132, 219, 0.4); }
.term__screen:not(:empty) + .term__play { background: rgba(2, 6, 15, 0.72); inset: 0; width: auto; height: auto; justify-content: center; backdrop-filter: blur(2px); }

/* ---------- v6: six attacks as a continuously scrolling row ---------- */
.marquee { overflow: hidden; padding: 4px 0 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; gap: 18px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }
.xattack { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.xattack__n { font-family: var(--mono); font-size: 0.78rem; color: var(--accent-bright); }
.xattack h3 { margin: 0; font-size: 1.1rem; font-weight: 600; }
.xattack__what { margin: 0 0 4px; color: var(--muted); font-size: 0.9rem; min-height: 2.8em; }
.xattack__bad, .xattack__good { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 0.86rem; color: var(--soft); }
.xattack__bad b, .xattack__good b { display: block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 3px; }
.xattack__bad { background: var(--deny-bg); border: 1px solid rgba(248, 113, 113, 0.22); }
.xattack__bad b { color: var(--deny); }
.xattack__good { background: var(--ok-bg); border: 1px solid rgba(52, 211, 153, 0.22); }
.xattack__good b { color: var(--ok); }
#threat-model .verifies { margin-top: 32px; }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; padding: 0 16px; }
  .marquee__track [aria-hidden="true"] { display: none; }
}
.term__screen:not(:empty) + .term__play { background: none; backdrop-filter: none; }
.term__screen + .term__play.is-done { width: max-content; height: max-content; margin: 0;  inset: auto 16px 16px auto; flex-direction: row; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(10, 16, 32, 0.92); font-size: 0.82rem; }
.term__screen + .term__play.is-done .term__play-icon { width: 28px; height: 28px; font-size: 0.7rem; padding-left: 2px; box-shadow: none; }
.askai__logo { width: 28px; height: 28px; padding: 0; border-radius: 0; background: none; color: var(--soft); }
.askai__logo--generic { padding: 2px; }
.askai__legal { grid-column: 1 / -1; margin: 0; font-size: 0.72rem; color: var(--dim); max-width: none; }
.askai__btn img.askai__logo { width: 40px; height: 40px; margin: -6px; }
.askai__btn img.askai__logo--claude { width: 26px; height: 26px; margin: 0 1px; }
.video--file { max-width: 1040px; margin: 0 auto; }
.video video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000411; }
