/* ============================================================================
   CAT SI ($CSI) — DESIGN SYSTEM & STYLESHEET
   The World's Cutest Baby AI Genius on Mars
   Theme: Dark Futuristic • Cyber / Sci-Fi • Web3 Holographic • SpaceX / Mars
   ========================================================================== */

:root {
  /* --- Core Palette (Directly sampled from Assets) --- */
  --bg:                  #040711; /* Deep cosmic space obsidian */
  --bg-secondary:        #070d1d; /* Spacecraft cockpit navy */
  --bg-tertiary:         #0c152b; /* Elevated surface blue-black */
  --surface:             rgba(11, 18, 36, 0.72);
  --surface-card:        rgba(14, 24, 48, 0.65);
  --surface-border:      rgba(0, 240, 255, 0.16);
  --surface-border-hover:rgba(0, 240, 255, 0.45);
  
  /* Primary: Electric Cyber Cyan (HUD & Core UI) */
  --primary:             #00f0ff;
  --primary-glow:        rgba(0, 240, 255, 0.45);
  --primary-light:       #70f7ff;
  --primary-dark:        #009bb3;

  /* Secondary: Mars Amber / Tabby Gold (Kitten fur & Mars rocket thrusters) */
  --secondary:           #ff9e2c;
  --secondary-glow:      rgba(255, 158, 44, 0.4);
  --secondary-light:     #ffbe70;

  /* Accent: Neural Cyber Emerald (AI Brain Halo & Green kitten eyes) */
  --accent:              #10b981;
  --accent-glow:         rgba(16, 185, 129, 0.4);
  --accent-light:        #34d399;

  /* Text & Readability */
  --text:                #f8fafc;
  --text-cyber:          #c7f8ff;
  --text-dim:            #94a3b8;
  --text-muted:          #64748b;

  /* Shadows & Glows */
  --glow-cyan-sm:        0 0 15px rgba(0, 240, 255, 0.35);
  --glow-cyan-lg:        0 0 35px rgba(0, 240, 255, 0.25);
  --glow-amber:          0 0 25px rgba(255, 158, 44, 0.35);
  --shadow-card:         0 8px 32px 0 rgba(0, 0, 0, 0.45);

  /* Radii */
  --radius-sm:           6px;
  --radius-md:           12px;
  --radius-lg:           20px;
  --radius-xl:           28px;
  --radius-pill:         9999px;

  /* Typography */
  --font-display:        'Orbitron', -apple-system, sans-serif;
  --font-body:           'Space Grotesk', -apple-system, sans-serif;
  --font-mono:           'JetBrains Mono', monospace;

  /* Layout */
  --max-width:           1280px;
  --gutter:              clamp(1.25rem, 4vw, 2.5rem);

  /* Transitions */
  --ease-out-expo:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:         cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================== RESET & BASE ============================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  color-scheme: dark;
  background-color: var(--bg);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

::selection {
  background: var(--primary);
  color: #000;
}

/* ============================== BACKGROUNDS & PARTICLES ============================== */
.cosmic-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.cyber-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.85) 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.85) 0%, transparent 80%);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  margin-left: -300px;
  margin-top: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
  will-change: transform;
}

@media (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}

/* ============================== SCROLL PROGRESS ============================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 240, 255, 0.1);
  z-index: 100;
}

.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  box-shadow: 0 0 10px var(--primary);
  transition: width 0.08s linear;
}

/* ============================== PAGE LOADER ============================== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

.loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 320px;
  width: 90%;
}

.loader-avatar-ring {
  position: relative;
  width: 88px;
  height: 88px;
}

.loader-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--glow-cyan-sm);
  border: 2px solid var(--primary);
}

.loader-orbit {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px dashed var(--primary);
  animation: spin 3s linear infinite;
}

.loader-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--primary);
  text-shadow: var(--glow-cyan-sm);
}

.loader-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: var(--glow-cyan-sm);
  transition: width 0.15s ease;
}

.loader-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================== LAYOUT CONTAINERS ============================== */
.container {
  width: min(100% - var(--gutter) * 2, var(--max-width));
  margin-inline: auto;
  position: relative;
  z-index: 10;
}

