:root {
  --bg: #070b14;
  --panel: #0e1729;
  --panel-soft: #121d32;
  --text: #f8fafc;
  --muted: #aeb8c8;
  --line: rgba(255, 255, 255, 0.12);
  --red: #e50914;
  --red-dark: #9f0710;
  --gold: #f5c542;
  --blue: #76a9ff;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(229, 9, 20, 0.2), transparent 32rem),
    linear-gradient(180deg, #08101f 0%, var(--bg) 38%, #06080f 100%);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.hero {
  padding: 130px 28px 96px;
  position: relative;
  background:
    linear-gradient(rgba(7, 11, 20, 0.78), rgba(7, 11, 20, 0.9)),
    radial-gradient(circle at 82% 18%, rgba(245, 197, 66, 0.16), transparent 22rem),
    linear-gradient(135deg, #111b36, #070b14);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1120px, 100%);
  margin: 0 auto;
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.nav a:hover {
  color: var(--text);
  border-color: rgba(229, 9, 20, 0.65);
}

.hero-content {
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.section-kicker {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-copy {
  max-width: 820px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 23px);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 14px 42px rgba(229, 9, 20, 0.32);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: 78px 0;
  border-bottom: 1px solid var(--line);
}

.section-header {
  max-width: 800px;
  margin-bottom: 30px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.045em;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

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

.section-header p:last-child,
.text-card p {
  font-size: 18px;
}

.stats-grid,
.insight-grid,
.visual-grid,
.code-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card,
.insight-card,
.visual-card,
.impact-card,
.text-card,
.value-list article,
.code-grid > div {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 24px;
}

.stat-card span {
  display: block;
  color: var(--text);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.stat-card p {
  margin: 8px 0 0;
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.text-card {
  padding: 28px;
}

.text-card p {
  margin: 0;
}

.insight-card {
  padding: 26px;
  min-height: 220px;
}

.insight-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--red);
  background: rgba(229, 9, 20, 0.12);
  font-weight: 900;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-cloud span {
  padding: 11px 16px;
  border-radius: 999px;
  color: #f8fafc;
  background: rgba(118, 169, 255, 0.12);
  border: 1px solid rgba(118, 169, 255, 0.25);
  font-weight: 800;
}

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

.impact-card {
  padding: 26px;
}

.impact-card h3 {
  color: var(--gold);
}

.impact-card p {
  margin-bottom: 0;
}

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

.visual-card {
  overflow: hidden;
}

.visual-card img {
  display: block;
  width: 100%;
  background: white;
}

.visual-card div {
  padding: 24px;
}

.visual-card p {
  margin-bottom: 0;
}

.featured-card {
  grid-column: span 2;
}

.pipeline,
.architecture {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  overflow-x: auto;
}

.pipeline span,
.arch-node {
  min-width: 150px;
  padding: 16px 18px;
  text-align: center;
  color: var(--text);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 900;
  position: relative;
}

.pipeline span:not(:last-child)::after,
.arch-node:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 50%;
  width: 24px;
  height: 2px;
  background: var(--red);
}

.arch-node.accent {
  color: #111827;
  background: linear-gradient(135deg, var(--gold), #fff0a8);
}

.value-list {
  display: grid;
  gap: 16px;
}

.value-list article {
  padding: 24px;
}

.value-list p {
  margin-bottom: 0;
}

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

.code-grid > div {
  padding: 22px;
}

pre {
  margin: 16px 0 0;
  padding: 18px;
  white-space: pre-wrap;
  overflow: auto;
  color: #dbeafe;
  background: #050814;
  border: 1px solid var(--line);
  border-radius: 14px;
}

footer {
  padding: 38px 20px;
  text-align: center;
  background: #050814;
}

footer p {
  margin: 0 0 10px;
  color: var(--text);
  font-weight: 900;
}

footer span {
  color: var(--muted);
  font-size: 14px;
}

footer a {
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 900px) {
  .stats-grid,
  .insight-grid,
  .impact-grid,
  .visual-grid,
  .code-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .featured-card {
    grid-column: auto;
  }

  .hero {
    padding-top: 112px;
    padding-bottom: 72px;
  }

  .pipeline,
  .architecture {
    align-items: stretch;
    flex-direction: column;
  }

  .pipeline span,
  .arch-node {
    width: 100%;
  }

  .pipeline span:not(:last-child)::after,
  .arch-node:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .nav {
    position: static;
    transform: none;
  }

  .hero {
    padding: 18px 18px 64px;
  }

  .hero-content {
    padding-top: 48px;
  }

  main {
    width: min(100% - 24px, 1120px);
  }

  .section {
    padding: 54px 0;
  }
}
