/* ============================================
   MERKURI.ONE — Core Stylesheet
   ============================================ */

:root {
  --bg-primary:    #050508;
  --bg-secondary:  #0a0a12;
  --bg-card:       #0d0d18;
  --bg-card-hover: #111122;
  --accent-blue:   #00c8ff;
  --accent-green:  #00ff9d;
  --accent-purple: #a855f7;
  --accent-gold:   #f59e0b;
  --text-primary:  #f0f0ff;
  --text-secondary:#8888aa;
  --text-muted:    #44445a;
  --border:        rgba(255,255,255,0.06);
  --border-accent: rgba(0,200,255,0.2);
  --font-sans:     'Space Grotesk', sans-serif;
  --font-mono:     'Space Mono', monospace;
  --nav-h:         72px;
  --radius:        8px;
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 70px;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-blue); border-radius: 2px; }

/* ── SELECTION ── */
::selection { background: rgba(0,200,255,0.25); color: #fff; }

/* ============================================
   NAV
   ============================================ */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.main-nav.scrolled {
  background: rgba(5,5,8,0.97);
  border-bottom-color: var(--border-accent);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
}
.logo-mark {
  font-size: 1.4rem;
  color: var(--accent-blue);
  animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { text-shadow: 0 0 8px var(--accent-blue); }
  50%      { text-shadow: 0 0 24px var(--accent-blue), 0 0 48px rgba(0,200,255,0.4); }
}
.logo-text {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.logo-dot { color: var(--accent-blue); }

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--accent-blue) !important;
  color: var(--bg-primary) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700 !important;
  transition: box-shadow var(--transition), transform var(--transition) !important;
}
.nav-cta:hover {
  box-shadow: 0 0 20px rgba(0,200,255,0.5);
  transform: translateY(-1px);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 8, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header--scrolled {
  background: rgba(8, 8, 14, 0.97);
  border-bottom-color: rgba(255,255,255,0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Logo ── */
.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.nav__logo-text {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
}

/* ── Links row ── */
.nav__links {
  display: flex;
  flex-direction: row;        /* ← critical */
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 220, 240, 0.7);
  text-decoration: none;
  border-radius: 3px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.nav__link:hover,
.nav__link--active {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.nav__link--cta {
  color: var(--accent-green, #10b981);
  border: 1px solid rgba(16,185,129,0.4);
  padding: 0.45rem 1rem;
}

.nav__link--cta:hover {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.7);
  color: #34d399;
}

.nav__caret {
  font-size: 0.5rem;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

/* ── Dropdown ── */
.nav__dropdown {
  position: relative;
  list-style: none;
}

.nav__submenu {
  display: none;              /* ← hidden by default */
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: rgba(12, 12, 20, 0.97);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 1001;
}

/* Only show when JS adds dd-open */
.nav__dropdown.dd-open .nav__submenu {
  display: block;
}

.nav__dropdown.dd-open .nav__caret {
  transform: rotate(180deg);
}

.nav__submenu li {
  list-style: none;
}

.nav__submenu a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200,220,240,0.7);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.nav__submenu a:hover,
.nav__submenu a.active {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

/* ── Mobile toggle button ── */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(200,220,240,0.8);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle.m1-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav__toggle.m1-open span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.m1-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── Mobile breakpoint ── */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
    position: relative;
    z-index: 1002;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    /* REMOVED: bottom: 0  — that was filling the whole screen */
    /* Instead use max-height so it's only as tall as it needs to be */
    max-height: calc(100vh - 70px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(8, 8, 14, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 200, 255, 0.12);
    /* Tight padding — no more 1.5rem bloat */
    padding: 0.25rem 0 0.5rem;
    overflow-y: auto;
    z-index: 999;
  }

  .nav__links.m1-open {
    display: flex;
  }

  .nav__links > li {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* Compact link rows */
  .nav__link {
    width: 100%;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.72rem;
    line-height: 1.3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    height: auto !important;
    min-height: 0 !important;
  }

  /* Submenu — indented, tight */
  .nav__submenu {
    position: static;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0 1rem;
  }

  .nav__submenu a {
    padding: 0.35rem 1.25rem;
    font-size: 0.68rem;
    line-height: 1.3;
  }

  .nav__dropdown.dd-open .nav__submenu {
    display: block;
  }

  /* CTA button — compact, centered */
  .nav__link--cta {
    margin: 0.4rem 1.25rem 0.25rem;
    width: calc(100% - 2.5rem);
    text-align: center;
    justify-content: center;
    padding: 0.45rem 1rem !important;
  }
}


/* ── Page body offset for fixed header ── */
body {
  padding-top: 70px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
#particleCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}
/* ── HERO TITLE ─────────────────────────────── */
.hero-title {
  font-size: clamp(3rem, 8vw, 6.5rem); /* was likely 15vw+ */
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
  color: #ffffff;
}

/* Glitch layers */
.hero-title .glitch-text {
  position: relative;
  display: inline-block;
}
.hero-title .glitch-text::before,
.hero-title .glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
.hero-title .glitch-text::before {
  color: var(--accent-blue);
  animation: glitch-1 3.5s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.hero-title .glitch-text::after {
  color: var(--accent-purple);
  animation: glitch-2 3.5s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

/* Glitch Effect */
.glitch-wrapper { margin-bottom: 1.5rem; }
.glitch {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
.glitch::before {
  color: var(--accent-blue);
  animation: glitch1 3.5s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.glitch::after {
  color: var(--accent-purple);
  animation: glitch2 3.5s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}
@keyframes glitch1 {
  0%,90%,100% { transform: translate(0); opacity: 0; }
  91%          { transform: translate(-3px, 1px); opacity: 0.8; }
  93%          { transform: translate(3px, -1px); opacity: 0.8; }
  95%          { transform: translate(-2px, 2px); opacity: 0.8; }
  97%          { transform: translate(0); opacity: 0; }
}
@keyframes glitch2 {
  0%,88%,100% { transform: translate(0); opacity: 0; }
  89%          { transform: translate(3px, -2px); opacity: 0.7; }
  91%          { transform: translate(-3px, 1px); opacity: 0.7; }
  93%          { transform: translate(2px, -1px); opacity: 0.7; }
  95%          { transform: translate(0); opacity: 0; }
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  color: var(--accent-blue);
  margin-bottom: 1rem;
  min-height: 2em;
  letter-spacing: 0.06em;
}
.cursor-blink {
  animation: blink 1s step-end infinite;
  color: var(--accent-green);
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.hero-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--accent-blue);
  color: var(--bg-primary);
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0,200,255,0.5);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
}
.btn-ghost:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(0,200,255,0.15);
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }

/* Telemetry Bar */
.telemetry-bar {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.tel-item { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.tel-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}
.tel-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 700;
}
.tel-val.online { color: var(--accent-green); }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-blue), transparent);
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   SECTIONS — SHARED
   ============================================ */
section { padding: 6rem 2rem; }
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-blue);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ============================================
   DIVISIONS GRID
   ============================================ */
.divisions { background: var(--bg-secondary); }
.division-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.division-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.division-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--card-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.division-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--card-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(0,200,255,0.05);
}
.division-card:hover::before { transform: scaleX(1); }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.card-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}
.card-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.1em;
}
.card-status.active {
  background: rgba(0,255,157,0.1);
  color: var(--accent-green);
  border: 1px solid rgba(0,255,157,0.3);
}
.card-icon {
  font-size: 2.5rem;
  color: var(--card-accent);
  margin-bottom: 1rem;
  display: block;
}
.card-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.card-domain {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--card-accent);
  margin-bottom: 1rem;
  opacity: 0.8;
}
.card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--card-accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: gap var(--transition);
}
.card-link:hover .arrow { transform: translateX(4px); }
.arrow { transition: transform var(--transition); display: inline-block; }

