@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Sora:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ==========================================================================
   DESIGN TOKENS & RESET
   ========================================================================== */

:root {
  --bg-base: #030508;
  --bg-primary: #060910;
  --bg-secondary: #0a0f1d;
  --bg-card: rgba(10, 16, 30, 0.72);
  --bg-card-hover: rgba(14, 24, 46, 0.85);
  --bg-glass: rgba(6, 10, 20, 0.75);

  --cyan: #00f0ff;
  --cyan-bright: #38f8ff;
  --cyan-dim: rgba(0, 240, 255, 0.15);
  --cyan-glow: 0 0 25px rgba(0, 240, 255, 0.35);

  --blue: #0070f3;
  --blue-glow: 0 0 30px rgba(0, 112, 243, 0.3);

  --purple: #8b5cf6;
  --purple-glow: 0 0 25px rgba(139, 92, 246, 0.3);

  --emerald: #10b981;

  --border-subtle: rgba(0, 240, 255, 0.12);
  --border-medium: rgba(0, 240, 255, 0.28);
  --border-glass: rgba(255, 255, 255, 0.08);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-cyan: #00f0ff;

  --font-display: 'Orbitron', -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Sora', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --nav-height: 80px;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

main {
  width: 100%;
  overflow-x: hidden;
}

img, canvas, video, svg {
  max-width: 100%;
  height: auto;
}

/* Technical grid background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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;
  pointer-events: none;
  z-index: 0;
}

/* Subtle top glow */
body::after {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, rgba(139, 92, 246, 0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   CUSTOM CURSOR (DESKTOP)
   ========================================================================== */

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--cyan);
  transition: opacity 0.2s, transform 0.05s linear;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 240, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.cursor-ring.active {
  width: 54px;
  height: 54px;
  border-color: var(--cyan);
  background-color: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

@media (hover: none) or (pointer: coarse) {
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
}

/* ==========================================================================
   TYPOGRAPHY & ACCENTS
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Orbitron display typography */
.font-orbitron {
  font-family: var(--font-display);
}

.font-mono {
  font-family: var(--font-mono);
}

/* Text glow */
.text-cyan {
  color: var(--cyan);
}

.glow-cyan {
  text-shadow: 0 0 16px rgba(0, 240, 255, 0.6);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 20%, #a5f3fc 65%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #ffffff 20%, #c4b5fd 65%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Tech badge / tag */
.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--cyan);
  white-space: nowrap;
}

.tech-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.tech-tag-purple {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
}

.tech-tag-purple::before {
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 2;
}

.section {
  padding-top: clamp(70px, 10vw, 30px);
  padding-bottom: clamp(70px, 10vw, 30px);
  position: relative;
  z-index: 2;
}

.section-header {
  margin-bottom: clamp(40px, 6vw, 64px);
  max-width: 780px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header .subheading {
  margin-top: 14px;
  font-size: 1.15rem;
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #00f0ff 0%, #0070f3 100%);
  color: #030712;
  font-weight: 700;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.35);
}

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

.btn-secondary {
  background: rgba(10, 18, 35, 0.65);
  color: var(--text-primary);
  border-color: var(--border-medium);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
  color: var(--cyan-bright);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

/* ==========================================================================
   CARDS & GLASS PANELS
   ========================================================================== */

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.4), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.15);
  transform: translateY(-4px);
}

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

/* Corner bracket tech accents */
.tech-corners {
  position: relative;
}

.tech-corners::after,
.tech-corners::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.tech-corners::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}

.tech-corners::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
}

/* ==========================================================================
   GLOBAL HEADER & NAVIGATION
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
  background: rgba(3, 5, 8, 0.35);
  border-bottom: 1px solid rgba(0, 240, 255, 0.05);
}

.header.header-scrolled {
  background: rgba(4, 7, 14, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  position: relative;
}

.logo-symbol {
  width: 36px;
  height: 36px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-symbol svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px var(--cyan));
  transition: transform 0.4s ease;
}

.logo:hover .logo-symbol svg {
  transform: rotate(60deg) scale(1.05);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.logo-text span {
  color: var(--cyan);
  font-weight: 500;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

/* Desktop Navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* AI CORE: ONLINE Status Indicator in Header */
.header-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.header-status-pill:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}

