:root, :root[data-theme="sapphire"] {
  --void: #040609;
  --panel: #070b12;
  --panel-card: rgba(8, 14, 24, 0.88);
  --glass: rgba(0, 136, 255, 0.06);
  --glass-hover: rgba(0, 136, 255, 0.12);
  --hairline: rgba(0, 136, 255, 0.22);
  --hairline-strong: rgba(0, 136, 255, 0.45);
  --text: #f4f7fc;
  --text-muted: #94a3b8;
  --text-dim: #475569;

  --primary: #0088ff;
  --primary-bright: #38a5ff;
  --primary-dark: #0055a5;
  --primary-glow: rgba(0, 136, 255, 0.5);

  --accent: #00b4ff;
  --accent-glow: rgba(0, 180, 255, 0.4);

  --black-pure: #000000;
  --hud-border: #0088ff;
}

:root[data-theme="electric"] {
  --void: #020b14;
  --panel: #051424;
  --panel-card: rgba(6, 24, 44, 0.9);
  --glass: rgba(0, 229, 255, 0.08);
  --glass-hover: rgba(0, 229, 255, 0.16);
  --hairline: rgba(0, 229, 255, 0.3);
  --hairline-strong: rgba(0, 229, 255, 0.6);
  --text: #ffffff;
  --text-muted: #a5f3fc;
  --text-dim: #164e63;

  --primary: #00e5ff;
  --primary-bright: #67e8f9;
  --primary-dark: #0891b2;
  --primary-glow: rgba(0, 229, 255, 0.6);

  --accent: #22d3ee;
  --accent-glow: rgba(34, 211, 238, 0.5);

  --black-pure: #000000;
  --hud-border: #00e5ff;
}

:root[data-theme="navy"] {
  --void: #020617;
  --panel: #0f172a;
  --panel-card: rgba(15, 23, 42, 0.92);
  --glass: rgba(37, 99, 235, 0.08);
  --glass-hover: rgba(37, 99, 235, 0.16);
  --hairline: rgba(59, 130, 246, 0.3);
  --hairline-strong: rgba(59, 130, 246, 0.6);
  --text: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #334155;

  --primary: #2563eb;
  --primary-bright: #60a5fa;
  --primary-dark: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.6);

  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.5);

  --black-pure: #000000;
  --hud-border: #2563eb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--text);
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Scanlines Overlay */
body::before {
  content: ''; position: fixed; inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(0, 136, 255, 0.02), rgba(0, 0, 0, 0.01), rgba(0, 136, 255, 0.02));
  background-size: 100% 4px, 6px 100%;
  z-index: 999; pointer-events: none; opacity: 0.5;
}

/* Corporate Grid Lines Backdrop */
.cyber-grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: 
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.2;
  transition: background-image 0.4s ease;
}

h1, h2, h3, .hud-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.98;
}

.mono { font-family: 'JetBrains Mono', monospace; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* FUTURISTIC CORNER BRACKETS FOR HUD CONTAINERS */
.hud-box {
  position: relative;
  border: 1px solid var(--hairline-strong);
  background: var(--panel-card);
  backdrop-filter: blur(16px);
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.hud-box::before, .hud-box::after {
  content: ''; position: absolute; width: 10px; height: 10px;
  border-color: var(--primary); border-style: solid; pointer-events: none;
  transition: border-color 0.4s ease;
}
.hud-box::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.hud-box::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* SPOTLIGHT GLOW CURSOR */
.cursor-spotlight {
  position: fixed; top: 0; left: 0; width: 600px; height: 600px;
  margin-left: -300px; margin-top: -300px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none; z-index: 9999; opacity: 0.25;
  transition: transform 0.1s ease-out, background 0.4s ease;
}

/* TOP HUD SYSTEM BAR */
.sys-header-bar {
  background: rgba(4, 6, 9, 0.96);
  border-bottom: 1px solid var(--hairline-strong);
  padding: 8px 32px; font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; color: var(--text-muted);
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 1002; transition: all 0.4s ease;
}
.sys-header-status { display: flex; align-items: center; gap: 16px; }
.sys-status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary-bright); text-transform: uppercase; font-weight: 700;
  transition: color 0.4s ease;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary-bright); box-shadow: 0 0 10px var(--primary-bright); animation: pulse 1.8s infinite; transition: all 0.4s ease; }