/* ============================================
   CAPABILITIES MATRIX
   ============================================ */
.capabilities { background: var(--bg-primary); }
.cap-matrix {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.cap-row {
  display: grid;
  grid-template-columns: 220px 1fr 50px;
  align-items: center;
  gap: 1rem;
}
.cap-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.cap-bar-wrap {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.cap-bar {
  height: 100%;
  width: 0;
  background: var(--bar-color);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px var(--bar-color);
}
.cap-pct {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

/* ============================================
   STATS
   ============================================ */
.stats-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================
   CONTACT STRIP
   ============================================ */
.contact-strip {
  background: linear-gradient(135deg, rgba(0,200,255,0.05) 0%, rgba(168,85,247,0.05) 100%);
  border-top: 1px solid var(--border-accent);
  text-align: center;
  padding: 6rem 2rem;
}
.cs-inner { max-width: 600px; margin: 0 auto; }
.cs-inner h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
.cs-inner p { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.05rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo-mark { font-size: 1.2rem; color: var(--accent-blue); }
.footer-brand .logo-text {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  margin-left: 0.4rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
  line-height: 1.7;
}
.footer-links { display: contents; }
.fl-col { display: flex; flex-direction: column; gap: 0.75rem; }
.fl-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.fl-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}
.fl-col a:hover { color: var(--accent-blue); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-status { display: flex; align-items: center; gap: 0.5rem; }
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .cap-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .cap-pct { text-align: left; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .telemetry-bar { gap: 1rem; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  section { padding: 4rem 1.25rem; }
}
/* ============================================
   PAGE HERO (Division / Inner Pages)
   ============================================ */

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 3rem;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  margin: 1rem 0;
  line-height: 1.1;
}
.page-hero-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.7;
  margin-top: 0.75rem;
}
.page-hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.hs-block {
  flex: 1;
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.hs-block:last-child { border-right: none; }
.hs-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-blue);
}
.hs-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* Breadcrumb */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumb a { color: var(--accent-blue); text-decoration: none; }
.bc-sep { color: var(--text-muted); }

/* Division Badge */
.division-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--badge-color);
  border-radius: 20px;
  background: rgba(0,200,255,0.05);
}
.badge-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--badge-color);
  letter-spacing: 0.12em;
}
.badge-status.active {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-green);
  letter-spacing: 0.1em;
}

