:root {
  --bg: #06090e;
  --bg-elevated: #0a1119;
  --surface: #0d1721;
  --surface-soft: #101d29;
  --surface-warm: #17130f;
  --text: #f7f5ef;
  --muted: #a9bac8;
  --muted-bright: #c8d3dc;
  --cyan: #5dd9e7;
  --cyan-soft: #b8f4f4;
  --ember: #ff985e;
  --violet: #9d8cff;
  --line: #203446;
  --line-bright: #38536a;
  --danger: #ffb7b7;
  --success: #a8ebc7;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --section-space: clamp(5rem, 9vw, 8.5rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 4%, rgba(93, 217, 231, 0.08), transparent 25rem),
    radial-gradient(circle at 92% 24%, rgba(157, 140, 255, 0.06), transparent 30rem),
    var(--bg);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.68;
  overflow-wrap: anywhere;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(93, 217, 231, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 217, 231, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  pointer-events: none;
}

main {
  display: block;
}

main:focus {
  outline: 0;
}

h1,
h2,
h3,
.navbar-brand,
.footer-brand {
  margin-top: 0;
  color: var(--text);
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}

h1,
h2,
h3,
p,
li,
dd {
  max-width: 72ch;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

p:last-child,
ul:last-child,
ol:last-child,
dl:last-child {
  margin-bottom: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--cyan-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #ffffff;
}

.container {
  --bs-gutter-x: clamp(2rem, 5vw, 4.5rem);
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: #061014;
  background: var(--cyan-soft);
  border-radius: var(--radius-sm);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  color: #061014;
  transform: translateY(0);
}

.section {
  position: relative;
  padding: var(--section-space) 0;
}

.section-ink {
  background:
    linear-gradient(135deg, rgba(93, 217, 231, 0.035), transparent 35%),
    #081019;
  border-block: 1px solid rgba(56, 83, 106, 0.45);
}

.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(8.5rem, 13vw, 12rem) 0 clamp(4.75rem, 8vw, 7.5rem);
  background:
    radial-gradient(circle at 80% 24%, rgba(93, 217, 231, 0.12), transparent 25rem),
    radial-gradient(circle at 22% 82%, rgba(255, 152, 94, 0.1), transparent 24rem),
    linear-gradient(145deg, #0a141e 0%, #070b11 58%, #100c15 100%);
  border-bottom: 1px solid var(--line);
}

.hero::after,
.page-hero::after {
  position: absolute;
  z-index: -1;
  top: 5rem;
  right: -10vw;
  width: min(48rem, 68vw);
  aspect-ratio: 1;
  border: 1px solid rgba(93, 217, 231, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 7rem rgba(93, 217, 231, 0.018),
    0 0 0 14rem rgba(157, 140, 255, 0.014);
  content: "";
  pointer-events: none;
}

.hero h1,
.page-hero h1 {
  max-width: 12ch;
  margin: 0 0 1.5rem;
  font-size: clamp(3rem, 6.2vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.page-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 5.4vw, 5.5rem);
}

.page-hero-copy {
  position: relative;
  z-index: 1;
}

.lead,
.hero .lead,
.page-hero .lead {
  max-width: 66ch;
  margin-bottom: 2rem;
  color: var(--muted-bright);
  font-size: clamp(1.06rem, 1.45vw, 1.28rem);
  line-height: 1.6;
}

.eyebrow,
.page-hero .eyebrow,
.hero .eyebrow,
.tag {
  margin-bottom: 1rem;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.tag {
  margin-bottom: 0.65rem;
  font-size: 0.69rem;
}

.proof {
  margin-top: 1.5rem;
  color: var(--muted-bright);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.btn {
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-padding-y: 0.78rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-brand {
  color: #041014 !important;
  background: linear-gradient(110deg, var(--cyan-soft), var(--cyan) 62%, #8fcfff);
  border: 1px solid transparent;
  box-shadow: 0 12px 35px rgba(93, 217, 231, 0.18);
}

.btn-brand:hover {
  color: #020a0d !important;
  background: #ffffff;
  box-shadow: 0 14px 44px rgba(93, 217, 231, 0.28);
}

.btn-quiet,
.btn-outline-brand {
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-bright);
}

.btn-quiet:hover,
.btn-outline-brand:hover {
  color: #061014;
  background: var(--text);
  border-color: var(--text);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--cyan-soft);
  font-weight: 700;
  text-decoration: none;
}

.text-link::after {
  color: var(--ember);
  content: "↗";
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translate(0.15rem, -0.15rem);
}

body :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
  box-shadow: none !important;
}

.site-nav {
  padding: 0.85rem 0;
  background: rgba(6, 9, 14, 0.76);
  border-bottom: 1px solid rgba(56, 83, 106, 0.68);
  backdrop-filter: blur(18px) saturate(130%);
  transition:
    padding 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.site-nav.scrolled {
  padding: 0.55rem 0;
  background: rgba(6, 9, 14, 0.94);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
}

.navbar-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  color: var(--text) !important;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.navbar-brand small {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-block;
  flex: 0 0 auto;
  width: 0.86rem;
  height: 0.86rem;
  border: 2px solid var(--ember);
  box-shadow: 0 0 20px rgba(255, 152, 94, 0.65);
  transform: rotate(45deg);
}

.navbar-nav {
  gap: 0.05rem;
}

.nav-link {
  position: relative;
  padding: 0.55rem 0.72rem !important;
  color: #d3dee6 !important;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.045);
}

.nav-link.active,
.nav-link[aria-current="page"] {
  color: #061014 !important;
  background: var(--cyan-soft);
}

.nav-cta[aria-current="page"] {
  box-shadow: 0 0 0 2px var(--ember);
}

.navbar-toggler {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  place-items: center;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.toggler-lines {
  display: grid;
  width: 1.1rem;
  gap: 0.23rem;
}

.toggler-lines span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.flash-wrap {
  position: relative;
  z-index: 2;
  padding-top: 6.75rem;
}

.alert {
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm);
}

.alert-success {
  color: #d9f8e8;
  background: #0c231b;
  border-color: #2c6d50;
}

.hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.policy-note {
  padding-left: 1rem;
  color: var(--muted);
  border-left: 2px solid var(--ember);
  font-size: 0.9rem;
}

.site-footer {
  padding: clamp(4rem, 7vw, 6rem) 0 2rem;
  color: var(--muted);
  background: #04070b;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.footer-intro p {
  max-width: 46ch;
  margin-top: 1.25rem;
}

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

.footer-nav div {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.footer-label {
  margin-bottom: 0.35rem;
  color: #718696;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-nav a {
  color: var(--muted-bright);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
}

.footer-bottom p:first-child {
  flex: 0 0 auto;
}

.footer-bottom p:last-child {
  max-width: 72ch;
  text-align: right;
}

@media (max-width: 1199.98px) {
  .site-nav .navbar-collapse {
    max-height: calc(100vh - 5.25rem);
    margin-top: 0.85rem;
    padding: 1rem;
    overflow-y: auto;
    background: rgba(10, 17, 25, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
  }

  .navbar-nav {
    align-items: stretch !important;
  }

  .nav-link {
    padding: 0.75rem 0.9rem !important;
  }

  .nav-cta {
    width: 100%;
  }
}

@media (max-width: 991.98px) {
  :root {
    --section-space: 5.5rem;
  }

  .hero,
  .page-hero {
    padding-top: 8.75rem;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 15ch;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  :root {
    --section-space: 4.5rem;
  }

  .hero,
  .page-hero {
    padding: 8rem 0 4.5rem;
  }

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

  .footer-bottom {
    display: grid;
  }

  .footer-bottom p:last-child {
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .container {
    --bs-gutter-x: 1.5rem;
  }

  .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }

  body {
    font-size: 0.96rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
  }

  .navbar-brand {
    gap: 0.4rem;
    font-size: 1rem;
  }

  .navbar-brand small {
    font-size: 0.61rem;
  }

  .navbar-toggler {
    width: 2.55rem;
    height: 2.55rem;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .hero-actions .btn-quiet {
    background: rgba(255, 255, 255, 0.025);
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
