@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Poppins-400-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Poppins-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Poppins-500-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Poppins-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Poppins-600-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Poppins-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Poppins-700-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Poppins-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'MesloLGS NF';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/MesloLGS-NF-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'MesloLGS NF';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/MesloLGS-NF-Bold.ttf') format('truetype');
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 2px; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--fg-bright);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li + li { margin-top: .3em; }

::selection { background: var(--accent); color: #fff; }

:root {
  --bg:           #0b0b10;
  --bg-elevated:  #14141c;
  --bg-deep:      #07070b;
  --bg-code:      rgba(11, 11, 16, 0.42);
  --fg:           #d8d8e4;
  --fg-bright:    #f4f4f8;
  --muted:        #7d7d92;
  --border:       #1f1f2a;
  --border-hot:   #2a2a3a;

  --accent:       #ff2d95;
  --accent-2:     #00e5ff;
  --accent-glow:  rgba(255, 45, 149, 0.18);
  --accent-2-glow:rgba(80, 130, 255, 0.20);

  --pass:         #4ade80;
  --fail:         #ff4d6d;
  --pending:      #fbbf24;
  --skipped:      #94a3b8;

  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'MesloLGS NF', ui-monospace, "SF Mono", "Menlo", "Consolas",
               "DejaVu Sans Mono", monospace;

  --max-w: 1180px;
  --radius: 10px;
  --radius-sm: 6px;

  --shadow-soft: 0 12px 40px -12px rgba(0, 0, 0, 0.55);
  --shadow-hot:  0 0 0 1px var(--border-hot), 0 18px 48px -16px var(--accent-glow);

  --t-fast: 120ms ease;
  --t-med:  240ms cubic-bezier(.2,.7,.2,1);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 18% 12%, var(--accent-glow), transparent 38%),
    radial-gradient(circle at 82% 90%, var(--accent-2-glow), transparent 42%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
}

main, header, footer { position: relative; z-index: 1; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 760px) {
  .container { padding: 0 1.75rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 1.5rem; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  background: rgba(11, 11, 16, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--fg-bright);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  font-family: var(--font-mono);
}

.brand:hover { color: var(--fg-bright); }

.brand-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--accent-2);
  font-weight: 700;
}

.brand-mark svg { width: 100%; height: 100%; }

.brand-name { color: var(--fg-bright); }
.brand-name b { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav a {
  color: var(--fg);
  font-size: .94rem;
  padding: .35rem .1rem;
  position: relative;
  transition: color var(--t-fast);
}
.nav a:hover { color: var(--fg-bright); }
.nav a.active { color: var(--accent); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--accent);
}

.nav-cta {
  padding: .45rem .9rem !important;
  border: 1px solid var(--border-hot);
  border-radius: var(--radius-sm);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.nav-cta:hover { border-color: var(--accent-2); }
.nav-cta-icon { display: inline-flex; width: 1em; height: 1em; }
.nav-cta-icon svg { width: 100%; height: 100%; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-hot);
  border-radius: var(--radius-sm);
  color: var(--fg);
  padding: .4rem .55rem;
  margin-left: auto;
  font-family: var(--font-mono);
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1rem 1.5rem;
    background: rgba(11, 11, 16, 0.96);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: .8rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav-cta { display: inline-block; margin-top: .75rem; margin-bottom: .25rem; align-self: flex-start; }
}

main { padding-bottom: 4rem; }

section { padding: 4rem 0; }
section.tight { padding: 2.5rem 0; }