.header-status-pill .status-online {
  color: var(--cyan);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: var(--transition-smooth);
  z-index: 1002;
}

.hamburger:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--cyan);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--cyan);
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  height: 100dvh;
  background: rgba(5, 8, 16, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--border-subtle);
  z-index: 1001;
  padding: 24px 28px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.8);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
}

.mobile-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}

.mobile-nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 6px;
  color: var(--cyan);
  padding: 8px 14px;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: all 0.2s ease;
}

.mobile-nav-close:hover,
.mobile-nav-close:focus-visible {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--cyan);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
  outline: none;
}

.mobile-nav-close svg {
  stroke: currentColor;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.mobile-nav-close:hover svg {
  transform: rotate(90deg);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-links a {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-links a.active,
.mobile-links a:hover {
  color: var(--cyan);
  padding-left: 8px;
}

.mobile-nav-footer {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.hero-tag {
  margin-bottom: 24px;
}

.hero-title {
  margin-bottom: 24px;
  line-height: 1.08;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 650px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 48px;
}

/* Hero Canvas Background */
.hero-canvas-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#heroCanvas {
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

/* Page inner hero banner (for subpages) */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 70px);
  padding-bottom: 70px;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.07) 0%, transparent 60%),
              radial-gradient(circle at 80% 30%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
              var(--bg-primary);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.6;
}

/* ==========================================================================
   AI STATUS PANEL (EXPANDED FULL-WIDTH SECTION & HUD)
   ========================================================================== */

.hero-container-wide {
  max-width: 1440px;
  width: 100%;
}

.status-panel-section-wrap {
  width: 100%;
  max-width: 1440px;
  margin: 48px auto 0 auto;
  position: relative;
  z-index: 5;
}

.status-panel {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 100%;
  background: rgba(8, 14, 26, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 240, 255, 0.08);
  transition: var(--transition-smooth);
}

.status-panel:hover {
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 25px 55px -10px rgba(0, 0, 0, 0.9), 0 0 45px rgba(0, 240, 255, 0.15);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.02);
  border: 1px solid rgba(0, 240, 255, 0.05);
  transition: var(--transition-smooth);
}

.status-item:hover {
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.2);
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  position: relative;
}

.status-indicator.pulse::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  animation: radarPulse 2s infinite ease-out;
}

.status-indicator.green {
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.status-indicator.green::after {
  border-color: var(--emerald);
}

.status-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
}

