/* ═══════════════════════════════════════════════════════════════
   NEURONSO TECHNOLOGY — styles.css
   Futuristic AI Theme | Deep Blue · Neon Cyan · Glassmorphism
═══════════════════════════════════════════════════════════════ */

/* ─── SPHERE FEZ — custom logo font ──────────────────────── */
@font-face {
  font-family: 'Sphere Fez';
  src: url('/media/sphere-fez.woff2') format('woff2'),
       url('/media/sphere-fez.woff')  format('woff'),
       url('/media/sphere-fez.ttf')   format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;   /* show fallback font while loading — no FOIT */
}

/* ─── CSS VARIABLES ─────────────────────────────────────── */
:root {
  --bg-primary: #020b18;
  --bg-secondary: #040f20;
  --bg-card: rgba(10, 25, 50, 0.7);
  --bg-glass: rgba(0, 212, 255, 0.05);

  --accent-cyan: #0099cc;
  --accent-green: #00ff88;
  --accent-purple: #a855f7;
  --accent-orange: #ff6b35;

  --text-primary: #e8f4f8;
  --text-secondary: #7ba8c4;
  --text-muted: #3a6080;

  --border-glow: rgba(0, 212, 255, 0.2);
  --border-subtle: rgba(0, 212, 255, 0.08);

  --gradient-hero: linear-gradient(135deg, #020b18 0%, #041428 50%, #020b18 100%);
  --gradient-cyan: linear-gradient(135deg, #0099cc, #0099cc);
  --gradient-card: linear-gradient(135deg, rgba(0,212,255,0.1) 0%, rgba(0,100,160,0.05) 100%);

  --font-display: 'Sphere Fez', 'Orbitron', sans-serif; /* Sphere Fez primary, Orbitron fallback */
  --font-body: 'Rajdhani', sans-serif;
  --font-text: 'Inter', sans-serif;

  --nav-height: 70px;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  /* cursor:none gated on body.js-ready at bottom of file */
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ─── CANVAS BACKGROUND ─────────────────────────────────── */
#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ─── CUSTOM CURSOR ─────────────────────────────────────── */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  box-shadow: 0 0 12px var(--accent-cyan);
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(0, 212, 255, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

body:hover .cursor-ring { opacity: 1; }

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

/* ─── NAVIGATION ─────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(2, 11, 24, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-glow);
  box-shadow: 0 4px 40px rgba(0, 212, 255, 0.08);
}

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.nav-logo:hover { opacity: 0.85; }

/* Icon image — the /media/icon.png mark */
.logo-icon-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
  /* Cyan glow to match brand accent */
  filter: drop-shadow(0 0 6px rgba(0,212,255,0.55));
  transition: filter 0.3s ease;
  flex-shrink: 0;
}

.nav-logo:hover .logo-icon-img {
  filter: drop-shadow(0 0 12px rgba(0,212,255,0.85));
}

/* Logo wordmark — Sphere Fez font */
.logo-text {
  font-family: 'Sphere Fez', 'Orbitron', sans-serif;
  font-size: 1.25rem;
  font-weight: normal;    /* Sphere Fez is display weight — don't double-bold */
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1;
}

[data-theme="light"] .logo-icon-img {
  filter: drop-shadow(0 0 6px rgba(0,100,180,0.45));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

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

.nav-item:hover,
.nav-item.active {
  color: var(--accent-cyan);
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 60%;
}

.nav-cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.4rem;
  background: transparent;
  border: 1.5px solid var(--accent-cyan);
  color: var(--accent-cyan);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-cyan);
  transition: var(--transition);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(2, 11, 24, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 2rem;
  transform: translateY(-120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid var(--border-glow);
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  transition: var(--transition);
}

.mobile-nav a:hover { color: var(--accent-cyan); }

/* ─── LAYOUT UTILITIES ──────────────────────────────────── */
.section-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 4rem;
  line-height: 1.7;
}

.accent { color: var(--accent-cyan); }

/* ─── REVEAL ANIMATIONS ─────────────────────────────────── */
/* Gated on body.js-ready — see bottom of file for full rules.
   Without the gate, sections stay permanently hidden if JS fails. */
.reveal-up,
.reveal-left,
.reveal-right {
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  background: linear-gradient(135deg, var(--accent-cyan), #0099cc);
  color: var(--bg-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6), 0 8px 24px rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.07);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-glow);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-ghost:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.05);
}

.btn-full { width: 100%; justify-content: center; }

/* ─── HERO SECTION ──────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-height) + 3rem) 2rem 5rem;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0,80,140,0.25) 0%, transparent 70%),
              radial-gradient(ellipse 40% 50% at 20% 30%, rgba(0,212,255,0.08) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 40px;
  background: rgba(0, 212, 255, 0.06);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
  box-shadow: 0 0 6px var(--accent-cyan);
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
  font-size: xxx-large;
}

.title-line {
  display: block;
}

.title-line.accent {
  color: var(--accent-cyan);
  text-shadow: 0 0 40px rgba(0, 212, 255, 0.5), 0 0 80px rgba(0, 212, 255, 0.2);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero-desc {
  font-family: var(--font-text);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-cyan);
  line-height: 1;
}

.stat-unit {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent-cyan);
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-glow);
}

/* Hero Visual */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.hex-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
}

.ring-1 {
  width: 100%;
  height: 100%;
  border-color: rgba(0, 212, 255, 0.15);
  animation: ringRotate 20s linear infinite;
}

.ring-2 {
  width: 80%;
  height: 80%;
  border-color: rgba(0, 212, 255, 0.1);
  border-style: dashed;
  animation: ringRotate 15s linear infinite reverse;
}

