:root {
  color-scheme: dark;
  --court-bg: #070b14;
  --court-mahogany: #1b110d;
  --panel: rgba(16, 22, 36, 0.86);
  --panel-warm: rgba(28, 19, 15, 0.82);
  --panel-strong: rgba(12, 18, 30, 0.96);
  --line: rgba(214, 178, 114, 0.22);
  --line-cyan: rgba(56, 206, 212, 0.28);
  --text: #f3f5fa;
  --muted: #b6c0d4;
  --gold: #e8be72;
  --gold-bright: #f7d99c;
  --cyan: #2ad4c8;
  --blue: #4f8ef7;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.52);
  --radius: 18px;
  --header-h: 72px;
}

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

html {
  min-inline-size: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  min-block-size: 100dvh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.62;
  background:
    radial-gradient(circle at 14% 6%, rgba(232, 190, 114, 0.14), transparent 36rem),
    radial-gradient(circle at 86% 14%, rgba(42, 212, 200, 0.11), transparent 34rem),
    radial-gradient(circle at 50% 92%, rgba(92, 46, 28, 0.22), transparent 42rem),
    linear-gradient(180deg, #060911 0%, #090e1a 52%, #0c0a0d 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-inline-size: 100%; block-size: auto; }
code, pre { font-family: "Cascadia Code", Consolas, "Liberation Mono", monospace; }
code {
  color: #cbeeff;
  background: rgba(42, 212, 200, 0.08);
  border: 1px solid rgba(42, 212, 200, 0.18);
  padding: 0.1em 0.42em;
  border-radius: 6px;
  font-size: 0.88em;
}
pre {
  margin: 0;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  background: rgba(5, 9, 18, 0.92);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.55;
}
pre code { background: none; border: none; padding: 0; color: #dceeff; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: #111;
  border-radius: 8px;
  font-weight: 700;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(8, 12, 22, 0.88);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-inline-size: 1200px;
  margin-inline: auto;
  min-block-size: var(--header-h);
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.site-brand img {
  border-radius: 10px;
  filter: drop-shadow(0 2px 10px rgba(232, 190, 114, 0.25));
}
.site-brand strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--gold-bright);
}
.site-brand small {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.site-nav a:hover {
  color: var(--text);
  background: rgba(232, 190, 114, 0.1);
  border-color: var(--line);
}
.site-nav a[aria-current="page"] {
  color: var(--gold-bright);
  background: rgba(232, 190, 114, 0.15);
  border-color: rgba(232, 190, 114, 0.45);
}

/* Layout */
.section-shell {
  max-inline-size: 1200px;
  margin-inline: auto;
  padding: 2.5rem 1.25rem;
}
.section-shell + .section-shell {
  border-top: 1px solid rgba(214, 178, 114, 0.12);
}

.hero-banner {
  margin: 0 0 1.75rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(232, 190, 114, 0.34);
  box-shadow: var(--shadow);
}
.hero-banner img { inline-size: 100%; }

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.status-dot {
  inline-size: 9px;
  block-size: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
h1 span { color: var(--gold-bright); }
h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  letter-spacing: -0.02em;
  color: var(--gold-bright);
}
h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
  color: #fff;
}
.lead {
  max-inline-size: 74ch;
  margin: 0 0 1.35rem;
  font-size: 1.07rem;
  color: var(--muted);
}

/* Badges & CTA */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.pill {
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: rgba(232, 190, 114, 0.08);
  color: var(--gold-bright);
}
.pill-cyan {
  border-color: var(--line-cyan);
  background: rgba(42, 212, 200, 0.1);
  color: #9bf6ef;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.18s, background 0.18s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--gold); }
.btn-primary {
  background: linear-gradient(135deg, #d7a34b, #b67d27);
  color: #0b0e14;
  border-color: var(--gold-bright);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-sm {
  padding: 0.4rem 0.78rem;
  font-size: 0.82rem;
  border-radius: 9px;
}

/* Cards & Grids — equal-height aligned boxes across every page */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.15rem; align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.15rem; align-items: stretch; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; align-items: stretch; }

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.35rem;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}
.card-warm {
  background: linear-gradient(180deg, rgba(34, 22, 16, 0.88), rgba(14, 19, 32, 0.92));
  border-color: rgba(232, 190, 114, 0.34);
}
.card p { margin: 0 0 0.75rem; color: var(--muted); font-size: 0.95rem; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0.4rem 0 0; padding-left: 1.15rem; color: var(--muted); font-size: 0.92rem; }
.card li + li { margin-top: 0.35rem; }

.role-tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-strong);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th, td {
  padding: 0.78rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(214, 178, 114, 0.12);
  vertical-align: top;
}
th {
  color: var(--gold-bright);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(28, 19, 15, 0.72);
}
tr:last-child td { border-bottom: none; }
tr.ref-row { background: rgba(42, 212, 200, 0.06); }

/* Video embed card — matches sibling card height cleanly */
.video-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: var(--panel);
  border: 1px solid rgba(232, 190, 114, 0.35);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-frame {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 290px;
  aspect-ratio: 16 / 9;
  background: #060911;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-local-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 50% 35%, rgba(232, 190, 114, 0.16), transparent 65%),
    linear-gradient(165deg, #141928 0%, #090d17 100%);
}
.video-local-fallback h3 { margin: 0.35rem 0 0.4rem; color: var(--gold-bright); }
.video-local-fallback p { margin: 0 0 1rem; max-width: 40ch; font-size: 0.88rem; color: var(--muted); }
.video-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
  background: rgba(18, 14, 13, 0.9);
  font-size: 0.84rem;
  color: var(--muted);
}

/* Benchmark model cards & page thumbnails */
.model-bench-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin-bottom: 1.35rem;
}
.model-bench-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.metric-chip {
  padding: 0.32rem 0.7rem;
  border-radius: 10px;
  background: rgba(7, 12, 24, 0.86);
  border: 1px solid rgba(214, 178, 114, 0.22);
  font-size: 0.82rem;
}
.metric-chip strong { color: var(--gold-bright); }

