:root {
  color-scheme: dark;
  --bg: #030609;
  --deep: #070c12;
  --surface: rgba(237, 239, 245, 0.062);
  --surface-bright: rgba(237, 239, 245, 0.12);
  --line: rgba(237, 239, 245, 0.2);
  --line-soft: rgba(237, 239, 245, 0.11);
  --text: #edeff5;
  --muted: #a8afbc;
  --quiet: rgba(237, 239, 245, 0.68);
  --cora: #ff6e52;
  --vera: #298aff;
  --petra: #42dbd1;
  --nova: #9457ff;
  --max: 1040px;
  --radius: 8px;
  --scroll-depth: 0;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  isolation: isolate;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(3, 6, 9, 0.3), var(--bg) 80vh),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
}

body::before {
  z-index: -2;
  opacity: 0.78;
  background:
    conic-gradient(
      from 132deg at 52% 44%,
      rgba(255, 110, 82, 0.62),
      rgba(41, 138, 255, 0.38),
      rgba(66, 219, 209, 0.5),
      rgba(148, 87, 255, 0.52),
      rgba(255, 110, 82, 0.62)
    );
  filter: blur(62px) saturate(118%);
  transform:
    translate3d(calc(var(--scroll-depth) * -46px), calc(var(--scroll-depth) * 34px), 0)
    rotate(calc(var(--scroll-depth) * 9deg))
    scale(1.12);
}

body::after {
  z-index: -1;
  opacity: 0.5;
  background:
    linear-gradient(110deg, transparent 0 47%, rgba(237, 239, 245, 0.09) 47.2% 47.35%, transparent 47.6%),
    linear-gradient(180deg, rgba(3, 6, 9, 0.18), var(--bg) 72%),
    repeating-linear-gradient(90deg, rgba(237, 239, 245, 0.045) 0 1px, transparent 1px 78px);
  mask-image: linear-gradient(180deg, black 0, black 58%, transparent 100%);
  transform: translateY(calc(var(--scroll-depth) * -28px));
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--petra);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
}

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

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 760;
  text-decoration: none;
}

.brand-link img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 16px rgba(148, 87, 255, 0.38))
    drop-shadow(0 0 14px rgba(255, 110, 82, 0.24));
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.24rem;
}

.site-nav a {
  min-width: 4.15rem;
  padding: 0.42rem 0.56rem;
  clip-path: polygon(0.46rem 0, 100% 0, calc(100% - 0.46rem) 100%, 0 100%);
  background: rgba(3, 6, 9, 0.44);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: linear-gradient(90deg, rgba(237, 239, 245, 0.16), rgba(237, 239, 245, 0.08));
  color: var(--text);
}

.hero,
.page-hero {
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero > *,
.page-hero > * {
  min-width: 0;
}

.hero {
  min-height: calc(100vh - 76px);
  align-content: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 7vw, 5rem);
}

.page-hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(1.8rem, 5vw, 3rem);
}

.page-hero h1 {
  max-width: min(100%, 12ch);
  font-size: clamp(3rem, 9vw, 6.4rem);
}

.hero-logo {
  width: min(54vw, 18.5rem);
  height: auto;
  margin-bottom: 1rem;
  object-fit: contain;
  filter:
    drop-shadow(0 0 24px rgba(41, 138, 255, 0.25))
    drop-shadow(0 0 34px rgba(255, 110, 82, 0.2));
  transform: translateY(calc(var(--scroll-depth) * -16px));
}

.eyebrow {
  max-width: 100%;
  margin: 0 0 0.75rem;
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.68rem;
  color: var(--text);
  font-size: clamp(3.4rem, 11vw, 7.4rem);
  font-weight: 760;
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(237, 239, 245, 0.12);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.22rem, 3vw, 2rem);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy,
.page-copy {
  width: min(100%, 30ch);
  color: var(--text);
  font-size: clamp(1.05rem, 2.4vw, 1.42rem);
  line-height: 1.42;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.72rem;
  padding: 0.72rem 1rem;
  clip-path: polygon(0.6rem 0, 100% 0, calc(100% - 0.6rem) 100%, 0 100%);
  border: 0;
  background: linear-gradient(90deg, rgba(237, 239, 245, 0.96), rgba(237, 239, 245, 0.76));
  color: var(--bg);
  font-size: 0.92rem;
  font-weight: 820;
  text-align: center;
  text-decoration: none;
}

.button-secondary {
  background: rgba(237, 239, 245, 0.12);
  color: var(--text);
}