.ring-3 {
  width: 60%;
  height: 60%;
  border-color: rgba(0, 212, 255, 0.2);
  animation: ringRotate 10s linear infinite;
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-img-wrap {
  position: relative;
  width: 62%;
  height: 62%;
  border-radius: 50%;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── SIRI ORB WRAP ────────────────────────────────────────── */
.ai-orb-wrap {
  position: relative;
}

#ai-voice-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
  display: block;
}

/* hide fallback img */
.hero-img-wrap img { display: none; }

/* ─── FLOATING BADGES — AI Grade (6 total) ───────────────── */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: rgba(4, 14, 32, 0.88);
  border: 1px solid rgba(0,212,255,0.18);
  padding: 0.45rem 0.85rem;
  border-radius: 30px;
  backdrop-filter: blur(16px);
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  z-index: 4;
}

.floating-badge:hover {
  box-shadow: 0 0 20px var(--fb-glow, rgba(0,212,255,0.4)), 0 4px 24px rgba(0,0,0,0.5);
  border-color: rgba(0,212,255,0.4);
}

/* Badge icon */
.fb-icon {
  font-size: 0.9rem;
  filter: drop-shadow(0 0 4px rgba(0,212,255,0.6));
}

/* Badge label — always white so it stays readable on the dark badge background */
.fb-label {
  letter-spacing: 0.1em;
  color: #ffffff;
}

/* Progress bar strip (fb-1, fb-2, fb-3) */
.fb-bar {
  display: block;
  width: 36px;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}
.fb-bar-fill {
  display: block;
  height: 100%;
  width: var(--bw, 80%);
  background: linear-gradient(90deg, var(--accent-cyan), #00ff88);
  border-radius: 2px;
  animation: barPulse 2.4s ease-in-out infinite;
}
@keyframes barPulse {
  0%,100% { opacity:1; }
  50%      { opacity:0.5; }
}

/* Pulsing dot (fb-4, fb-5, fb-6) */
.fb-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fc, #0099cc);
  box-shadow: 0 0 8px var(--fc, #0099cc);
  flex-shrink: 0;
  animation: dotBlink 1.6s ease-in-out infinite;
}
@keyframes dotBlink {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(0.7); }
}

/* Signal bars (fb-4 Tracking) */
.fb-signal {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.fb-signal i {
  display: block;
  width: 3px;
  border-radius: 1px;
  background: var(--accent-cyan);
  animation: signalGrow 1.4s ease-in-out infinite;
}
.fb-signal i:nth-child(1) { height:4px; animation-delay:0s; }
.fb-signal i:nth-child(2) { height:8px; animation-delay:0.2s; }
.fb-signal i:nth-child(3) { height:12px; animation-delay:0.4s; }
@keyframes signalGrow {
  0%,100% { opacity:0.3; }
  50%      { opacity:1; }
}

/* Heartbeat line (fb-5 Health) */
.fb-heartbeat {
  width: 44px;
  height: 14px;
  overflow: hidden;
  flex-shrink: 0;
}
.fb-heartbeat svg {
  width: 100%;
  height: 100%;
  animation: hbScroll 1.8s linear infinite;
}
@keyframes hbScroll {
  from { transform:translateX(0); }
  to   { transform:translateX(-33%); }
}

/* Thinking dots (fb-6 LLM) */
.fb-thinking {
  display: flex;
  gap: 3px;
  align-items: center;
}
.fb-thinking span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a855f7;
  animation: thinkDot 1.4s ease-in-out infinite;
}
.fb-thinking span:nth-child(2) { animation-delay:0.2s; }
.fb-thinking span:nth-child(3) { animation-delay:0.4s; }
@keyframes thinkDot {
  0%,60%,100% { transform:translateY(0); opacity:0.3; }
  30%          { transform:translateY(-5px); opacity:1; }
}

/* ─── BADGE POSITIONS — orbit-style layout around ring ───── */
/* Top-right cluster */
.fb-1 {
  top: 4%; right: 52%;
  --fb-glow: rgba(0,212,255,0.4);
  animation: fbFloat1 4s ease-in-out infinite;
}
.fb-4 {
  top: 22%; right: -4%;
  --fb-glow: rgba(0,212,255,0.35);
  animation: fbFloat4 3.6s ease-in-out infinite 0.8s;
}

/* Left cluster */
.fb-2 {
  top: 42%; left: -2%;
  --fb-glow: rgba(0,212,255,0.4);
  animation: fbFloat2 4.2s ease-in-out infinite 0.4s;
}
.fb-5 {
  bottom: 28%; left: -4%;
  --fb-glow: rgba(255,107,107,0.5);
  border-color: rgba(255,107,107,0.25);
  animation: fbFloat5 3.8s ease-in-out infinite 1.2s;
}
.fb-5:hover { border-color: rgba(255,107,107,0.6); }

/* Bottom cluster */
.fb-3 {
  bottom: 6%; right: 8%;
  --fb-glow: rgba(0,212,255,0.4);
  animation: fbFloat3 3.4s ease-in-out infinite 0.6s;
}
.fb-6 {
  bottom: 42%; right: -2%;
  --fb-glow: rgba(168,85,247,0.5);
  border-color: rgba(168,85,247,0.25);
  animation: fbFloat6 4.4s ease-in-out infinite 1.6s;
}
.fb-6:hover { border-color: rgba(168,85,247,0.6); }

