:root {
  --bg: #050816;
  --bg-elevated: #0b1020;
  --bg-soft: #111827;
  --fg: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.16);
  --border-subtle: rgba(148, 163, 184, 0.35);
  --shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.85);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --header-height: 72px;
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: var(--header-height);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: none;
}

.shell {
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 20;
  backdrop-filter: blur(22px);
  background: linear-gradient(
    to bottom,
    rgba(3, 7, 18, 0.9),
    rgba(3, 7, 18, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  transition: background 180ms ease-out, border-color 180ms ease-out,
    box-shadow 180ms ease-out, transform 180ms ease-out;
}

.site-header.scrolled {
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.12),
      transparent 55%
    ),
    rgba(3, 7, 18, 0.98);
  border-bottom-color: rgba(30, 64, 175, 0.9);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.7);
}

.site-header > .shell {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.94rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--fg);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.75);
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.18),
      transparent 60%
    ),
    linear-gradient(
      to right,
      rgba(15, 23, 42, 0.96),
      rgba(15, 23, 42, 0.85)
    );
}

.brand-mark::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 30%,
    #e0f2fe 0,
    #38bdf8 35%,
    #0ea5e9 70%,
    #0369a1 100%
  );
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.8);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.nav-link {
  position: relative;
  padding: 0.3rem 0;
  color: var(--muted);
  transition: color 160ms ease-out;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -0.25rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #38bdf8, #22c55e);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: opacity 160ms ease-out, transform 160ms ease-out;
}

.nav-link:hover {
  color: var(--fg);
}

.nav-link.is-active {
  color: var(--fg);
}

.nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

main {
  display: block;
}

.section {
  padding-block: 4.5rem;
  scroll-margin-top: calc(var(--header-height) + 1.25rem);
}

.section:nth-of-type(odd) {
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.12),
      transparent 60%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(37, 99, 235, 0.12),
      transparent 55%
    );
}

.section:nth-of-type(even) {
  background: radial-gradient(
      circle at top right,
      rgba(45, 212, 191, 0.09),
      transparent 60%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(56, 189, 248, 0.09),
      transparent 55%
    );
}

.section.hero {
  padding-block: 4.75rem 4.5rem;
}

.section-header {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 1.3rem + 0.9vw, 1.9rem);
  letter-spacing: -0.03em;
}

.section-kicker {
  margin: 0;
  font-size: 0.96rem;
  color: var(--muted);
}

.section-body {
  margin-top: 2.5rem;
}

.section-intro {
  max-width: 680px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: var(--muted);
}

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

.section-body.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.section-body.two-column p:first-of-type {
  color: var(--fg);
}

.section-footnote {
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.75rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 1.9rem + 1.3vw, 2.7rem);
  letter-spacing: -0.04em;
}

.hero-copy .lead {
  margin: 0 0 1.8rem;
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.hero-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin-bottom: 1.8rem;
}

.tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  cursor: default;
}

.tag::before {
  content: "•";
  color: var(--accent);
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 160ms ease-out, border-color 160ms ease-out,
    transform 120ms ease-out, box-shadow 160ms ease-out, color 160ms ease-out;
}

.button.primary {
  background: linear-gradient(to right, #38bdf8, #22c55e);
  color: #020617;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.9);
}

.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.95);
}

.button.ghost {
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.84);
  color: var(--fg);
}

.button.ghost:hover {
  border-color: rgba(248, 250, 252, 0.9);
  background: rgba(15, 23, 42, 0.96);
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  width: 100%;
  max-width: 420px;
  border-radius: 26px;
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.12),
      transparent 65%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(37, 99, 235, 0.18),
      transparent 60%
    ),
    linear-gradient(145deg, #020617, #020617, #020617, #020617, #020617);
  padding: 0.85rem 1rem 1.1rem;
  border: 1px solid rgba(31, 41, 55, 0.95);
  box-shadow: var(--shadow-soft);
}

.hero-card-header {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}

.hero-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    #e5e7eb 0,
    #9ca3af 50%,
    #4b5563 100%
  );
  opacity: 0.85;
}

.hero-card-body {
  padding: 0.85rem 0.4rem 0.1rem;
}

.hero-card-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-card-text {
  margin: 0 0 1.3rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--fg);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.hero-pill {
  border-radius: 0;
  border-left: 2px solid rgba(148, 163, 184, 0.55);
  background: transparent;
  padding: 0.4rem 0 0.4rem 0.9rem;
  cursor: default;
}

.hero-pill:nth-child(3) {
  grid-column: 1 / -1;
}

.pill-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(
      circle at top left,
      var(--accent-soft),
      transparent 60%
    ),
    rgba(15, 23, 42, 0.96);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.7);
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  background: radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.12),
      transparent 55%
    ),
    #020617;
  padding-block: 1.75rem 2.1rem;
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  body {
    padding-top: calc(var(--header-height) + 4px);
  }

  .site-header > .shell {
    gap: 1rem;
  }

  .nav {
    gap: 0.85rem;
    font-size: 0.82rem;
  }

  .brand-mark {
    padding-inline: 0.75rem;
  }

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

  .hero-panel {
    justify-content: stretch;
  }

  .hero-card {
    max-width: none;
  }

  .section {
    padding-block: 3.75rem;
  }

  .section-body.two-column {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 640px) {
  .shell {
    padding-inline: 1.1rem;
  }

  .site-header {
    border-bottom-width: 0;
  }

  .site-header.scrolled {
    border-bottom-width: 1px;
  }

  .site-header > .shell {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section {
    padding-block: 3.25rem;
  }

  .section-body {
    margin-top: 2.1rem;
  }

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

  .hero-card {
    border-radius: 22px;
  }
}