.section {
  padding-block: clamp(4rem, 8vw, 7.5rem);
  position: relative;
  z-index: 10;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.6;
}

/* ============================== TYPOGRAPHY & GRADIENTS ============================== */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, #ff5722 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }

/* Eyebrow HUD */
.eyebrow-hud {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-pill);
}

.eyebrow-hud.justify-center {
  margin-inline: auto;
}

.hud-blink {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

/* Optional Glitch Effect */
.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip: rect(0, 0, 0, 0);
}

.glitch-text:hover::before {
  left: -2px;
  text-shadow: 2px 0 var(--primary);
  clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim-1 0.7s infinite linear alternate-reverse;
}

.glitch-text:hover::after {
  left: 2px;
  text-shadow: -2px 0 var(--secondary);
  clip: rect(85px, 550px, 140px, 0);
  animation: glitch-anim-2 0.7s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% { clip: rect(10px, 9999px, 30px, 0); }
  50% { clip: rect(40px, 9999px, 70px, 0); }
  100% { clip: rect(20px, 9999px, 50px, 0); }
}

@keyframes glitch-anim-2 {
  0% { clip: rect(50px, 9999px, 80px, 0); }
  50% { clip: rect(10px, 9999px, 40px, 0); }
  100% { clip: rect(60px, 9999px, 90px, 0); }
}

/* ============================== BUTTONS ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
}

.btn-large {
  padding: 1.1rem 2.2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #00b4d8 100%);
  color: #040711;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
  color: #000;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Light sweep shine effect */
.btn-shine::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  transition: all 0.6s ease;
  pointer-events: none;
}

.btn-shine:hover::after {
  left: 130%;
}

.btn-secondary {
  background: rgba(14, 24, 48, 0.8);
  color: var(--text);
  border: 1px solid rgba(0, 240, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ============================== NAVBAR ============================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  z-index: 90;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(4, 7, 17, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
}

.nav-container {
  width: min(100% - var(--gutter) * 2, var(--max-width));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-avatar-box {
  position: relative;
  width: 38px;
  height: 38px;
}

.brand-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  object-fit: cover;
}

.status-dot-live {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  border: 1.5px solid var(--bg);
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 4px;
  color: var(--primary);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
  padding: 0.35rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  box-shadow: var(--glow-cyan-sm);
  transition: width 0.25s var(--ease-out-expo);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(14, 24, 48, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--text-dim);
  transition: all 0.2s ease;
}

.nav-icon-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.nav-icon-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.1);
  transform: translateY(-2px);
}