.mission-signal {
  position: relative;
  width: min(100%, 46rem);
  margin: 0 auto clamp(3rem, 8vw, 5rem);
  padding: clamp(1rem, 3vw, 1.5rem) 0 clamp(1rem, 3vw, 1.5rem) clamp(1rem, 3vw, 1.7rem);
}

.mission-signal::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, var(--cora), var(--vera), var(--petra), var(--nova));
  box-shadow:
    0 0 24px rgba(41, 138, 255, 0.32),
    0 0 34px rgba(255, 110, 82, 0.2);
}

.mission-signal h2 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 6vw, 4.9rem);
  font-weight: 760;
  line-height: 0.98;
}

.mission-signal p:last-child {
  max-width: 34rem;
  margin: 0;
  color: var(--quiet);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  overflow-wrap: break-word;
}

.verification-panel,
.legal-copy,
.support-panel {
  position: relative;
  margin-bottom: clamp(3rem, 8vw, 5rem);
  padding: clamp(1.1rem, 3vw, 1.5rem);
  background:
    linear-gradient(110deg, rgba(237, 239, 245, 0.1), rgba(237, 239, 245, 0.025)),
    rgba(3, 6, 9, 0.46);
  clip-path: polygon(1.2rem 0, 100% 0, calc(100% - 1.2rem) 100%, 0 100%);
}

.verification-panel::before,
.legal-copy::before,
.support-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
  pointer-events: none;
}

.verification-panel h2,
.support-panel h2 {
  max-width: 26rem;
}

.verification-panel dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.verification-panel div {
  min-height: 5.4rem;
  padding: 0.85rem 0.95rem;
  border-left: 1px solid var(--line-soft);
}

.verification-panel div:first-child {
  border-left: 0;
}

dt {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--text);
  font-weight: 720;
}

.legal-copy {
  max-width: 48rem;
  margin-inline: auto;
}

.legal-copy p,
.support-panel p {
  color: var(--quiet);
}

.legal-copy p:last-child,
.support-panel p:last-child,
.site-footer p:last-child {
  margin-bottom: 0;
}

.legal-copy a,
.verification-panel a,
.contact-link {
  color: var(--petra);
}

.support-panel {
  display: grid;
  justify-items: start;
  gap: clamp(1.1rem, 3vw, 1.6rem);
  max-width: 42rem;
  margin-inline: auto;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  border-top: 1px solid var(--line-soft);
}

.contact-methods > * {
  min-width: 0;
  margin: 0;
  padding: 1rem 1.1rem 0.2rem 0;
}

.contact-methods > * + * {
  padding-left: 1.1rem;
  border-left: 1px solid var(--line-soft);
}

.contact-label {
  margin-bottom: 0.42rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-link {
  font-weight: 760;
  overflow-wrap: anywhere;
}

address {
  color: var(--text);
  font-style: normal;
  font-weight: 720;
}

address span {
  display: block;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  max-width: 34rem;
}

.site-footer::before {
  width: min(100%, 38rem);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--cora), var(--vera), var(--petra), var(--nova), transparent);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

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

.site-footer a:hover {
  text-decoration: underline;
}

.copyright {
  color: var(--quiet);
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0 0.6rem;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

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

  .verification-panel div:nth-child(odd) {
    border-left: 0;
  }
}

@media (max-width: 540px) {
  .site-header,
  main,
  .site-footer {
    width: min(calc(100% - 1rem), var(--max));
  }

  .site-footer p {
    max-width: 26ch;
  }

  .site-nav a {
    min-width: 3.85rem;
    padding-inline: 0.48rem;
    font-size: 0.72rem;
  }

  .eyebrow {
    max-width: 20rem;
    line-height: 1.45;
  }

  .page-hero h1 {
    max-width: 8ch;
    font-size: clamp(2.85rem, 13vw, 3.2rem);
    text-wrap: balance;
  }

  .hero-copy,
  .page-copy {
    width: min(calc(100vw - 2rem), 28ch);
    font-size: 1.05rem;
  }

  .button {
    width: 100%;
  }

  .mission-signal {
    padding-left: 1rem;
  }

  .mission-signal p:last-child {
    max-width: 29ch;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }

  .contact-methods > * + * {
    padding-left: 0;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .verification-panel,
  .legal-copy,
  .support-panel {
    clip-path: polygon(0.7rem 0, 100% 0, calc(100% - 0.7rem) 100%, 0 100%);
  }

  .verification-panel dl {
    grid-template-columns: 1fr;
  }

  .verification-panel div,
  .verification-panel div:nth-child(odd) {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .verification-panel div:first-child {
    border-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  body::before,
  body::after,
  .hero-logo {
    transform: none;
  }
}
