:root {
  color-scheme: dark;
  --bg: #111827;
  --bg-strong: #030712;
  --panel: #1f2937;
  --panel-deep: #0f172a;
  --text: #ffffff;
  --muted: #d1d5db;
  --soft: #9ca3af;
  --blue: #3b82f6;
  --blue-strong: #2563eb;
  --purple: #8b5cf6;
  --purple-strong: #7c3aed;
  --cyan: #22d3ee;
  --border: rgba(255,255,255,.12);
  --shadow: 0 28px 80px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
p, ul { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: 0; }
h1 {
  font-size: clamp(2.8rem, 5.4vw, 4.8rem);
  overflow-wrap: anywhere;
}
h2 { font-size: clamp(2.25rem, 5vw, 3.9rem); }
h3 { font-size: 1.45rem; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(31,41,55,.9);
  background: rgba(17,24,39,.94);
  backdrop-filter: blur(16px);
}
.brand { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.nav-links { display: flex; flex-wrap: wrap; gap: 1.5rem; color: var(--muted); font-size: .92rem; font-weight: 650; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #60a5fa; }
.nav-cta { display: inline-flex; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 1.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--blue);
  color: #fff;
  font-weight: 750;
  box-shadow: 0 18px 45px rgba(59,130,246,.28);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); background: var(--blue-strong); }
.button.secondary {
  border-color: var(--blue);
  background: transparent;
  color: #93c5fd;
  box-shadow: none;
}
.button.secondary:hover { background: var(--blue); color: #fff; }
.button.purple { background: var(--purple); box-shadow: 0 18px 45px rgba(139,92,246,.28); }
.button.purple:hover { background: var(--purple-strong); }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.section { padding: 4.5rem 1.5rem; }
.section.dark { background: var(--bg); }
.section.alt { background: #1f2937; }
.container { width: min(1180px, 100%); margin: 0 auto; }
.center { text-align: center; }
.eyebrow {
  margin-bottom: 1.25rem;
  color: #93c5fd;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.lede {
  max-width: 56rem;
  margin: 1.4rem auto 0;
  color: #e5e7eb;
  font-size: clamp(1.18rem, 2.4vw, 1.55rem);
}
.copy {
  max-width: 64rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.12rem;
}
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 73px);
  background: linear-gradient(135deg, #1e40af 0%, #111827 48%, #000 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 20%, rgba(96,165,250,.35), transparent 28%),
    radial-gradient(circle at 80% 16%, rgba(139,92,246,.34), transparent 30%),
    radial-gradient(circle at 72% 78%, rgba(34,211,238,.16), transparent 28%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 5rem 0 4rem;
}
.hero-stage {
  position: relative;
  min-height: 620px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
  gap: 3rem;
  align-items: center;
  opacity: 0;
  transform: translateX(26px);
  pointer-events: none;
  transition: opacity .65s ease, transform .65s ease;
}
.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.slide-copy h1 { max-width: 760px; }
.slide-copy .lede { margin-left: 0; margin-right: 0; }
.slide-art {
  min-height: 430px;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: rgba(17,24,39,.72);
  box-shadow: var(--shadow);
}
.hero-controls {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}
.hero-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(147,197,253,.4);
  border-radius: 999px;
  background: rgba(17,24,39,.72);
  color: #fff;
  cursor: pointer;
}
.hero-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: .55rem; }
.hero-dot {
  width: 2.1rem;
  height: .45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(209,213,219,.42);
  cursor: pointer;
}
.hero-dot.is-active { background: linear-gradient(90deg, var(--blue), var(--purple)); }

.grid { display: grid; gap: 1.5rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  min-height: 100%;
  padding: 1.6rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 1rem;
  background: #111827;
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}
.alt .card { background: #111827; }
.dark .card { background: #1f2937; }
.card h3 { margin-bottom: .65rem; }
.card p, .card li { color: var(--muted); }
.tag {
  display: inline-flex;
  margin-bottom: .9rem;
  color: #93c5fd;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, 1fr);
  gap: 3rem;
  align-items: center;
}
.list { display: grid; gap: .9rem; margin-top: 1.5rem; padding: 0; list-style: none; color: var(--muted); }
.list li { position: relative; padding-left: 1.35rem; }
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62rem;
  width: .48rem;
  height: .48rem;
  border-radius: 999px;
  background: #60a5fa;
}
.page-hero {
  padding: 5.5rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #1e40af 0%, #111827 52%, #000 100%);
}
.page-hero.purple { background: linear-gradient(135deg, #6d28d9 0%, #1e40af 48%, #000 100%); }
.page-hero .copy { margin-top: 1.4rem; font-size: 1.28rem; }
.cta {
  text-align: center;
  padding: 4.5rem 1.5rem;
  background: #111827;
}
.footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(31,41,55,.9);
  background: #111827;
  color: #6b7280;
  text-align: center;
  font-size: .9rem;
}

.product-art {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 1.5rem;
}
.product-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(59,130,246,.34), transparent 26%),
    radial-gradient(circle at 35% 72%, rgba(139,92,246,.24), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.08), transparent);
}
.hub, .memory-core, .runtime-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border: 1px solid rgba(147,197,253,.55);
  border-radius: 999px;
  background: rgba(17,24,39,.86);
  color: #fff;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 0 70px rgba(59,130,246,.34);
}
.node {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 86px;
  min-height: 48px;
  padding: .55rem .8rem;
  border: 1px solid rgba(147,197,253,.32);
  border-radius: 999px;
  background: rgba(31,41,55,.92);
  color: #e5e7eb;
  font-weight: 750;
  font-size: .88rem;
}
.node::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,.72), transparent);
  transform-origin: left center;
  z-index: -1;
}
.n1 { left: 9%; top: 16%; }
.n2 { right: 9%; top: 16%; }
.n3 { left: 7%; bottom: 20%; }
.n4 { right: 7%; bottom: 20%; }
.n5 { left: 38%; top: 7%; }
.n6 { left: 38%; bottom: 7%; }
.n1::after { transform: rotate(28deg); }
.n2::after { transform: rotate(152deg); }
.n3::after { transform: rotate(-28deg); }
.n4::after { transform: rotate(208deg); }
.n5::after { transform: rotate(90deg); width: 150px; }
.n6::after { transform: rotate(-90deg); width: 150px; }