@keyframes pulse { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:0.3; transform:scale(0.8); } }

.theme-controls { display: flex; gap: 8px; align-items: center; }
.theme-chip {
  background: rgba(255,255,255,0.05); border: 1px solid var(--hairline-strong);
  color: var(--text-muted); padding: 5px 12px; border-radius: 4px;
  font-size: 11px; font-weight: 700; cursor: pointer; transition: all 0.25s ease;
}
.theme-chip:hover, .theme-chip.active {
  background: var(--primary); color: #fff; border-color: var(--primary-bright);
  box-shadow: 0 0 16px var(--primary-glow); transform: translateY(-1px);
}

/* SPLASH SCREEN — ANIMATED LOGO REVEAL */
.splash {
  position: fixed; inset: 0; z-index: 20000;
  background: #020407; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease;
}
.splash.fade-out { opacity: 0; pointer-events: none; }
.splash-reveal {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  position: relative;
}
.splash-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  opacity: 0; animation: splashGlowPulse 4.5s ease-out forwards;
  filter: blur(40px);
}
.splash-logo {
  height: 56px; width: auto; position: relative; z-index: 1;
  opacity: 0; transform: scale(0.7);
  animation: splashLogoIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  filter: drop-shadow(0 0 24px var(--primary-glow));
}
.splash-tagline {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.35em;
  color: var(--primary-bright); position: relative; z-index: 1;
  opacity: 0; transform: translateY(10px);
  animation: splashTagIn 0.8s ease-out 2s forwards;
}
.splash-line {
  width: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--primary-bright), transparent);
  animation: splashLineExpand 1s ease-out 2.8s forwards;
}

@keyframes splashGlowPulse {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  30%  { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  60%  { opacity: 0.4; transform: translate(-50%, -50%) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); }
}
@keyframes splashLogoIn {
  to { opacity: 1; transform: scale(1); }
}
@keyframes splashTagIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes splashLineExpand {
  to { width: 180px; }
}

body.splash-active { overflow: hidden; height: 100vh; }

/* HEADER & APP BAR */
header.app-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(4, 6, 9, 0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline-strong); transition: all 0.4s ease;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo-box { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo { height: 34px; width: auto; filter: drop-shadow(0 0 10px var(--primary-glow)); transition: filter 0.4s ease; }
.nav-version {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--primary-bright);
  background: rgba(0, 136, 255, 0.1); border: 1px solid var(--hairline-strong);
  padding: 2px 6px; border-radius: 4px; transition: all 0.4s ease;
}
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 13px;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  transition: all 0.2s ease; position: relative; padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-bright); text-shadow: 0 0 10px var(--primary-glow); }
.nav-cta-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  color: #fff !important; padding: 8px 18px !important; border-radius: 4px !important;
  font-weight: 800 !important; box-shadow: 0 0 16px var(--primary-glow);
  border: 1px solid var(--primary-bright) !important; transition: all 0.2s ease !important;
}
.nav-cta-btn:hover { transform: translateY(-2px); filter: brightness(1.15); box-shadow: 0 0 24px var(--primary-glow); }

/* HAMBURGER BUTTON — hidden on desktop */
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px; z-index: 1100;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px; background: var(--primary-bright);
  border-radius: 2px; transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 860px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(4, 6, 9, 0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--hairline-strong);
    flex-direction: column; gap: 0; padding: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--hairline); }
  .nav-links a { display: block; padding: 16px 32px !important; font-size: 14px; }
  .nav-links a:hover { background: var(--glass-hover); }
  .nav-cta-btn { border-radius: 0 !important; text-align: center; margin: 0 !important; }
  header.app-nav { position: sticky; }
  .nav-inner { position: relative; }
}

