/* Fonts + reset + typography + grid */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/dm-sans-700.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/outfit-600.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/outfit-700.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/outfit-800.woff2") format("woff2");
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body.cdx {
  margin: 0;
  min-height: 100vh;
  font-family: var(--cdx-font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--cdx-text);
  background: var(--cdx-void);
  -webkit-font-smoothing: antialiased;
}

body.cdx a {
  color: var(--cdx-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
body.cdx a:hover { color: var(--cdx-cyan); }

img, svg, video { max-width: 100%; display: block; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

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

/* 12-col rail */
.cdx-wrap {
  width: min(100% - (var(--cdx-pad) * 2), var(--cdx-max));
  margin-inline: auto;
}
.cdx-wrap--wide {
  width: min(100% - (var(--cdx-pad) * 2), var(--cdx-wide));
}

.cdx-section {
  padding: var(--cdx-space-9) 0;
  position: relative;
}
.cdx-section--tight { padding: var(--cdx-space-8) 0; }

.cdx-kicker {
  margin: 0 0 var(--cdx-space-4);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cdx-blue);
  line-height: 1.2;
}

.cdx-h1, .cdx-h2, .cdx-h3 {
  margin: 0;
  font-family: var(--cdx-display);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.16;
  color: var(--cdx-text);
  text-wrap: balance;
}
.cdx-h1 { font-size: clamp(2.5rem, 6.5vw, 4.25rem); font-weight: 800; line-height: 1.12; }
.cdx-h2 { font-size: clamp(1.85rem, 4vw, 2.85rem); max-width: 28ch; line-height: 1.14; }
.cdx-h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); letter-spacing: -0.02em; }

.cdx-lead {
  margin: var(--cdx-space-4) 0 0;
  max-width: var(--cdx-read);
  color: var(--cdx-muted);
  font-size: 1.125rem;
  line-height: 1.55;
}

.cdx-note {
  margin: var(--cdx-space-4) 0 0;
  color: var(--cdx-faint);
  font-size: 0.9375rem;
}

.cdx-head { margin-bottom: var(--cdx-space-7); max-width: 40rem; }

.cdx-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0 0.6rem;
  border: 1px solid var(--cdx-line-strong);
  border-radius: var(--cdx-r-sm);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cdx-muted);
  background: rgba(255, 255, 255, 0.03);
}

:focus-visible {
  outline: 2px solid var(--cdx-blue);
  outline-offset: 3px;
}

/* The Signal — thin luminous line */
.cdx-signal {
  height: 1px;
  width: 100%;
  border: 0;
  margin: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(61, 158, 255, 0.2) 18%,
    var(--cdx-signal) 48%,
    rgba(94, 200, 255, 0.85) 52%,
    rgba(61, 158, 255, 0.2) 82%,
    transparent 100%
  );
  opacity: 0.65;
}
.cdx-signal--active {
  animation: cdx-signal-pulse var(--cdx-slow) var(--cdx-ease) both;
  opacity: 0.9;
}
@keyframes cdx-signal-pulse {
  from { opacity: 0.35; transform: scaleX(0.85); transform-origin: left; }
  to { opacity: 0.9; transform: scaleX(1); }
}

@media (max-width: 768px) {
  .cdx-section { padding: var(--cdx-space-8) 0; }
}