/* Domain Link */
.hero-domain {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.domain-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}
.domain-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-blue);
  text-decoration: none;
  transition: opacity var(--transition);
}
.domain-link:hover { opacity: 0.7; }

/* Text accent helpers */
.text-accent-blue   { color: var(--accent-blue); }
.text-accent-green  { color: var(--accent-green); }
.text-accent-purple { color: var(--accent-purple); }
.text-accent-gold   { color: var(--accent-gold); }

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* Section header left-aligned variant */
.section-header.left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  margin-bottom: 3rem;
}

/* ============================================
   AEROSPACE — CAPABILITY CARDS
   ============================================ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all var(--transition);
  border-top: 2px solid var(--cap-color);
}
.cap-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.cap-card-icon {
  font-size: 1.8rem;
  color: var(--cap-color);
  margin-bottom: 1rem;
}
.cap-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.cap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cap-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
}
.cap-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cap-color);
  font-size: 0.75rem;
}

/* ============================================
   SECTORS
   ============================================ */
.programs-section { background: var(--bg-secondary); }
.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.sector-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  border-left: 3px solid var(--sec-color);
  transition: all var(--transition);
}
.sector-card:hover {
  background: var(--bg-card-hover);
  transform: translateX(4px);
}
.sector-icon {
  font-size: 1.5rem;
  color: var(--sec-color);
  display: block;
  margin-bottom: 0.75rem;
}
.sector-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.sector-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   CERTIFICATIONS
   ============================================ */
.cert-strip {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
}
.cert-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}
.cert-block:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(0,200,255,0.08);
}
.cert-name {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-blue);
}
.cert-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-green);
  margin: 0.25rem 0;
}
.cert-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* ============================================
   PROCESS FLOW
   ============================================ */
.process-section { background: var(--bg-secondary); }
.process-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}
.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  position: relative;
  padding-bottom: 2.5rem;
}
.process-step:last-child { padding-bottom: 0; }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-blue);
  background: rgba(0,200,255,0.08);
  border: 1px solid rgba(0,200,255,0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  padding-top: 0.6rem;
}
.step-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.step-connector {
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-blue), transparent);
}
.process-step:last-child .step-connector { display: none; }

/* ============================================
   MANUFACTURING — EQUIPMENT
   ============================================ */
.equipment-section { background: var(--bg-secondary); }
.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.equip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  border-top: 2px solid var(--eq-color);
  transition: all var(--transition);
}
.equip-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}
.equip-icon {
  font-size: 1.8rem;
  color: var(--eq-color);
  margin-bottom: 1rem;
}
.equip-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.equip-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.equip-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
}
.equip-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--eq-color);
  font-size: 0.7rem;
  top: 2px;
}

