* { box-sizing: border-box; }
:root {
  --bg: #050c15;
  --ink: #ffffff;
  --muted: rgba(255,255,255,.66);
  --faint: rgba(255,255,255,.42);
  --line: rgba(255,255,255,.14);
  --glass: rgba(7,17,31,.68);
  --glass-strong: rgba(5,13,24,.82);
  --glass-soft: rgba(255,255,255,.075);
  --blue: #438cff;
  --cyan: #52e5d0;
  --shadow: 0 30px 90px rgba(0,0,0,.28);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(1280px, calc(100% - 72px)); margin: 0 auto; }

/* ---------- Fixed full-site video ---------- */
.site-video-layer {
  position: fixed;
  inset: 0;
  z-index: -5;
  overflow: hidden;
  background: #07111f;
}
.site-video-layer video,
.video-fallback,
.global-video-tint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.site-video-layer video {
  object-fit: cover;
  transform: scale(1.035);
  filter: saturate(.88) contrast(1.05);
}
.video-fallback {
  z-index: -2;
  background:
    radial-gradient(circle at 70% 22%, rgba(57,132,255,.46), transparent 33%),
    radial-gradient(circle at 20% 78%, rgba(69,227,196,.18), transparent 28%),
    linear-gradient(120deg, #06111f, #102743 60%, #08121f);
}
.global-video-tint {
  background:
    linear-gradient(180deg, rgba(2,8,16,.28), rgba(2,8,16,.55)),
    linear-gradient(90deg, rgba(2,8,16,.32), rgba(2,8,16,.14) 45%, rgba(2,8,16,.3));
  pointer-events: none;
}

/* ---------- Nav ---------- */
.site-header { position: fixed; left: 0; right: 0; top: 18px; z-index: 100; }
.nav-shell {
  min-height: 72px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(11,25,44,.78), rgba(5,14,26,.67));
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 20px 55px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.08);
  transform: perspective(900px) rotateX(.7deg);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  font-family: 'Space Grotesk'; font-weight: 800; font-size: 19px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 32px rgba(55,135,255,.35), inset 0 1px rgba(255,255,255,.35);
}
.brand-copy strong, .brand-copy small { display: block; line-height: 1; }
.brand-copy strong { font-size: 14px; letter-spacing: 2.2px; }
.brand-copy small { margin-top: 6px; font-size: 8px; letter-spacing: 2.8px; color: rgba(255,255,255,.5); }
.nav-links { display: flex; gap: 30px; align-items: center; font-size: 13px; font-weight: 600; }
.nav-links a { color: rgba(255,255,255,.68); transition: .25s ease; }
.nav-links a:hover { color: #fff; transform: translateY(-1px); }
.menu-btn { display: none; border: 0; background: transparent; color: #fff; font-size: 25px; }

/* ---------- Buttons ---------- */
.btn {
  border: 0; border-radius: 14px; padding: 13px 19px; display: inline-flex; justify-content: center; align-items: center;
  font-weight: 800; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #347dff, #49a9ff); box-shadow: 0 14px 34px rgba(50,126,255,.28); }
.btn-primary:hover { box-shadow: 0 18px 42px rgba(50,126,255,.36); }
.btn-glass { color: #fff; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); backdrop-filter: blur(14px); }
.btn-large { min-height: 54px; padding-inline: 25px; }
.full { width: 100%; }

/* ---------- Global sections ---------- */
.section-window { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 118px 0; }
.transparent-window::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(3,9,17,.40), rgba(3,9,17,.30) 48%, rgba(3,9,17,.46));
}
.glass-section,
.join-glass,
.footer-glass {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(135deg, rgba(5,15,27,.70), rgba(11,28,47,.55));
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.06);
  border-radius: 34px;
}
.glass-section { padding: clamp(42px, 6vw, 78px); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.55); font-size: 11px; letter-spacing: 2.4px; font-weight: 800; }
.eyebrow span { width: 30px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; }
h2 { font-size: clamp(42px, 5vw, 68px); line-height: 1.02; letter-spacing: -2.7px; margin: 20px 0 24px; }
p { color: var(--muted); line-height: 1.75; }

