/* ===================================================
   NSVAIRX — Global Design System
   =================================================== */

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

/* ─── CSS Custom Properties ─── */
:root {
  /* Brand Colors */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;

  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;

  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;

  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;

  /* Dark Theme */
  --bg-0:   #020408;
  --bg-1:   #060d14;
  --bg-2:   #0a1628;
  --bg-3:   #0f1f36;
  --bg-4:   #152844;
  --bg-card: rgba(10, 22, 40, 0.85);
  --bg-glass: rgba(15, 31, 54, 0.6);

  --text-primary:   #f0f6ff;
  --text-secondary: #94a3b8;
  --text-muted:     #4e6a8b;
  --text-accent:    var(--teal-400);

  --border-subtle: rgba(59, 130, 246, 0.12);
  --border-glow:   rgba(59, 130, 246, 0.35);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--blue-600), var(--purple-600));
  --grad-teal:    linear-gradient(135deg, var(--teal-500), var(--blue-600));
  --grad-hero:    linear-gradient(135deg, #020408 0%, #0a1628 50%, #091324 100%);
  --grad-card:    linear-gradient(145deg, rgba(15,31,54,0.9), rgba(6,13,20,0.95));
  --grad-text:    linear-gradient(90deg, var(--teal-400), var(--blue-400), var(--purple-400));

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  /* Effects */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.6);
  --shadow-glow: 0 0 40px rgba(59,130,246,.2);
  --shadow-teal:  0 0 40px rgba(20,184,166,.2);

  --radius-sm:  0.375rem;
  --radius-md:  0.625rem;
  --radius-lg:  1rem;
  --radius-xl:  1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-0);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: var(--text-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(90deg, var(--blue-400), var(--cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.display-1 { font-size: clamp(2.5rem, 7vw, var(--text-7xl)); font-weight: 900; }
.display-2 { font-size: clamp(2rem, 5vw, var(--text-6xl)); font-weight: 800; }
.display-3 { font-size: clamp(1.75rem, 4vw, var(--text-5xl)); font-weight: 700; }

/* ─── Layout Utilities ─── */
.container {
  max-width: 1280px;
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container-lg  { max-width: 1440px; }
.container-sm  { max-width: 960px; }

.section { padding-block: var(--space-24); }
.section-sm { padding-block: var(--space-16); }
.section-lg { padding-block: var(--space-32); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }

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

.text-center  { text-align: center; }
.text-left    { text-align: left; }

.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ─── Ambient Background ─── */
.bg-ambient {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
  background: var(--bg-0);
  overflow: hidden;
}

.bg-ambient::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 160%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(37,99,235,.08) 0%, transparent 65%);
}

.bg-ambient::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 70%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(168,85,247,.05) 0%, transparent 65%);
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(2,4,8,.82);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.nav.scrolled {
  background: rgba(2,4,8,.96);
  border-color: var(--border-glow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav-logo .logo-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-lg);
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 20px rgba(59,130,246,.4);
  flex-shrink: 0;
}

.nav-logo .logo-text { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  position: relative;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(59,130,246,.1);
}

.nav-link.has-dropdown { padding-right: var(--space-5); }
.nav-link.has-dropdown::after {
  content: '▾';
  position: absolute;
  right: var(--space-2);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  opacity: .7;
  transition: transform var(--transition-fast);
}
.nav-link.has-dropdown:hover::after { transform: translateY(-50%) rotate(180deg); }

/* Mega Dropdown */
.nav-item { position: relative; }

.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  background: rgba(6,13,20,.97);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  box-shadow: 0 24px 60px rgba(0,0,0,.8), 0 0 60px rgba(37,99,235,.08);
  backdrop-filter: blur(24px);
  z-index: 100;
}

.nav-item:hover .mega-menu,
.mega-menu:hover { display: grid; }

.mega-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.mega-item:hover { background: rgba(59,130,246,.07); }

.mega-item .mega-icon {
  font-size: 1.4rem;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: rgba(59,130,246,.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-1);
}

