:root {
  color-scheme: dark;
  --background: #07090f;
  --background-2: #0c1020;
  --surface: rgb(255 255 255 / 6%);
  --surface-strong: rgb(255 255 255 / 10%);
  --text: #eef4ff;
  --muted: #9aa8c7;
  --line: rgb(255 255 255 / 13%);
  --accent: #7c5cff;
  --accent-2: #00e5ff;
  --accent-3: #72ff9d;
  --danger: #ff4d8d;
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 5%, rgb(124 92 255 / 34%), transparent 32rem),
    radial-gradient(circle at 80% 0%, rgb(0 229 255 / 20%), transparent 28rem),
    linear-gradient(180deg, var(--background), #05060a 64%);
  color: var(--text);
}

body::before {
  background-image:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(180deg, #000, transparent 72%);
  pointer-events: none;
  position: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

code,
pre,
button,
select {
  font: 500 14px/1.6 "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

button,
.button,
select {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 4px;
}

.hero {
  min-height: 100vh;
  padding: 24px;
  position: relative;
}

.nav {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgb(7 9 15 / 62%);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 14px 18px;
  position: sticky;
  top: 18px;
  z-index: 5;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand span {
  color: var(--accent-2);
}

.nav-links {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 18px;
}

.nav-links a:hover {
  color: var(--text);
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  margin: 108px auto 0;
  max-width: 1180px;
  position: relative;
}

.eyebrow {
  color: var(--accent-2);
  font: 800 12px/1.4 "Space Mono", ui-monospace, monospace;
  letter-spacing: 0.18em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.6rem, 9vw, 8.8rem);
  letter-spacing: -0.1em;
  line-height: 0.82;
  margin-bottom: 32px;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  letter-spacing: -0.08em;
  line-height: 0.92;
  margin-bottom: 24px;
}

h3 {
  font-size: 18px;
  letter-spacing: -0.04em;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
  max-width: 780px;
}

.metric-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  max-width: 720px;
}

.metric-strip div {
  background: linear-gradient(180deg, var(--surface-strong), rgb(255 255 255 / 4%));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.metric-strip strong {
  color: var(--accent-3);
  display: block;
  font: 800 28px/1 "Space Mono", ui-monospace, monospace;
}

.metric-strip span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 8px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button,
button,
select {
  background: rgb(255 255 255 / 7%);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  padding: 12px 18px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button:hover,
button:hover,
select:hover {
  border-color: var(--accent-2);
  box-shadow: 0 0 28px rgb(0 229 255 / 16%);
  transform: translateY(-2px);
}

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #02040a;
  font-weight: 800;
}

.terminal,
.code-card,
.cards article,
.snippet,
.benchmark-panel,
.table-wrap {
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgb(255 255 255 / 9%), rgb(255 255 255 / 4%));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 120px rgb(0 0 0 / 38%);
}

.terminal {
  overflow: hidden;
  position: relative;
}

.terminal::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  content: "";
  height: 2px;
  inset: 0 0 auto;
  position: absolute;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 18px;
}

.terminal-bar span {
  background: var(--danger);
  border-radius: 50%;
  display: block;
  height: 12px;
  width: 12px;
}

.terminal-bar span:nth-child(2) {
  background: #ffd166;
}

.terminal-bar span:nth-child(3) {
  background: var(--accent-3);
}

pre {
  line-height: 1.8;
  margin: 0;
  overflow-x: auto;
  padding: 24px;
}

.copy-button {
  bottom: 18px;
  position: absolute;
  right: 18px;
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 96px 24px;
  position: relative;
}

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

.cards article {
  padding: 28px;
}

.cards p,
.footer,
td,
.selected-note {
  color: var(--muted);
}

.split {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
}

.snippet-list {
  display: grid;
  gap: 14px;
}

.snippet {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px;
}

.snippet code {
  color: var(--accent-3);
  overflow-x: auto;
  white-space: nowrap;
}

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

.code-card {
  overflow: hidden;
}

.code-card header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
}

.benchmark-panel {
  display: grid;
  gap: 18px;
  margin: 32px 0 22px;
  padding: 18px;
}

caption {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.benchmark-controls {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.benchmark-env {
  color: rgb(154 168 199 / 72%);
  font: 500 12px/1.6 "Space Mono", ui-monospace, monospace;
  margin: -4px 0 0;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 8px;
}

select {
  background-color: #10172a;
  border-radius: 16px;
  color: var(--text);
  width: 100%;
}

.table-wrap {
  overflow-x: auto;
}

.benchmark-results {
  margin-bottom: 22px;
}

table {
  border-collapse: collapse;
  min-width: 860px;
  width: 100%;
}

caption {
  caption-side: top;
  padding: 18px 18px 0;
  text-align: left;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 18px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text);
}

tbody tr {
  transition: background-color 160ms ease, opacity 160ms ease;
}

tbody tr:hover {
  background: rgb(255 255 255 / 5%);
}

tbody tr.is-hidden {
  display: none;
}

.footer {
  margin: 0 auto;
  max-width: 1180px;
  padding: 48px 24px 72px;
}

.toast {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  bottom: 24px;
  color: #02040a;
  font-weight: 800;
  padding: 12px 18px;
  position: fixed;
  right: 24px;
}

@media (max-width: 860px) {
  .hero-grid,
  .split,
  .cards,
  .code-grid,
  .metric-strip,
  .benchmark-controls {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .nav {
    align-items: flex-start;
    border-radius: 24px;
    flex-direction: column;
  }
}
