/* omni — product site
   Palette follows the brand mark: deep navy, cyan → indigo → pink. */

:root {
  --bg: #05060f;
  --bg-soft: #0b1026;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1ff;
  --muted: #98a1c6;
  --dim: #6b74a0;

  --cyan: #22d3ee;
  --indigo: #818cf8;
  --pink: #e879f9;
  --lime: #a3e635;
  --amber: #fbbf24;
  --sky: #38bdf8;
  --rose: #fb7185;
  --violet: #a78bfa;

  --grad: linear-gradient(115deg, var(--cyan) 0%, var(--indigo) 48%, var(--pink) 100%);
  --grad-soft: linear-gradient(115deg, rgba(34, 211, 238, 0.16), rgba(129, 140, 248, 0.16), rgba(232, 121, 249, 0.16));

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;
  --nav-h: 68px;

  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
          Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code, pre { font-family: var(--mono); }

code {
  font-size: 0.88em;
  padding: 0.15em 0.42em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--stroke);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 820px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--indigo);
  color: #05060f;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ───────────── background ───────────── */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(129, 140, 248, 0.22), transparent 60%),
    radial-gradient(900px 600px at 10% 10%, rgba(34, 211, 238, 0.14), transparent 60%),
    linear-gradient(180deg, #0b1026 0%, #05060f 45%, #07070d 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 26s ease-in-out infinite alternate;
}
.blob-1 {
  width: 620px; height: 620px;
  top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.55), transparent 65%);
}
.blob-2 {
  width: 700px; height: 700px;
  top: 5%; right: -220px;
  background: radial-gradient(circle, rgba(232, 121, 249, 0.45), transparent 65%);
  animation-delay: -8s;
}
.blob-3 {
  width: 560px; height: 560px;
  bottom: -200px; left: 35%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.45), transparent 65%);
  animation-delay: -16s;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(40px, -30px, 0) scale(1.08); }
  100% { transform: translate3d(-30px, 40px, 0) scale(0.95); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  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 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

/* ───────────── nav ───────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.is-stuck {
  background: rgba(5, 6, 15, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--stroke);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 9px; }
.brand img { border-radius: 9px; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.nav-links { display: flex; gap: 26px; font-size: 0.92rem; }
.nav-links a { color: var(--muted); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 38px;
  padding: 0 9px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s 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); }

/* ───────────── buttons ───────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 15px; font-size: 0.87rem; }

.btn-primary {
  background: var(--grad);
  color: #07070d;
  box-shadow: 0 8px 26px -10px rgba(129, 140, 248, 0.8);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -12px rgba(232, 121, 249, 0.7);
}

.btn-ghost {
  background: var(--panel);
  border-color: var(--stroke-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: var(--panel-2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ───────────── hero ───────────── */

.hero { padding: 74px 0 96px; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong);
  background: var(--panel);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(163, 230, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.hero h1 .grad-text { display: block; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 1.09rem;
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 30px;
}
.lede em { color: var(--text); font-style: normal; font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.install-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(6, 8, 20, 0.7);
  max-width: 100%;
  overflow: hidden;
}
.install-label { margin: 16px 0 8px; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); }
.install-line + .install-line { margin-top: 10px; }
.install-line code {
  background: none;
  border: none;
  padding: 0;
  min-width: 0;
  font-size: 0.85rem;
  color: var(--cyan);
  white-space: normal;
  word-break: break-all;
  line-height: 1.55;
}

.copy-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.copy-btn:hover { color: var(--text); background: var(--panel-2); border-color: var(--stroke-strong); }
.copy-btn.is-done { color: var(--lime); border-color: rgba(163, 230, 53, 0.4); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 38px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--stroke);
}
.hero-stats div { margin: 0; }
.hero-stats dt { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); }
.hero-stats dd {
  margin: 4px 0 0;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats .unit { font-size: 0.85rem; font-weight: 600; margin-left: 3px; }
.nowrap { white-space: nowrap; }

/* ───────────── hero visual ───────────── */

.hero-visual { position: relative; }

.panel {
  border-radius: 22px;
  border: 1px solid var(--stroke-strong);
  background: linear-gradient(180deg, rgba(18, 22, 48, 0.92), rgba(8, 10, 24, 0.94));
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}
.panel-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
}
.traffic { display: flex; gap: 6px; }
.traffic i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.traffic i:nth-child(1) { background: #ff5f57; }
.traffic i:nth-child(2) { background: #febc2e; }
.traffic i:nth-child(3) { background: #28c840; }
.panel-path { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.panel-badge {
  margin-left: auto;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--lime);
  background: rgba(163, 230, 53, 0.12);
  border: 1px solid rgba(163, 230, 53, 0.28);
}

.panel-body { padding: 18px; }
.panel-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--dim);
  margin-bottom: 10px;
}

.role-rows { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 7px; }
.role-rows li {
  display: grid;
  grid-template-columns: 10px 60px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
}
.role-rows b { color: var(--c); font-weight: 600; }
.role-rows code {
  background: none; border: none; padding: 0;
  font-size: 0.74rem; color: var(--dim); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.role-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 10px var(--c);
}
.pill {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  background: color-mix(in srgb, var(--c) 12%, transparent);
}

.stream { border-top: 1px solid var(--stroke); padding-top: 16px; }
.bubble {
  width: fit-content;
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 13px;
  font-size: 0.84rem;
  margin-bottom: 8px;
}
.bubble.user {
  margin-left: auto;
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.18), rgba(129, 140, 248, 0.2));
  border: 1px solid rgba(129, 140, 248, 0.32);
}
.bubble.bot {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  color: var(--muted);
}
.caret {
  display: inline-block;
  width: 7px; height: 15px;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--pink);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.float-chip {
  position: absolute;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--stroke-strong);
  background: rgba(10, 13, 30, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  animation: bob 6s ease-in-out infinite alternate;
}
.chip-a { top: -26px; right: -14px; color: var(--cyan); }
.chip-b { bottom: -24px; left: -18px; color: var(--pink); animation-delay: -3s; }
@keyframes bob {
  from { transform: translateY(-6px); }
  to   { transform: translateY(6px); }
}