.mega-item .mega-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.mega-item .mega-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.btn-nav-ghost {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.btn-nav-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,.06); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.nav-hamburger:hover { background: rgba(255,255,255,.07); }
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(2,4,8,.98);
  border-bottom: 1px solid var(--border-glow);
  padding: var(--space-6);
  z-index: 999;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  animation: slideDown var(--transition-base) ease;
}

.mobile-menu.open { display: block; }

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

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  border-bottom: 1px solid var(--border-subtle);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.mobile-nav-link:hover { color: var(--text-primary); background: rgba(59,130,246,.08); }
.mobile-nav-link:last-child { border-bottom: none; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.06);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,99,235,.35);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(37,99,235,.55);
  transform: translateY(-1px);
}

.btn-teal {
  background: var(--grad-teal);
  color: #fff;
  box-shadow: 0 4px 20px rgba(20,184,166,.3);
}
.btn-teal:hover {
  box-shadow: 0 6px 28px rgba(20,184,166,.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-glow);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--blue-400);
  background: rgba(59,130,246,.08);
}

.btn-outline-teal {
  background: transparent;
  color: var(--teal-400);
  border: 1px solid rgba(45,212,191,.35);
}
.btn-outline-teal:hover {
  background: rgba(20,184,166,.1);
  border-color: var(--teal-400);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* ─── Cards ─── */
.card {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,.3), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  transform: translateY(-3px);
}

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

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Product Cards */
.product-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.product-card .product-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  position: relative;
}

.product-card .product-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.product-card .product-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.product-card .product-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teal-400);
  transition: gap var(--transition-fast), color var(--transition-fast);
}
.product-card .product-link:hover { gap: var(--space-3); color: var(--cyan-400); }
.product-card .product-link::after { content: '→'; }

/* Feature Cards */
.feature-card {
  padding: var(--space-8);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.feature-icon {
  width: 70px; height: 70px;
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin-inline: auto;
}

.icon-blue   { background: linear-gradient(135deg, rgba(37,99,235,.2), rgba(59,130,246,.1)); box-shadow: 0 0 30px rgba(37,99,235,.15); }
.icon-teal   { background: linear-gradient(135deg, rgba(13,148,136,.2), rgba(20,184,166,.1)); box-shadow: 0 0 30px rgba(20,184,166,.15); }
.icon-purple { background: linear-gradient(135deg, rgba(147,51,234,.2), rgba(168,85,247,.1)); box-shadow: 0 0 30px rgba(168,85,247,.15); }
.icon-cyan   { background: linear-gradient(135deg, rgba(6,182,212,.2), rgba(34,211,238,.1)); box-shadow: 0 0 30px rgba(6,182,212,.15); }
.icon-pink   { background: linear-gradient(135deg, rgba(219,39,119,.2), rgba(244,114,182,.1)); box-shadow: 0 0 30px rgba(219,39,119,.15); }
.icon-green  { background: linear-gradient(135deg, rgba(22,163,74,.2), rgba(74,222,128,.1)); box-shadow: 0 0 30px rgba(22,163,74,.15); }

/* ─── Badges ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-blue   { background: rgba(59,130,246,.15); color: var(--blue-400); border: 1px solid rgba(59,130,246,.25); }
.badge-teal   { background: rgba(20,184,166,.15); color: var(--teal-400); border: 1px solid rgba(20,184,166,.25); }
.badge-purple { background: rgba(168,85,247,.15); color: var(--purple-400); border: 1px solid rgba(168,85,247,.25); }
.badge-new    { background: rgba(22,163,74,.15); color: #4ade80; border: 1px solid rgba(22,163,74,.25); }

/* ─── Section Headers ─── */
.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal-400);
  background: rgba(20,184,166,.1);
  border: 1px solid rgba(20,184,166,.2);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  margin-bottom: var(--space-5);
  line-height: 1.15;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin-inline: auto;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg canvas,
.hero-particles {
  position: absolute;
  inset: 0;
}

.hero-glow-1 {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(37,99,235,.18) 0%, transparent 70%);
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

.hero-glow-2 {
  position: absolute;
  bottom: 20%;
  left: 10%;
  width: 400px; height: 300px;
  background: radial-gradient(ellipse, rgba(168,85,247,.12) 0%, transparent 70%);
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite alternate-reverse;
}