.memory-panel, .runtime-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .8rem;
}
.memory-row, .runtime-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: .9rem;
  background: rgba(17,24,39,.72);
}
.memory-row strong, .runtime-row strong { color: #fff; }
.memory-row span, .runtime-row span { color: var(--muted); }

.contact-panel {
  padding: 1.6rem;
  border-radius: 1rem;
  background: #111827;
  box-shadow: var(--shadow);
}
.contact-panel label { display: grid; gap: .45rem; margin-bottom: 1rem; color: #fff; font-weight: 700; }
.contact-panel input, .contact-panel textarea, .contact-panel select {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: .8rem;
  padding: .85rem .95rem;
  background: #030712;
  color: #fff;
  font: inherit;
}
.contact-panel textarea { min-height: 130px; resize: vertical; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (max-width: 980px) {
  .nav { align-items: flex-start; }
  .nav-links { width: 100%; order: 3; gap: 1rem; }
  .nav-cta { display: none; }
  .hero { min-height: auto; }
  .hero-stage { min-height: 790px; }
  .hero-slide { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .slide-copy .lede { margin-left: auto; margin-right: auto; }
  .slide-copy .actions { justify-content: center; }
  .grid.four, .grid.three, .grid.two, .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section, .cta { padding: 3.75rem 1rem; }
  .hero-inner { width: min(100% - 2rem, 1180px); padding: 4rem 0 3rem; }
  .hero-stage { min-height: 850px; }
  .slide-art, .product-art { min-height: 360px; }
  .node { min-width: 74px; min-height: 42px; font-size: .78rem; }
  .hub, .memory-core, .runtime-core { width: 120px; height: 120px; margin: -60px 0 0 -60px; }
  .button { width: 100%; }
  .hero-controls { grid-template-columns: 42px 1fr 42px; }
  .memory-row, .runtime-row { grid-template-columns: 1fr; }
}
