:root {
  --bg: #070b12;
  --surface: #0d1420;
  --surface-2: #131c2c;
  --border: #1e2a3d;
  --text: #e8edf4;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #7dd3fc;
  --accent-strong: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-glow: rgba(56, 189, 248, 0.35);
  --good: #34d399;
  --radius: 10px;
  --radius-sm: 6px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --font-display: "Clash Display", "General Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sans: "General Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: 2.75rem;
  --step-5: clamp(2.75rem, 6vw, 4.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-4);
}

h4 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }

p {
  margin: 0 0 var(--space-4);
  max-width: 65ch;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

code,
pre {
  font-family: var(--font-mono);
  font-size: var(--step--1);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100%;
  background: var(--accent);
  color: #06121c;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus {
  top: var(--space-4);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--space-24);
}

.section--tight {
  padding-block: var(--space-16);
}

.section__kicker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
}

.section__kicker::before {
  content: "// ";
  color: var(--muted);
}

.section__lede {
  color: var(--muted);
  font-size: var(--step-1);
}

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

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text);
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: -0.01em;
}

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

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: var(--space-2) var(--space-3);
  font-size: var(--step-0);
  cursor: pointer;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 500;
}

.nav__list a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav__list a[aria-current="page"] {
  color: var(--text);
}

@media (max-width: 640px) {
  .nav__toggle {
    display: inline-block;
  }

  .nav__list {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: var(--space-6);
  }

  .nav[data-open] .nav__list {
    display: flex;
  }
}

/* Buttons */

.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--step-0);
  border: 1px solid transparent;
  cursor: pointer;
}

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

.btn--primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #06121c;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.btn--primary:hover {
  box-shadow: 0 0 24px var(--accent-glow), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
  transition: border-color 200ms ease, background 200ms ease;
}

.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Hero */

.hero {
  position: relative;
  padding-block: calc(var(--space-24) * 1.15) var(--space-24);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: 720px;
  height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(14, 165, 233, 0.16), transparent);
  pointer-events: none;
}

.hero > .container {
  position: relative;
}

.hero--left {
  text-align: left;
}

.hero--left::after {
  left: 30%;
}

.hero p {
  margin-inline: auto;
  color: var(--muted);
  font-size: var(--step-1);
}

.hero--left p {
  margin-inline: 0;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

.hero--left .hero__actions {
  justify-content: flex-start;
}

/* Grids and cards */

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-8);
  transition: border-color 200ms ease, box-shadow 250ms ease, transform 200ms ease;
}

.card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 40px rgba(2, 8, 20, 0.6), 0 0 24px rgba(56, 189, 248, 0.06);
}

.card--link {
  display: block;
  color: var(--text);
}

.card--link:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(2, 8, 20, 0.7), 0 0 32px rgba(56, 189, 248, 0.1);
  text-decoration: none;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

/* Stat cards */

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6);
  text-align: center;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat__label {
  color: var(--muted);
  font-size: var(--step--1);
}

/* Tier table */

.tier-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tier-table caption {
  text-align: left;
  font-weight: 700;
  font-size: var(--step-1);
  padding: var(--space-4) var(--space-6);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.tier-table th,
.tier-table td {
  text-align: left;
  padding: var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--border);
}

.tier-table thead th {
  color: var(--muted);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tier-table tbody tr:last-child td {
  border-bottom: 0;
}

.tier-table .price {
  font-weight: 700;
  white-space: nowrap;
}

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
}

/* Code block */

.code-block {
  background: #060a10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-6);
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
}

.code-block code {
  color: #c8e1f5;
  white-space: pre;
}

.code-block .prompt {
  color: var(--accent);
  user-select: none;
}

/* Steps */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-6);
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6);
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

/* CTA band */

.cta-band {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-12);
  text-align: center;
}

.cta-band p {
  margin-inline: auto;
  color: var(--muted);
}

/* Logo band */

.logo-band {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  justify-content: center;
  align-items: center;
  color: var(--muted);
}