@keyframes radarPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ==========================================================================
   STATISTICS SECTION
   ========================================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.stat-card {
  padding: 32px 24px;
  background: rgba(10, 16, 30, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  position: relative;
  text-align: center;
  transition: var(--transition-smooth);
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #ffffff 40%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   TECHNOLOGIES GRID
   ========================================================================== */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.tech-card {
  position: relative;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  transition: var(--transition-smooth);
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.tech-card:hover {
  border-color: var(--cyan);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px -10px rgba(0, 240, 255, 0.2);
}

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

.tech-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--cyan);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.tech-card:hover .tech-card-icon {
  transform: scale(1.1);
  background: rgba(0, 240, 255, 0.16);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.tech-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.tech-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.tech-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.tech-card-link svg {
  transition: transform 0.25s ease;
}

.tech-card:hover .tech-card-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   FUTURE LAB INTERACTIVE PANELS
   ========================================================================== */

.future-lab-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.lab-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 32px 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lab-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.lab-panel:hover,
.lab-panel.active {
  border-color: var(--cyan);
  background: rgba(12, 20, 40, 0.9);
  box-shadow: 0 10px 40px -10px rgba(0, 240, 255, 0.25);
  transform: translateY(-4px);
}

.lab-panel:hover::before,
.lab-panel.active::before {
  opacity: 1;
}

.lab-panel-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.lab-panel:hover .lab-panel-num,
.lab-panel.active .lab-panel-num {
  color: var(--cyan);
  text-shadow: 0 0 15px var(--cyan);
}

.lab-panel-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.lab-panel-quote {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.lab-panel-extra {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(0, 240, 255, 0.15);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.lab-panel:hover .lab-panel-extra,
.lab-panel.active .lab-panel-extra {
  opacity: 1;
  max-height: 140px;
}

.lab-telemetry-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  display: block;
  margin-bottom: 4px;
}

/* ==========================================================================
   PROJECT CARDS & PORTFOLIO
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
}

.project-card {
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--cyan);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(0, 240, 255, 0.25);
}

.project-media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #0b1120;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.08);
}

.project-badge-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.project-status-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--cyan);
  backdrop-filter: blur(8px);
}

.project-body {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-body h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.project-body p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-secondary);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Filters */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background: rgba(10, 16, 30, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

/* ==========================================================================
   AI CONSOLE (INTERACTIVE FEATURE)
   ========================================================================== */

#aiConsoleSection .container {
  max-width: 1440px;
}

.console-wrapper {
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.1);
  margin-top: 40px;
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.console-header {
  background: #080d1a;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}

.console-dots {
  display: flex;
  gap: 8px;
}

.console-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.console-dot:nth-child(1) { background: #ef4444; }
.console-dot:nth-child(2) { background: #eab308; }
.console-dot:nth-child(3) { background: #10b981; }

.console-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.console-body {
  padding: 30px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.7;
}

.console-line {
  margin-bottom: 8px;
}

.console-system {
  color: var(--cyan);
}

.console-output {
  color: #f1f5f9;
  background: rgba(0, 240, 255, 0.04);
  padding: 16px;
  border-radius: 6px;
  border-left: 3px solid var(--cyan);
  margin: 16px 0;
  min-height: 70px;
}

.console-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* ==========================================================================
   ROBOTICS HUD & SPECIFICATIONS
   ========================================================================== */

.robotics-stage {
  position: relative;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.08) 0%, rgba(4, 7, 14, 0.95) 75%);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 40px;
  overflow: hidden;
}

.robotics-viewport {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.robot-model-img {
  max-height: 440px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 35px rgba(0, 240, 255, 0.25));
  position: relative;
  z-index: 2;
}

/* Laser scanline */
.robot-scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 15px var(--cyan);
  animation: scanSweep 4s infinite ease-in-out;
  z-index: 3;
}

@keyframes scanSweep {
  0% { top: 10%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 90%; opacity: 0; }
}

/* Telemetry Callout Nodes */
.hud-node {
  position: absolute;
  z-index: 4;
  background: rgba(6, 11, 22, 0.85);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 10px 14px;
  backdrop-filter: blur(10px);
  max-width: 220px;
}

.hud-node-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.hud-node-val {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

/* ==========================================================================
   RESEARCH PIPELINE
   ========================================================================== */

.pipeline-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 60px 0;
}

.pipeline-line {
  position: absolute;
  top: 36px;
  left: 5%;
  width: 90%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple));
  opacity: 0.4;
  z-index: 1;
}

.pipeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 160px;
}

.pipeline-node {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: var(--transition-smooth);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.pipeline-step:hover .pipeline-node {
  border-color: var(--cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
  transform: scale(1.1);
}

.pipeline-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.pipeline-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TIMELINE (ABOUT PAGE)
   ========================================================================== */

.timeline-container {
  position: relative;
  max-width: 860px;
  margin: 50px auto 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--purple) 100%);
  opacity: 0.3;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  width: 50%;
}

.timeline-item.left {
  left: 0;
  padding-right: 40px;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  padding-left: 40px;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  z-index: 2;
}

.timeline-item.left .timeline-dot {
  right: -7px;
}

.timeline-item.right .timeline-dot {
  left: -7px;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 6px;
}

/* ==========================================================================
   INSIGHTS & ARTICLES
   ========================================================================== */

.insight-card {
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.insight-card:hover {
  border-color: var(--cyan);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px -10px rgba(0, 240, 255, 0.2);
}

.insight-media {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.insight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.insight-card:hover .insight-media img {
  transform: scale(1.06);
}

.insight-body {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.insight-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.insight-body h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-control,
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(8, 14, 28, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  outline: none;
  box-sizing: border-box;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-select option {
  background: #060b18;
  color: #ffffff;
}

.form-control:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.25);
  background: rgba(10, 18, 36, 0.9);
}

textarea.form-control,
.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* Section Layout Grids */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

.about-mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.about-facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.tech-domain-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.research-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   GLOBAL FOOTER
   ========================================================================== */

.footer {
  position: relative;
  background: #020306;
  border-top: 1px solid var(--border-subtle);
  padding-top: 80px;
  padding-bottom: 40px;
  overflow: hidden;
  z-index: 2;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 320px;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--cyan);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.social-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

/* ==========================================================================
   MODAL DIALOG (SPECS / INSIGHTS / SUCCESS)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 240, 255, 0.2);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 36px;
}

.modal-backdrop.open .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
}

/* ==========================================================================
   ANIMATIONS & SCROLL REVEAL
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

@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;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   ENHANCED 2026 AI FEATURES & COMPONENTS
   ========================================================================== */

/* Hero Layout & Neural Sphere Stage */
.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.hero-visual-stage {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.neural-core-canvas-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: radial-gradient(circle at center, rgba(0, 240, 255, 0.08) 0%, rgba(139, 92, 246, 0.04) 40%, rgba(2, 4, 8, 0) 70%);
  border: 1px solid rgba(0, 240, 255, 0.15);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(0, 240, 255, 0.05);
  overflow: hidden;
}

#heroNeuralCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Floating HUD telemetry badges on Hero Visual */
.hero-hud-badge {
  position: absolute;
  padding: 6px 12px;
  background: rgba(4, 8, 18, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 4px;
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
  pointer-events: none;
  z-index: 4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.hero-hud-badge-tl { top: 16px; left: 16px; }
.hero-hud-badge-tr { top: 16px; right: 16px; text-align: right; }
.hero-hud-badge-br { bottom: 16px; right: 16px; text-align: right; }
.hero-hud-badge-bl { bottom: 16px; left: 16px; }

/* AI Core Terminal & Simulator */
.ai-core-terminal {
  background: rgba(5, 10, 22, 0.88);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.08);
  margin-top: 32px;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.terminal-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.terminal-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.terminal-metric-item {
  padding: 12px 14px;
  background: rgba(0, 240, 255, 0.02);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.terminal-metric-item:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.05);
}

.terminal-metric-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.terminal-metric-val {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Simulated AI Response Box */
.terminal-response-container {
  background: rgba(2, 5, 12, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 8px;
  padding: 20px 24px;
  position: relative;
}

.terminal-response-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.terminal-response-text {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.65;
  color: #e2e8f0;
  min-height: 52px;
}

.terminal-response-text .cursor-blink {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--cyan);
  margin-left: 4px;
  vertical-align: middle;
  animation: cursorBlink 0.9s infinite;
}

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

/* Audio spectrum wave animation in terminal */
.terminal-waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.waveform-bar {
  width: 3px;
  background: var(--cyan);
  border-radius: 2px;
  animation: wavePulse 1.2s infinite ease-in-out;
}

.waveform-bar:nth-child(2) { animation-delay: 0.15s; }
.waveform-bar:nth-child(3) { animation-delay: 0.3s; }
.waveform-bar:nth-child(4) { animation-delay: 0.45s; }
.waveform-bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes wavePulse {
  0%, 100% { height: 4px; opacity: 0.3; }
  50% { height: 18px; opacity: 1; }
}

/* AI CAPABILITIES SECTION */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 24px;
}

.capability-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

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

.capability-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 240, 255, 0.15);
}

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

.capability-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--cyan);
  transition: var(--transition-smooth);
}

.capability-card:hover .capability-icon-wrap {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan);
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}