/* Unique float paths per badge — no two badges move the same way */
@keyframes fbFloat1 {
  0%,100% { transform:translate(0,0) rotate(-1deg); }
  30%      { transform:translate(-3px,-10px) rotate(0.5deg); }
  70%      { transform:translate(2px,-6px) rotate(-0.5deg); }
}
@keyframes fbFloat2 {
  0%,100% { transform:translate(0,0) rotate(1deg); }
  40%      { transform:translate(4px,-8px) rotate(-1deg); }
  80%      { transform:translate(-2px,-4px) rotate(0.5deg); }
}
@keyframes fbFloat3 {
  0%,100% { transform:translate(0,0); }
  50%      { transform:translate(-4px,-12px) rotate(1deg); }
}
@keyframes fbFloat4 {
  0%,100% { transform:translate(0,0) rotate(0.5deg); }
  35%      { transform:translate(3px,-7px) rotate(-1deg); }
  75%      { transform:translate(-2px,-11px) rotate(0.8deg); }
}
@keyframes fbFloat5 {
  0%,100% { transform:translate(0,0); }
  45%      { transform:translate(5px,-9px) rotate(-0.5deg); }
}
@keyframes fbFloat6 {
  0%,100% { transform:translate(0,0) rotate(-0.5deg); }
  30%      { transform:translate(-3px,-13px) rotate(1deg); }
  65%      { transform:translate(2px,-7px) rotate(-1deg); }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.scroll-indicator span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── ABOUT SECTION ─────────────────────────────────────── */
.about-section {
  position: relative;
  padding: 8rem 0;
  z-index: 1;
}

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

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

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

.about-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 212, 255, 0.12);
}

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

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px rgba(0,212,255,0.5));
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.about-card p {
  font-family: var(--font-text);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── PRODUCTS SECTION ──────────────────────────────────── */
.products-section {
  position: relative;
  padding: 8rem 0;
  z-index: 1;
}

.product-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: -2rem;
  padding-bottom: 8rem;
  border-bottom: 1px solid var(--border-subtle);
}

.product-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.layout-reverse { direction: rtl; }
.layout-reverse > * { direction: ltr; }

/* Product Visual */
.product-visual {
  position: relative;
}

/* ── Product image / video wrap ───────────────────────────── */
.product-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  height: 340px;           /* explicit height — works in all browsers */
  border: 1px solid var(--border-glow);
  background: #020b18;
}

/* ── Video inside wrap ────────────────────────────────────── */
/* .pv (generic) — shared base for img, iframe inside product wrap */
.product-img-wrap .pv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.product-img-wrap iframe.pv {
  object-fit: unset;
  border: 0;
  pointer-events: none;
}

/* ── Legacy img fallback ──────────────────────────────────── */
.product-img-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 0;
}
.product-img-wrap:hover img { transform: scale(1.05); }

/* ── Overlay on top of video ──────────────────────────────── */
.img-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(0,212,255,0.08) 0%, transparent 50%),
              linear-gradient(to top, rgba(2,11,24,0.6) 0%, transparent 40%);
  pointer-events: none;
}

.video-btn {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(2, 11, 24, 0.85);
  border: 1.5px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}

.video-btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.play-icon {
  width: 22px;
  height: 22px;
  background: var(--accent-cyan);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.video-btn:hover .play-icon {
  background: var(--bg-primary);
  color: var(--accent-cyan);
}

/* Product Content */
.product-tag {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.product-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.product-desc {
  font-family: var(--font-text);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Feature Tabs */
.feature-tabs {
  margin-bottom: 2rem;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0;
}

.tab-btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: -1px;
  white-space: nowrap;
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.tab-content {
  position: relative;
  min-height: 140px;
}

.tab-pane {
  display: none;
  animation: tabFadeIn 0.4s ease;
}

.tab-pane.active { display: block; }

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-pane-inner {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 1.5rem;
  margin-top: 0;
}

.tab-pane-inner h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.tab-pane-inner ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tab-pane-inner li {
  font-family: var(--font-text);
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-left: 1rem;
  position: relative;
}

.tab-pane-inner li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

.product-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── TEAM SECTION ──────────────────────────────────────── */
.team-section {
  position: relative;
  padding: 1rem 0;
  z-index: 1;
  overflow: hidden;
}

.team-slider-wrap {
  position: relative;
  overflow: hidden;
}

.team-slider {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-width: 280px;
  flex: 0 0 280px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.team-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(0,212,255,0.08);
}

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

.team-avatar {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 1.2rem;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0,212,255,0.3);
}

.avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid;
  border-color: transparent var(--accent-cyan) transparent transparent;
  animation: ringRotate 4s linear infinite;
}

.team-info h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.team-role {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 0.75rem;
}

.team-info p {
  font-family: var(--font-text);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.team-social {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.team-social a {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-glow);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.team-social a:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0,212,255,0.08);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.slider-prev,
.slider-next {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-glow);
  color: var(--text-primary);
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slider-prev:hover, .slider-next:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0,212,255,0.3);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

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

.dot.active {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  width: 20px;
  border-radius: 3px;
}

/* ─── GLOBAL SECTION ────────────────────────────────────── */
.global-section {
  position: relative;
  padding: 8rem 0;
  z-index: 1;
}

.map-wrap {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 4rem;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

/* world-map, map-land, map-pin SVG rules removed — replaced by HTML pin system */

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Partner Slider */
.partner-section {
  overflow: hidden;
}

.partner-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

.partner-track-wrap {
  overflow: hidden;
  position: relative;
}

.partner-track-wrap::before,
.partner-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.partner-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.partner-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.partner-track {
  display: flex;
  gap: 1.5rem;
  animation: partnerScroll 30s linear infinite;
  width: max-content;
}

@keyframes partnerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.partner-logo {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1rem 2rem;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  backdrop-filter: blur(12px);
}

.partner-logo:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(0,212,255,0.1);
}

.partner-logo span {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ─── CONTACT SECTION ───────────────────────────────────── */
.contact-section {
  position: relative;
  padding: 8rem 0;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  filter: drop-shadow(0 0 6px rgba(0,212,255,0.4));
}

.contact-item h5 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.3rem;
}

.contact-item p {
  font-family: var(--font-text);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(0, 10, 20, 0.6);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-text);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
  background: rgba(0, 15, 30, 0.8);
}