/* ============================================
   MATERIALS TABLE
   ============================================ */
.materials-section { background: var(--bg-primary); }
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table thead {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-accent);
}
.data-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
}
.data-table td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.td-primary {
  color: var(--text-primary) !important;
  font-weight: 600;
}

/* ============================================
   TECHNOLOGY — STACK CARDS
   ============================================ */
.tech-stack-section { background: var(--bg-secondary); }
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.stack-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  border-left: 3px solid var(--stack-color);
  transition: all var(--transition);
}
.stack-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.stack-icon {
  font-size: 1.8rem;
  color: var(--stack-color);
  margin-bottom: 1rem;
}
.stack-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.stack-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stack-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
}
.stack-list li::before {
  content: '◦';
  position: absolute;
  left: 0;
  color: var(--stack-color);
}

/* ============================================
   PLATFORMS LIST
   ============================================ */
.platforms-section { background: var(--bg-primary); }
.platform-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.platform-row {
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--plat-color);
  transition: background var(--transition);
}
.platform-row:last-child { border-bottom: none; }
.platform-row:hover { background: var(--bg-card-hover); }
.plat-name {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--plat-color);
}
.plat-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  letter-spacing: 0.06em;
}
.plat-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.plat-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.plat-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
.plat-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.1em;
}
.plat-status.live {
  background: rgba(0,255,157,0.1);
  color: var(--accent-green);
  border: 1px solid rgba(0,255,157,0.3);
}
.plat-status.building {
  background: rgba(245,158,11,0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(245,158,11,0.3);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section { padding: 5rem 2rem; background: var(--bg-primary); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.req { color: var(--accent-blue); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0,200,255,0.1);
}
.form-group select {
  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 d='M1 1l5 5 5-5' stroke='%2344445a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group select option { background: var(--bg-secondary); }
.form-group textarea { resize: vertical; min-height: 160px; }
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.5rem;
}
.form-note { font-size: 0.8rem; color: var(--text-muted); }

/* Form States */
.form-errors {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-error-item { font-size: 0.875rem; color: #f87171; }
.form-success {
  text-align: center;
  padding: 3rem 2rem;
}
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,255,157,0.1);
  border: 2px solid var(--accent-green);
  color: var(--accent-green);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.form-success h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.form-success p { color: var(--text-secondary); }

/* Contact Sidebar */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.sidebar-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.sidebar-block h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.sidebar-block p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.sidebar-links { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-div-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--sdl-color);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.sidebar-div-link:hover {
  border-color: var(--sdl-color);
  background: rgba(255,255,255,0.03);
}
.sidebar-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0 0.25rem;
}

/* CTA group */
.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE — INNER PAGES
   ============================================ */
@media (max-width: 1024px) {
  .platform-row { grid-template-columns: 1fr 1fr; }
  .plat-desc { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-sidebar { position: static; }
}
@media (max-width: 768px) {
  .page-hero-stats { flex-wrap: wrap; }
  .hs-block { flex: 1 1 45%; border-right: none; border-bottom: 1px solid var(--border); }
  .form-row { grid-template-columns: 1fr; }
  .platform-row { grid-template-columns: 1fr; }
  .plat-right { align-items: flex-start; }
  .cap-row { grid-template-columns: 1fr; }
}
/* ============================================
   CRITICAL — Canvas & Hero Sizing Fix
   ============================================ */

/* Ensure hero has explicit height so canvas can measure it */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* dynamic viewport height for mobile */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: var(--bg-primary); /* fallback while canvas loads */
}

/* Canvas must be position:absolute and fill parent */
#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block; /* removes inline-block gap */
  pointer-events: none; /* allow clicks through canvas */
}

/* Hero content must sit above canvas */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
  width: 100%;
}