/* Hamburger toggle for Mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 38px;
  height: 38px;
  background: rgba(14, 24, 48, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px;
  z-index: 100;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

.menu-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 17, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-inner {
  text-align: center;
  width: min(85%, 360px);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary);
}

.mobile-social-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(14, 24, 48, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--text-dim);
}

.social-chip svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ============================== HERO SECTION ============================== */
.hero-section {
  padding-top: clamp(6rem, 9vw, 8rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
  min-height: clamp(640px, 85vh, 880px);
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.title-sub {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.title-main {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  color: var(--text);
}

.title-gradient {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
}

.hero-desc {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-bottom: 2.8rem;
}

.hero-specs-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(14, 24, 48, 0.55);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.spec-pill {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.spec-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Hero Right: Artwork & HUD Stage */
.hero-art-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  perspective: 1000px;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 12px;
  background: rgba(11, 18, 36, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 240, 255, 0.18);
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
}

.hero-img-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.hero-mascot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.hero-card:hover .hero-mascot-img {
  transform: scale(1.04);
}

.hero-scan-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 15px var(--primary);
  animation: scan-down 3.5s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.75;
}

@keyframes scan-down {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 0.8; }
  85% { opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}

/* ============================== HERO ENTRANCE KEYFRAMES ============================== */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroScaleIn {
  0% {
    opacity: 0.2;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-copy,
.hero-visual,
.hero-title,
.hero-desc,
.hero-actions,
.hero-specs-bar,
.hero-card {
  opacity: 1;
  transform: none;
  filter: none;
}

.hero-active .eyebrow-hud { animation: heroFadeUp 0.4s var(--ease-out-expo) forwards; }
.hero-active .title-sub { animation: heroFadeUp 0.45s var(--ease-out-expo) forwards; }
.hero-active .title-main { animation: heroFadeUp 0.5s var(--ease-out-expo) forwards; }
.hero-active .title-gradient { animation: heroFadeUp 0.55s var(--ease-out-expo) forwards; }
.hero-active .hero-desc { animation: heroFadeUp 0.5s var(--ease-out-expo) forwards; }
.hero-active .hero-actions { animation: heroFadeUp 0.5s var(--ease-out-expo) forwards; }
.hero-active .hero-specs-bar { animation: heroFadeUp 0.5s var(--ease-out-expo) forwards; }
.hero-active .hero-card { animation: heroScaleIn 0.6s var(--ease-out-expo) forwards; }
.hero-active .holo-ring-1 { animation: spin 24s linear infinite; }
.hero-active .holo-ring-2 { animation: spin 36s linear infinite reverse; }

/* Corner HUD Brackets */
.card-hud-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--primary);
  border-style: solid;
  pointer-events: none;
  z-index: 5;
}

.corner-tl { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.corner-tr { top: -2px; right: -2px; border-width: 2px 2px 0 0; }
.corner-bl { bottom: -2px; left: -2px; border-width: 0 0 2px 2px; }
.corner-br { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }

/* Hologram Rings Behind Mascot */
.holo-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.holo-ring-1 {
  inset: -30px;
  border: 1.5px dashed rgba(0, 240, 255, 0.22);
  animation: spin 24s linear infinite;
}

.holo-ring-2 {
  inset: -65px;
  border: 1px dotted rgba(255, 158, 44, 0.2);
  animation: spin 36s linear infinite reverse;
}

.holo-halo {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 65%);
  pointer-events: none;
  z-index: -2;
}

/* Floating Badges */
.float-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: rgba(4, 7, 17, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-cyber);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 15px rgba(0, 240, 255, 0.15);
  backdrop-filter: blur(10px);
  z-index: 10;
  white-space: nowrap;
}

.badge-orbit {
  bottom: -15px;
  right: -15px;
}

.badge-neural {
  top: -15px;
  left: -15px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.badge-icon {
  width: 14px;
  height: 14px;
  color: var(--secondary);
}

/* ============================== TICKER STRIP ============================== */
.ticker-band {
  width: 100%;
  overflow: hidden;
  background: rgba(7, 13, 29, 0.85);
  border-block: 1px solid rgba(0, 240, 255, 0.15);
  padding: 0.9rem 0;
  position: relative;
  z-index: 20;
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  white-space: nowrap;
  padding-right: 2rem;
}

.tick-sym {
  color: var(--primary);
  text-shadow: var(--glow-cyan-sm);
}

.tick-dot {
  color: var(--secondary);
  font-size: 1.2rem;
}

/* ============================== TELEMETRY STRIP ============================== */
.telemetry-strip {
  padding-block: 3.5rem;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.telemetry-card {
  padding: 1.6rem 1.4rem;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.telemetry-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.telemetry-card:hover {
  transform: translateY(-4px);
  border-color: var(--surface-border-hover);
  box-shadow: var(--shadow-card), 0 0 20px rgba(0, 240, 255, 0.15);
}

.telemetry-card:hover::before {
  opacity: 1;
}

.telemetry-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  line-height: 1.1;
}

.telemetry-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.telemetry-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ============================== MISSION SECTION ============================== */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hud-terminal-box {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.box-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.2rem;
  background: rgba(4, 7, 17, 0.7);
  border-bottom: 1px solid var(--surface-border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
}

.box-title {
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.box-badge {
  color: var(--accent);
  font-weight: 700;
}

.mission-body {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mission-subhead {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.telemetry-checklist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-block: 0.5rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.check-content strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-cyber);
  margin-bottom: 0.15rem;
}

.check-content span {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.mission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Right: Wide Panoramic Banner */
.banner-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-card), 0 0 35px rgba(0, 0, 0, 0.7);
  background: rgba(11, 18, 36, 0.8);
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.banner-frame:hover .banner-img {
  transform: scale(1.03);
}

.banner-hud-overlay {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(4,7,17,0.7) 0%, transparent 40%, rgba(4,7,17,0.85) 100%);
  pointer-events: none;
}

.overlay-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: rgba(4, 7, 17, 0.85);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3366;
  box-shadow: 0 0 6px #ff3366;
  animation: pulse-dot 1.2s infinite;
}

.overlay-caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-mono);
}

.caption-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
}