.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.section-head .eyebrow { color: var(--accent); font-family: var(--font-mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; }
.section-head h2 { margin-top: .4rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.hero {
  padding: 5rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.hero-grid > * { min-width: 0; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: .35rem .7rem;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent-2);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-2);
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .accent-2 { color: var(--accent-2); }

.hero-lede {
  font-size: 1.15rem;
  color: var(--fg);
  max-width: 32rem;
  margin-bottom: 1.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .9rem;
  font-family: var(--font-mono);
}
.hero-meta span b { color: var(--fg-bright); font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  font-family: var(--font-sans);
  border: 1px solid transparent;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast);
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 24px -8px var(--accent-glow), 0 0 0 1px var(--accent);
}
.btn-primary:hover { background: #ff4ea7; color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-hot);
}
.btn-ghost:hover { color: var(--accent-2); border-color: var(--accent-2); }

.terminal {
  background: var(--bg-code);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-hot);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--fg);
  position: relative;
  max-width: 100%;
  min-width: 0;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .85rem;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  font-size: .76rem;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
}
.terminal-bar > * { min-width: 0; }
.terminal-dots {
  display: inline-flex;
  gap: 5px;
  margin-right: .6rem;
}
.terminal-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-hot);
}
.terminal-dots span:first-child { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: .78rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.terminal-title .accent { color: var(--accent); }

.terminal-body {
  padding: 1.1rem 1.2rem;
  white-space: pre;
  overflow-x: auto;
  max-height: 540px;
  tab-size: 2;
}

.terminal-body .prompt::before { content: "$ "; color: var(--accent); }

.terminal + p { margin-top: 1.75rem; }

.back-to-top {
  position: fixed;
  right: 2.5rem;
  bottom: 2.5rem;
  z-index: 50;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.back-to-top[hidden] { display: none; }
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: rgba(255, 45, 149, 0.12); }
.back-to-top svg { width: 1.1rem; height: 1.1rem; }

.cursor {
  display: inline-block;
  color: #fff;
  animation: blink 1s steps(1) infinite;
}
.cursor::before { content: "|"; }
@keyframes blink { 50% { opacity: 0; } }

.code {
  background: var(--bg-code);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  overflow: hidden;
  position: relative;
  margin: 1.25rem 0;
  max-width: 100%;
  min-width: 0;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .45rem .75rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  font-size: .75rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.code pre {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  white-space: pre;
  color: var(--fg);
  tab-size: 2;
}

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

.code-copy {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: .72rem;
  font-family: var(--font-mono);
  padding: .15rem .5rem;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.code-copy:hover { color: var(--accent-2); border-color: var(--accent-2); }
.code-copy.copied { color: var(--pass); border-color: var(--pass); }

p code, li code, td code {
  background: rgba(255, 45, 149, 0.08);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: .08em .35em;
  border-radius: 4px;
  border: 1px solid rgba(255, 45, 149, 0.18);
}

.tok-comment { color: #5d5d70; font-style: italic; }
.tok-string  { color: #f8c963; }
.tok-regex   { color: #f8c963; }
.tok-number  { color: #fff; }
.tok-dsl     { color: var(--accent); font-weight: 600; }
.tok-keyword { color: var(--accent); }
.tok-pair    { color: var(--accent-2); }
.tok-method  { color: var(--accent-2); }
.tok-type    { color: #c5a3ff; }
.tok-var     { color: #e8e8f0; }
.tok-builtin { color: #c5a3ff; }
.tok-op      { color: #a89eb8; }

.out-pass   { color: var(--pass); }
.out-fail   { color: var(--fail); }
.out-pending { color: var(--pending); }
.out-skipped { color: var(--skipped); }
.out-arrow  { color: var(--accent-2); }
.out-muted  { color: var(--muted); }
.out-num    { color: var(--accent); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
  transition: border-color var(--t-med), transform var(--t-med);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 50%, var(--accent-glow) 100%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity var(--t-med);
  pointer-events: none;
}

.card:hover { border-color: var(--border-hot); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-glow), var(--accent-2-glow));
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: .9rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  border: 1px solid var(--border-hot);
}

.card h3 {
  margin: 0 0 .35rem;
  font-size: 1.1rem;
  letter-spacing: -0.005em;
}

.card p {
  color: var(--muted);
  font-size: .94rem;
  margin: 0;
}

.card a.card-link {
  display: inline-block;
  margin-top: .8rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--accent-2);
}
.card a.card-link:hover { color: var(--fg-bright); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}
.feature > * { min-width: 0; }
.feature.reverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.feature.reverse .feature-copy { order: 2; }
.feature.reverse .feature-code { order: 1; }

@media (max-width: 880px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature.reverse .feature-copy { order: 0; }
  .feature.reverse .feature-code { order: 0; }
}

.feature-copy .eyebrow {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: .4rem;
}

.feature-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: .6rem; }
.feature-copy p { color: var(--muted); }
.feature-copy ul { color: var(--muted); }
.feature-copy ul strong { color: var(--fg-bright); font-weight: 600; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.tab {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  color: var(--muted);
  padding: .55rem 1rem;
  font-family: var(--font-mono);
  font-size: .85rem;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  transition: color var(--t-fast);
  margin-bottom: -1px;
}
.tab:hover { color: var(--fg); }
.tab.active {
  color: var(--accent);
  border-color: var(--border-hot);
  background: var(--bg-code);
}
.tab.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.html-preview {
  background: #fff;
  color: #222;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .9rem;
  line-height: 1.55;
  margin: 0;
}
.html-preview h3 { color: #111; margin: 0 0 .8rem; font-size: 1rem; }
.html-preview .pass { color: #1f8a4c; }
.html-preview .fail { color: #c1133b; }
.html-preview .pending { color: #b6791f; }
.html-preview details { margin: .4rem 0; }
.html-preview summary { cursor: pointer; font-weight: 600; }
.html-preview summary::-webkit-details-marker { color: var(--accent); }
.html-preview .summary { padding: .5rem .75rem; background: #f0f4f8; border-radius: 4px; font-weight: 600; }
.html-preview .summary.has-failures { background: #fde6ed; color: #c1133b; }
.html-preview .example { padding-left: 1.2rem; font-family: var(--font-mono); font-size: .82rem; }
.html-preview pre.failure-detail { background: #fde6ed; color: #6f0a25; padding: .5rem .7rem; border-radius: 4px; margin: .3rem 0; font-family: var(--font-mono); font-size: .8rem; white-space: pre-wrap; }

.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  margin: 1.2rem 0 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: table;
}
@media (max-width: 760px) {
  .api-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.api-table th, .api-table td {
  padding: .65rem .9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.api-table th {
  background: rgba(255,255,255,0.02);
  font-weight: 600;
  color: var(--fg-bright);
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.api-table tr:last-child td { border-bottom: 0; }
.api-table td:first-child { color: var(--accent); font-family: var(--font-mono); white-space: nowrap; }

.callout {
  background: linear-gradient(135deg, rgba(255, 45, 149, 0.06), rgba(0, 229, 255, 0.04));
  border: 1px solid var(--border-hot);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  color: var(--fg);
  font-size: .95rem;
}
.callout strong { color: var(--accent); }
.callout.cyan { border-left-color: var(--accent-2); }
.callout.cyan strong { color: var(--accent-2); }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
  margin-top: 4rem;
  background: var(--bg-deep);
  color: var(--muted);
  font-size: .9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-grid h4 {
  color: var(--fg-bright);
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .14em;
  margin-bottom: .8rem;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .4rem; }
.footer-grid a { color: var(--fg); font-size: .9rem; }
.footer-grid a:hover { color: var(--accent-2); }

.footer-brand p { max-width: 22rem; font-size: .9rem; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .78rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(.2,.7,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor { animation: none; }
  html { scroll-behavior: auto; }
}

.page-header {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.page-header .eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: .6rem;
}
.page-header h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .8rem; }
.page-header p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 44rem;
  margin: 0;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.2rem;
  margin: 1.4rem 0 0;
  font-family: var(--font-mono);
  font-size: .85rem;
}
.subnav a { color: var(--muted); }
.subnav a:hover { color: var(--accent-2); }

.anchor-section { padding: 3rem 0; border-top: 1px dashed var(--border); }
.anchor-section:first-of-type { border-top: 0; padding-top: 0; }
.anchor-section h2 { display: inline-block; }
.anchor-section h2 .hash {
  color: var(--accent);
  margin-right: .3em;
  font-family: var(--font-mono);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .6rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-hot);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.pill.accent { color: var(--accent); border-color: rgba(255, 45, 149, 0.4); background: var(--accent-glow); }
.pill.cyan   { color: var(--accent-2); border-color: rgba(0, 229, 255, 0.4); background: var(--accent-2-glow); }

.install-block {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: var(--bg-code);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-hot);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--fg-bright);
  max-width: 32rem;
}
.install-block .dollar { color: var(--accent); user-select: none; }
.install-block .cmd { flex: 1; color: var(--fg-bright); }
.install-block .cmd b { color: var(--accent-2); font-weight: 400; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 1.2rem;
  border-radius: var(--radius-sm);
}
.stat .n {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
}
.stat .l {
  color: var(--muted);
  font-size: .85rem;
  margin-top: .4rem;
  font-family: var(--font-mono);
}

.cov-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
  margin: .4rem 0 .8rem;
}
.cov-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--pass), var(--accent-2));
}
.cov-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: .88rem;
}
.cov-row .pct { color: var(--accent-2); }
