/* ============================================================
   NexGen Builders — Design tokens & base styles
   Aesthetic: midnight navy + electric blue, tech-forward
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #05091F;
  --bg-2: #0A1030;
  --surface: #0E1538;
  --surface-2: #141C46;
  --border: rgba(140, 165, 230, 0.14);
  --border-strong: rgba(140, 165, 230, 0.28);

  /* Ink */
  --ink: #F4F7FF;
  --ink-2: #C7D0EC;
  --ink-mute: #8A95B8;
  --ink-dim: #5C6790;

  /* Brand */
  --blue: #3D7EFF;
  --blue-hot: #5B9CFF;
  --cyan: #22D3EE;
  --coral: #FF5757;
  --accent: var(--blue);
  --accent-2: var(--cyan);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Typographic primitives */
.font-display { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }
.font-mono    { font-family: 'JetBrains Mono', monospace; letter-spacing: 0; }

/* Background ambient noise / grid */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(61, 126, 255, 0.22), transparent 60%),
    radial-gradient(800px 600px at 95% 5%, rgba(34, 211, 238, 0.14), transparent 65%),
    radial-gradient(700px 500px at 50% 110%, rgba(61, 126, 255, 0.10), transparent 65%);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(140, 165, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 165, 230, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 80%);
}
.bg-dots {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(140, 165, 230, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 20%, black, transparent 75%);
  opacity: 0.5;
}

/* Layout */
.wrap {
  position: relative;
  z-index: 1;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(5, 9, 31, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  position: relative;
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}
.nav.scrolled .brand-logo {
  height: 38px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-text .name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand-text .sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-mute);
  margin-top: 4px;
  letter-spacing: 0.06em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  color: var(--ink-mute);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  letter-spacing: 0.04em;
}
.lang-toggle button.active {
  background: var(--blue);
  color: white;
  box-shadow: 0 0 0 0 transparent, 0 4px 12px rgba(61, 126, 255, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 6px 20px -8px rgba(61, 126, 255, 0.7);
}
.btn-primary:hover {
  background: var(--blue-hot);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(61, 126, 255, 0.8);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(140, 165, 230, 0.45);
  transform: translateY(-1px);
}
.btn-lg { padding: 15px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-login {
  padding: 9px 16px;
  font-size: 13px;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-actions .btn-login { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
@media (max-width: 940px) {
  .hero { padding: 120px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 999px;
  box-shadow: 0 0 14px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 6.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--blue) 0%, var(--cyan) 60%, var(--blue-hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
  max-width: 540px;
  margin-bottom: 36px;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 580px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.025em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat .num .suffix {
  color: var(--blue);
  font-size: 0.7em;
  margin-left: 2px;
}
.stat .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  width: 100%;
}
.hero-photo {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow:
    0 30px 80px -30px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(61, 126, 255, 0.08) inset;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 9, 31, 0) 40%, rgba(5, 9, 31, 0.65) 100%),
    linear-gradient(220deg, rgba(61, 126, 255, 0.12) 0%, transparent 50%);
}

.float-card {
  position: absolute;
  background: rgba(14, 21, 56, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  animation: float 6s ease-in-out infinite;
}
.float-card.fc-class {
  bottom: 24px;
  left: -28px;
  max-width: 230px;
  animation-delay: -1s;
}
.float-card.fc-badge {
  top: 24px;
  right: -28px;
  animation-delay: -3s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.fc-class .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.fc-class .val {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
}
.fc-class .val small {
  font-size: 13px;
  color: var(--ink-mute);
  font-weight: 500;
  display: block;
  margin-top: 4px;
}

.fc-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fc-badge .trophy {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px -6px rgba(61, 126, 255, 0.6);
}
.fc-badge .info { display: flex; flex-direction: column; }
.fc-badge .info .small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.fc-badge .info .title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
}

/* Tech overlay on hero photo */
.tech-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.tech-corner {
  position: absolute;
  width: 28px; height: 28px;
  border-color: rgba(34, 211, 238, 0.7);
  border-style: solid;
}
.tech-corner.tl { top: 16px; left: 16px; border-width: 1.5px 0 0 1.5px; }
.tech-corner.tr { top: 16px; right: 16px; border-width: 1.5px 1.5px 0 0; }
.tech-corner.bl { bottom: 16px; left: 16px; border-width: 0 0 1.5px 1.5px; }
.tech-corner.br { bottom: 16px; right: 16px; border-width: 0 1.5px 1.5px 0; }

.tech-label {
  position: absolute;
  bottom: 22px;
  left: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tech-label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 999px;
  box-shadow: 0 0 10px var(--cyan);
}

@media (max-width: 940px) {
  .float-card.fc-class { left: 12px; bottom: 12px; }
  .float-card.fc-badge { right: 12px; top: 12px; }
}

/* ============================================================
   Marquee
   ============================================================ */
.marquee {
  background: var(--blue);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 48px;
  animation: marquee 38s linear infinite;
  width: max-content;
  white-space: nowrap;
}
.marquee-item {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: white;
  display: flex;
  align-items: center;
  gap: 48px;
}
.marquee-item::after {
  content: '';
  width: 8px; height: 8px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Section primitives
   ============================================================ */
.section {
  padding: 120px 0;
  position: relative;
}
@media (max-width: 720px) {
  .section { padding: 80px 0; }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 56px;
  max-width: 720px;
}
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--blue);
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section-lead {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 600px;
  text-wrap: pretty;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.06s; }
.reveal.delay-2 { transition-delay: 0.12s; }
.reveal.delay-3 { transition-delay: 0.18s; }
.reveal.delay-4 { transition-delay: 0.24s; }
.reveal.delay-5 { transition-delay: 0.30s; }
.reveal.delay-6 { transition-delay: 0.36s; }

/* ============================================================
   Programs grid
   ============================================================ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .programs-grid { grid-template-columns: 1fr; }
}

.program {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.program::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at var(--glow-x, 50%) var(--glow-y, 0%), var(--glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.program:hover {
  transform: translateY(-4px);
  border-color: var(--glow-border, var(--blue));
  box-shadow: 0 24px 50px -28px var(--glow-shadow, rgba(61, 126, 255, 0.4));
}
.program:hover::before { opacity: 0.6; }

.program-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.program-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
}
.program-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--icon-bg, rgba(61, 126, 255, 0.12));
  display: grid;
  place-items: center;
  color: var(--icon-fg, var(--blue));
  border: 1px solid var(--icon-border, rgba(61, 126, 255, 0.2));
}
.program-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.program-desc {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}
.program-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  position: relative;
  z-index: 1;
}
.program-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

/* ============================================================
   Why Us
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 940px) {
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
}

.why-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}
.why-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}
.why-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(5, 9, 31, 0) 50%, rgba(5, 9, 31, 0.55) 100%);
}

.why-overlay-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(14, 21, 56, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
}
.why-overlay-card .stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: var(--cyan);
  letter-spacing: -0.02em;
}
.why-overlay-card .stat-text {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.35;
}

.feature-list {
  display: flex;
  flex-direction: column;
}
.feature {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.feature:first-child { padding-top: 0; }
.feature:last-child { border-bottom: 0; }
.feature-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--blue);
  letter-spacing: 0.06em;
  padding-top: 2px;
}
.feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.feature-desc {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ============================================================
   Achievements
   ============================================================ */
.section.dark {
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(34, 211, 238, 0.08), transparent 60%),
    linear-gradient(180deg, #030615 0%, #050B22 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.achievements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 820px) {
  .achievements { grid-template-columns: 1fr; }
}

.achievement {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.achievement-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.achievement-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.55);
}
.achievement-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 9, 31, 0.4) 0%, rgba(5, 9, 31, 0.95) 100%),
    linear-gradient(220deg, rgba(61, 126, 255, 0.16) 0%, transparent 55%);
}
.achievement-body {
  position: relative;
  z-index: 1;
  padding: 36px;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}
