/* ==========================================================================
   Nestbox landing page
   Dark-first, self-contained, no build step and no JavaScript.
   ========================================================================== */

:root {
  --base: #0B1020;
  --surface: #131A2B;
  --border: #253049;
  --foreground: #E8EDF7;
  --muted: #8B97B3;
  --primary: #22D3EE;
  --secondary: #8B5CF6;
  --accent: #F59E0B;
  --success: #34D399;
  --warning: #FBBF24;
  --danger: #F87171;

  --radius: 12px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --container: 1120px;
  --section-space: clamp(4.5rem, 10vw, 8rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background:
    radial-gradient(70rem 36rem at 50% -12%, rgba(34, 211, 238, 0.08), transparent 70%),
    radial-gradient(50rem 30rem at 100% 8%, rgba(139, 92, 246, 0.06), transparent 70%),
    var(--base);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--foreground);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  margin: 0;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

strong {
  color: var(--foreground);
  font-weight: 600;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

::selection {
  background: var(--primary);
  color: var(--base);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.text-link {
  color: var(--primary);
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, var(--primary) 45%, transparent);
}

.text-link:hover {
  text-decoration-color: var(--primary);
}

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--foreground);
  font-size: 0.85rem;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Shared type and section rhythm
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.7);
}

.section {
  position: relative;
  padding-block: var(--section-space);
  scroll-margin-top: 5.5rem;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-head p:last-child {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.7;
  max-width: 42rem;
}

.section-head-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 1.5rem 4rem;
  max-width: none;
  align-items: end;
}

.section-head-split .section-aside {
  padding-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--base);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--primary), 0 10px 30px -12px rgba(34, 211, 238, 0.55);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 7%, transparent);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: var(--base);
  background: color-mix(in srgb, var(--base) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--foreground);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  overflow: hidden;
  border-radius: 10px;
  background: var(--base);
  box-shadow: 0 0 0 1px var(--border);
}

.brand-mark img {
  width: 160%;
  height: 160%;
  max-width: none;
  margin: -30%;
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-inline-start: auto;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease;
}

.site-nav a:hover {
  color: var(--foreground);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 0.82rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 0.55rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 150ms ease;
}

.mobile-menu[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.menu-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 60;
  min-width: 13.5rem;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1.5rem 3.5rem -1.75rem rgba(11, 16, 32, 0.95);
}

.menu-links {
  display: grid;
}

.menu-links a {
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  color: var(--foreground);
  font-size: 0.88rem;
  text-decoration: none;
}

.menu-links a:hover {
  background: var(--base);
  color: var(--primary);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6rem) var(--section-space);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(58% 48% at 50% 0%, rgba(34, 211, 238, 0.15), transparent 72%),
    radial-gradient(38% 38% at 88% 18%, rgba(139, 92, 246, 0.11), transparent 72%),
    linear-gradient(rgba(37, 48, 73, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 48, 73, 0.3) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(11, 16, 32, 0.9), transparent 82%);
  mask-image: linear-gradient(to bottom, rgba(11, 16, 32, 0.9), transparent 82%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: -0.045em;
  line-height: 1.03;
  margin-bottom: 1.35rem;
}