.btn-submit {
  width: 100%;
  justify-content: center;
  font-size: 0.9rem;
  padding: 1rem;
  position: relative;
}

.btn-loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(2,11,24,0.3);
  border-top-color: var(--bg-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.form-success {
  margin-top: 1rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: var(--radius);
  padding: 1rem;
  font-family: var(--font-text);
  font-size: 0.88rem;
  color: var(--accent-green);
  text-align: center;
}

.form-error {
  margin-top: 1rem;
  background: rgba(255, 50, 50, 0.1);
  border: 1px solid rgba(255, 50, 50, 0.3);
  border-radius: var(--radius);
  padding: 1rem;
  font-family: var(--font-text);
  font-size: 0.88rem;
  color: #ff6b6b;
  text-align: center;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand p {
  font-family: var(--font-text);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 260px;
}

.footer-links-col h6 {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-links-col a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  transition: var(--transition);
  position: relative;
}

.footer-links-col a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-cyan);
  transition: width 0.3s;
}

.footer-links-col a:hover {
  color: var(--accent-cyan);
}

.footer-links-col a:hover::after { width: 100%; }

.footer-social-col h6 {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-icon svg {
  width: 16px;
  height: 16px;
}

.social-icon:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0,212,255,0.08);
  box-shadow: 0 0 15px rgba(0,212,255,0.2);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.2rem;
}

.footer-legal a {
  font-family: var(--font-text);
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-legal a:hover { color: var(--accent-cyan); }

.footer-copy {
  font-family: var(--font-text);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─── MODALS ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 11, 24, 0.92);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 60px rgba(0,212,255,0.1);
}

.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-glow);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: rgba(255,50,50,0.2);
  border-color: rgba(255,50,50,0.5);
  color: #ff6b6b;
}

/* Video Modal */
/* Video modal CSS removed — video opens in new tab */

/* ─── VIDEO MODAL ─────────────────────────────────────────── */
.video-modal-box {
  width: min(920px, 96vw);
  padding: 0;
  overflow: hidden;
  background: #020b18;
  border: 1px solid rgba(0,212,255,0.2);
  box-shadow: 0 0 80px rgba(0,212,255,0.12), 0 40px 100px rgba(0,0,0,0.8);
}

.video-modal-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(0,212,255,0.08);
  background: rgba(0,10,25,0.8);
}

.video-modal-tag {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.video-modal-box .modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
}

.video-container {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Error state shown when embedding is blocked */
.video-error-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2,11,24,0.97);
  z-index: 5;
}

.video-error-inner {
  text-align: center;
  padding: 2rem;
}