/* HERO SECTION */
.hero {
  position: relative; padding: 120px 32px 100px; overflow: hidden;
  min-height: 88vh; display: flex; align-items: center;
  border-bottom: 1px solid var(--hairline); transition: border-color 0.4s ease;
}
#particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; width: 100%; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--glass); border: 1px solid var(--hairline-strong);
  padding: 6px 14px; border-radius: 4px; font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 700; color: var(--primary-bright); margin-bottom: 24px; transition: all 0.4s ease;
}
.hero h1 {
  font-size: clamp(38px, 5.2vw, 70px); max-width: 1060px; margin-bottom: 28px;
  background: linear-gradient(180deg, #ffffff 30%, var(--primary-bright) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; transition: all 0.4s ease;
}
.hero-sub {
  font-size: 18px; line-height: 1.65; color: var(--text-muted);
  max-width: 660px; margin-bottom: 40px; transition: color 0.4s ease;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 48px; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
  text-decoration: none; padding: 14px 28px; font-family: 'Rajdhani', sans-serif;
  font-size: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 4px; box-shadow: 0 0 20px var(--primary-glow); border: 1px solid var(--primary-bright);
  transition: all 0.25s ease; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 30px var(--primary-glow); filter: brightness(1.15); }

.btn-secondary {
  background: rgba(255,255,255,0.04); color: var(--text); text-decoration: none; padding: 14px 28px;
  font-family: 'Rajdhani', sans-serif; font-size: 16px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; border-radius: 4px; border: 1px solid var(--hairline-strong);
  transition: all 0.25s ease; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
}
.btn-secondary:hover { background: var(--glass-hover); border-color: var(--primary); transform: translateY(-3px); }

.hero-brandrow {
  display: flex; align-items: center; gap: 36px; flex-wrap: wrap;
  padding-top: 32px; border-top: 1px solid var(--hairline); transition: border-color 0.4s ease;
}
.hero-brandrow img { height: 30px; width: auto; opacity: 0.95; filter: drop-shadow(0 0 14px var(--primary-glow)); transition: filter 0.4s ease; }

/* METRICS HUD COUNTER BAR */
.metrics-bar {
  background: rgba(7, 11, 18, 0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline); padding: 32px 32px; transition: all 0.4s ease;
}
.metrics-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 820px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .metrics-grid { grid-template-columns: 1fr; } }

.metric-item {
  text-align: center; padding: 16px; border-right: 1px solid var(--hairline); transition: border-color 0.4s ease;
}
.metric-item:last-child { border-right: none; }
@media (max-width: 820px) { .metric-item:nth-child(2n) { border-right: none; } }

.metric-value {
  font-family: 'Rajdhani', sans-serif; font-size: clamp(38px, 4vw, 56px); font-weight: 700;
  color: var(--primary-bright); text-shadow: 0 0 16px var(--primary-glow); line-height: 1; margin-bottom: 6px; transition: all 0.4s ease;
}
.metric-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.1em; transition: color 0.4s ease; }