.text-grad {
  background-image: linear-gradient(100deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 40rem;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.72;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.actions .btn {
  min-width: 10.5rem;
}

.compat {
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.compat strong {
  color: var(--foreground);
  font-weight: 500;
}

.hero-media {
  position: relative;
  max-width: 64rem;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 3rem 7rem -4rem rgba(34, 211, 238, 0.35);
}

.stats + .hero-media {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.hero-img {
  width: 100%;
  aspect-ratio: 1376 / 768;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
  padding: 2.6rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(11, 16, 32, 0.92), rgba(11, 16, 32, 0));
  color: var(--muted);
  font-size: 0.8rem;
}

.caption-kicker {
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 1px;
  max-width: 60rem;
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}

.stat {
  padding: 1.15rem 1.35rem;
  background: var(--surface);
}

.stat dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat dd {
  margin: 0.2rem 0 0;
  color: var(--foreground);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Cards and feature grid
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  gap: 1rem;
  list-style: none;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
  transform: translateY(-2px);
}

.card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.68;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--base);
  color: var(--primary);
}

.icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.card-num,
.way-num,
.step-num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.card-num {
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* --------------------------------------------------------------------------
   AI firewall
   -------------------------------------------------------------------------- */

.section-firewall {
  border-block: 1px solid var(--border);
  background: var(--surface);
  background:
    radial-gradient(38rem 24rem at 82% 8%, rgba(139, 92, 246, 0.07), transparent 70%),
    color-mix(in srgb, var(--surface) 55%, var(--base));
}

.firewall-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 2rem 2.5rem;
  align-items: start;
}

.firewall-copy > p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.check-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.check-mark {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  margin-top: 0.22rem;
  border: 1px solid color-mix(in srgb, var(--success) 45%, var(--border));
  border-radius: 50%;
  background: color-mix(in srgb, var(--success) 10%, transparent);
}

.check-mark::after {
  content: "";
  position: absolute;
  top: 0.18rem;
  left: 0.34rem;
  width: 0.28rem;
  height: 0.5rem;
  border-right: 1.5px solid var(--success);
  border-bottom: 1.5px solid var(--success);
  transform: rotate(42deg);
}

.firewall-copy code {
  padding: 0.1em 0.32em;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--base);
  color: var(--foreground);
  font-size: 0.82em;
}

.code-panel {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--base);
  box-shadow: 0 2rem 5rem -3.5rem rgba(139, 92, 246, 0.35);
}

.code-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.code-lang,
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--base);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.code-lang {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 32%, var(--border));
}

.code-file {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-dim {
  color: var(--muted);
}

.pill-success {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 38%, var(--border));
}

.code-pre {
  margin: 0;
  padding: 1.2rem 1.15rem;
  overflow-x: auto;
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.82;
  tab-size: 2;
}

.code-pre:focus-visible {
  outline-offset: -3px;
}

.code-pre code {
  font-size: inherit;
}

.tok-key {
  color: var(--primary);
}

.tok-str {
  color: var(--foreground);
}

.tok-num {
  color: var(--secondary);
}

.tok-accent {
  color: var(--accent);
}

.tok-success {
  color: var(--success);
}

.code-caption {
  padding: 0.7rem 1.1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.74rem;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 0;
  list-style: none;
}

.workflow-step {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.step-num {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.workflow-step h3 {
  margin-bottom: 0.25rem;
  font-size: 0.92rem;
  letter-spacing: -0.015em;
}

.workflow-step p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Four ways to run it
   -------------------------------------------------------------------------- */

.ways-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.way {
  min-height: 100%;
}

.way-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.way-num {
  color: var(--primary);
}

.way h3 {
  margin-bottom: 0.55rem;
  font-size: 1.12rem;
}

.way p {
  font-size: 0.9rem;
}

.way code {
  padding: 0.08em 0.3em;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--base);
  color: var(--foreground);
  font-size: 0.82em;
}

.way .way-meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.55;
}