.video-error-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.video-error-inner p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Pricing Modal */
.pricing-modal-box {
  width: min(560px, 95vw);
  padding: 2.5rem;
  max-height: 90vh;
  overflow-y: auto;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-badge {
  display: inline-block;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 30px;
  padding: 0.4rem 1.2rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.pricing-price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  color: var(--accent-cyan);
  line-height: 1;
  text-shadow: 0 0 30px rgba(0,212,255,0.4);
}

.price-details {
  display: flex;
  flex-direction: column;
  padding-top: 0.5rem;
}

.price-currency {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-period {
  font-family: var(--font-text);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.pricing-features {
  margin-bottom: 2rem;
}

.pricing-features h4,
.pricing-payment h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.pricing-features ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.check {
  width: 22px;
  height: 22px;
  background: rgba(0,255,136,0.12);
  border: 1px solid rgba(0,255,136,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--accent-green);
  flex-shrink: 0;
}

.pricing-payment {
  margin-bottom: 2rem;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.payment-badge {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  transition: var(--transition);
}

.payment-badge:hover {
  border-color: var(--border-glow);
  color: var(--accent-cyan);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-left { order: 2; }
  .hero-right { order: 1; }
  .hero-stats { justify-content: center; }
  .hero-btns { justify-content: center; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-badge { margin: 0 auto 1.5rem; }
  .hero-visual { width: 300px; height: 300px; margin: 0 auto; }

  .product-block { grid-template-columns: 1fr; gap: 2.5rem; }
  .layout-reverse { direction: ltr; }
  .layout-reverse .product-visual { order: -1; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-legal { flex-direction: column; gap: 0.4rem; }
}

@media (max-width: 600px) {
  .about-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .pricing-modal-box { padding: 1.5rem; }
  .tab-nav { gap: 0.25rem; }
  .tab-btn { font-size: 0.65rem; padding: 0.4rem 0.6rem; }
  .hero-title { font-size: 2.8rem; }

  /* .team-card { min-width: 240px; flex: 0 0 240px; } */
}

/* ─── UTILITY ────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ═══════════════════════════════════════════════════════════════
   NEURONSO — ADDITIONS v2
   Insights Panels · Dashboard Modals · Map Pins · Analytics UI
═══════════════════════════════════════════════════════════════ */

/* /* ─── INSIGHTS PANEL (all products) ────────────────────────────  */
.insights-panel {
  background: linear-gradient(135deg, rgba(0,212,255,0.04) 0%, rgba(0,10,30,0.6) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.insights-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.5;
}

.insights-panel-hdr {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.insights-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pill, var(--accent-cyan));
  border: 1px solid var(--pill, rgba(0,212,255,0.4));
  padding: 0.35rem 1rem;
  border-radius: 30px;
  background: rgba(0,212,255,0.06);
  white-space: nowrap;
}

.insights-panel-hdr p {
  font-family: var(--font-text);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.insights-icons-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* ─── INSIGHT ICON BUTTON ─────────────────────────────────────── */
.insight-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 100px;
  max-width: 130px;
  flex: 1;
}

.insight-icon-btn:hover {
  transform: translateY(-6px);
}

.insight-icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  background: rgba(0, 10, 30, 0.8);
  border: 1.5px solid rgba(var(--ic, 0,212,255), 0.3);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.insight-icon-wrap svg {
  width: 30px;
  height: 30px;
  stroke: var(--ic, var(--accent-cyan));
  transition: filter 0.3s ease;
}

.insight-icon-btn:hover .insight-icon-wrap {
  border-color: var(--ic, var(--accent-cyan));
  /* color-mix fallback for older browsers */
  box-shadow:
    0 0 20px rgba(0, 212, 255, 0.4),
    0 0 40px rgba(0, 212, 255, 0.2),
    inset 0 0 15px rgba(0, 212, 255, 0.1);
  background: rgba(0, 15, 35, 0.95);
  transform: scale(1.08);
}

.insight-icon-btn:hover .insight-icon-wrap svg {
  filter: drop-shadow(0 0 8px var(--ic, var(--accent-cyan)));
}

.insight-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  border: 1px solid var(--pc, var(--accent-cyan));
  opacity: 0;
  animation: insightPulse 2.5s ease-out infinite;
}

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

.insight-icon-btn:hover .insight-pulse { animation-duration: 1.2s; }

.insight-icon-btn span {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
  transition: color 0.3s;
}

.insight-icon-btn:hover span {
  color: var(--text-primary);
}

/* ─── DASHBOARD MODAL ─────────────────────────────────────────── */
.dash-modal-box {
  width: min(900px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.dash-modal-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.8rem 2rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 10, 25, 0.6);
  flex-shrink: 0;
}

.dash-modal-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.dash-modal-tag {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.3rem;
}

.dash-modal-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.dash-modal-body {
  padding: 1.8rem 2rem;
  flex: 1;
}

/* ─── DASHBOARD METRIC CARDS ─────────────────────────────────── */
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dash-metric {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
  animation: metricIn 0.5s ease both;
}

.dash-metric:nth-child(1) { animation-delay: 0.05s; }
.dash-metric:nth-child(2) { animation-delay: 0.1s; }
.dash-metric:nth-child(3) { animation-delay: 0.15s; }
.dash-metric:nth-child(4) { animation-delay: 0.2s; }

@keyframes metricIn {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dash-metric:hover {
  border-color: var(--border-glow);
  box-shadow: 0 8px 25px rgba(0,212,255,0.1);
}

.dash-metric-val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-cyan);
  line-height: 1;
  display: block;
}

.dash-metric-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-top: 0.4rem;
}

.dash-metric-delta {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--accent-green);
  display: block;
  margin-top: 0.2rem;
}

/* ─── CHART CONTAINERS ────────────────────────────────────────── */
.dash-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.dash-charts-grid.single { grid-template-columns: 1fr; }
.dash-charts-grid.thirds { grid-template-columns: 2fr 1fr; }

.dash-chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.2rem;
  animation: metricIn 0.6s ease both;
}

.dash-chart-card:nth-child(1) { animation-delay: 0.2s; }
.dash-chart-card:nth-child(2) { animation-delay: 0.3s; }

.dash-chart-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.dash-chart-card canvas {
  max-height: 180px;
  width: 100% !important;
}

/* Slider rows for intervention simulator */
.dash-sliders {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.2rem;
  animation: metricIn 0.5s ease both;
}

.dash-slider-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dash-slider-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  width: 160px;
  flex-shrink: 0;
}

.dash-slider-input {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--border-subtle);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.dash-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,212,255,0.6);
  transition: box-shadow 0.2s;
}

.dash-slider-input::-webkit-slider-thumb:hover {
  box-shadow: 0 0 15px rgba(0,212,255,0.9);
}

.dash-slider-val {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  width: 40px;
  text-align: right;
}

/* AI insight card */
.dash-ai-insights {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  animation: metricIn 0.5s ease 0.1s both;
}