.achievement-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.achievement-meta::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--cyan);
}
.achievement-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  margin-top: auto;
  line-height: 1.1;
}
.achievement-desc {
  font-size: 15px;
  color: var(--ink-2);
  max-width: 440px;
  margin-bottom: 22px;
}
.achievement-stats {
  display: flex;
  gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}
.achievement-stats .stat-row .num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
}
.achievement-stats .stat-row .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* ============================================================
   Areas
   ============================================================ */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 980px;
}
.area-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-2);
  transition: all 0.25s var(--ease);
  cursor: default;
}
.area-pill.active {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  box-shadow: 0 8px 20px -10px rgba(61, 126, 255, 0.7);
}
.area-pill:hover {
  border-color: var(--border-strong);
  color: var(--ink);
  transform: translateY(-2px);
}
.area-pill.active:hover {
  background: var(--blue-hot);
  color: white;
}
.area-pill .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--ink-dim);
}
.area-pill.active .dot {
  background: white;
  box-shadow: 0 0 8px white;
}

/* ============================================================
   CTA / Contact
   ============================================================ */
.cta-section {
  padding: 120px 0;
  background:
    radial-gradient(800px 500px at 20% 30%, rgba(34, 211, 238, 0.3), transparent 60%),
    radial-gradient(800px 500px at 90% 70%, rgba(91, 156, 255, 0.3), transparent 60%),
    linear-gradient(135deg, #1E3A8A 0%, #1E40AF 50%, #2563EB 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 820px) {
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
}

.cta-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 4.8vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: white;
  margin-bottom: 18px;
}
.cta-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 32px;
}
.cta-section .btn-primary {
  background: white;
  color: var(--bg);
}
.cta-section .btn-primary:hover {
  background: #F0F4FF;
}
.cta-section .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
}
.cta-section .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.contact-card {
  background: rgba(5, 9, 31, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 36px;
}
.contact-card .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-card .label::before {
  content: '';
  width: 24px; height: 1px;
  background: rgba(255, 255, 255, 0.6);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: white;
  transition: padding 0.25s var(--ease);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item:hover { padding-left: 8px; }
.contact-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  color: white;
  flex-shrink: 0;
}
.contact-text { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.contact-text .ttl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.contact-text .val {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.contact-item .arrow {
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.contact-item:hover .arrow {
  color: white;
  transform: translateX(4px);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.footer .copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;
  letter-spacing: 0.04em;
}
.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--ink); }
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-inner > div:first-child { justify-content: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 768px) {
  .cta-section { padding: 72px 0; }
  .cta-section .hero-ctas { flex-direction: column; }
  .cta-section .hero-ctas .btn { width: 100%; }
  .contact-card { padding: 24px 18px; }
  .contact-text .val { font-size: 15px; word-break: break-all; }
}

/* ============================================================
   Mobile nav drawer
   ============================================================ */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 31, 0.97);
  backdrop-filter: blur(20px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease);
}
.mobile-drawer.open { transform: translateY(0); }
.mobile-drawer .close {
  align-self: flex-end;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 38px; height: 38px;
  color: white;
  cursor: pointer;
}
.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 32px;
}
.mobile-drawer nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-drawer .drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-bottom: 24px;
}