/* INTERACTIVE CLI TERMINAL CONSOLE */
section.terminal-section {
  padding: 80px 32px; background: var(--void); border-bottom: 1px solid var(--hairline); transition: all 0.4s ease;
}
.terminal-box {
  max-width: 1000px; margin: 0 auto; background: #020407; border: 1px solid var(--hairline-strong);
  border-radius: 6px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.9);
  font-family: 'JetBrains Mono', monospace; transition: border-color 0.4s ease;
}
.terminal-header {
  background: #090e17; border-bottom: 1px solid var(--hairline); padding: 12px 20px;
  display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); transition: border-color 0.4s ease;
}
.terminal-dots { display: flex; gap: 8px; }
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot.r { background: #ff5f56; }
.term-dot.y { background: #ffbd2e; }
.term-dot.g { background: #27c93f; }

.terminal-body {
  padding: 24px; min-height: 240px; max-height: 360px; overflow-y: auto;
  font-size: 13.5px; line-height: 1.6; color: var(--primary-bright); transition: color 0.4s ease;
}
.term-line { margin-bottom: 8px; }
.term-line.cmd { color: #fff; font-weight: 700; }
.term-line.out { color: var(--text-muted); }
.term-line.err { color: #ff5f56; }

.terminal-input-row {
  display: flex; align-items: center; padding: 12px 24px; background: #05080e;
  border-top: 1px solid var(--hairline); gap: 10px; transition: border-color 0.4s ease;
}
.term-prompt { color: var(--primary-bright); font-weight: 700; font-size: 14px; transition: color 0.4s ease; }
.term-input {
  flex: 1; background: none; border: none; color: #fff; font-family: inherit;
  font-size: 14px; outline: none;
}
.terminal-quick-cmds {
  padding: 10px 24px; background: #030509; border-top: 1px solid var(--hairline);
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 11px; color: var(--text-dim); transition: border-color 0.4s ease;
}
.cmd-btn {
  background: rgba(255,255,255,0.05); border: 1px solid var(--hairline);
  color: var(--primary-bright); padding: 3px 8px; border-radius: 3px; cursor: pointer; transition: all 0.2s ease;
}
.cmd-btn:hover { background: var(--primary); color: #fff; }

/* SECTION & CAPABILITIES MATRIX */
section.pillar {
  position: relative; padding: 110px 32px; border-bottom: 1px solid var(--hairline); overflow: hidden; transition: border-color 0.4s ease;
}
.pillar-head { margin-bottom: 48px; }
.pillar-title { font-size: clamp(32px, 4.2vw, 56px); margin-bottom: 12px; }
.pillar-desc { color: var(--text-muted); font-size: 16px; max-width: 680px; line-height: 1.6; transition: color 0.4s ease; }

/* CAPABILITY SEARCH & FILTER BAR */
.filter-wrapper {
  max-width: 1200px; margin: 0 auto 36px; display: flex; flex-direction: column; gap: 16px;
}
.search-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.search-input-box { position: relative; flex: 1; min-width: 280px; }
.search-input-box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-dim); width: 18px; height: 18px; }
.search-input {
  width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--hairline-strong);
  border-radius: 4px; padding: 12px 16px 12px 48px; color: var(--text); font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; outline: none; transition: all 0.25s ease;
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 16px var(--primary-glow); }

.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-chip {
  background: rgba(255,255,255,0.04); border: 1px solid var(--hairline); color: var(--text-muted);
  padding: 8px 16px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  font-weight: 700; text-transform: uppercase; cursor: pointer; transition: all 0.25s ease;
}
.filter-chip:hover { border-color: var(--primary); color: #fff; }
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 0 12px var(--primary-glow); }

.bullet-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; perspective: 1000px;
}
@media (max-width: 820px) { .bullet-grid { grid-template-columns: 1fr; } }

.bullet-card {
  background: var(--panel-card); border: 1px solid var(--hairline); border-radius: 6px;
  padding: 30px 26px; position: relative; overflow: hidden; cursor: pointer;
  transform-style: preserve-3d; transition: transform 0.15s ease-out, border-color 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
}
.bullet-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.08), transparent 80%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.bullet-card:hover::before { opacity: 1; }
.bullet-card:hover { border-color: var(--primary-bright); box-shadow: 0 12px 36px var(--primary-glow); }
.bullet-card h3 {
  font-size: 18px; margin-bottom: 10px; color: var(--text); display: flex; align-items: flex-start; gap: 10px;
}
.bullet-mark { color: var(--primary-bright); font-family: 'Rajdhani', sans-serif; font-size: 16px; transition: color 0.4s ease; }
.bullet-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.65; transition: color 0.4s ease; }