.dash-insight-card {
  background: rgba(0,212,255,0.04);
  border: 1px solid rgba(0,212,255,0.12);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.dash-insight-icon { font-size: 1rem; flex-shrink: 0; margin-top: 0.05rem; }

.dash-insight-text {
  font-family: var(--font-text);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.dash-insight-text strong { color: var(--text-primary); }

/* Timeline / event log for alerts */
.dash-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: metricIn 0.5s ease 0.15s both;
}

.dash-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.dash-timeline-item:last-child { border-bottom: none; }

.dash-tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 0.3rem;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.dash-tl-dot.warn { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
.dash-tl-dot.crit { background: #ff6b6b; box-shadow: 0 0 8px #ff6b6b; }
.dash-tl-dot.ok   { background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }

.dash-tl-time {
  font-family: var(--font-display);
  font-size: 0.62rem;
  color: var(--text-muted);
  min-width: 52px;
  padding-top: 0.15rem;
}

.dash-tl-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.dash-tl-badge {
  margin-left: auto;
  font-size: 0.62rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(0,212,255,0.12);
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.dash-tl-badge.warn { background: rgba(251,191,36,0.12); color: #fbbf24; }
.dash-tl-badge.crit { background: rgba(255,107,107,0.12); color: #ff6b6b; }
.dash-tl-badge.ok   { background: rgba(0,255,136,0.12); color: var(--accent-green); }

/* Radar legend */
.radar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-top: 0.75rem;
}

.radar-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.radar-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ─── STATIC MAP + PINS ───────────────────────────────────────── */
.static-map-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #040f20;
  line-height: 0;
}

.static-map-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.7;
  filter: hue-rotate(180deg) saturate(0.4) brightness(0.6);
}

/* HTML map pins */
.map-pin-html {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 5;
}

.pin-dot {
  width: 12px;
  height: 12px;
  background: var(--pc, var(--accent-cyan));
  border-radius: 50%;
  position: relative;
  z-index: 3;
  box-shadow: 0 0 10px var(--pc, var(--accent-cyan));
  transition: transform 0.2s ease;
}

.map-pin-html:hover .pin-dot {
  transform: scale(1.4);
}

.pin-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 26px; height: 26px;
  border: 1.5px solid var(--pc, var(--accent-cyan));
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: htmlPinPulse 2.2s ease-out infinite;
  pointer-events: none;
}

.pin-ring-2 {
  width: 42px; height: 42px;
  opacity: 0.5;
  animation-delay: 0.8s;
}

@keyframes htmlPinPulse {
  0%   { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(2); }
}

/* Pin tooltip */
.pin-tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(4, 15, 32, 0.96);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateX(-50%) translateY(4px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  z-index: 10;
}

.pin-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--border-glow);
}

.map-pin-html:hover .pin-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── RESPONSIVE: insights / dash ─────────────────────────────── */
@media (max-width: 900px) {
  .dash-metrics { grid-template-columns: repeat(2, 1fr); }
  .dash-charts-grid { grid-template-columns: 1fr; }
  .dash-charts-grid.thirds { grid-template-columns: 1fr; }
  .dash-modal-box { max-height: calc(100vh - 15rem) !important; }
  .dash-modal-body { padding: 1.2rem; }
}

@media (max-width: 600px) {
  .insights-icons-row { justify-content: center; }
  .insight-icon-btn { min-width: 80px; max-width: 100px; }
  .insight-icon-wrap { width: 58px; height: 58px; border-radius: 16px; }
  .dash-metrics { grid-template-columns: repeat(2, 1fr); }
  .dash-slider-label { width: 110px; font-size: 0.7rem; }
  .dash-modal-header { padding: 1.2rem; }
}

/* ═══════════════════════════════════════════════════════════
   NEURONSO v3 — Badges · Insights Wrap · Captcha · Gauges
═══════════════════════════════════════════════════════════ */

/* ─── Hero badge dot variant ─────────────────────────────── */
.fb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: pulseDot 2s ease-in-out infinite;
  box-shadow: 0 0 6px currentColor;
}

/* ─── Insights icon row wrap (scrollable on mobile) ───────── */
.insights-icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: flex-start;
}

@media (max-width: 700px) {
  .insights-icons-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,212,255,0.3) transparent;
  }
  .insight-icon-btn {
    min-width: 80px;
    flex-shrink: 0;
  }
}

/* ─── Captcha ─────────────────────────────────────────────── */
.captcha-group { margin-bottom: 1.4rem; }

.captcha-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 10, 20, 0.6);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  transition: var(--transition);
}

.captcha-box:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

.captcha-question {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  white-space: nowrap;
  min-width: 80px;
  text-shadow: 0 0 12px rgba(0,212,255,0.4);
}

.captcha-eq {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-muted);
}

.captcha-box input[type="number"] {
  width: 70px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}

.captcha-box input[type="number"]::-webkit-outer-spin-button,
.captcha-box input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

.captcha-refresh {
  margin-left: auto;
  background: none;
  border: 1px solid var(--border-glow);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.captcha-refresh:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  transform: rotate(180deg);
}

.captcha-error {
  display: block;
  font-family: var(--font-text);
  font-size: 0.78rem;
  color: #ff6b6b;
  margin-top: 0.4rem;
}

/* ─── Gauge / vitals chart layout ────────────────────────── */
.vitals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.vital-gauge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1rem 0.75rem;
  text-align: center;
  animation: metricIn 0.5s ease both;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.vital-gauge-card:hover {
  border-color: var(--vg-color, var(--accent-cyan));
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.vital-gauge-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--vg-color, var(--accent-cyan));
  opacity: 0.8;
}

.vital-gauge-svg {
  display: block;
  margin: 0 auto 0.5rem;
  overflow: visible;
}

.vital-gauge-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 8;
  stroke-linecap: round;
}

.vital-gauge-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.4,0,0.2,1);
  stroke: var(--vg-color, var(--accent-cyan));
  filter: drop-shadow(0 0 4px var(--vg-color, var(--accent-cyan)));
}

.vital-gauge-val {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  fill: var(--vg-color, var(--accent-cyan));
}

.vital-gauge-unit {
  font-family: var(--font-body);
  font-size: 0.5rem;
  fill: var(--text-muted);
}

