/* ==========================================================================
   Vidzee — site stylesheet
   Video streaming API & embed player for movies and TV shows.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #05070d;
  --bg-soft: #080b13;
  --surface: #0c101b;
  --surface-2: #111627;
  --surface-3: #171d31;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f6fb;
  --muted: #a2abc0;
  --dim: #6d778e;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-3: #fbbf24;
  --danger: #fb7185;
  --ok: #34d399;
  --grad: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(34, 211, 238, 0.12));
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --container: 1180px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
::selection { background: rgba(124, 92, 255, 0.35); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
strong { color: var(--text); }
code, pre, .mono { font-family: var(--font-mono); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container--narrow { max-width: 860px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.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); }
.grid--form { grid-template-columns: 1fr 1fr; }
.grid > *, .panel__grid > *, .field { min-width: 0; }
.stack > * + * { margin-top: 16px; }
.center { text-align: center; }
.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; } .mt-64 { margin-top: 64px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.btn--primary {
  background: var(--grad); color: #06070d;
  box-shadow: 0 12px 30px -12px rgba(124, 92, 255, 0.7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(34, 211, 238, 0.55); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--block { width: 100%; }
.btn svg { flex: none; }

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px; font-weight: 500; color: var(--muted);
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.badge--accent { color: #cdbcff; border-color: rgba(124, 92, 255, 0.4); background: rgba(124, 92, 255, 0.1); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); box-shadow: 0 8px 22px -8px rgba(124, 92, 255, 0.8);
}
.brand__mark svg { width: 16px; height: 16px; }
.brand__text span { color: var(--accent-2); }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav__links a { position: relative; padding: 6px 0; transition: color 0.2s ease; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--grad);
}
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; border-radius: 10px; }
.nav__toggle:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.nav__toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: 0.5; }
.orb--violet { width: 520px; height: 520px; background: rgba(124, 92, 255, 0.35); top: -180px; left: -120px; }
.orb--cyan { width: 460px; height: 460px; background: rgba(34, 211, 238, 0.22); top: 40px; right: -140px; }
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; line-height: 1.04;
  max-width: 940px; margin-top: 24px;
}
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { max-width: 680px; margin-top: 24px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
.hero__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin-top: 56px; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.stat span { font-size: 12px; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Cards ---------- */
.card {
  position: relative; padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)); }
.card h3 { font-size: 19px; margin-top: 18px; }
.card p { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line-strong); color: var(--accent-2);
}
.card__icon svg { width: 22px; height: 22px; }
.card--link::after { content: ""; position: absolute; inset: 0; }
.card--flat { background: var(--surface); }
.card--accent { border-color: rgba(124, 92, 255, 0.45); background: linear-gradient(180deg, rgba(124,92,255,0.12), rgba(34,211,238,0.05)); }

/* ---------- Section heading ---------- */
.sec-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.sec-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-top: 16px; }
.sec-head p { margin-top: 16px; color: var(--muted); font-size: 16.5px; }
.sec-head--left { text-align: left; margin-inline: 0; }

/* ---------- Code window ---------- */
.code {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  background: #070a12; border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.code__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.code__dot { width: 10px; height: 10px; border-radius: 50%; background: #2a3247; }
.code__dot:nth-child(1) { background: #ff5f57; } .code__dot:nth-child(2) { background: #febc2e; } .code__dot:nth-child(3) { background: #28c840; }
.code__label { margin-left: 8px; font-size: 11px; color: var(--dim); font-family: var(--font-mono); letter-spacing: 0.04em; }
.code pre { padding: 20px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; color: #dbe3f4; }
.code code { font-family: var(--font-mono); }
.tok-tag { color: #7dd3fc; } .tok-attr { color: #c4b5fd; } .tok-str { color: #fbbf24; } .tok-com { color: #64748b; } .tok-fn { color: #34d399; } .tok-keyword { color: #f472b6; } .tok-num { color: #fbbf24; }
.copy-btn {
  position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 7px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.06); color: var(--muted); font-size: 12px; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.copy-btn:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.copy-btn svg { width: 14px; height: 14px; }

/* ---------- Tabs / segmented ---------- */
.segmented { display: inline-flex; padding: 4px; gap: 4px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.segmented button {
  padding: 8px 16px; border: 0; border-radius: 7px; background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s ease, color 0.2s ease;
}
.segmented button[aria-selected="true"] { background: var(--grad); color: #06070d; }
.segmented button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text);
  font-family: var(--font-mono); font-size: 14px; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18); }
.input::placeholder { color: var(--dim); }
.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) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }

/* ---------- Player frame ---------- */
.player-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; background: #000; border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -30px rgba(124, 92, 255, 0.35);
}
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-frame__overlay {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(circle at 50% 40%, rgba(124,92,255,0.18), rgba(5,7,13,0.96) 70%);
  transition: opacity 0.35s ease;
}
.player-frame__overlay.is-hidden { opacity: 0; pointer-events: none; }
.play-btn {
  width: 68px; height: 68px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad); display: grid; place-items: center; color: #06070d;
  box-shadow: 0 16px 40px -12px rgba(124, 92, 255, 0.8); transition: transform 0.2s ease;
}
.play-btn:hover { transform: scale(1.06); }
.play-btn svg { width: 24px; height: 24px; margin-left: 3px; }