/* ───────────── sections ───────────── */

.section { padding: 96px 0; }
.section-film { padding-top: 0; }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head-left { margin-left: 0; text-align: left; }
.kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 750; }
.section-head .sub { margin-top: 14px; color: var(--muted); font-size: 1.03rem; }

.playground-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 44px;
  align-items: center;
}

/* ───────────── flow ───────────── */

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(16, 20, 44, 0.7), rgba(8, 10, 24, 0.6));
}
.flow-col { display: grid; gap: 10px; }
.flow-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-align: center;
}
.chip {
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.87rem;
  font-weight: 600;
  text-align: center;
}
.chip-app { color: var(--text); }
.chip small { font-weight: 500; color: var(--dim); font-size: 0.76rem; }
.chip-grid { display: grid; gap: 8px; }
.chip-grid .chip {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  color: var(--c);
  border-color: color-mix(in srgb, var(--c) 30%, transparent);
  background: color-mix(in srgb, var(--c) 10%, transparent);
}
.gateway-box {
  padding: 22px 16px;
  border-radius: 14px;
  text-align: center;
  background: var(--grad-soft);
  border: 1px solid rgba(129, 140, 248, 0.4);
}
.gateway-title { display: block; font-weight: 700; font-size: 1.02rem; }
.gateway-sub { display: block; margin-top: 4px; font-size: 0.76rem; color: var(--muted); }

.flow-arrow { display: grid; place-items: center; }
.flow-arrow span {
  display: block;
  width: 54px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(129, 140, 248, 0.2), var(--indigo));
  position: relative;
  overflow: hidden;
}
.flow-arrow span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: sweep 2.4s linear infinite;
}
@keyframes sweep {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* ───────────── playground ───────────── */

.feature-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.feature-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 0.96rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
}
.feature-list b { color: var(--text); }