.vital-gauge-name {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.vital-gauge-status {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  display: inline-block;
  margin-top: 0.2rem;
}

.vital-status-ok   { background: rgba(0,255,136,0.12); color: var(--accent-green); }
.vital-status-warn { background: rgba(251,191,36,0.12); color: #fbbf24; }
.vital-status-crit { background: rgba(255,107,107,0.12); color: #ff6b6b; }

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

/* ═══════════════════════════════════════════════════════════
   PERFORMANCE OPTIMIZATIONS v4
   will-change · contain · GPU compositing · paint reduction
═══════════════════════════════════════════════════════════ */

/* ─── GPU-accelerated animated elements ──────────────────── */
#neural-canvas,
#ai-voice-canvas {
  will-change: transform;
  transform: translateZ(0);
}

.hex-ring,
.floating-badge,
.partner-track,
.avatar-ring,
.insight-pulse,
.pin-ring,
.fb-bar-fill,
.fb-dot-pulse,
.fb-heartbeat svg,
.fb-thinking span {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* ─── Layout containment — prevent reflow cascade ────────── */
.products-section,
.team-section,
.global-section,
.about-section,
.contact-section {
  /* contain:layout REMOVED — creates a new containing block that traps
     position:fixed modals, anchoring them to the section instead of viewport */
  contain: style;
}

.product-block,
.about-card,
.dash-chart-card,
.vital-gauge-card,
.partner-logo {
  /* contain:layout REMOVED for same reason; contain:paint is safe */
  contain: style paint;
}
.team-card { contain: none; }

/* ─── Scroll containment on sliders ──────────────────────── */
.team-slider-wrap,
.partner-track-wrap {
  contain: layout;
  overflow: hidden;
}

/* ─── Reduce paint on backdrop-filter elements ───────────── */
/* NOTE: transform removed from .modal-box and modal ancestors —
   any transform on a position:fixed ancestor breaks viewport anchoring */
.nav-inner,
.insights-panel,
.about-card,
.product-img-wrap,
.contact-form-wrap,
.map-wrap,
.partner-logo,
.team-card {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* content-visibility:auto REMOVED — it creates a new stacking context
   that breaks position:fixed modal positioning (modals snap to section) */

/* ─── Smooth font rendering ───────────────────────────────── */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

/* ─── Reduce motion for accessibility ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .partner-track { animation: none; }
  #neural-canvas { opacity: 0.2; }
}

/* ─── Image rendering optimisation ───────────────────────── */
.team-avatar img,
.product-img-wrap img,
.static-map-img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* ─── Cursor: hide default on touch devices ──────────────── */
@media (hover: none) {
  .cursor-dot,
  .cursor-ring { display: none; }
  body { cursor: auto; }
}

@media (max-width: 600px) {
  .logo-icon-img { height: 26px; }
  .logo-text     { font-size: 1rem; letter-spacing: 0.12em; }
}

/* Watch Demo button sits above the overlay */
.product-visual .video-btn {
  z-index: 3;
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════
   NEURONSO — DEFINITIVE FIXES
   Modal positioning · Dark mode · Nav dropdown · 
   Video element · Reveal guard · Cursor guard
   All rules here are FINAL and override earlier declarations.
═══════════════════════════════════════════════════════════ */

/* ─── JS-READY GUARD — cursor and reveal ────────────────────
   Without this, if JS fails to load the entire site is
   invisible (opacity:0) and cursor is gone permanently.    */
body.js-ready { cursor: none; }

body.js-ready .reveal-up,
body.js-ready .reveal-left,
body.js-ready .reveal-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4,0,0.2,1);
  transition-delay: var(--delay, 0s);
}

body.js-ready .reveal-up    { transform: translateY(50px); }
body.js-ready .reveal-left  { transform: translateX(-60px); }
body.js-ready .reveal-right { transform: translateX(60px); }

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1 !important;
  transform: translate(0,0) !important;
}

/* Remove the original ungated opacity:0 rules to prevent
   permanently hidden sections if js-ready never fires     */
.reveal-up,
.reveal-left,
.reveal-right {
  /* opacity and transform only applied via body.js-ready above */
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4,0,0.2,1);
  transition-delay: var(--delay, 0s);
}


/* ─── MODAL DEFINITIVE POSITIONING ──────────────────────────
   Hard overrides. These rules must win over everything.
   Position:fixed is broken by: contain:layout, 
   content-visibility:auto, transform on any ancestor.
   All three removed above. These rules finish the job.    */

.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999 !important;
  background: rgba(2,11,24,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-overlay:not(.open) {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.3s ease;
}

/* Box animation: scale up on open, scale down on close */
.modal-box {
  position: relative !important;
  margin: auto !important;
  transform: scale(0.93) translateY(16px);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  /* No translateZ — would create new containing block */
}

.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0) !important;
}

/* Prevent any body transform from reaching modals */
body.modal-open { overflow: hidden !important; }