.logo-band span {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-6);
  font-size: var(--step--1);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-12);
  color: var(--muted);
  font-size: var(--step--1);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.site-footer h4 {
  color: var(--text);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer__legal {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

/* Nav CTA */

.nav__cta {
  padding: var(--space-2) var(--space-4);
  font-size: var(--step--1);
}

.nav__list .nav__cta {
  color: #06121c;
}

.nav__list .nav__cta:hover {
  color: #06121c;
  background: var(--accent);
}

/* Spec chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
}

.chips li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  padding: var(--space-1) var(--space-3);
  white-space: nowrap;
}

/* GPU product card */

.gpu-card {
  display: flex;
  flex-direction: column;
}

.gpu-card h3 {
  margin-bottom: var(--space-2);
}

.gpu-card .gpu-card__tag {
  color: var(--muted);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.gpu-card p {
  flex: 1;
  margin-bottom: var(--space-4);
}

.gpu-card .gpu-card__link {
  font-weight: 600;
  font-size: var(--step--1);
}

/* Feature split (text + visual/band) */

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 768px) {
  .feature-split {
    grid-template-columns: 1fr;
  }
}

.feature-split__visual {
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--step--1);
}

/* FAQ accordion (works without JS) */

.faq {
  display: grid;
  gap: var(--space-3);
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-6);
}

.faq details[open] {
  border-color: var(--accent);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

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

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: var(--step-1);
  font-weight: 400;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  color: var(--muted);
  margin: var(--space-3) 0 0;
}

/* Forms */

.form {
  display: grid;
  gap: var(--space-4);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 640px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

.form label {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: var(--step-0);
  padding: var(--space-3) var(--space-4);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form .form__note {
  color: var(--muted);
  font-size: var(--step--1);
  margin: 0;
}

.form .field-error {
  border-color: #f87171;
}

/* Doc link cards */

.doc-links h3 {
  font-size: var(--step-0);
}

/* Announcement bar */

.announce {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.16), rgba(56, 189, 248, 0.06), rgba(14, 165, 233, 0.16));
  border-bottom: 1px solid var(--border);
  font-size: var(--step--1);
  text-align: center;
  padding: var(--space-2) var(--space-4);
}

.announce a {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.announce a:hover {
  color: var(--accent);
  text-decoration: none;
}

.announce .announce__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  padding: 0 var(--space-2);
}

/* Gradient display text */

.text-gradient {
  background: linear-gradient(92deg, var(--accent-2) 0%, var(--accent) 45%, var(--accent-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Hero stat strip */

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: var(--space-16);
  border-block: 1px solid var(--border);
}

.hero-stats .stat {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  padding: var(--space-6) var(--space-4);
}

.hero-stats .stat:first-child {
  border-left: 0;
}

@media (max-width: 640px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats .stat {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .hero-stats .stat:first-child {
    border-top: 0;
  }
}

/* Entrance + scroll reveal motion */

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js .hero .section__kicker,
.js .hero h1,
.js .hero p,
.js .hero .hero__actions,
.js .hero .hero-stats {
  opacity: 0;
}

.is-loaded .hero .section__kicker {
  animation: hero-rise 600ms cubic-bezier(0.22, 1, 0.36, 1) 50ms forwards;
}

.is-loaded .hero h1 {
  animation: hero-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) 150ms forwards;
}

.is-loaded .hero p {
  animation: hero-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) 280ms forwards;
}

.is-loaded .hero .hero__actions {
  animation: hero-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) 400ms forwards;
}

.is-loaded .hero .hero-stats {
  animation: hero-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) 520ms forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 550ms cubic-bezier(0.22, 1, 0.36, 1), transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .hero .section__kicker,
  .js .hero h1,
  .js .hero p,
  .js .hero .hero__actions,
  .js .hero .hero-stats {
    opacity: 1;
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card,
  .card--link,
  .btn--primary,
  .btn--ghost {
    transition: none;
  }
}