/* ── HAMBURGER ACTIVE STATE (X animation) ── */
.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-hamburger span {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* ── MOBILE NAV — drops below header, fixed to viewport ── */
.nav-mobile {
  display: none;
  flex-direction: column;
  /* Fixed so it escapes the header entirely */
  position: fixed;
  top: 72px;                          /* matches --nav-h */
  left: 0;
  right: 0;
  z-index: 998;
  /* Compact height — no more full-screen takeover */
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  background: rgba(5, 5, 8, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-accent);
  /* Tight padding */
  padding: 0.25rem 0 0.75rem;
  gap: 0;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--text-secondary);
  text-decoration: none;
  /* Reduced from 0.875rem to compact row height */
  padding: 0.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
  transition: color var(--transition), padding-left var(--transition);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile a:hover {
  color: var(--accent-blue);
  padding-left: 2rem;
}

/* Ensure hamburger button always sits above the panel */
.nav-hamburger {
  position: relative;
  z-index: 999;
}

/* Ensure the header itself doesn't clip the panel */
.main-nav {
  overflow: visible !important;
}


/* ── FONT FALLBACK STACK ── */
body {
  font-family: 'Space Grotesk', system-ui, -apple-system,
               BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.logo-text, .logo-mark, .nav-links a,
.hero-tagline, .section-tag, .tel-label,
.tel-val, .card-code, .font-mono {
  font-family: 'Space Mono', 'Courier New', Courier, monospace;
}
/* ── NAV LOGO IMAGE ─────────────────────────── */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 36px;        /* controls rendered height */
  width: auto;         /* preserves aspect ratio   */
  object-fit: contain;
  display: block;
  /* If your logo is dark/black, invert it for the dark nav */
/*  filter: brightness(0) invert(1);*/
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.nav-logo-img:hover {
  opacity: 0.8;
}

/* Scrolled state — slightly smaller */
.main-nav.scrolled .nav-logo-img {
  height: 30px;
  transition: height 0.3s ease, opacity 0.2s ease;
}

/* ── FOOTER LOGO IMAGE ──────────────────────── */
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
/*  filter: brightness(0) invert(1); */
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer-logo-img:hover {
  opacity: 1;
}
/* ============================================
   HERO — xAI STYLE LIGHT BEAM
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000000;
  padding-top: var(--nav-h, 70px);
}

/* ── BACKGROUND CONTAINER ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ── MAIN CANVAS ── */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ── DOT GRID ── */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.055) 1px,
    transparent 1px
  );
  background-size: 36px 36px;
  mask-image: radial-gradient(
    ellipse 90% 90% at 50% 50%,
    black 20%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 90% 90% at 50% 50%,
    black 20%,
    transparent 100%
  );
  pointer-events: none;
}

/* ── VIGNETTE ── */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(
    ellipse 110% 110% at 50% 50%,
    transparent 20%,
    rgba(0, 0, 0, 0.55) 70%,
    rgba(0, 0, 0, 0.92) 100%
  );
  pointer-events: none;
}

/* ── HERO CONTENT ── */
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 900px;
  gap: 0;
}

/* ── EYEBROW ── */
.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.eyebrow-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #00c8ff;
  opacity: 0.6;
}

/* ── HERO TITLE — clean white, no gradient ── */
.hero-title {
  font-size: clamp(4rem, 11vw, 8.5rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1;
  margin: 0 0 2rem;
  text-transform: uppercase;
  color: #ffffff;
  /* Subtle text shadow to lift off background like xAI */
  text-shadow:
    0 0 80px rgba(255, 255, 255, 0.15),
    0 0 160px rgba(100, 180, 255, 0.08);
  /* NO gradient — clean white */
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
}

/* ── TYPED LINE ── */
.hero-typed {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  color: rgba(0, 200, 255, 0.85);
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
  min-height: 1.8em;
}

.typed-cursor {
  animation: blink 1s step-end infinite;
  color: #00c8ff;
  margin-left: 1px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── HERO SUB ── */
.hero-sub {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.55rem, 1.1vw, 0.7rem);
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  margin: 0 0 2.5rem;
}

/* ── CTA BUTTONS ── */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* ── TELEMETRY BAR ── */
.telemetry-bar {
  display: flex;
  width: 100%;
  max-width: 680px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.tel-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  gap: 0.4rem;
}

.tel-item:last-child { border-right: none; }

.tel-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
}

.tel-val {
  font-family: 'Space Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tel-val.green { color: #00ff9d; }

/* ── SCROLL INDICATOR ── */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(0, 200, 255, 0.45), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(1.15); }
}