/* ---------- Generator panel ---------- */
.panel {
  border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  padding: 26px;
}
.panel__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; align-items: start; }
.url-box {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: #070a12; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-mono); font-size: 13px; color: var(--accent-2);
  overflow: hidden;
}
.url-box code { overflow-x: auto; white-space: nowrap; min-width: 0; }
.url-box button { background: none; border: 0; color: var(--dim); cursor: pointer; padding: 4px; }
.url-box button:hover { color: var(--text); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -14px; right: 8px; font-family: var(--font-display); font-size: 88px; font-weight: 700;
  color: rgba(255, 255, 255, 0.045); line-height: 1;
}
.step h3 { font-size: 18px; } .step p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.step code { font-size: 12.5px; color: var(--accent-2); background: rgba(34,211,238,0.08); padding: 2px 7px; border-radius: 5px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: rgba(255,255,255,0.035); font-family: var(--font-display); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,0.02); }
td code { font-size: 12.5px; color: var(--accent-2); background: rgba(34,211,238,0.08); padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.pill--req { background: rgba(251, 113, 133, 0.14); color: #fda4af; }
.pill--opt { background: rgba(52, 211, 153, 0.14); color: #6ee7b7; }
.pill--get { background: rgba(34, 211, 238, 0.14); color: #67e8f9; }

/* ---------- Comparison ---------- */
.compare td:first-child { color: var(--muted); }
.compare .yes { color: var(--ok); font-weight: 600; }
.compare .no { color: var(--danger); font-weight: 600; }
.compare .part { color: var(--accent-3); font-weight: 600; }
.compare th:first-child { width: 34%; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.faq details[open] { border-color: rgba(124, 92, 255, 0.45); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--muted); font-size: 16px; transition: transform 0.2s ease, background 0.2s ease;
}
.faq details[open] summary::after { content: "−"; background: var(--grad); color: #06070d; border-color: transparent; }
.faq details[open] summary { color: var(--text); }
.faq .faq__body { padding: 0 20px 20px; color: var(--muted); font-size: 14.5px; }
.faq .faq__body p + p { margin-top: 10px; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; font-size: 16px; color: var(--muted); }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--text); margin: 44px 0 14px; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { font-size: 1.15rem; color: var(--text); margin: 30px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.prose ul li { margin: 6px 0; }
.prose ol { list-style: decimal; padding-left: 22px; margin: 0 0 16px; }
.prose ol li { margin: 6px 0; }
.prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--text); }
.prose code { background: rgba(255,255,255,0.06); border: 1px solid var(--line); padding: 2px 6px; border-radius: 5px; font-size: 0.86em; color: #c4b5fd; }
.prose strong { color: var(--text); }
.prose .callout {
  border: 1px solid rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.07);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 20px 0; font-size: 14.5px;
}
.prose .callout b { color: var(--accent-3); }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--dim); margin-bottom: 28px; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden="true"] { opacity: 0.5; }
.crumbs .current { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 24px; padding: 64px 32px; text-align: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(34, 211, 238, 0.1)), var(--surface);
  border: 1px solid rgba(124, 92, 255, 0.35);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 20% 20%, rgba(124,92,255,0.25), transparent 45%), radial-gradient(circle at 80% 80%, rgba(34,211,238,0.2), transparent 45%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.cta-band p { max-width: 560px; margin: 14px auto 28px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { margin-top: 14px; font-size: 13.5px; color: var(--dim); max-width: 320px; }
.footer-col h3 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; font-size: 14px; color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 12.5px; color: var(--dim); }
.footer-legal { margin-top: 20px; font-size: 12px; color: #59637a; line-height: 1.7; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 24px); z-index: 150;
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text);
  font-size: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; color: var(--ok); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 720px; height: 420px; border-radius: 50%; filter: blur(110px);
  background: rgba(124, 92, 255, 0.18); pointer-events: none;
}
.page-hero__inner { position: relative; max-width: 820px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-top: 18px; }
.page-hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 680px; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.divider { height: 1px; background: var(--line); margin: 72px 0; }
.kbd { font-family: var(--font-mono); font-size: 11px; padding: 2px 6px; border-radius: 5px; background: rgba(255,255,255,0.07); border: 1px solid var(--line-strong); color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: rgba(255,255,255,0.03); }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent-2); }
.arrow-link:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: 2 / -1; }
  .panel__grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .nav__links {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 24px 24px; background: rgba(5, 7, 13, 0.97); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform 0.3s ease; z-index: 99;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 12px 8px; font-size: 16px; }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__toggle { display: block; }
  .nav__cta .btn--ghost { display: none; }
  .grid--2, .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  .hero__stats { gap: 18px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
  .footer-grid .footer-col:last-child { grid-column: auto; }
  .cta-band { padding: 48px 20px; }
}
@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .grid--form { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.35rem; }
  .btn { width: 100%; }
  .nav__cta .btn { width: auto; }
  .hero__actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .code pre { font-size: 12px; padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