.caption-tech {
  font-size: 0.74rem;
  color: var(--secondary);
}

.banner-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.4;
}

/* ============================== ABOUT / INTELLIGENCE ============================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.overlapping-container {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  padding-bottom: 70px;
}

.card-primary {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-card);
  width: 86%;
}

.about-img-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.card-primary:hover .about-img-main {
  transform: scale(1.04);
}

.card-hud-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--primary);
  background: rgba(4, 7, 17, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.card-secondary-overlap {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 58%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--primary);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.25);
  z-index: 5;
}

.about-img-sub {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.card-secondary-overlap:hover .about-img-sub {
  transform: scale(1.05);
}

.badge-mini-hud {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(4, 7, 17, 0.9);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
}

.badge-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse-dot 1.5s infinite;
}

.about-lede {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 500;
  color: var(--text-cyber);
  margin-bottom: 1rem;
}

.about-body {
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.intel-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.intel-spec-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.intel-spec-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.spec-number {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--secondary);
  line-height: 1;
}

.spec-info h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.spec-info p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* ============================== TERMINAL SECTION ============================== */
.terminal-dashboard {
  max-width: 920px;
  margin-inline: auto;
  background: rgba(7, 13, 29, 0.92);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card), 0 0 40px rgba(0, 240, 255, 0.12);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.terminal-top-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.4rem;
  background: rgba(4, 7, 17, 0.8);
  border-bottom: 1px solid var(--surface-border);
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ctrl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.terminal-connection-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