@media (max-width: 1080px) {
  .menu-toggle { display: flex; }
}

/* ============================================================
   Mark / NX logo glyph
   ============================================================ */
.nx-mark {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   Achievement "Soon" badge
   ============================================================ */
.achievement-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.16);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--cyan);
  margin-left: 10px;
  text-transform: uppercase;
  vertical-align: 2px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  max-width: 920px;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  display: grid;
  grid-template-columns: 56px 1fr 28px;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 24px 0;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  transition: padding 0.25s var(--ease);
}
.faq-q:hover { padding-left: 6px; }
.faq-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--blue);
  letter-spacing: 0.06em;
}
.faq-q-text {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.faq-chev {
  color: var(--ink-mute);
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease), color 0.25s var(--ease);
}
.faq-item.open .faq-chev {
  transform: rotate(180deg);
  color: var(--blue);
}
.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.faq-item.open .faq-a-wrap {
  grid-template-rows: 1fr;
}
.faq-a {
  overflow: hidden;
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.6;
  padding: 0 0 0 72px;
  text-wrap: pretty;
}
.faq-item.open .faq-a {
  padding: 0 0 24px 72px;
}
@media (max-width: 620px) {
  .faq-q { grid-template-columns: 40px 1fr 24px; gap: 10px; }
  .faq-q-text { font-size: 16px; }
  .faq-a { padding-left: 50px; }
  .faq-item.open .faq-a { padding-left: 50px; padding-bottom: 22px; }
}

/* ============================================================
   Careers / Join us
   ============================================================ */
.careers-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 940px) {
  .careers-grid { grid-template-columns: 1fr; gap: 32px; }
}

.careers-roles {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.role-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.role-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.role-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.role-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.role-desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}

.careers-form-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
}
@media (max-width: 620px) {
  .careers-form-card { padding: 24px 22px; border-radius: 18px; }
}
.form-head { margin-bottom: 26px; }
.form-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.form-sub {
  font-size: 14px;
  color: var(--ink-mute);
  text-wrap: pretty;
}
.form-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 620px) {
  .field-row { grid-template-columns: 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field-lbl em {
  color: var(--coral);
  font-style: normal;
}
.field input,
.field select,
.field textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  resize: vertical;
  width: 100%;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-dim);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(61, 126, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(61, 126, 255, 0.18);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%238A95B8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field select option {
  background: var(--surface);
  color: var(--ink);
}

.dropzone {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  border: 1.5px dashed var(--border-strong);
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  background: rgba(255, 255, 255, 0.02);
}
.dropzone:hover, .dropzone.over {
  border-color: var(--blue);
  background: rgba(61, 126, 255, 0.06);
}
.dropzone.has-file {
  border-style: solid;
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.05);
}
.dz-icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: rgba(61, 126, 255, 0.12);
  border: 1px solid rgba(61, 126, 255, 0.25);
  border-radius: 12px;
  color: var(--blue);
}
.dropzone.has-file .dz-icon {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.35);
  color: var(--cyan);
}
.dz-text { display: flex; flex-direction: column; gap: 2px; }
.dz-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.dz-hint {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  word-break: break-all;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 12px;
  gap: 8px;
}
.success-mark {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--cyan);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.form-success h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.form-success p {
  font-size: 14.5px;
  color: var(--ink-2);
  margin-bottom: 18px;
  max-width: 340px;
}