/* ---------- Hero ---------- */
.hero-window { padding-top: 150px; overflow: hidden; }
.hero-local-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2,7,14,.68) 0%, rgba(2,7,14,.32) 45%, rgba(2,7,14,.08) 75%, rgba(2,7,14,.22) 100%),
    linear-gradient(180deg, rgba(2,7,14,.28), rgba(2,7,14,.28) 64%, rgba(2,7,14,.68));
}
.hero-content { position: relative; z-index: 2; padding-top: 7vh; padding-bottom: 5vh; }
.hero-kicker { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 800; letter-spacing: 2.6px; color: rgba(255,255,255,.72); }
.hero-kicker span { width: 42px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.hero h1 {
  width: 100%; max-width: 1230px; margin: 26px 0 34px;
  font-size: clamp(70px, 9vw, 138px); line-height: .86; letter-spacing: clamp(-7px, -.55vw, -3px); font-weight: 700;
  text-shadow: 0 20px 60px rgba(0,0,0,.24);
}
.hero h1 span { display: block; color: #fff; }
.hero h1 em {
  display: block; font-style: normal;
  background: linear-gradient(100deg, #ffffff 10%, #a9d6ff 55%, #79f3da 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lower { display: grid; grid-template-columns: minmax(0, 1.1fr) auto; gap: 50px; align-items: end; max-width: 1120px; }
.hero-lower p { max-width: 720px; margin: 0; font-size: 18px; color: rgba(255,255,255,.7); }
.hero-actions { display: flex; gap: 12px; }
.hero-info-grid {
  margin-top: 62px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
}
.hero-info-grid small { display: block; margin-bottom: 8px; color: rgba(255,255,255,.43); font-size: 9px; letter-spacing: 1.7px; }
.hero-info-grid strong { font-size: 14px; }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; width: 28px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 18px; display: flex; justify-content: center; z-index: 3; }
.scroll-cue span { width: 4px; height: 9px; border-radius: 10px; background: #fff; margin-top: 8px; animation: scrollCue 1.8s ease infinite; }

/* ---------- About ---------- */
.about-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 70px; align-items: center; }
.wide-copy p { max-width: 780px; font-size: 17px; }
.about-details { display: grid; gap: 12px; }
.metric-card { display: grid; grid-template-columns: 52px 1fr; gap: 15px; align-items: center; padding: 17px; border: 1px solid rgba(255,255,255,.11); border-radius: 17px; background: rgba(255,255,255,.065); transition: .25s ease; }
.metric-card:hover { transform: translateX(6px); background: rgba(255,255,255,.095); }
.metric-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(67,140,255,.14); color: #99c5ff; font-weight: 800; font-size: 12px; }
.metric-card small { display: block; color: var(--faint); font-size: 9px; letter-spacing: 1.6px; margin-bottom: 6px; }
.metric-card strong { font-size: 14px; }

/* ---------- Services ---------- */
.split-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: end; margin-bottom: 46px; }
.split-heading h2 { margin-bottom: 0; }
.split-heading > p { margin: 0 0 5px; font-size: 16px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-card { min-height: 255px; position: relative; padding: 25px; border-radius: 22px; border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.055); overflow: hidden; transition: .3s ease; }
.service-card::after { content: ''; position: absolute; width: 160px; height: 160px; right: -90px; bottom: -95px; border-radius: 50%; background: radial-gradient(circle, rgba(67,140,255,.22), transparent 70%); }
.service-card:hover { transform: translateY(-7px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); }
.service-number { position: absolute; top: 21px; right: 21px; color: rgba(255,255,255,.24); font-size: 10px; letter-spacing: 1.4px; }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: rgba(255,255,255,.085); font-size: 22px; margin-bottom: 27px; }
.service-card h3 { margin: 0 0 11px; font-size: 20px; }
.service-card p { margin: 0; font-size: 13px; color: rgba(255,255,255,.55); }

/* ---------- Join ---------- */
.join-glass { padding: clamp(42px, 6vw, 78px); display: grid; grid-template-columns: .92fr 1.08fr; gap: 70px; align-items: center; }
.join-copy h2 { font-size: clamp(48px, 6vw, 82px); margin-bottom: 22px; }
.join-copy h2 span { color: #8abaff; }
.join-copy p { max-width: 520px; }
.join-options { display: grid; gap: 16px; }
.join-option { text-align: left; color: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: 23px; background: rgba(255,255,255,.065); padding: 25px; transition: .3s ease; }
.join-option:hover { transform: translateX(8px); background: rgba(255,255,255,.1); }
.join-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.join-top span { font-size: 25px; }
.join-top small { color: var(--faint); letter-spacing: 1.8px; font-weight: 800; }
.join-option strong { display: block; font-family: 'Space Grotesk'; font-size: 24px; }
.join-option p { margin: 8px 0 18px; font-size: 13px; }
.join-option i { font-style: normal; font-size: 12px; font-weight: 800; color: #93c2ff; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.contact-copy > p { font-size: 16px; }
.contact-details { display: grid; gap: 10px; margin: 28px 0; }
.contact-details > * { padding: 15px 17px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.contact-details small { display: block; color: var(--faint); font-size: 9px; letter-spacing: 1.5px; margin-bottom: 5px; }
.contact-details strong { font-size: 14px; }
.socials { display: flex; gap: 9px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); font-weight: 800; }
.contact-form { display: grid; gap: 15px; padding: 28px; border-radius: 24px; border: 1px solid rgba(255,255,255,.12); background: rgba(5,14,25,.64); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 8px; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 700; }
input, textarea { width: 100%; color: #fff; outline: none; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.07); padding: 13px 14px; transition: .2s ease; }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.34); }
input:focus, textarea:focus { border-color: rgba(103,172,255,.65); box-shadow: 0 0 0 4px rgba(67,140,255,.1); }
textarea { resize: vertical; }
.form-note { min-height: 16px; margin: 0; font-size: 11px; color: #76e5bf; }

/* ---------- Footer ---------- */
.footer { min-height: auto; padding-top: 30px; padding-bottom: 34px; align-items: flex-end; }
.footer-glass { padding: 42px; }
.footer-top { display: grid; grid-template-columns: 1.5fr .7fr .9fr; gap: 70px; }
.footer-brand { margin-bottom: 18px; }
.footer-top p { max-width: 480px; font-size: 13px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 12px; color: rgba(255,255,255,.55); }
.footer-links h4 { margin: 0 0 10px; color: #fff; }
.footer-bottom { margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; color: rgba(255,255,255,.35); font-size: 10px; }

/* ---------- Modal ---------- */
.modal { display: none; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center; padding: 20px; }
.modal.show { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(1,6,12,.76); backdrop-filter: blur(8px); }
.modal-box { position: relative; z-index: 2; width: min(700px, 100%); max-height: 90vh; overflow: auto; color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 28px; background: rgba(8,19,33,.94); backdrop-filter: blur(22px); padding: 34px; box-shadow: 0 40px 120px rgba(0,0,0,.45); animation: modalIn .25s ease both; }
.modal-close { position: absolute; right: 18px; top: 18px; width: 36px; height: 36px; border-radius: 50%; border: 0; color: #fff; background: rgba(255,255,255,.09); font-size: 22px; }
.modal-chip { color: #8dc0ff; font-size: 9px; letter-spacing: 1.7px; font-weight: 800; }
.modal-box h2 { font-size: 38px; margin: 12px 0 7px; }
.modal-box > p { margin-top: 0; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; background: rgba(255,255,255,.06); border-radius: 13px; padding: 5px; margin: 20px 0; }
.role-btn { border: 0; border-radius: 10px; background: transparent; color: rgba(255,255,255,.55); padding: 11px; font-weight: 800; }
.role-btn.active { color: #fff; background: rgba(255,255,255,.11); }
#joinForm { display: grid; gap: 14px; }

/* ---------- Animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s ease, transform .85s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .10s; }
.delay-2 { transition-delay: .20s; }
.delay-3 { transition-delay: .30s; }
@keyframes scrollCue { 0%,100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(15px); opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(15px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ---------- Responsive ---------- */
@media (max-width: 1050px) {
  .container { width: min(100% - 38px, 1280px); }
  .nav-links { position: absolute; top: 82px; left: 0; right: 0; display: none; padding: 20px; flex-direction: column; border-radius: 18px; background: rgba(6,16,29,.95); border: 1px solid rgba(255,255,255,.12); }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
  .nav-cta { display: none; }
  .hero h1 { font-size: clamp(67px, 10.5vw, 105px); }
  .hero-lower { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .about-layout, .join-glass, .contact-layout, .split-heading { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 22px, 1280px); }
  .site-header { top: 8px; }
  .nav-shell { min-height: 64px; border-radius: 17px; }
  .section-window { min-height: auto; padding: 90px 0; }
  .hero-window { min-height: 100vh; padding-top: 112px; }
  .hero-content { padding-top: 10vh; }
  .hero h1 { font-size: clamp(52px, 17vw, 76px); line-height: .88; letter-spacing: -3.8px; margin-top: 22px; }
  .hero-lower p { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-info-grid { grid-template-columns: 1fr 1fr; margin-top: 42px; }
  h2 { font-size: 40px; letter-spacing: -1.8px; }
  .glass-section, .join-glass { padding: 26px; border-radius: 24px; }
  .service-grid, .form-row, .footer-top { grid-template-columns: 1fr; }
  .service-card { min-height: 220px; }
  .join-copy h2 { font-size: 47px; }
  .footer-glass { padding: 28px; }
  .footer-bottom { flex-direction: column; gap: 7px; }
  .modal { padding: 8px; }
  .modal-box { padding: 25px 18px; border-radius: 21px; }
}

/* ---------- Version 3 Application Form States ---------- */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

#joinSubmitBtn:disabled {
  opacity: .62;
  cursor: wait;
}

#joinMsg.error-message {
  color: #ff9f9f;
}