.page-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.9rem;
  margin-top: 0.85rem;
}
.thumb-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem;
  background: rgba(6, 10, 20, 0.9);
  border: 1px solid rgba(214, 178, 114, 0.25);
  border-radius: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.16s, border-color 0.18s, box-shadow 0.18s;
}
.thumb-btn:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}
.thumb-btn img {
  width: 100%;
  max-width: 210px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #fff;
}
.thumb-btn span { font-size: 0.8rem; font-weight: 600; }

/* Native Lightbox Dialog */
dialog.lightbox {
  max-width: min(94vw, 960px);
  max-height: 92vh;
  padding: 0;
  border: 1px solid rgba(232, 190, 114, 0.48);
  border-radius: 16px;
  background: #0b101d;
  color: var(--text);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.78);
}
dialog.lightbox::backdrop {
  background: rgba(3, 6, 14, 0.82);
  backdrop-filter: blur(6px);
}
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 15, 13, 0.95);
}
.lightbox-body {
  padding: 1.25rem;
  overflow: auto;
  max-height: calc(92vh - 64px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #141926;
}
.lightbox-body img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Bars for visual benchmark comparison */
.bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 0.35rem;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}
.site-footer a { color: var(--gold-bright); }

/* Spacing helpers (CSP-safe, no inline styles) */
.mt-sm { margin-top: 0.75rem; }
.mt-md { margin-top: 1.15rem; }

/* Copyable code / prompt blocks */
.copy-wrap {
  position: relative;
  margin-top: 0.55rem;
}
.copy-wrap pre {
  padding-right: 5.2rem;
}
.copy-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(16, 22, 36, 0.94);
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, color 0.16s;
}
.copy-btn:hover {
  border-color: var(--cyan);
  color: #fff;
  background: rgba(42, 212, 200, 0.16);
}
.copy-btn[data-copied="true"] {
  border-color: var(--cyan);
  color: #071216;
  background: var(--cyan);
}

