:root {
  --bg: #070811;
  --bg2: #0b0c14;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.55);
  --brandA: #8a5cff;
  --brandB: #29d9ff;
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radiusSm: 12px;
  --max: 1120px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8ff;
    --bg2: #ffffff;
    --card: rgba(10, 12, 20, 0.04);
    --card2: rgba(10, 12, 20, 0.06);
    --border: rgba(10, 12, 20, 0.12);
    --text: rgba(10, 12, 20, 0.9);
    --muted: rgba(10, 12, 20, 0.68);
    --faint: rgba(10, 12, 20, 0.55);
    --shadow: 0 16px 50px rgba(10, 12, 20, 0.15);
  }
}

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

html {
  min-height: 100%;
  /* Solid base so long pages never “restart” gradient stacks per section. */
  background-color: var(--bg2);
}

html,
body {
  min-height: 100%;
}

/*
  Atmosphere: one fixed layer behind all page content.
  (Previously the same radials lived on `body` while `.section-muted` added more
  radials — scrolling looked like the same glow pattern repeated down the page.)
*/
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-image: radial-gradient(
      1100px 720px at 18% 8%,
      rgba(138, 92, 255, 0.26),
      transparent 72%
    ),
    radial-gradient(
      1000px 680px at 88% 6%,
      rgba(41, 217, 255, 0.2),
      transparent 70%
    ),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  background-size: auto, auto, 100% 100%;
}

body {
  /* Stacking context so `body::before` (z-index: -1) stays above `html`’s fill. */
  position: relative;
  z-index: 0;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background-color: transparent;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  transform: translateY(-200%);
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  z-index: 999;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid rgba(41, 217, 255, 0.5);
  outline-offset: 2px;
}

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

/* Header + nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 18, 0.55);
}

@media (prefers-color-scheme: light) {
  .site-header {
    background: rgba(255, 255, 255, 0.7);
  }
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

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

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 8px;
  background: conic-gradient(from 150deg, var(--brandA), var(--brandB), #1dffb5);
  box-shadow: 0 0 0 4px rgba(138, 92, 255, 0.14);
}

.brand-text {
  font-size: 15px;
}

.brand-suffix {
  font-size: 13px;
  color: var(--faint);
  font-weight: 600;
}

.nav-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.nav-link:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-toggle {
  margin-left: auto;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
}

.nav-toggle-bars {
  width: 18px;
  height: 12px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle-bars::before {
  top: 0;
}

.nav-toggle-bars::after {
  bottom: 0;
}

@media (max-width: 840px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-menu {
    display: none;
    width: 100%;
    margin-left: 0;
    padding: 10px 0 2px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-menu.is-open {
    display: flex;
  }
  .nav-link {
    border-radius: 14px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  text-decoration: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--brandA), var(--brandB));
  color: white;
  box-shadow: 0 12px 32px rgba(138, 92, 255, 0.22);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Hero */
.hero {
  padding: 64px 0 18px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin: 14px 0 20px 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 52ch;
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 18px 0;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.metric {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radiusSm);
  padding: 12px;
  box-shadow: var(--shadow);
}

.metric dt {
  font-weight: 800;
  margin-bottom: 4px;
}

.metric dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-art {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow);
}

.orb {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.75;
}

.orb-a {
  background: radial-gradient(circle at 40% 40%, var(--brandA), transparent 60%);
  top: -220px;
  left: -240px;
}

.orb-b {
  background: radial-gradient(circle at 50% 50%, var(--brandB), transparent 60%);
  bottom: -240px;
  right: -220px;
}

.card-stack {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 28px;
}

.glass-card {
  width: min(340px, 92%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 16px;
}

.glass-label {
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}

.glass-value {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    min-height: 300px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 42px;
  }
  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

/* Sections + layout */
.section {
  padding: 54px 0;
}

.section-muted {
  /* No extra radial stacks here — avoids a second “copy” of the page glow. */
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (prefers-color-scheme: light) {
  .section-muted {
    background: rgba(10, 12, 20, 0.03);
    border-top: 1px solid rgba(10, 12, 20, 0.07);
    border-bottom: 1px solid rgba(10, 12, 20, 0.07);
  }
}

.section-title {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.section-lede {
  margin: 10px 0 0 0;
  color: var(--muted);
  max-width: 70ch;
}

.grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

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

.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 18px;
  box-shadow: var(--shadow);
}

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

.card-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.card-body {
  margin: 8px 0 12px 0;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  gap: 8px;
  font-weight: 800;
  color: rgba(41, 217, 255, 0.95);
}

.card-link:hover {
  text-decoration: none;
  filter: brightness(1.06);
}

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

.list li {
  margin: 6px 0;
}

.list-large li {
  margin: 10px 0;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}

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

.pill-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}

.pill-link:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.callout {
  border-radius: var(--radius);
  border: 1px solid rgba(41, 217, 255, 0.22);
  background: linear-gradient(
    180deg,
    rgba(41, 217, 255, 0.12),
    rgba(138, 92, 255, 0.08)
  );
  padding: 18px;
  box-shadow: var(--shadow);
}

.callout-title {
  margin: 0;
  font-size: 18px;
}

.callout-body {
  margin: 10px 0 14px 0;
  color: var(--muted);
}

.steps {
  margin: 18px 0 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.steps li {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 16px;
  box-shadow: var(--shadow);
}

.steps h3 {
  margin: 0 0 6px 0;
  font-size: 16px;
}

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

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

/* Page hero + prose */
.page-hero {
  padding: 44px 0 12px 0;
}

.page-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-subtitle {
  margin: 12px 0 0 0;
  color: var(--muted);
  max-width: 70ch;
}

#contact {
  scroll-margin-top: 88px;
}

.prose {
  max-width: 78ch;
}

.prose h2 {
  margin: 26px 0 10px 0;
  font-size: 18px;
}

.prose h3 {
  margin: 20px 0 8px 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
}

.prose .legal-list {
  margin: 10px 0 0 0;
  padding-left: 1.25em;
}

.prose .legal-list li {
  margin-top: 8px;
}

.prose .legal-list li:first-child {
  margin-top: 0;
}

.prose p,
.prose ul {
  color: var(--muted);
}

.prose a {
  color: rgba(41, 217, 255, 0.95);
}

.spacer {
  height: 14px;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 34px 0 44px 0;
  background: rgba(255, 255, 255, 0.02);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.9fr;
  gap: 16px;
  align-items: start;
}

.brand-footer {
  margin-bottom: 10px;
}

.footer-links {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

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

.footer-meta .muted {
  margin: 0 0 6px 0;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

/* Focus */
:focus-visible {
  outline: 2px solid rgba(41, 217, 255, 0.5);
  outline-offset: 3px;
}