.way-meta .meta-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--foreground);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.run-note {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: 52rem;
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.run-note-mark {
  flex: none;
  color: var(--primary);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   Nemotron table
   -------------------------------------------------------------------------- */

.table-wrap {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.models {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.models thead th {
  padding: 0.8rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background: var(--base);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
  vertical-align: bottom;
}

.th-note {
  display: block;
  color: var(--warning);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
}

.models tbody th,
.models tbody td {
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  vertical-align: top;
}

.models tbody tr:first-child th,
.models tbody tr:first-child td {
  border-top: 0;
}

.models tbody th {
  color: var(--foreground);
  font-weight: 550;
  letter-spacing: -0.01em;
}

.models tbody tr {
  transition: background-color 150ms ease;
}

.models tbody tr:hover {
  background: color-mix(in srgb, var(--primary) 4%, transparent);
}

.models td:nth-child(2) {
  color: var(--foreground);
}

.models td:nth-child(3),
.models td:nth-child(4) {
  white-space: nowrap;
}

.table-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  max-width: 52rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.table-note-mark {
  flex: none;
  color: var(--warning);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   API
   -------------------------------------------------------------------------- */

.api-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
}

.api-card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.api-card:hover {
  border-color: color-mix(in srgb, var(--primary) 48%, var(--border));
  transform: translateY(-2px);
  text-decoration: none;
}

.api-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.api-kicker {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.api-arrow {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
}

.api-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.api-card p {
  flex: 1;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.api-path {
  align-self: flex-start;
  margin-top: 1.25rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--base);
  color: var(--primary);
  font-size: 0.73rem;
  line-height: 1.4;
}

.api-note {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.75rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 28%, var(--base));
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.85fr);
  gap: 2.5rem 3.5rem;
}

.footer-brand .brand {
  margin-bottom: 0.9rem;
}

.footer-brand .brand-mark {
  width: 2rem;
  height: 2rem;
}

.footer-blurb {
  max-width: 17rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 2rem 1.5rem;
}

.footer-title {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 0.5rem;
  list-style: none;
}

.footer-list a {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-list a:hover {
  color: var(--foreground);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem 1.75rem;
  margin-top: 2.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 0.2em;
}

.footer-bottom a:hover {
  color: var(--foreground);
  text-decoration-color: var(--primary);
}

.disclaimer {
  flex-basis: 100%;
  color: var(--foreground);
  font-size: 0.8rem;
  font-weight: 500;
}

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

@media (max-width: 1080px) {
  .ways-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  }
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .header-docs {
    display: none;
  }

  .firewall-grid,
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .models {
    display: block;
  }

  .models thead {
    display: none;
  }

  .models tbody {
    display: grid;
    gap: 0.75rem;
  }

  .models tbody tr {
    display: block;
    padding: 0.4rem 1rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .models tbody th {
    display: block;
    padding: 0.7rem 0 0.5rem;
    border-top: 0;
    font-size: 1rem;
  }

  .models tbody td {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.35rem 0;
    border-top: 0;
    white-space: normal;
  }

  .models tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    line-height: 1.8;
    text-transform: uppercase;
  }

  .models tbody tr:hover {
    background: var(--surface);
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), 100% - 1.75rem);
  }

  .hero {
    padding-top: 2.75rem;
  }

  .hero-title {
    font-size: clamp(2.3rem, 12vw, 3.1rem);
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions .btn {
    width: 100%;
  }

  .stat {
    padding: 0.95rem 1.05rem;
  }

  .card {
    padding: 1.25rem;
  }

  .hero-caption {
    position: static;
    padding: 0.65rem 0.85rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
    font-size: 0.74rem;
  }

  .caption-kicker {
    font-size: 0.6rem;
  }

  .firewall-copy > p {
    font-size: 0.93rem;
  }

  .code-pre {
    padding: 1rem 0.85rem;
    font-size: 0.7rem;
  }

  .code-file {
    flex-basis: 100%;
    order: 3;
  }

  .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 0.9rem;
  }

  .models tbody td {
    grid-template-columns: 7.25rem minmax(0, 1fr);
    gap: 0.6rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 0.95rem;
  }

  .workflow {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ==========================================================================
   Screenshot frames — used by the landing page and the install guide.
   ========================================================================== */

.frame {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #0A0F1D;
  box-shadow: 0 24px 60px rgba(3, 7, 18, 0.55);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.frame:hover {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 28px 70px rgba(3, 7, 18, 0.68);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--border);
  background: #121A2B;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #33415C;
}

.frame .dot:nth-of-type(1) { background: rgba(248, 113, 113, 0.72); }
.frame .dot:nth-of-type(2) { background: rgba(251, 191, 36, 0.72); }
.frame .dot:nth-of-type(3) { background: rgba(52, 211, 153, 0.72); }

.frame-title {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

.frame .zoom { display: block; }

.frame img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #0A0F1D;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.screen {
  margin: 0;
  min-width: 0;
}

.screen a { display: block; text-decoration: none; }

.screen img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.screen figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.screen figcaption strong { color: var(--foreground); font-weight: 600; }

@media (max-width: 900px) {
  .screen-grid { grid-template-columns: minmax(0, 1fr); }
}

.screens-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}