.conn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.terminal-body {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.metrics-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.matrix-cell {
  padding: 1rem 1.1rem;
  background: rgba(14, 24, 48, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cell-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.cell-value {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Contract HUD Box */
.contract-hud-box {
  background: rgba(4, 7, 17, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  position: relative;
}

.ca-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.ca-tag {
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.ca-status {
  color: var(--primary);
  font-weight: 700;
}

.ca-input-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ca-code-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: rgba(11, 18, 36, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ca-key-icon {
  width: 18px;
  height: 18px;
  color: var(--secondary);
  flex-shrink: 0;
}

.ca-string {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  color: var(--primary);
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  background: var(--primary);
  color: #040711;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-copy:hover {
  background: #fff;
  box-shadow: 0 0 20px var(--primary);
  transform: translateY(-2px);
}

.btn-copy.copied {
  background: var(--accent);
  color: #040711;
  box-shadow: 0 0 20px var(--accent);
}

.copy-icon {
  width: 16px;
  height: 16px;
}

.copy-toast {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: var(--accent);
  color: #040711;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.terminal-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.terminal-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.4rem;
  background: rgba(4, 7, 17, 0.7);
  border-top: 1px solid var(--surface-border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ============================== ARCHIVE / GALLERY ============================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.gallery-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-card), 0 0 25px rgba(0, 240, 255, 0.2);
}

.gallery-img-box {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.gallery-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.gallery-card:hover .gallery-img-box img {
  transform: scale(1.05);
}

.gallery-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(4, 7, 17, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.gallery-meta {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-head h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.gallery-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--secondary);
  font-weight: 600;
}

.gallery-desc {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ============================== COMMUNITY ============================== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.community-card {
  padding: 1.8rem 1.4rem;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
}

.community-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-card), 0 0 25px rgba(0, 240, 255, 0.2);
}

.comm-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.comm-icon-box svg {
  width: 22px;
  height: 22px;
}

.community-card:hover .comm-icon-box {
  background: var(--primary);
  color: #040711;
  transform: translateY(-2px);
}

.comm-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.comm-title-row h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.comm-arrow {
  color: var(--text-dim);
  font-size: 1.1rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.community-card:hover .comm-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

.comm-body p {
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.comm-action-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}

/* ============================== FINAL CTA ============================== */
.final-cta-section {
  position: relative;
  padding-block: clamp(6rem, 11vw, 10rem);
  overflow: hidden;
  text-align: center;
}

.cta-watermark-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.16;
  filter: blur(10px) grayscale(40%);
  pointer-events: none;
}

.cta-watermark-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-halo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(800px, 90vw);
  height: min(800px, 90vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, rgba(255, 158, 44, 0.05) 50%, transparent 75%);
  pointer-events: none;
  z-index: 2;
}

.final-cta-container {
  position: relative;
  z-index: 5;
  max-width: 820px;
}

.final-cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.final-cta-desc {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.final-cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* ============================== FOOTER ============================== */
.footer {
  background: rgba(4, 7, 17, 0.95);
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  padding-top: clamp(3.5rem, 6vw, 5rem);
  padding-bottom: 2.5rem;
  position: relative;
  z-index: 10;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 3.5rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-social-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(14, 24, 48, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--text-dim);
  transition: all 0.2s ease;
}

.footer-social-btn svg {
  width: 18px;
  height: 18px;
}

.footer-social-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-list a {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-nav-list a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-ca-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-ca-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: rgba(11, 18, 36, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
  gap: 0.5rem;
}

.footer-ca-card code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-cyber);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.footer-copy-btn svg {
  width: 12px;
  height: 12px;
}

.footer-copy-btn:hover {
  background: var(--primary);
  color: #040711;
}

.footer-ca-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-bottom-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.disclaimer-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.copyright-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

/* ============================== SCROLL TO TOP BUTTON ============================== */
.scroll-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(7, 13, 29, 0.9);
  border: 1px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s var(--ease-out-expo);
  cursor: pointer;
}

.scroll-top-btn svg {
  width: 20px;
  height: 20px;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--primary);
  color: #040711;
  box-shadow: 0 0 25px var(--primary);
  transform: translateY(-3px);
}

/* ============================== CARD SPOTLIGHT EFFECT ============================== */
.spotlight-card {
  position: relative;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 240, 255, 0.35),
    transparent 45%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* ============================== SCROLL REVEALS ============================== */
html.js [data-reveal]:not(.revealed) {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(4px);
}

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 0.6s var(--ease-out-expo),
              transform 0.6s var(--ease-out-expo),
              filter 0.6s var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ============================== RESPONSIVE MEDIA QUERIES ============================== */
@media (max-width: 1200px) {
  .footer-top-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  }
}

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .eyebrow-hud {
    margin-inline: auto;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-specs-bar {
    max-width: 540px;
    margin-inline: auto;
  }

  .hero-art-stage {
    max-width: 400px;
  }

  .mission-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .overlapping-container {
    max-width: 420px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics-matrix {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-specs-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .intel-specs-grid {
    grid-template-columns: 1fr;
  }

  .ca-input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-copy {
    justify-content: center;
  }

  .terminal-action-row {
    flex-direction: column;
  }

  .terminal-action-row .btn {
    width: 100%;
  }

  .final-cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    margin-inline: auto;
  }

  .final-cta-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .brand-badge {
    display: none;
  }

  .brand-name {
    font-size: 1.15rem;
    white-space: nowrap;
  }

  .nav-actions .btn {
    padding: 0.65rem 0.95rem;
    font-size: 0.82rem;
  }

  .eyebrow-hud {
    font-size: 0.7rem;
    padding: 0.28rem 0.65rem;
  }

  .hud-sep,
  .hud-status {
    display: none;
  }

  .strip-grid {
    grid-template-columns: 1fr;
  }

  .metrics-matrix {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .hero-specs-bar {
    grid-template-columns: 1fr;
  }

  .badge-orbit {
    bottom: -10px;
    right: 0px;
  }

  .badge-neural {
    top: -10px;
    left: 0px;
  }

  .nav-socials {
    display: none;
  }
}

/* ============================== PREFERS-REDUCED-MOTION ============================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .cosmic-canvas,
  .hero-scan-beam,
  .holo-ring,
  .btn-shine::after,
  .cursor-glow {
    display: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