/* Friendly Install Tabs & Stepper */
.install-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}
.install-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, color 0.16s;
}
.install-tab:hover {
  color: var(--text);
  border-color: var(--gold);
}
.install-tab[aria-selected="true"] {
  color: #0b0e14;
  background: linear-gradient(135deg, #e2b058, #be842b);
  border-color: var(--gold-bright);
}
.install-panel[hidden] { display: none; }

.step-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.step-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2rem;
  block-size: 2rem;
  border-radius: 999px;
  background: rgba(232, 190, 114, 0.16);
  border: 1px solid rgba(232, 190, 114, 0.48);
  color: var(--gold-bright);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step-body strong { color: #fff; }
.step-body p { margin: 0.2rem 0 0; font-size: 0.9rem; color: var(--muted); }

.reassure-banner {
  margin-top: 1.15rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--line-cyan);
  background: rgba(42, 212, 200, 0.08);
  color: #d8f8f5;
  font-size: 0.93rem;
}
.reassure-banner strong { color: var(--gold-bright); }

/* Plain-English AI Chat Examples (Antigravity & Codex) */
.chat-example {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(6, 10, 20, 0.88);
  border: 1px solid rgba(214, 178, 114, 0.24);
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(214, 178, 114, 0.14);
  font-size: 0.78rem;
  color: var(--muted);
}
.client-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line-cyan);
  background: rgba(42, 212, 200, 0.12);
  color: #9bf6ef;
}
.client-pill-gold {
  border-color: rgba(232, 190, 114, 0.42);
  background: rgba(232, 190, 114, 0.12);
  color: var(--gold-bright);
}
.chat-bubble {
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.chat-bubble-user {
  background: rgba(232, 190, 114, 0.12);
  border: 1px solid rgba(232, 190, 114, 0.3);
  color: #fff8ea;
}
.chat-bubble-ai {
  background: rgba(42, 212, 200, 0.08);
  border: 1px solid rgba(42, 212, 200, 0.22);
  color: #dbe8f8;
}
.chat-role {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.chat-bubble-ai .chat-role { color: var(--cyan); }

/* Optional collapsible CLI command disclosure */
.cli-disclosure {
  margin-top: auto;
  padding-top: 0.85rem;
}
.cli-disclosure summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
}
.cli-disclosure summary::-webkit-details-marker { display: none; }
.cli-disclosure summary::before {
  content: "▸";
  color: var(--gold);
  transition: transform 0.15s;
}
.cli-disclosure[open] summary::before { transform: rotate(90deg); }
.cli-disclosure summary:hover { color: var(--gold-bright); }
.cli-disclosure pre {
  margin-top: 0.55rem;
  font-size: 0.8rem;
}

/* Copyable Starter Prompt Cards */
.prompt-quote {
  margin: 0.35rem 0 0.85rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: rgba(6, 10, 20, 0.86);
  border-left: 3px solid var(--gold);
  color: #f6f2e9;
  font-size: 0.9rem;
  font-style: italic;
}
.card-footer-actions {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* CSP-safe text, link, bar & filter utilities */
.text-gold { color: var(--gold-bright); }
.text-cyan { color: var(--cyan); }
.text-muted { color: var(--muted); }
.link-gold { color: var(--gold-bright); text-decoration: underline; }
.link-cyan { color: var(--cyan); text-decoration: underline; }
.cta-row-tight { margin: 0; }
.lightbox-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.bar-100 { width: 100%; }
.bar-998 { width: 99.8%; }
.bar-936 { width: 93.6%; }
.bar-866 { width: 86.6%; }
.bar-798 { width: 79.8%; }
.tool-filter-wrap { margin-bottom: 0.85rem; }
.tool-filter-label {
  font-size: 0.88rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.35rem;
}
.tool-filter-input {
  width: min(100%, 420px);
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(6, 10, 20, 0.92);
  color: #fff;
}