.capability-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.capability-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.capability-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* FUTURE LAB WITH INTERACTIVE VISUALIZER */
.future-lab-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.future-lab-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.future-lab-item {
  background: rgba(8, 14, 28, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 22px 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.future-lab-item:hover,
.future-lab-item.active {
  background: rgba(14, 24, 48, 0.9);
  border-color: var(--cyan);
  transform: translateX(8px);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.15);
}

.future-lab-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.future-lab-item-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cyan);
}

.future-lab-item-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.telemetry-signal-viewport {
  position: relative;
  background: #02050b;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 12px;
  padding: 24px;
  height: 460px;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 15px 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.signal-canvas {
  width: 100%;
  height: 200px;
  border-radius: 6px;
  background: rgba(0, 240, 255, 0.02);
  border: 1px solid rgba(0, 240, 255, 0.1);
}

/* PROJECT CASE STUDY PIPELINE TRACKER */
.project-pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 10px 12px;
  margin: 16px 0;
  background: rgba(2, 6, 14, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pipeline-step {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.pipeline-step.active {
  color: var(--cyan);
  font-weight: 700;
}

.pipeline-step.completed {
  color: #94a3b8;
}

.pipeline-step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.pipeline-step.active .pipeline-step-dot {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: radarPulse 1.8s infinite ease-out;
}

.pipeline-step.completed .pipeline-step-dot {
  background: var(--emerald);
}

.pipeline-arrow {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.65rem;
}

/* HORIZONTAL RESEARCH PIPELINE (DISCOVER -> EXPERIMENT -> VALIDATE -> DEPLOY -> LEARN) */
.research-horizontal-pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
  margin-top: 40px;
}

.research-pipeline-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px 18px;
  position: relative;
  transition: var(--transition-smooth);
}

.research-pipeline-step-card:hover {
  border-color: var(--cyan);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 240, 255, 0.15);
}

