:root {
  --bg: #05070f;
  --bg-2: #070b14;
  --card: #0b1220;
  --line: rgba(158, 197, 255, 0.16);
  --text: #f7fbff;
  --muted: #c8d5e8;
  --cyan: #7eb6ff;
  --cyan-2: #c5e2ff;
  --gold: #f5c542;
  --orange: #f2a43a;
  --violet: #b9a4ff;
  --font: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: #02040a;
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.header,
.hero,
.section,
.footer {
  position: relative;
  z-index: 1;
}
.header { z-index: 50; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), backdrop-filter 0.25s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-on {
  background: rgba(5, 7, 15, 0.78);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.28em;
  font-weight: 500;
  font-size: 13px;
  transition: color 0.35s var(--ease);
}
.brand svg,
.brand > img:first-of-type {
  height: 54px;
  width: auto;
  transform-origin: center;
  transition: transform 0.25s var(--ease);
}
.brand .wordmark {
  height: 18px;
  width: auto;
}
.brand:hover {
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(244, 247, 251, 0.82);
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: #fff; }
.nav .cta {
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  padding: 8px 16px;
  letter-spacing: 0.16em;
}
.nav .cta:hover {
  background: #fff;
  color: #05070f;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  position: relative;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  filter: saturate(1.2) contrast(1.12) brightness(1.08);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(2,4,10,0.42) 0%, rgba(2,4,10,0.08) 32%, rgba(2,4,10,0.05) 52%, rgba(2,4,10,0.45) 82%, #02040a 100%);
}
.hero-shade::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: radial-gradient(ellipse at 50% 80%, rgba(80, 160, 255, 0.22), transparent 62%);
  pointer-events: none;
}
.hero-inner {
  width: min(880px, calc(100% - 24px));
  text-align: center;
  padding: 72px 0 10vh;
  position: relative;
  z-index: 2;
}
.logo-hero {
  position: relative;
  display: block;
  width: min(500px, 70vw);
  margin: 0 auto 4px;
  z-index: 1;
  cursor: pointer;
}
.constellation {
  width: 100%;
  display: block;
}
.logo-hero.is-warping .constellation {
  opacity: 0;
}
.logo-warp {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  pointer-events: none;
}
.hero h1 {
  margin: 2px 0 0;
  padding: 0;
  line-height: 0;
  pointer-events: none;
  position: relative;
  z-index: 3;
}
.wordmark-hero {
  width: min(680px, 90vw);
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 0 16px rgba(80, 150, 255, 0.4));
}

@media (prefers-reduced-motion: reduce) {
  .brand img,
  .constellation {
    animation: none !important;
    transition: none;
  }
  .logo-hero.is-warping .constellation {
    opacity: 1;
  }
  .logo-warp { display: none; }
}

/* Sites */
.section {
  padding: 88px 0;
  background: transparent;
}
.kicker {
  text-align: center;
  letter-spacing: 0.34em;
  font-size: 13px;
  color: #c9d4e5;
  margin-bottom: 48px;
  font-weight: 400;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.hud-btn {
  display: block;
  cursor: pointer;
  filter:
    drop-shadow(0 0 14px rgba(20, 80, 255, 0.45))
    drop-shadow(0 0 28px rgba(20, 60, 180, 0.28));
  transition: filter 0.35s var(--ease), transform 0.35s var(--ease);
}
.hud-btn:hover {
  filter:
    drop-shadow(0 0 10px rgba(140, 210, 255, 0.9))
    drop-shadow(0 0 26px rgba(40, 120, 255, 0.7))
    drop-shadow(0 0 48px rgba(20, 80, 220, 0.4));
  transform: translateY(-4px);
}
.hud-btn-full img {
  width: 100%;
  height: auto;
  max-width: none !important;
  display: block;
}
.hud-shell {
  display: block;
  clip-path: polygon(
    var(--cut, 16px) 0, calc(100% - var(--cut, 16px)) 0,
    100% var(--cut, 16px), 100% calc(100% - var(--cut, 16px)),
    calc(100% - var(--cut, 16px)) 100%, var(--cut, 16px) 100%,
    0 calc(100% - var(--cut, 16px)), 0 var(--cut, 16px)
  );
  background: linear-gradient(180deg, #6ed4ff 0%, #1d6ad8 48%, #0b3a9c 100%);
  padding: 1.6px;
}
.hud-body {
  --cut: 14.5px;
  position: relative;
  display: grid;
  grid-template-columns: 48px 1px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  min-height: 92px;
  padding: 14px 28px 14px 18px;
  overflow: visible;
  clip-path: polygon(
    var(--cut) 0, calc(100% - var(--cut)) 0,
    100% var(--cut), 100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%, var(--cut) 100%,
    0 calc(100% - var(--cut)), 0 var(--cut)
  );
  background:
    linear-gradient(180deg, rgba(18, 42, 72, 0.55) 0%, rgba(4, 10, 22, 0.92) 100%),
    #070e18;
}
.hud-icon {
  width: 48px !important;
  height: 48px !important;
  max-width: none !important;
  flex: none;
  display: block;
  filter: drop-shadow(0 0 6px rgba(80, 190, 255, 0.65));
}
.hud-sep {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, transparent, #6ecbff 20%, #6ecbff 80%, transparent);
  opacity: 0.85;
  flex: 0 0 1px;
}
.hud-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.25;
  color: #eef8ff;
  text-shadow: 0 0 10px rgba(100, 200, 255, 0.45);
}
.hud-ticks {
  position: absolute;
  right: 16px;
  bottom: 12px;
  width: 18px;
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    #7ed7ff 0 2px,
    transparent 2px 5px
  );
  opacity: 0.85;
}
.hud-btn:hover .hud-label {
  color: #fff;
}
.hud-btn:hover .hud-icon {
  color: #f2fbff;
}