/* ─── MODAL WIDTHS (separate from positioning) ─────────────  */
.video-modal-box {
  width: min(920px, 94vw);
  max-height: none;
  overflow: visible;
}
.pricing-modal-box {
  width: min(560px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
}
.dash-modal-box {
  width: min(900px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  padding: 0;
}


/* ─── DARK / LIGHT THEME VARIABLES ──────────────────────── */
[data-theme="light"] {
  --bg-primary:    #f0f4f8;
  --bg-secondary:  #ffffff;
  --bg-card:       rgba(255,255,255,0.88);
  --bg-glass:      rgba(0,150,200,0.06);
  --text-primary:  #0d1f33;
  --text-secondary:#2a5070;
  --text-muted:    #6a8fa8;
  --border-glow:   rgba(0,140,200,0.25);
  --border-subtle: rgba(0,140,200,0.12);
}
[data-theme="light"] body { background: var(--bg-primary); color: var(--text-primary); }
[data-theme="light"] #neural-canvas { opacity: 0.15; }
[data-theme="light"] #navbar.scrolled {
  background: rgba(240,244,248,0.95);
  border-bottom-color: var(--border-glow);
}
[data-theme="light"] .mobile-nav    { background: rgba(240,244,248,0.98); }
[data-theme="light"] .modal-overlay { background: rgba(200,220,240,0.88); }
[data-theme="light"] .modal-box,
[data-theme="light"] .dash-modal-box { background: #ffffff; border-color: rgba(0,140,200,0.2); }
[data-theme="light"] .about-card,
[data-theme="light"] .team-card,
[data-theme="light"] .insights-panel,
[data-theme="light"] .contact-form-wrap { background: rgba(255,255,255,0.9); border-color: rgba(0,140,200,0.15); }
[data-theme="light"] .dash-metric,
[data-theme="light"] .dash-chart-card  { background: rgba(240,248,255,0.9); border-color: rgba(0,140,200,0.15); }

/* Light mode — contact form labels, captcha text, refresh icon stay white/light
   so they remain legible against the form's dark-ish input backgrounds          */
[data-theme="light"] .form-group label {
  color: #ffffff;
}
[data-theme="light"] .captcha-question {
  color: #ffffff;
  text-shadow: none;
}
[data-theme="light"] .captcha-eq {
  color: rgba(255,255,255,0.7);
}
[data-theme="light"] .captcha-refresh {
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
}
[data-theme="light"] .captcha-refresh:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255,255,255,0.15);
}
[data-theme="light"] .nav-dropdown     { background: rgba(255,255,255,0.98); border-color: rgba(0,140,200,0.2); }
[data-theme="light"] .nav-dd-item      { color: var(--text-secondary); }
[data-theme="light"] .nav-dd-item:hover { background: rgba(0,140,200,0.07); color: #0077bb; }


/* ─── THEME TOGGLE BUTTON ───────────────────────────────── */
.theme-toggle {
  /* Inline nav item — not fixed positioned */
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(0,212,255,0.08);
  border: 1.5px solid var(--border-glow);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  padding: 0;
  margin-left: 0.5rem;
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-cyan);
  pointer-events: none;
  flex-shrink: 0;
}
.theme-toggle:hover {
  transform: scale(1.12) rotate(15deg);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0,212,255,0.4);
  background: rgba(0,212,255,0.15);
}
[data-theme="light"] .theme-toggle { background: rgba(0,100,180,0.08); border-color: rgba(0,120,200,0.3); }
[data-theme="light"] .theme-toggle svg { stroke: #0077bb; }
[data-theme="light"] .theme-toggle:hover { background: rgba(0,100,180,0.15); }


/* ─── DESKTOP NAV DROPDOWN (removed — Products is now a plain nav link) ─── */


/* ─── MOBILE NAV DROPDOWN ───────────────────────────────── */
.mobile-dd-wrap { list-style: none; }
.mobile-dd-btn {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.3s ease;
}
.mobile-dd-btn:hover,
.mobile-dd-btn.active { color: var(--accent-cyan); }
.mobile-dd-btn span   { transition: transform 0.25s ease; font-size: 0.8em; }
.mobile-dd-btn.active span { transform: rotate(180deg); }
.mobile-dd-sub {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 1rem;
}
.mobile-dd-sub.open { max-height: 220px; }
.mobile-dd-sub li   { padding: 0.4rem 0; }
.mobile-dd-sub a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.mobile-dd-sub a:hover { color: var(--accent-cyan); }


/* ─── PRODUCT VIDEO ELEMENT ─────────────────────────────── */
/* ─── GIF / IMG element inside product wrap ─────────────── */
.product-img-wrap img.pv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  z-index: 0;
}

@media (max-width: 575px) {
  .product-img-wrap img.pv {object-fit: contain;}
}


/* ─── SECTION SPACING ───────────────────────────────────── */
.about-section,
.products-section,
.team-section,
.global-section,
.contact-section { padding: 5rem 2rem; }
.section-subtitle { margin-bottom: 3rem; }

@media (max-width: 768px) {
  .about-section,
  .products-section,
  .team-section,
  .global-section,
  .contact-section { padding: 3.5rem 1rem; }
  .hero-section     { padding: calc(var(--nav-height) + 1.5rem) 1rem 3rem; }
  /* theme-toggle responsive — now inline nav, no position override needed */
}

@media (max-width: 480px) {
  .hero-title   { font-size: clamp(2.2rem, 8vw, 3rem); }
  .section-title{ font-size: clamp(1.6rem, 5vw, 2.5rem); }
  .product-actions { flex-wrap: wrap; }
  .btn-primary, .btn-ghost, .btn-secondary { width: 100%; justify-content: center; }
  .modal-overlay { padding: 0.5rem; }
}

@media (max-width: 740px) {
  .insights-panel{
    padding: 1.5rem 1rem;
  }
  .insights-pill{
    font-size: 0.525rem;
  }
  .contact-section{padding: 3.5rem 0;}
  .contact-section .section-inner{
    padding: 0;
  }
  .contact-grid{
    display: block;
  }
  .contact-info{
    margin-bottom: 2rem;
  }
  .contact-form-wrap{
    padding: 1.5rem;
  }
  .product-img-wrap{
    height: auto;
    padding-top: 70%;
  }
}

@media (max-width: 991px) {
  .nav-inner{justify-content: flex-start;gap: 15px;}
  .nav-logo{margin-right: auto;}
  .section-inner{
    padding: 0 1rem;
  }
}


/* ─── NO HORIZONTAL OVERFLOW ────────────────────────────── */
html, body { max-width: 100%; overflow-x: hidden; }


/* ─── Z-INDEX HIERARCHY ─────────────────────────────────── */
#navbar      { z-index: 1000; }
.mobile-nav  { z-index: 1050; }
/* theme-toggle z-index removed — now inline nav item */
/* .modal-overlay z-index:9999 set above */