.hero-glow-3 {
  position: absolute;
  top: 30%;
  right: 10%;
  width: 350px; height: 250px;
  background: radial-gradient(ellipse, rgba(20,184,166,.1) 0%, transparent 70%);
  pointer-events: none;
  animation: pulseGlow 7s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  from { opacity: 0.6; transform: scale(0.95) translateX(0); }
  to   { opacity: 1; transform: scale(1.05) translateX(0); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.6) 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.6) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding-inline: var(--space-6);
}

/* ─── Stats ─── */
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-2);
  font-weight: 500;
}

/* ─── Category Filters ─── */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-12);
}

.filter-tab {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.filter-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-glow);
  background: rgba(59,130,246,.08);
}

.filter-tab.active {
  color: var(--text-primary);
  background: var(--grad-primary);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(37,99,235,.4);
}

/* ─── Forms ─── */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(15,31,54,.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

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

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

.form-select { cursor: pointer; }
.form-select option { background: var(--bg-2); }

/* ─── Accordion / FAQ ─── */
.accordion-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-3);
  transition: border-color var(--transition-fast);
}

.accordion-item:hover { border-color: var(--border-glow); }

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-glass);
  user-select: none;
}

.accordion-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: var(--radius-full);
  background: rgba(59,130,246,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm);
  transition: transform var(--transition-base), background var(--transition-fast);
}

.accordion-body {
  display: none;
  padding: 0 var(--space-6) var(--space-5);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
  background: var(--bg-glass);
}

.accordion-item.open .accordion-body { display: block; }
.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  background: rgba(59,130,246,.25);
}

/* ─── Timeline ─── */
.timeline { position: relative; padding-left: var(--space-8); }

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-600), var(--purple-600), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-10);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-2rem - 5px);
  top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 12px rgba(59,130,246,.6);
}

.timeline-year {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--teal-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-2);
}

.timeline-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.timeline-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Testimonials ─── */
.testimonial-card {
  position: relative;
}

.quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--blue-600);
  opacity: .5;
  font-family: Georgia, serif;
  margin-bottom: var(--space-3);
}

.quote-text {
  font-size: var(--text-base);
  color: var(--text-primary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: var(--space-5);
}

.quote-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.quote-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-glow);
  overflow: hidden;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-lg);
}

.quote-name { font-weight: 700; font-size: var(--text-sm); }
.quote-company { font-size: var(--text-xs); color: var(--text-secondary); }

/* ─── Team Cards ─── */
.team-card {
  text-align: center;
}

.team-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  margin: 0 auto var(--space-4);
  border: 3px solid var(--border-glow);
  overflow: hidden;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 0 20px rgba(37,99,235,.2);
}

.team-name { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-1); }
.team-title { font-size: var(--text-sm); color: var(--teal-400); font-weight: 500; margin-bottom: var(--space-4); }
.team-bio { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }

/* ─── Job Listings ─── */
.job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.job-title { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-2); }
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.job-meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

/* ─── Breadcrumbs ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-secondary); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--teal-400); }
.breadcrumb .sep { opacity: .4; }
.breadcrumb .current { color: var(--text-primary); }

/* ─── Page Hero (sub-pages) ─── */
.page-hero {
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-16);
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(37,99,235,.1) 0%, transparent 60%);
}

.page-hero .hero-grid {
  position: absolute;
  inset: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

/* ─── Code Blocks ─── */
.code-block {
  background: rgba(0,0,0,.5);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  font-family: 'Courier New', Courier, monospace;
  font-size: var(--text-sm);
  color: var(--teal-400);
  overflow-x: auto;
  line-height: 1.6;
}

.code-block .comment { color: var(--text-muted); }
.code-block .keyword { color: var(--purple-400); }
.code-block .string  { color: #fbbf24; }
.code-block .number  { color: var(--cyan-400); }

/* ─── Divider ─── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  margin-block: var(--space-12);
}

/* ─── Cookie Consent ─── */
.cookie-banner {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  max-width: 700px;
  width: calc(100% - 2rem);
  background: rgba(6,13,20,.97);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  z-index: 9999;
  box-shadow: 0 8px 40px rgba(0,0,0,.8);
  backdrop-filter: blur(24px);
  animation: slideUp .4s ease;
  flex-wrap: wrap;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-banner.hidden { display: none; }

.cookie-text { font-size: var(--text-sm); color: var(--text-secondary); flex: 1; }
.cookie-text a { color: var(--teal-400); text-decoration: underline; }
.cookie-actions { display: flex; gap: var(--space-3); flex-shrink: 0; }

/* ─── Footer ─── */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-20);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-16);
}