/* Text sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.prose h2 {
  font-size: clamp(32px, 4.6vw, 46px);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
  color: #f8fbff;
}
.slogan {
  color: #eaf4ff;
  font-size: clamp(18px, 2.1vw, 22px);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.4;
  margin: 0 0 22px;
  text-shadow: 0 0 18px rgba(70, 160, 255, 0.35);
}
.prose p {
  color: #d7e2f2;
  margin-bottom: 16px;
  font-size: 18px;
  max-width: 42em;
}
.facts {
  display: grid;
  gap: 14px;
}
.fact {
  border: 1px solid var(--line);
  padding: 18px 20px;
  border-radius: 6px;
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(10px);
}
.fact strong {
  display: block;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: 13px;
  margin-bottom: 6px;
}
.fact span { color: #d0dbea; font-size: 16px; }

.mission {
  background: transparent;
}
.lead {
  text-align: center;
  max-width: 54ch;
  margin: -16px auto 44px;
  color: #d7e2f2;
  font-size: 19px;
  line-height: 1.65;
}
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 12px;
}
.mission-item h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin: 12px 0 8px;
}
.mission-item p { color: var(--muted); font-size: 14.5px; }
.dotline {
  width: 36px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.7;
}

/* Contact */
.contact-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
  padding: 36px 40px;
  background: linear-gradient(180deg, rgba(10, 18, 34, 0.55) 0%, rgba(5, 9, 18, 0.72) 100%);
  border: 1px solid rgba(126, 182, 255, 0.18);
  box-shadow: 0 0 40px rgba(40, 120, 255, 0.08), inset 0 0 40px rgba(40, 120, 255, 0.04);
}
.mail-chip {
  display: inline-block;
  margin-top: 8px;
  color: #9ee4ff;
  letter-spacing: 0.08em;
  font-size: 14px;
  border-bottom: 1px solid rgba(126, 182, 255, 0.35);
  padding-bottom: 2px;
}
.mail-chip:hover { color: #fff; border-bottom-color: #fff; }
.hud-form { display: grid; gap: 18px; }
.hud-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { position: relative; }
.field input,
.field textarea {
  width: 100%;
  background: rgba(6, 12, 24, 0.7);
  border: 1px solid rgba(126, 182, 255, 0.22);
  color: var(--text);
  border-radius: 0;
  padding: 22px 14px 10px;
  font: 15px var(--font);
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; padding-top: 26px; }
.field label {
  position: absolute;
  left: 14px;
  top: 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #8ea0b8;
  pointer-events: none;
  transition: transform 0.2s var(--ease), font-size 0.2s var(--ease), color 0.2s var(--ease);
}
.field input:focus,
.field textarea:focus {
  border-color: rgba(126, 210, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(80, 180, 255, 0.25), 0 0 22px rgba(50, 150, 255, 0.18);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-10px);
  font-size: 10px;
  color: #9ee4ff;
}
.field-select label {
  position: static;
  display: block;
  margin-bottom: 8px;
  transform: none;
  pointer-events: auto;
  font-size: 11px;
  color: #9ee4ff;
}
.field select {
  width: 100%;
  background: rgba(6, 12, 24, 0.7);
  border: 1px solid rgba(126, 182, 255, 0.22);
  color: var(--text);
  border-radius: 0;
  padding: 14px 14px;
  font: 15px var(--font);
  outline: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9ee4ff 50%), linear-gradient(135deg, #9ee4ff 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field select:focus {
  border-color: rgba(126, 210, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(80, 180, 255, 0.25), 0 0 22px rgba(50, 150, 255, 0.18);
}
.sav-extra[hidden] { display: none; }
.sav-extra { display: grid; gap: 10px; }
.form-hint {
  margin: 0;
  font-size: 13px;
  color: #c8d5e8;
}
.hud-submit {
  justify-self: start;
  background: transparent;
  color: #e8f6ff;
  border: 1px solid #6ecbff;
  padding: 14px 28px;
  letter-spacing: 0.22em;
  font-size: 12px;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 0 16px rgba(50, 170, 255, 0.25);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.hud-submit:hover {
  background: #c8ecff;
  color: #05070f;
  box-shadow: 0 0 28px rgba(80, 190, 255, 0.55);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  background: rgba(6, 9, 16, 0.55);
  backdrop-filter: blur(12px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer .brand { margin-bottom: 14px; }
.footer p { color: var(--muted); font-size: 14px; max-width: 28ch; }
.footer h4 {
  font-size: 12px;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-grid a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}
.footer-grid a:hover { color: #fff; }
.copy {
  text-align: center;
  color: #6d7b90;
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.legal {
  padding: 140px 0 80px;
}
.legal h1 { font-size: 32px; font-weight: 500; margin-bottom: 24px; }
.legal h2 { font-size: 18px; margin: 28px 0 10px; font-weight: 500; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal ul { padding-left: 18px; }

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .menu-btn { display: grid; place-items: center; }
  .nav {
    position: fixed;
    inset: var(--header-h) 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(7, 11, 20, 0.96);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; }
  .nav .cta { text-align: center; }
  .cards, .split, .mission-grid, .contact-panel, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hud-row { grid-template-columns: 1fr; }
  .contact-panel { padding: 24px 18px; }
  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hud-btn { transition: none; }
  .hud-btn:hover { transform: none; }
}