/* INTERACTIVE NEURAL ARCHITECTURE MAP */
section.architecture {
  padding: 100px 32px; background: var(--void); border-bottom: 1px solid var(--hairline); transition: all 0.4s ease;
}
.arch-container {
  max-width: 1200px; margin: 0 auto; background: var(--panel-card);
  border: 1px solid var(--hairline-strong); border-radius: 6px; padding: 40px; transition: all 0.4s ease;
}
.arch-nodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .arch-nodes { grid-template-columns: 1fr; } }

.arch-node {
  background: rgba(255,255,255,0.02); border: 1px solid var(--hairline); border-radius: 6px;
  padding: 24px; text-align: center; cursor: pointer; transition: all 0.3s ease;
}
.arch-node:hover, .arch-node.active {
  background: var(--glass-hover); border-color: var(--primary-bright); box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-4px);
}
.arch-node h4 { font-size: 18px; color: #fff; margin-bottom: 8px; }
.arch-node p { font-size: 13px; color: var(--text-muted); line-height: 1.5; transition: color 0.4s ease; }

/* PRODUCTS & INTERACTIVE APP SIMULATOR WITH EMBEDDED VIDEO PLAYERS */
section.products { padding: 100px 32px; border-bottom: 1px solid var(--hairline); transition: border-color 0.4s ease; }
.sim-container { max-width: 1200px; margin: 0 auto; }
.sim-tabs { display: flex; gap: 12px; justify-content: center; margin-bottom: 32px; flex-wrap: wrap; }
.sim-tab {
  background: rgba(255,255,255,0.04); border: 1px solid var(--hairline-strong);
  color: var(--text-muted); padding: 12px 24px; border-radius: 4px; font-family: 'Rajdhani', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: all 0.25s ease;
}
.sim-tab:hover, .sim-tab.active {
  background: var(--primary); color: #fff; border-color: var(--primary-bright); box-shadow: 0 0 20px var(--primary-glow);
}

.sim-screen {
  background: #020407; border: 1px solid var(--hairline-strong); border-radius: 6px;
  padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; transition: all 0.4s ease;
}
@media (max-width: 840px) { .sim-screen { grid-template-columns: 1fr; padding: 24px; } }
.sim-title { font-size: 32px; color: #fff; margin-bottom: 14px; }
.sim-desc { color: var(--text-muted); font-size: 15px; line-height: 1.65; margin-bottom: 24px; transition: color 0.4s ease; }

/* VIDEO PLAYER STYLING */
.sim-video-box {
  background: #000; border: 1px solid var(--hairline-strong); border-radius: 6px;
  overflow: hidden; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.8); transition: border-color 0.4s ease;
}
.sim-video-element { width: 100%; height: 320px; object-fit: contain; display: block; background: #000; }
.sim-video-controls {
  padding: 14px; background: rgba(5, 9, 16, 0.95); border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
#simLogo {
  height: 22px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.sim-v-btn {
  background: var(--primary); color: #fff; border: none; padding: 6px 14px;
  border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  font-weight: 700; cursor: pointer; text-transform: uppercase; transition: all 0.2s ease;
}
.sim-v-btn:hover { background: var(--primary-bright); box-shadow: 0 0 12px var(--primary-glow); }

/* VALUES SECTION */
section.values { padding: 100px 32px; border-bottom: 1px solid var(--hairline); transition: border-color 0.4s ease; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr; } }

.value-card {
  background: var(--panel-card); border: 1px solid var(--hairline); border-radius: 6px;
  padding: 30px 26px; transition: all 0.3s ease;
}
.value-card:hover { border-color: var(--primary-bright); transform: translateY(-4px); box-shadow: 0 10px 30px var(--primary-glow); }
.value-card h3 { font-size: 18px; color: #fff; margin-bottom: 10px; }
.value-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.65; transition: color 0.4s ease; }

/* FAQ ACCORDION */
section.faq { padding: 100px 32px; border-bottom: 1px solid var(--hairline); transition: border-color 0.4s ease; }
.faq-container { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: rgba(255,255,255,0.02); border: 1px solid var(--hairline); border-radius: 6px; overflow: hidden; transition: border-color 0.4s ease;
}
.faq-item.open { border-color: var(--primary-bright); background: rgba(255,255,255,0.04); }
.faq-question {
  padding: 20px 26px; width: 100%; text-align: left; background: none; border: none;
  color: #fff; font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 26px; color: var(--text-muted); font-size: 14.5px; line-height: 1.65;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 0 26px 22px; }

/* CONTACT SECTION */
section.contact { padding: 100px 32px; border-bottom: 1px solid var(--hairline); transition: border-color 0.4s ease; }
.contact-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form {
  background: var(--panel-card); border: 1px solid var(--hairline-strong); border-radius: 6px; padding: 36px; transition: all 0.4s ease;
}
.contact-form label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); margin-bottom: 8px; margin-top: 18px; text-transform: uppercase; }
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input, .contact-form textarea {
  width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--hairline-strong);
  border-radius: 4px; padding: 12px 14px; color: #fff; font-family: inherit; font-size: 14px; outline: none; transition: border-color 0.4s ease;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary-bright); box-shadow: 0 0 14px var(--primary-glow); }

.contact-submit {
  margin-top: 24px; width: 100%; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: 1px solid var(--primary-bright); border-radius: 4px; padding: 14px;
  font-family: 'Rajdhani', sans-serif; font-size: 16px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: all 0.25s ease;
}
.contact-submit:hover { transform: translateY(-2px); filter: brightness(1.15); box-shadow: 0 0 20px var(--primary-glow); }

/* FLOATING APP DOCK BAR */
.app-dock {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10000;
  background: rgba(4, 6, 10, 0.94); backdrop-filter: blur(20px); border: 1px solid var(--hairline-strong);
  padding: 8px 16px; border-radius: 30px; display: flex; gap: 14px; align-items: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.9); transition: border-color 0.4s ease;
}
.dock-item {
  color: var(--text-muted); text-decoration: none; padding: 8px 14px; border-radius: 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; text-transform: uppercase;
  transition: all 0.2s ease; display: flex; align-items: center; gap: 6px;
}
.dock-item:hover, .dock-item.active { background: var(--primary); color: #fff; box-shadow: 0 0 14px var(--primary-glow); }
@media (max-width: 600px) { .app-dock { display: none; } }

/* MODAL DIALOG */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 30000; background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(16px);
  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-content {
  background: var(--panel); border: 1px solid var(--hairline-strong); border-radius: 6px;
  max-width: 640px; width: 100%; padding: 36px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.9); transition: all 0.4s ease;
}
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; }