.shot {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke-strong);
  box-shadow: 0 40px 90px -46px rgba(0, 0, 0, 0.95);
}
.shot img { width: 100%; height: auto; }
.shot figcaption {
  padding: 12px 18px;
  font-size: 0.82rem;
  color: var(--dim);
  border-top: 1px solid var(--stroke);
  background: rgba(8, 10, 24, 0.8);
}

.film {
  margin: 0 auto;
  max-width: 960px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke-strong);
  box-shadow: 0 40px 90px -46px rgba(0, 0, 0, 0.95);
  background: #000;
}
.film video { display: block; width: 100%; height: auto; }

/* Screenshot theme: both images ship, the toggle shows one. */
[data-theme-img="light"] { display: none; }
#playground[data-shot-theme="light"] [data-theme-img="light"] { display: block; }
#playground[data-shot-theme="light"] [data-theme-img="dark"] { display: none; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  font-size: 0.82rem;
  color: var(--dim);
}
.theme-toggle span { padding: 0 8px 0 10px; }
.theme-toggle button {
  font: inherit;
  color: var(--dim);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.theme-toggle button.is-active { color: var(--text); background: var(--panel-2); }

/* ───────────── features ───────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.feature {
  padding: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: var(--panel);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.feature h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
  color: var(--c);
}
.feature p { color: var(--muted); font-size: 0.92rem; }
.feature code { white-space: normal; }

/* ───────────── steps ───────────── */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--panel);
}
.step-num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #07070d;
  background: var(--grad);
}
.step-body { min-width: 0; }
.step-body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }

/* ───────────── code ───────────── */

.code-block {
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: rgba(3, 4, 12, 0.75);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px 9px 16px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.025);
}
.code-lang {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.code-block pre {
  margin: 0;
  padding: 18px;
  max-width: 100%;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.7;
}
.code-block pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  white-space: pre;
  color: #cfe3ff;
}
.code-block pre .c { color: var(--dim); }
.code-block pre .k { color: var(--pink); }
.code-block pre .s { color: var(--lime); }
.code-block pre .f { color: var(--cyan); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tab {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dim);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-color: var(--cyan); }
.tab-panel[hidden] { display: none; }
.playground-models { margin-top: 72px; }

/* ───────────── faq ───────────── */

.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: var(--panel);
  padding: 4px 22px;
  transition: border-color 0.25s ease;
}
.faq details[open] { border-color: rgba(129, 140, 248, 0.4); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--indigo);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding-bottom: 18px; color: var(--muted); font-size: 0.96rem; }

/* ───────────── cta ───────────── */

.cta-section { padding-bottom: 40px; }
.cta {
  text-align: center;
  padding: 64px 32px;
  border-radius: 26px;
  border: 1px solid var(--stroke-strong);
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(129, 140, 248, 0.28), transparent 70%),
    var(--grad-soft);
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 200px at 20% 100%, rgba(34, 211, 238, 0.2), transparent 70%);
  pointer-events: none;
}
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 780; }
.cta p { margin: 12px 0 26px; color: var(--muted); }
.cta .hero-cta { justify-content: center; margin-bottom: 0; position: relative; }

/* ───────────── footer ───────────── */

.footer { border-top: 1px solid var(--stroke); padding: 34px 0; margin-top: 60px; }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.footer-brand img { border-radius: 7px; }
.footer-links { display: flex; gap: 20px; font-size: 0.92rem; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-note { margin-left: auto; font-size: 0.85rem; color: var(--dim); }

/* ───────────── reveal ───────────── */

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .caret, .flow-arrow span::after, .float-chip, .eyebrow .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ───────────── responsive ───────────── */

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 46px; }
  .hero-visual { max-width: 560px; }
  .playground-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 10px; }
  .flow-arrow { transform: rotate(90deg); height: 34px; }
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 18px;
    background: rgba(5, 6, 15, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--stroke);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .nav-toggle { display: flex; }
  .nav-actions .btn-ghost { display: none; }
  .hero { padding: 48px 0 70px; }
  .section { padding: 70px 0; }
  .step { grid-template-columns: minmax(0, 1fr); }
  .footer-note { margin-left: 0; width: 100%; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .install-line code { font-size: 0.78rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .cta { padding: 44px 20px; }
}
