:root {
  color-scheme: dark;
  --bg: #09111d;
  --bg-soft: #101929;
  --panel: rgba(14, 22, 35, 0.92);
  --panel-strong: rgba(10, 17, 28, 0.98);
  --border: rgba(144, 169, 214, 0.18);
  --border-strong: rgba(159, 187, 234, 0.34);
  --text: #edf3fb;
  --muted: #b2bfd7;
  --accent: #90b6eb;
  --accent-strong: #d6e5fb;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  --grid: rgba(160, 194, 255, 0.05);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top center, rgba(111, 150, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #0a111b 0%, #09111d 38%, #07101a 100%);
  color: var(--text);
  font-family: "Segoe UI", "Inter", "SF Pro Text", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 88%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%);
  pointer-events: none;
}

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

.site-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 64px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(52, 131, 255, 0.16));
}

.eyebrow,
.kicker,
.card-kicker,
.panel-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar h1,
.hero h2,
.section-heading h2,
.footer-band h2,
.card h3 {
  margin: 0;
  letter-spacing: -0.02em;
}

.topbar h1 { font-size: clamp(1.35rem, 2vw, 1.7rem); }

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.93rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.hero h2 {
  font-size: clamp(2rem, 3.7vw, 3.1rem);
  max-width: 13ch;
}

.lede {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
}

.button-primary {
  background: linear-gradient(135deg, rgba(125, 165, 255, 0.28), rgba(137, 184, 255, 0.16));
}

.hero-panel,
.card,
.doc-card,
.footer-band {
  border: 1px solid var(--border);
  background: var(--panel);
}

.hero-panel {
  padding: 22px;
  border-radius: 16px;
}

.hero-mark-wrap {
  display: flex;
  justify-content: center;
  padding: 4px 0 12px;
}

.hero-mark {
  width: min(100%, 220px);
  height: auto;
  filter: drop-shadow(0 24px 42px rgba(65, 156, 255, 0.22));
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.grid-section,
.docs-grid {
  display: grid;
  gap: 18px;
}

.grid-section {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.stack-section { margin-top: 32px; }
.section-heading { margin-bottom: 18px; }
.section-heading h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }

.card {
  padding: 24px;
  border-radius: 16px;
}

.card p {
  color: var(--muted);
  line-height: 1.7;
}

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

.doc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 148px;
  padding: 22px;
  border-radius: 16px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.doc-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.doc-card strong { font-size: 1.05rem; }
.doc-card span,
.inline-link { color: var(--muted); }
.prose-card p:last-child { margin-bottom: 0; }

.footer-band {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  gap: 22px;
  margin-top: 42px;
  padding: 28px;
  border-radius: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 980px) {
  .topbar,
  .hero,
  .footer-band,
  .grid-section,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .topbar { display: grid; }
  .hero h2 { max-width: none; }
}

@media (max-width: 640px) {
  .site-shell { padding: 18px 16px 54px; }
  .hero,
  .card,
  .doc-card,
  .footer-band { border-radius: 14px; }
  .hero { padding: 22px; }
}