footer { padding: 60px 32px 40px; background: var(--void); border-top: 1px solid var(--hairline); transition: all 0.4s ease; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-legal { max-width: 1200px; margin: 30px auto 0; color: var(--text-dim); font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE OVERRIDES
   ========================================================================== */

/* ---- SMALL TABLETS & LARGE PHONES (≤768px) ---- */
@media (max-width: 768px) {

  /* TOP SYSTEM BAR */
  .sys-header-bar {
    flex-direction: column; gap: 8px; padding: 8px 16px; text-align: center;
  }
  .sys-header-status { flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 10px; }
  .theme-controls { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .theme-chip { font-size: 10px; padding: 4px 8px; }

  /* HERO */
  .hero { padding: 80px 20px 60px; min-height: auto; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 14px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions a { text-align: center; width: 100%; justify-content: center; }
  .hero-brandrow { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .hero-brandrow img { height: 24px; }
  .hero-tag { font-size: 12px; padding: 8px 14px; }

  /* WRAP / PADDING */
  .wrap { padding: 0 16px; }

  /* METRICS */
  .metrics-bar { padding: 24px 16px; }

  /* TERMINAL */
  .terminal-section { padding: 60px 16px; }
  .terminal-section h2 { font-size: 26px; }
  .terminal-box { border-radius: 6px; }
  .terminal-input-row { flex-wrap: nowrap; }
  .term-prompt { font-size: 11px; white-space: nowrap; }
  .term-input { font-size: 13px; min-width: 0; }
  .terminal-quick-cmds { flex-wrap: wrap; gap: 6px; padding: 10px 14px; }

  /* CAPABILITIES MATRIX */
  section.pillar { padding: 60px 16px; }
  .pillar-title { font-size: 28px; }
  .filter-wrapper { padding: 0; }
  .search-row { flex-direction: column; }
  .filter-chips { justify-content: center; }
  .filter-chip { font-size: 10px; padding: 6px 10px; }

  /* ARCHITECTURE */
  section.architecture { padding: 60px 16px; }
  section.architecture h2 { font-size: 28px; }
  .arch-container { padding: 20px; }

  /* SIMULATOR */
  section.products { padding: 60px 16px; }
  section.products h2 { font-size: 28px; }
  .sim-tabs { gap: 8px; }
  .sim-tab { font-size: 12px; padding: 10px 14px; }
  .sim-screen { padding: 20px; gap: 24px; }
  .sim-title { font-size: 24px; }
  .sim-desc { font-size: 14px; }
  .sim-video-element { height: 220px; }

  /* VALUES */
  section.values { padding: 60px 16px; }
  section.values h2 { font-size: 28px; }

  /* FAQ */
  section.faq { padding: 60px 16px; }
  section.faq h2 { font-size: 28px; }
  .faq-question { font-size: 16px; padding: 16px 18px; }

  /* CONTACT */
  section.contact { padding: 60px 16px; }
  section.contact h2 { font-size: 32px; }
  .contact-form { padding: 24px; }

  /* FOOTER */
  footer { padding: 40px 16px 30px; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-legal { flex-direction: column; text-align: center; gap: 6px; }

  /* MODAL */
  .modal-content { padding: 24px; margin: 16px; }
}

/* ---- PHONES (≤480px) ---- */
@media (max-width: 480px) {

  /* TOP BAR — compact single-line essentials */
  .sys-header-bar { padding: 6px 12px; }
  .sys-header-status { font-size: 9px; gap: 6px; }
  .sys-header-status span:not(.sys-status-badge) { display: none; }
  .theme-chip { font-size: 9px; padding: 3px 6px; }

  /* HERO */
  .hero { padding: 60px 16px 40px; }
  .hero h1 { font-size: 26px; }
  .hero-sub { font-size: 13px; }
  .hero-tag { font-size: 11px; }
  .hero-brandrow img { height: 20px; }

  /* NAV */
  .nav-inner { padding: 12px 16px; }
  .nav-logo { height: 28px; }
  .nav-version { font-size: 8px; padding: 2px 4px; }

  /* SECTION HEADINGS */
  .pillar-title, section.architecture h2, section.products h2,
  section.values h2, section.faq h2 { font-size: 24px; }

  /* SIMULATOR */
  .sim-tabs { flex-direction: column; }
  .sim-tab { width: 100%; text-align: center; }
  .sim-screen { padding: 16px; }
  .sim-title { font-size: 20px; }
  .sim-video-element { height: 180px; }
  #simLogo { height: 18px; max-width: 75px; }

  /* TERMINAL */
  .terminal-section h2 { font-size: 22px; }
  .term-prompt { font-size: 10px; }
  .terminal-quick-cmds .cmd-btn { font-size: 10px; padding: 4px 8px; }

  /* CONTACT */
  section.contact h2 { font-size: 26px; }
}