/* ── HERO SECTION ─────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 2rem;
  max-width: 1000px;
  width: 100%;
  margin-top: -3vh;
}

/* ── EYEBROW ──────────────────────────────── */
.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.45em;
  color: rgba(160, 185, 210, 0.5);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

/* ── QUOTE ────────────────────────────────── */
.hero-quote {
  margin: 0 0 1.8rem 0;
  padding: 0;
  border: none;
  text-align: center;
}

.hero-quote p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 5rem;          /* hardcoded large — no clamp */
  font-weight: 200;         /* extra light for elegance */
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 1.4rem 0;
  letter-spacing: -0.03em;
  text-shadow:
    0 0 80px rgba(140, 180, 220, 0.18),
    0 4px 20px rgba(0, 0, 0, 0.95);
}

/* Chrome shimmer on key words */
.hero-quote .chrome-text {
  background: linear-gradient(
    125deg,
    #b0c8dc 0%,
    #e8f2fa 28%,
    #ffffff 42%,
    #c0d4e8 58%,
    #e0eef8 75%,
    #a8c0d4 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-quote cite {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.22em;
  color: rgba(140, 170, 200, 0.45);
  margin-top: 0.6rem;
}

/* ── DIVISIONS LINE ───────────────────────── */
.hero-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  color: rgba(120, 150, 180, 0.42);
  text-transform: uppercase;
  margin-bottom: 3.2rem;
}

/* ── BUTTONS ──────────────────────────────── */
.hero-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.6rem;
  border-radius: 2px;
  transition: all 0.28s ease;
  cursor: pointer;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
}
.btn-primary:hover {
  background: transparent;
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: rgba(200, 218, 235, 0.8);
  border: 1px solid rgba(180, 200, 220, 0.3);
}
.btn-ghost:hover {
  border-color: rgba(210, 228, 245, 0.65);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 768px) {
  .hero-quote p {
    font-size: 2.8rem;
  }
}

@media (max-width: 480px) {
  .hero-quote p {
    font-size: 2rem;
    letter-spacing: -0.01em;
  }
}
/* ── Hero selector (testing tool) ── */
.hero-selector-wrap {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(8, 8, 16, 0.92);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 3px;
  padding: 0.4rem 0.8rem;
  backdrop-filter: blur(8px);
}

.hero-selector-wrap label {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(16, 185, 129, 0.7);
  white-space: nowrap;
}

.hero-selector-wrap select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  color: rgba(200, 220, 240, 0.8);
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  outline: none;
}

.hero-selector-wrap select:focus {
  border-color: rgba(16, 185, 129, 0.5);
}

/* ============================================================
   SITE FOOTER — complete replacement
   ============================================================ */

.site-footer {
  background: #04040a;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 5rem 0 0;
}

.site-footer .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr !important;
  gap: 2rem !important;
  align-items: start;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ── Brand column ── */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo-link {
  display: inline-block;
  line-height: 0;
}

.footer-logo {
  height: 28px;        /* ← reduced from 44px */
  width: auto;
  display: block;
  opacity: 0.75;       /* ← slightly more subtle at smaller size */
  transition: opacity 0.2s;
}

.footer-logo:hover { opacity: 1; }

.footer-tagline {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(160,185,210,0.35);
  margin: 0;
  line-height: 1.7;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(160,185,210,0.25);
  margin: 0;
}

/* ── Link columns ── */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-col h4 {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(200,220,240,0.4);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-col ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col ul li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-col ul li::before {
  display: none !important;
}

.footer-col ul li a {
  font-size: 0.8rem;
  color: rgba(160,185,210,0.5);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: rgba(220,235,250,0.9);
}

/* ── Bottom bar ── */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-mono {
  font-family: 'Space Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(160,185,210,0.2);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(160,185,210,0.3);
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

/* ── Hero effect selector ── */
.hero-effect-selector {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(8,8,16,0.92);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 3px;
  padding: 0.4rem 0.8rem;
  backdrop-filter: blur(8px);
}

.hes-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(16,185,129,0.6);
  white-space: nowrap;
}

.hero-effect-selector select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  color: rgba(200,220,240,0.8);
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  outline: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr !important;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1rem;
  }
}

@media (max-width: 400px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}