.research-pipeline-step-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--cyan);
  font-weight: 800;
  margin-bottom: 8px;
}

.research-pipeline-step-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.research-pipeline-step-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ROBOTICS HUD SCANNER OVERLAYS */
.robotics-scanner-frame {
  position: relative;
  width: 100%;
  height: 460px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #010307;
}

.robotics-scanner-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 12px var(--cyan);
  animation: scanLineMove 4s infinite linear;
  pointer-events: none;
  z-index: 3;
}

@keyframes scanLineMove {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ==========================================================================
   RESPONSIVE QUERIES & BREAKPOINTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   LARGE DESKTOP (1440px - 1600px)
   -------------------------------------------------------------------------- */
@media (max-width: 1600px) {
  .container {
    max-width: 1320px;
  }
}

@media (max-width: 1440px) {
  .container {
    max-width: 1240px;
  }
  .nav-links {
    gap: 24px;
  }
}

/* --------------------------------------------------------------------------
   DESKTOP & TRANSITION RANGE (1200px - 1240px)
   Addresses critical layout overflow, header collision, and grid breakages
   -------------------------------------------------------------------------- */
@media (max-width: 1240px) {
  .container {
    max-width: 1140px;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Header Optimization */
  .header-inner {
    gap: 16px;
  }
  .nav-links {
    gap: 16px;
  }
  .nav-link {
    font-size: 0.85rem;
    padding: 4px 0;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .btn-sm {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
  .header-status-pill {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  /* Hero Section */
  .hero-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
  }
  .hero-visual-stage {
    height: 480px;
  }

  /* Status Panel (Prevent 4-column squeeze) */
  .status-panel {
    gap: 12px;
    padding: 18px 20px;
  }
  .status-item {
    padding: 10px 12px;
    gap: 8px;
  }
  .status-label {
    font-size: 0.68rem;
  }
  .status-val {
    font-size: 0.84rem;
  }

  /* Future Lab */
  .future-lab-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .lab-panel {
    min-height: 360px;
    padding: 24px 20px;
  }

  /* Grids */
  .tech-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
  }
  .insights-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
  }
  .capabilities-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 30px;
  }
  .contact-grid {
    gap: 28px;
  }

  /* Inline grid overrides for 1240px transition */
  [style*="minmax(320px"] {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 24px !important;
  }
}

@media (max-width: 1200px) {
  /* Extra safeguard for exact 1200px viewport edge-cases */
  .nav-links {
    gap: 12px;
  }
  .nav-link {
    font-size: 0.82rem;
  }
  .header-actions .btn-secondary {
    display: none;
  }
  .hero-layout {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .hero-visual-stage {
    height: 440px;
  }
  .status-panel {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .research-horizontal-pipeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* --------------------------------------------------------------------------
   MEDIUM DESKTOP & TABLETS LANDSCAPE (1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-links,
  .header-actions .btn {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  /* Hero Section Stack */
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-visual-stage {
    height: 420px;
    max-width: 650px;
    margin: 0 auto;
    width: 100%;
  }

  /* Future Lab */
  .future-lab-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .future-lab-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  /* Research */
  .research-horizontal-pipeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .pipeline-track {
    flex-direction: column;
    gap: 32px;
  }
  .pipeline-line {
    top: 5%;
    left: 50%;
    width: 2px;
    height: 90%;
    transform: translateX(-50%);
  }

  /* Grids & Cards */
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .about-facilities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .tech-domain-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Status Panel & Footer */
  .status-panel {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

/* --------------------------------------------------------------------------
   TABLETS PORTRAIT & SMALL LAPTOPS (991px)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .section {
    padding-top: clamp(60px, 8vw, 90px);
    padding-bottom: clamp(60px, 8vw, 90px);
  }
  .page-hero {
    padding-top: calc(var(--nav-height) + 50px);
    padding-bottom: 50px;
  }

  .hero-visual-stage {
    height: 380px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .console-wrapper {
    margin-top: 36px;
  }
  .console-body {
    padding: 24px;
  }

  .robotics-viewport {
    height: 380px;
  }

  /* Inline grid overrides for 991px tablet stack */
  [style*="minmax(320px"],
  [style*="minmax(300px"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* --------------------------------------------------------------------------
   LARGE MOBILE & MOBILE LANDSCAPE (767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Typography Scale */
  h1 {
    font-size: clamp(2rem, 6.5vw, 2.75rem);
  }
  h2 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }
  h3 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
  }

  /* Header & Mobile Drawer */
  .header-status-pill span.status-text-full {
    display: none;
  }
  .mobile-nav {
    max-width: 100%;
    width: 100%;
  }

  /* Hero Section */
  .hero {
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 40px;
    min-height: auto;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }
  .hero-visual-stage {
    height: 320px;
  }
  .hero-hud-badge {
    padding: 4px 8px;
    font-size: 0.68rem;
  }
  .hero-hud-badge-tr {
    display: none;
  }

  /* Status Panel */
  .status-panel-section-wrap {
    margin-top: 32px;
  }
  .status-panel {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
  }
  .status-item {
    padding: 10px;
  }

  /* Grids & Panels */
  .future-lab-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .lab-panel {
    min-height: auto;
    padding: 22px 18px;
  }
  .tech-grid,
  .projects-grid,
  .insights-grid,
  .capabilities-grid,
  .research-horizontal-pipeline,
  .about-mission-grid,
  .about-facilities-grid,
  .about-explore-grid,
  .tech-domain-grid,
  .research-meta-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Safe fallback for inline minmax grids */
  [style*="minmax(320px"],
  [style*="minmax(300px"],
  [style*="minmax(280px"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Project Card */
  .project-footer {
    flex-wrap: wrap;
    gap: 12px;
  }

  /* Robotics Viewport */
  .robotics-viewport {
    height: 320px;
  }
  .robot-model-img {
    max-height: 270px;
  }
  .hud-node {
    position: static;
    margin-bottom: 8px;
    width: 100%;
  }

  /* Timeline */
  .timeline-container::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 50px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }
  .timeline-dot {
    left: 13px !important;
    right: auto !important;
  }

  /* Console & Terminal */
  .console-wrapper {
    margin-top: 28px;
  }
  .console-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
  }
  .console-title {
    font-size: 0.72rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 65%;
  }
  .console-body {
    padding: 18px 14px;
    font-size: 0.85rem;
  }
  .console-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .console-actions .btn {
    width: 100%;
  }

  /* Cards & Modal */
  .glass-card {
    padding: 22px 18px;
  }
  .modal-container {
    padding: 24px 18px;
  }
  .modal-backdrop {
    padding: 16px;
  }

  /* Footer */
  .footer {
    padding-top: 60px;
    padding-bottom: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
}

/* --------------------------------------------------------------------------
   STANDARD MOBILE (480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }
  .page-hero {
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 36px;
  }

  /* Buttons */
  .btn {
    padding: 12px 20px;
    font-size: 0.88rem;
    gap: 8px;
  }

  /* Status Panel: Single Column for Clean Metrics */
  .status-panel {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stat-card {
    padding: 18px 12px;
  }
  .stat-number {
    font-size: 2.1rem;
  }

  /* Hero Stage */
  .hero-visual-stage {
    height: 280px;
  }
  .hero-hud-badge-bl {
    display: none;
  }

  /* Filter Tabs */
  .filter-tabs {
    gap: 6px;
    margin-bottom: 24px;
  }
  .filter-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }

  /* Console */
  .console-body {
    padding: 16px 12px;
    font-size: 0.8rem;
  }
  .console-input-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .console-input {
    width: 100%;
    min-width: 0;
  }

  /* AI Terminal */
  .ai-core-terminal {
    padding: 18px 14px;
  }
  .terminal-metrics-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .terminal-response-container {
    padding: 14px 12px;
  }
  .terminal-response-text {
    font-size: 0.88rem;
  }

  /* Modal */
  .modal-container {
    padding: 20px 14px;
  }

  [style*="minmax(240px"],
  [style*="minmax(200px"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* --------------------------------------------------------------------------
   SMALL MOBILE (360px down to 320px)
   -------------------------------------------------------------------------- */

@media (max-width: 360px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    padding-top: 40px;
    padding-bottom: 40px;
}

  /* Typography Scale */
  h1 {
    font-size: clamp(1.4rem, 6.8vw, 1.65rem);
    line-height: 1.25;
  }
  h2 {
    font-size: clamp(1.2rem, 5.8vw, 1.35rem);
    line-height: 1.3;
  }
  h3 {
    font-size: 1.08rem;
    line-height: 1.35;
  }
  h4 {
    font-size: 0.82rem;
  }
  p, li {
    font-size: 0.85rem;
    line-height: 1.55;
  }
  blockquote {
    font-size: 0.95rem !important;
    padding-left: 10px !important;
    margin-bottom: 14px !important;
  }

  /* Header & Navigation */
  .header-inner {
    padding: 0;
    gap: 6px;
  }
  .logo {
    gap: 8px;
  }
  .logo-text {
    font-size: 0.92rem;
  }
  .logo-text span {
    font-size: 0.65rem;
    padding: 1px 3px;
  }
  .logo-symbol {
    width: 26px;
    height: 26px;
  }
  .header-actions {
    gap: 5px;
  }
  .header-status-pill {
    padding: 3px 6px;
    font-size: 0.62rem;
    gap: 4px;
  }
  .header-status-pill .status-indicator {
    width: 6px;
    height: 6px;
  }
  .header-status-pill span.status-text-full {
    display: none !important;
  }
  .hamburger {
    width: 38px;
    height: 38px;
    padding: 6px;
  }

  /* Hero Section */
  .hero {
    padding-top: calc(var(--nav-height) + 14px);
    padding-bottom: 24px;
  }
  .hero-title {
    margin-bottom: 10px;
  }
  .hero-subtitle {
    font-size: 0.84rem;
    margin-bottom: 18px;
  }
.hero-cta {
    gap: 8px;
    width: 100%;
    margin-bottom: 0px;
}
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.8rem;
  }
  .hero-visual-stage {
    height: 200px;
    max-width: 100%;
  }
  .hero-hud-badge {
    display: none !important;
  }

  /* AI Status Panel */
  .status-panel-section-wrap {
    margin-top: 20px;
  }
  .status-panel {
    grid-template-columns: 1fr;
    padding: 10px 8px;
    gap: 8px;
    border-radius: 8px;
  }
  .status-item {
    padding: 8px;
    gap: 8px;
  }
  .status-item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
  }
  .status-label {
    font-size: 0.6rem;
  }
  .status-val {
    font-size: 0.76rem;
  }

  /* Global Cards */
  .glass-card,
  .tech-card,
  .project-card,
  .lab-panel,
  .capability-card,
  .stat-card,
  .spec-card {
    padding: 14px 10px;
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  /* Tech Card */
  .tech-card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
  }
  .tech-tag {
    font-size: 0.64rem;
    padding: 3px 6px;
    letter-spacing: 0.05em;
  }

  /* Project Card */
  .project-body {
    padding: 14px 10px;
  }
  .project-media {
    height: 150px;
  }
  .project-tags {
    gap: 4px;
    margin-bottom: 12px;
  }
  .project-tag {
    font-size: 0.64rem;
    padding: 2px 5px;
  }
  .project-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .project-footer .btn {
    width: 100%;
    justify-content: center;
  }

  /* Robotics Specification Matrix */
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .spec-card {
    padding: 14px 10px;
  }
  .spec-val {
    font-size: 1.4rem;
    margin-bottom: 4px;
  }
  .spec-lbl {
    font-size: 0.68rem;
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .stat-card {
    padding: 14px 10px;
  }
  .stat-number {
    font-size: 1.65rem;
    margin-bottom: 4px;
  }
  .stat-label {
    font-size: 0.78rem;
  }

  /* Future Lab */
  .future-lab-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .lab-panel {
    padding: 14px 10px;
    min-height: auto;
  }
  .lab-panel-num {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }
  .lab-panel-title {
    font-size: 1.02rem;
  }
  .lab-panel-quote {
    font-size: 0.82rem;
  }

  /* Interactive Console */
  .console-wrapper {
    margin-top: 18px;
    border-radius: 8px;
  }
  .console-header {
    padding: 8px 10px;
  }
  .console-title {
    font-size: 0.6rem;
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .console-body {
    padding: 10px 8px;
    font-size: 0.72rem;
    line-height: 1.5;
  }
  .console-output {
    padding: 8px;
    font-size: 0.72rem;
    margin: 10px 0;
    min-height: 50px;
  }
  .console-actions {
    gap: 6px;
  }
  .console-actions .btn {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.75rem;
    justify-content: center;
  }

  /* AI Terminal */
  .ai-core-terminal {
    padding: 12px 8px;
    border-radius: 8px;
  }
  .terminal-prompt-prefix {
    font-size: 0.72rem;
  }
  .terminal-response-container {
    padding: 8px;
  }
  .terminal-response-text {
    font-size: 0.78rem;
  }

  /* Robotics Viewport */
  .robotics-stage {
    padding: 12px 6px;
    border-radius: 8px;
  }
  .robotics-viewport {
    min-height: 190px;
    height: 190px;
  }
  .robot-model-img {
    max-height: 165px;
  }
  .hud-node {
    padding: 6px 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .hud-node-title {
    font-size: 0.62rem;
  }
  .hud-node-val {
    font-size: 0.76rem;
  }

  /* Research Pipeline */
  .pipeline-track {
    gap: 16px;
    margin: 24px 0;
  }
  .pipeline-node {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
  }
  .pipeline-title {
    font-size: 0.8rem;
  }
  .pipeline-desc {
    font-size: 0.7rem;
  }
  .research-pipeline-step-card {
    padding: 12px 8px;
  }
  .research-pipeline-step-title {
    font-size: 0.92rem;
  }

  /* Timeline */
  .timeline-container {
    margin-top: 24px;
  }
  .timeline-container::before {
    left: 8px;
  }
  .timeline-item {
    padding-left: 24px !important;
    margin-bottom: 20px;
  }
  .timeline-dot {
    left: 2px !important;
    width: 12px;
    height: 12px;
  }

  /* Forms & Inputs */
  .form-group {
    margin-bottom: 12px;
  }
  .form-label {
    font-size: 0.66rem;
    margin-bottom: 4px;
  }
  .form-control,
  .form-input,
  .form-select,
  .form-textarea {
    padding: 9px 8px;
    font-size: 0.82rem;
    border-radius: 4px;
  }
  textarea.form-control,
  .form-textarea {
    min-height: 80px;
  }
  .contact-grid {
    gap: 16px;
  }

  /* Modals */
  .modal-backdrop {
    padding: 6px;
  }
  .modal-container {
    padding: 16px 10px;
    max-height: 92vh;
    border-radius: 8px;
  }
  .modal-close {
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
  }

  /* Buttons */
  .btn {
    padding: 9px 12px;
    font-size: 0.8rem;
    justify-content: center;
  }

  /* Filter Tabs */
  .filter-tabs {
    gap: 4px;
    margin-bottom: 16px;
  }
  .filter-btn {
    padding: 5px 8px;
    font-size: 0.68rem;
  }

  /* Footer */
  .footer {
    padding-top: 36px;
    padding-bottom: 20px;
  }
  .footer-grid {
    gap: 20px;
  }
  .footer-bottom {
    font-size: 0.72rem;
    gap: 6px;
  }

  /* Global text wraps & code bounding */
  pre, code {
    word-break: break-all;
    white-space: pre-wrap;
    max-width: 100%;
  }
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
}