.footer-brand-col .footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.footer-brand-col .footer-logo .logo-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  color: #fff;
  font-size: var(--text-base);
}

.footer-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-base);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: rgba(59,130,246,.15);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover { color: var(--teal-400); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-5);
}

.footer-legal-links a {
  font-size: var(--text-xs);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.footer-legal-links a:hover { color: var(--text-secondary); }

/* ─── Animations ─── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade-in.visible { opacity: 1; }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.float { animation: float 6s ease-in-out infinite; }

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

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer {
  background: linear-gradient(90deg, var(--bg-3) 25%, var(--bg-4) 50%, var(--bg-3) 75%);
  background-size: 200% auto;
  animation: shimmer 1.5s linear infinite;
}

/* ─── Responsive ─── */
@media (max-width: 1200px) {
  .footer-main { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .mega-menu { width: 600px; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .nav-links, .nav-actions .btn-nav-ghost { display: none; }
  .nav-hamburger { display: flex; }
  .footer-main { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .container { padding-inline: var(--space-4); }
  .section { padding-block: var(--space-16); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-header { margin-bottom: var(--space-10); }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .nav-inner { padding-inline: var(--space-4); }
  .btn-lg { padding: var(--space-3) var(--space-6); }
  .cookie-banner { flex-direction: column; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

/* ─── Utility ─── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb {
  background: rgba(59,130,246,.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(59,130,246,.45); }

/* ─── Selection ─── */
::selection {
  background: rgba(59,130,246,.3);
  color: #fff;
}

/* ─── Light Theme Overrides ─── */
html[data-theme="light"] {
  --bg-0:   #ffffff;
  --bg-1:   #f8fafc;
  --bg-2:   #f1f5f9;
  --bg-3:   #e2e8f0;
  --bg-4:   #cbd5e1;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.7);

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #64748b;

  --border-subtle: rgba(59, 130, 246, 0.15);
  --border-glow:   rgba(59, 130, 246, 0.25);

  --grad-hero:    linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  --grad-card:    linear-gradient(145deg, rgba(255,255,255,0.95), rgba(248,250,252,0.95));

  --shadow-sm:  0 1px 3px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.1);
  --shadow-glow: 0 0 40px rgba(59,130,246,.15);
  --shadow-teal:  0 0 40px rgba(20,184,166,.15);
}

html[data-theme="light"] body { -webkit-font-smoothing: auto; }
html[data-theme="light"] .nav { background: rgba(255, 255, 255, 0.85); border-bottom-color: var(--border-subtle); }
html[data-theme="light"] .nav.scrolled { background: rgba(255, 255, 255, 0.98); }
html[data-theme="light"] .mega-menu { background: rgba(255, 255, 255, 0.98); }
html[data-theme="light"] .mobile-menu { background: rgba(255, 255, 255, 0.98); }
html[data-theme="light"] .footer { background: var(--bg-1); border-top: 1px solid var(--border-subtle); }
html[data-theme="light"] .btn-primary, html[data-theme="light"] .btn-teal { color: #fff; }
html[data-theme="light"] .logo-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
html[data-theme="light"] .cookie-banner { background: var(--bg-card); }
html[data-theme="light"] .logo-icon { color: #fff; }

/* ─── WhatsApp Float ─── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  z-index: 999;
  transition: all var(--transition-base);
  animation: float 4s ease-in-out infinite;
}

.whatsapp-float:hover {
  background-color: #1ebc5a;
  color: #fff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }
}

