:root {
  --bg: #0d0c1d;
  --bg-raised: #141329;
  --bg-card: #1a1933;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f4ff;
  --text-soft: #c3c1dc;
  --text-faint: #8d8aa8;
  --brand: #ff5a3c;
  --brand-bright: #ff8a68;
  --violet: #6d5cff;
  --mint: #23a55a;
  --danger: #f23f43;
  --radius: 18px;
  --font-display: "Archivo", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1240px, 100% - 32px);
  margin: 0 auto;
}

h1,
h2 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
}

h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(13, 12, 29, 0.6);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  transition: background-color 0.2s;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.site-header.scrolled::before {
  background: rgba(13, 12, 29, 0.86);
}

.site-header .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 21px;
  font-stretch: 112%;
  font-weight: 800;
  text-decoration: none;
}

.brand .brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 0.15s,
    background-color 0.15s;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.site-nav .nav-cta {
  position: absolute;
  right: 0;
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  color: #17162a;
  font-size: 15px;
  transition:
    color 0.15s,
    box-shadow 0.2s;
}

.site-nav .nav-cta:hover {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s,
    background-color 0.15s,
    color 0.15s,
    box-shadow 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn.light {
  background: #fff;
  color: #17162a;
}

.btn.light:hover {
  color: var(--brand);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.6);
}

.btn.dark {
  background: #1d1c35;
  color: #fff;
}

.btn.dark:hover {
  background: #2a2950;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.6);
}

.btn.primary {
  background: var(--brand);
  color: #fff;
}

.btn.primary:hover {
  background: #ff6f55;
}

.btn.ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.04);
}

.btn.small {
  min-height: 42px;
  padding: 0 20px;
  font-size: 15px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  margin: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.eyebrow .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.site-footer {
  margin-top: 96px;
  padding: 72px 0 40px;
  background: #0a0918;
  color: var(--text-faint);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}

.footer-title {
  margin: 0 0 14px;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 44px);
  font-stretch: 125%;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.footer-lead p:not(.footer-title) {
  max-width: 30ch;
  margin: 0;
  color: var(--text-soft);
}

.footer-grid h4 {
  margin: 0 0 14px;
  color: var(--brand-bright);
  font-size: 15px;
  font-weight: 600;
}

.footer-grid ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-grid a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--brand);
}

.footer-copy {
  margin-right: auto;
  margin-left: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.shown {
  opacity: 1;
  transform: none;
}

@media (max-width: 860px) {
  .site-header .wrap {
    display: flex;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: min(330px, 86vw);
    padding: 88px 20px 24px;
    background: var(--bg-raised);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.55);
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.22s ease,
      visibility 0.22s;
  }

  .site-nav.open {
    transform: none;
    visibility: visible;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .site-nav .nav-cta {
    position: static;
    margin-top: 12px;
    text-align: center;
  }

  .menu-toggle {
    position: relative;
    z-index: 61;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .footer-copy {
    margin: 0;
    flex-basis: 100%;
    order: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
