/* ============================================================
   AJENTICA.AI — Redesign 2025
   Design tokens: dark #05070a bg, #7dd3fc accent
   ============================================================ */

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

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  --accent:          #7dd3fc;
  --accent-dark:     #0369a1;
  --accent-dim:      rgba(125, 211, 252, 0.15);
  --accent-gradient: linear-gradient(135deg, #7dd3fc 0%, #0369a1 100%);

  --bg-primary:      #05070a;
  --bg-secondary:    #111317;
  --bg-card:         rgba(12, 14, 18, 0.45);

  --text-primary:    #ffffff;
  --text-secondary:  #c1c9cf;
  --text-muted:      #4b5563;

  --border:          rgba(255, 255, 255, 0.06);
  --border-accent:   rgba(125, 211, 252, 0.25);

  --font-heading: "Inter", -apple-system, sans-serif;
  --font-body:    "Inter", -apple-system, sans-serif;
  --font-label:   "Space Grotesk", -apple-system, sans-serif;

  --section-padding: 120px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  /* legacy compat */
  --accent-cyan:     #7dd3fc;
  --electric-blue:   #0369a1;
  --grey-medium:     #8b8ba0;
  --border-color:    rgba(255, 255, 255, 0.06);
  --accent-gradient-compat: var(--accent-gradient);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #1e2024; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
* { scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg-primary); }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── Decomposition particle background ───────────────────────── */
#stars-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 11;
}

#decomposition-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 13;
  overflow: hidden;
  perspective: 1200px;
  background: transparent;
}

.particle-system {
  position: absolute;
  top: 80%; left: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(125, 211, 252, 0.6);
  will-change: transform, opacity;
}

.core-sphere {
  position: absolute;
  top: 80%; left: 50%;
  transform: translate(-50%, -50%);
  width: 124px; height: 124px;
  background: radial-gradient(circle at 30% 30%, #7dd3fc 0%, #0369a1 60%, #082f49 100%);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(125, 211, 252, 0.2), inset -10px -10px 40px rgba(0,0,0,0.8);
  z-index: 5;
  will-change: transform, opacity;
}

.core-glow {
  position: absolute;
  top: 80%; left: 50%;
  transform: translate(-50%, -50%);
  width: 275px; height: 275px;
  background: radial-gradient(circle, 
    rgba(125, 211, 252, 0.25) 0%, 
    rgba(125, 211, 252, 0.12) 30%,
    rgba(125, 211, 252, 0.05) 50%,
    transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(20px);
}

/* Hide legacy orbital-background — canvas takes over */
.orbital-background,
.orbital-hero {
  display: none !important;
}

/* ── Glass card utility ─────────────────────────────────────── */
.glass {
  background: #0c0e12;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

/* ── Navbar ──────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 7, 10, 0.2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70px;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.nav-left,
.nav-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-left {
  justify-content: flex-start;
}

.nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-right {
  justify-content: flex-end;
  gap: 1rem;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 8px;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-heading);
}

.logo-mark {
  width: 32px;
  height: 32px;
}

.logo-night { display: block; }
.logo-day   { display: none; }

/* Mobile Nav Overlay - hidden by default */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: rgba(5, 7, 10, 0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 60px 24px;
  height: 100%;
}

.mobile-nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.25rem;
  font-family: var(--font-label);
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: var(--transition-fast);
}

.mobile-nav-menu a:hover { color: var(--text-primary); }

body.day-mode .mobile-nav-overlay {
  background: rgba(250, 252, 250, 0.97);
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-family: var(--font-label);
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: var(--transition-fast);
}

.nav-menu a:hover { color: var(--text-primary); }

.btn-primary-small {
  background: var(--accent-gradient) !important;
  color: #0a1929 !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-primary-small:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(125, 211, 252, 0.3);
}

/* Theme toggle */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

.sun-icon { display: none; }
.moon-icon { display: block; }
body.day-mode .sun-icon { display: block; }
body.day-mode .moon-icon { display: none; }

/* Mobile menu */
.mobile-controls { display: flex; align-items: center; gap: 0.75rem; }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
}

/* Floating Rocket in Hero */
.hero-rocket {
  width: 136px;
  height: 136px;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 20;
  animation: rocket-orbit 45s ease-in-out infinite;
  pointer-events: none;
  overflow: visible;
  background: transparent;
}

.hero-rocket svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 30px rgba(52, 211, 153, 0.4));
  display: block;
  transform: rotate(180deg); /* Point nose in direction of travel */
  overflow: visible;
  background: transparent;
}

@keyframes rocket-orbit {
  /* Start at top (270deg = top of circle) */
  0% {
    transform: translate(-50%, -50%) rotate(270deg) translateX(550px);
  }
  /* Orbit clockwise - right side */
  12% {
    transform: translate(-50%, -50%) rotate(360deg) translateX(550px);
  }
  /* Bottom */
  24% {
    transform: translate(-50%, -50%) rotate(450deg) translateX(550px);
  }
  /* Left side */
  36% {
    transform: translate(-50%, -50%) rotate(540deg) translateX(550px);
  }
  /* Spiral inward while continuing rotation */
  44% {
    transform: translate(-50%, -50%) rotate(610deg) translateX(320px);
  }
  50% {
    transform: translate(-50%, -50%) rotate(680deg) translateX(150px);
  }
  /* Spiral outward */
  56% {
    transform: translate(-50%, -50%) rotate(750deg) translateX(150px);
  }
  64% {
    transform: translate(-50%, -50%) rotate(820deg) translateX(320px);
  }
  /* Back to full orbit */
  72% {
    transform: translate(-50%, -50%) rotate(880deg) translateX(550px);
  }
  84% {
    transform: translate(-50%, -50%) rotate(940deg) translateX(550px);
  }
  /* Return to top (270 + 720 = 990deg, 2 full orbits) */
  100% {
    transform: translate(-50%, -50%) rotate(990deg) translateX(550px);
  }
}

.hero-rocket .exhaust-glow {
  animation: engine-pulse 1.5s ease-in-out infinite;
}

.hero-rocket .exhaust-core {
  animation: exhaust-core 0.4s ease-in-out infinite;
}

@keyframes engine-pulse {
  0%, 100% { filter: blur(4px) brightness(1);   transform: scaleY(1);   opacity: 0.7; }
  50%      { filter: blur(8px) brightness(1.5); transform: scaleY(1.4); opacity: 1;   }
}

@keyframes exhaust-core {
  0%, 100% { transform: scaleY(1);   opacity: 0.8; }
  50%      { transform: scaleY(1.2); opacity: 1;   }
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.hero-subtitle {
  max-width: 600px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Scroll hint (replaces scroll-to-explore) ─────────────── */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  z-index: 15;
}

.scroll-hint-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.scroll-hint-link:hover { opacity: 0.75; }

.scroll-chevron {
  width: 14px;
  height: 14px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  animation: chevronDrop 1.6s ease-in-out infinite;
}

.scroll-chevron:nth-child(2) {
  animation-delay: 0.25s;
  margin-top: -6px;
}

@keyframes chevronDrop {
  0%   { opacity: 0;   transform: rotate(45deg) translate(-4px, -4px); }
  40%  { opacity: 1; }
  80%  { opacity: 0;   transform: rotate(45deg) translate(4px, 4px); }
  100% { opacity: 0;   transform: rotate(45deg) translate(4px, 4px); }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--accent-gradient);
  color: #0a1929;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-label);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(125, 211, 252, 0.3);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  padding: 14px 32px;
  border-radius: 100px;
  border: 1px solid var(--accent);
  font-family: var(--font-label);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(125, 211, 252, 0.2);
}

/* ── Section shared ──────────────────────────────────────────── */
section {
  position: relative;
  z-index: 10;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.8;
}

/* ── Value Proposition ───────────────────────────────────────── */
.value-proposition {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

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

.feature-card {
  background: #0c0e12;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.feature-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
  transition: var(--transition-fast);
}

.feature-card:hover .feature-icon-circle {
  background: rgba(125, 211, 252, 0.25);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
  font-weight: 300;
}

/* ── Approach / Why Us ───────────────────────────────────────── */
.approach {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 80px;
}

.approach-step {
  padding: 2.5rem 2rem;
  border-bottom: 1px solid var(--border);
  transition: var(--transition-fast);
}

.approach-step:hover {
  border-bottom-color: var(--accent);
}

.step-number {
  font-family: var(--font-label);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 1rem;
  letter-spacing: -0.05em;
}

.approach-step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.approach-step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
  font-weight: 300;
}

.work-principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.principle {
  background: #0c0e12;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: var(--transition);
}

.principle:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
}

.principle-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.principle h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.principle p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.75;
  font-weight: 300;
}

/* ── Case Studies ────────────────────────────────────────────── */
.results {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.case-studies {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.case-study:nth-child(even) { direction: rtl; }
.case-study:nth-child(even) > * { direction: ltr; }

.case-study-image {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #0c0e12;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-study-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.case-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 4px 12px;
  border-radius: 100px;
}

.case-study-content h3 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.case-study-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.case-link:hover { color: var(--accent); gap: 0.75rem; }

/* ── Healthcare Animation ─────────────────────────────────────── */
.healthcare-animation {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(125, 211, 252, 0.03), transparent 70%);
}

.medical-cross {
  position: relative;
  width: 90px;
  height: 90px;
  z-index: 3;
}

.cross-vertical, .cross-horizontal {
  position: absolute;
  background: var(--accent-gradient);
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(125, 211, 252, 0.4);
}

.cross-vertical {
  width: 16px;
  height: 90px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  animation: pulse-glow 2s ease-in-out infinite;
}

.cross-horizontal {
  width: 90px;
  height: 16px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  animation: pulse-glow 2s ease-in-out infinite 0.5s;
}

.data-flow {
  position: absolute;
  width: 3px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--accent), #0369a1, transparent);
  border-radius: 2px;
  filter: blur(1px);
}

.data-flow-1 { top: 15%; left: 25%; animation: data-stream 2.5s ease-in-out infinite; }
.data-flow-2 { top: 55%; right: 20%; animation: data-stream 2.5s ease-in-out infinite 0.8s; height: 60px; }
.data-flow-3 { top: 35%; left: 65%; animation: data-stream 2.5s ease-in-out infinite 1.6s; height: 45px; }

.pulse-ring {
  position: absolute;
  border: 3px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: pulse-ring 3s ease-out infinite;
  box-shadow: 0 0 15px rgba(125, 211, 252, 0.3);
}

.pulse-ring-1 {
  width: 140px; height: 140px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.pulse-ring-2 {
  width: 200px; height: 200px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 1.5s;
  border-width: 2px;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(125, 211, 252, 0.4); }
  50%       { box-shadow: 0 0 40px rgba(125, 211, 252, 0.7); }
}

@keyframes data-stream {
  0%   { opacity: 0; transform: translateY(-20px); }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(20px); }
}

@keyframes pulse-ring {
  0%   { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* ── Education Animation ──────────────────────────────────────── */
.education-animation {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brain-network {
  position: relative;
  width: 160px;
  height: 160px;
  z-index: 3;
}

.brain-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(125, 211, 252, 0.6);
  animation: pulse-glow 2s ease-in-out infinite;
}

.neural-node {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.5);
  animation: nodeFloat 3s ease-in-out infinite;
}

.node-1 { top: 10%; left: 45%; animation-delay: 0s; }
.node-2 { top: 40%; left: 85%; animation-delay: 0.4s; }
.node-3 { top: 80%; left: 65%; animation-delay: 0.8s; }
.node-4 { top: 75%; left: 15%; animation-delay: 1.2s; }
.node-5 { top: 30%; left: 5%;  animation-delay: 1.6s; }

.neural-connection {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  height: 1px;
  opacity: 0.4;
  animation: connectionPulse 2.5s ease-in-out infinite;
}

.conn-1 { width: 60px; top: 18%; left: 47%; transform: rotate(25deg); }
.conn-2 { width: 55px; top: 45%; left: 60%; animation-delay: 0.5s; }
.conn-3 { width: 65px; top: 70%; left: 30%; transform: rotate(-20deg); animation-delay: 1s; }
.conn-4 { width: 50px; top: 40%; left: 25%; transform: rotate(-45deg); animation-delay: 1.5s; }

.search-algorithm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vector-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.3), transparent);
  animation: vectorScan 3s ease-in-out infinite;
}

.v-line-1 { width: 80%; top: 30%; animation-delay: 0s; }
.v-line-2 { width: 60%; top: 50%; animation-delay: 0.8s; }
.v-line-3 { width: 70%; top: 70%; animation-delay: 1.6s; }

.bm25-indicator {
  position: absolute;
  bottom: 20%;
  right: 15%;
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0.6;
  animation: rotate-slow 8s linear infinite;
}

.knowledge-particles {
  position: absolute;
  inset: 0;
}

.knowledge-particles .particle {
  position: absolute;
  background: var(--accent);
  border-radius: 50%;
  animation: floatParticle 4s ease-in-out infinite;
}

.p-1 { width: 5px; height: 5px; top: 20%; left: 30%; animation-delay: 0s; }
.p-2 { width: 4px; height: 4px; top: 60%; left: 70%; animation-delay: 0.6s; }
.p-3 { width: 6px; height: 6px; top: 80%; left: 25%; animation-delay: 1.2s; }
.p-4 { width: 3px; height: 3px; top: 35%; left: 80%; animation-delay: 1.8s; }
.p-5 { width: 5px; height: 5px; top: 55%; left: 10%; animation-delay: 2.4s; }

.learning-orbit {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(125, 211, 252, 0.15);
  border-radius: 50%;
  animation: rotateOrbit 15s linear infinite;
}

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

@keyframes connectionPulse {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 0.7; }
}

@keyframes vectorScan {
  0%, 100% { opacity: 0.1; transform: scaleX(0.8); }
  50%       { opacity: 0.5; transform: scaleX(1); }
}

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

@keyframes floatParticle {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50%       { transform: translate(5px, -8px) scale(1.2); opacity: 1; }
}

/* ── Accessibility Animation ──────────────────────────────────── */
.accessibility-animation {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hand-gesture {
  position: relative;
  width: 80px;
  height: 100px;
  z-index: 3;
}

.hand-outline {
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: 12px 12px 8px 8px;
  opacity: 0.7;
  box-shadow: 0 0 20px rgba(125, 211, 252, 0.3);
  animation: hand-pulse 2s ease-in-out infinite;
}

.finger {
  position: absolute;
  top: -16px;
  width: 14px;
  height: 28px;
  background: var(--accent-gradient);
  border-radius: 7px 7px 0 0;
  box-shadow: 0 0 10px rgba(125, 211, 252, 0.4);
}

.finger-1 { left: 10%; animation: finger-move 2s ease-in-out infinite; }
.finger-2 { left: 38%; animation: finger-move 2s ease-in-out infinite 0.3s; }
.finger-3 { left: 65%; animation: finger-move 2s ease-in-out infinite 0.6s; }

.recognition-waves {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wave {
  position: absolute;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: wave-expand 2.5s ease-out infinite;
}

.wave-1 { width: 80px;  height: 80px;  animation-delay: 0s; }
.wave-2 { width: 130px; height: 130px; animation-delay: 0.7s; }
.wave-3 { width: 180px; height: 180px; animation-delay: 1.4s; }

.ai-nodes {
  position: absolute;
  inset: 0;
}

.ai-nodes .node {
  position: absolute;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(125, 211, 252, 0.5);
}

.ai-nodes .node-1 { width: 10px; height: 10px; top: 20%; right: 20%; animation: nodeFloat 3s ease-in-out infinite; }
.ai-nodes .node-2 { width: 8px;  height: 8px;  bottom: 25%; left: 18%; animation: nodeFloat 3s ease-in-out infinite 1s; }
.ai-nodes .node-3 { width: 6px;  height: 6px;  top: 60%; right: 30%; animation: nodeFloat 3s ease-in-out infinite 2s; }

@keyframes hand-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(125, 211, 252, 0.3); }
  50%       { box-shadow: 0 0 40px rgba(125, 211, 252, 0.6); }
}

@keyframes finger-move {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

@keyframes wave-expand {
  0%   { transform: scale(0.5); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ── Engagement Model ─────────────────────────────────────────── */
.engagement-model {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.engagement-models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.model-card {
  background: #0c0e12;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: var(--transition);
}

.model-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.model-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.model-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.model-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.model-features { display: flex; flex-wrap: wrap; gap: 8px; }

.feature-badge {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  padding: 4px 10px;
  border-radius: 100px;
}

/* Process section */
.process-section { margin-top: 80px; }

.process-header {
  text-align: center;
  margin-bottom: 48px;
}

.process-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process-header p { color: var(--text-secondary); font-weight: 300; }

.process-flow {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
}

.process-step {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 1.5rem 1rem;
  background: #0c0e12;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: var(--transition-fast);
}

.process-step:hover { border-color: var(--border-accent); }

.process-step .step-number {
  font-size: 1.5rem;
  opacity: 0.4;
  margin-bottom: 0.5rem;
}

.step-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.6;
  font-weight: 300;
}

.process-arrow {
  flex-shrink: 0;
  padding: 0 8px;
  color: var(--accent);
  opacity: 0.5;
}

/* ── About ────────────────────────────────────────────────────── */
.about-us {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.vision-story-section { margin-bottom: 80px; }

.vision-story-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

.vision-card, .story-card {
  background: #0c0e12;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: var(--transition);
}

.vision-card:hover, .story-card:hover { border-color: var(--border-accent); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.vision-card h3, .story-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.vision-card p, .story-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  font-weight: 300;
}

/* Leadership */
.leadership-section { margin-bottom: 80px; }

.section-subheader { margin-bottom: 40px; }

.section-subheader h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subheader p { color: var(--text-secondary); font-weight: 300; }

.leadership-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.leader-card {
  background: #0c0e12;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: var(--transition);
}

.leader-card:hover { border-color: var(--border-accent); }

.leader-avatar { flex-shrink: 0; }

.avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a1929;
  font-weight: 800;
  font-size: 0.9rem;
  font-family: var(--font-label);
}

.leader-info { margin-bottom: 0.75rem; }

.leader-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.leader-role {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.leader-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  font-weight: 300;
}

/* Values & Culture */
.values-culture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.values-list, .culture-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.value-item, .culture-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: #0c0e12;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: var(--transition-fast);
}

.value-item:hover, .culture-item:hover { border-color: var(--border-accent); }

.value-icon, .culture-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.value-content h4, .culture-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.value-content p, .culture-content p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
  font-weight: 300;
}

/* ── CTA ─────────────────────────────────────────────────────── */
.cta {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.cta-content {
  background: #0c0e12;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 3rem;
  padding: 80px 60px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.cta-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

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

/* CTA Glowing Sphere */
.cta-sphere-container {
  position: relative;
  width: 100%;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: -30px;
  pointer-events: none;
  z-index: 0;
}

.cta-sphere {
  position: relative;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 35% 35%,
    #bae6fd 0%,
    #7dd3fc 30%,
    #38bdf8 50%,
    #0369a1 70%,
    #082f49 100%);
  border-radius: 50%;
  box-shadow: 
    0 0 20px rgba(125, 211, 252, 0.7),
    0 0 40px rgba(125, 211, 252, 0.5),
    0 0 60px rgba(125, 211, 252, 0.3),
    inset -8px -8px 15px rgba(0, 0, 0, 0.6),
    inset 3px 3px 10px rgba(125, 211, 252, 0.3);
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-sphere.visible {
  opacity: 1;
  transform: scale(1);
  animation: sphere-pulse 4s ease-in-out infinite 0.5s;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  background: radial-gradient(circle,
    rgba(125, 211, 252, 0.2) 0%,
    rgba(125, 211, 252, 0.1) 30%,
    rgba(125, 211, 252, 0.03) 60%,
    transparent 80%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.cta-sphere.visible + .cta-glow,
.cta-glow.visible {
  opacity: 1;
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes sphere-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 
      0 0 20px rgba(125, 211, 252, 0.7),
      0 0 40px rgba(125, 211, 252, 0.5),
      0 0 60px rgba(125, 211, 252, 0.3),
      inset -8px -8px 15px rgba(0, 0, 0, 0.6),
      inset 3px 3px 10px rgba(125, 211, 252, 0.3);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 
      0 0 30px rgba(125, 211, 252, 0.8),
      0 0 50px rgba(125, 211, 252, 0.6),
      0 0 80px rgba(125, 211, 252, 0.4),
      inset -8px -8px 15px rgba(0, 0, 0, 0.6),
      inset 3px 3px 10px rgba(125, 211, 252, 0.4);
  }
}

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

body.day-mode .cta-sphere {
  background: radial-gradient(circle at 35% 35%,
    #bae6fd 0%,
    #7dd3fc 30%,
    #38bdf8 50%,
    #0369a1 70%,
    #082f49 100%);
  box-shadow: 
    0 0 30px rgba(3, 105, 161, 0.5),
    0 0 60px rgba(3, 105, 161, 0.3),
    0 0 100px rgba(3, 105, 161, 0.15),
    inset -15px -15px 30px rgba(0, 0, 0, 0.3),
    inset 5px 5px 20px rgba(255, 255, 255, 0.2);
}

body.day-mode .cta-glow {
  background: radial-gradient(circle,
    rgba(3, 105, 161, 0.12) 0%,
    rgba(3, 105, 161, 0.06) 40%,
    transparent 70%);
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  position: relative;
  z-index: 20;
}

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

.footer-section h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-section p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.footer-section ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }

.footer-section ul a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.footer-section ul a:hover { color: var(--accent); }

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

.social-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.social-links a:hover { color: var(--accent); }

.footer-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 8px;
}

.logo-text-footer {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-heading);
}

.footer-row { display: flex; gap: 48px; }
.footer-company, .footer-get-in-touch { flex: 1; }

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

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-label);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

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

/* ── Floating Actions ─────────────────────────────────────────── */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  z-index: 200;
}

.back-to-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: #0a1929;
  box-shadow: 0 4px 20px rgba(125, 211, 252, 0.3);
  transition: var(--transition-fast);
}

.back-to-top.visible { display: flex; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(125, 211, 252, 0.5); }

/* ── Chat Widget ─────────────────────────────────────────────── */
.chat-widget { position: relative; }

.chat-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  padding: 10px 18px;
  cursor: pointer;
  color: var(--accent);
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: var(--transition-fast);
  box-shadow: 0 4px 20px rgba(125, 211, 252, 0.15);
}

.chat-toggle:hover {
  background: var(--accent-dim);
  box-shadow: 0 8px 30px rgba(125, 211, 252, 0.25);
}

.chat-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 340px;
  background: #0c0e12;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  display: none;
  flex-direction: column;
}

.chat-panel.open,
.chat-panel.active { display: flex; }

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(125, 211, 252, 0.03);
}

.chat-title h3 {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-family: var(--font-label);
}

.chat-controls { display: flex; gap: 0.5rem; }

.chat-control-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.chat-control-btn:hover { border-color: var(--accent); color: var(--accent); }

.chat-messages {
  height: 280px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-message {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  animation: messageSlideIn 0.3s ease-out;
}

.user-message { flex-direction: row-reverse; }

.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.assistant-message .message-avatar {
  background: var(--accent-gradient);
  color: #0a1929;
}

.user-message .message-avatar {
  background: #1e2024;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.message-content {
  max-width: 220px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.assistant-message .message-content {
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.15);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.user-message .message-content {
  background: var(--accent-gradient);
  color: #0a1929;
  border-bottom-right-radius: 4px;
}

.message-content p { margin: 0; }
.message-content p + p { margin-top: 6px; }

.chat-input-area {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(125, 211, 252, 0.02);
}

.chat-input-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

#chat-input {
  flex: 1;
  background: #0f1114;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition-fast);
  -webkit-appearance: none;
  -webkit-border-radius: 10px;
}

#chat-input:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.08);
}

#chat-input::placeholder { color: var(--text-muted); }

#send-message {
  background: var(--accent-gradient);
  border: none;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #0a1929;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

#send-message:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(125, 211, 252, 0.3);
}

#send-message:disabled { opacity: 0.4; cursor: not-allowed; }

.chat-status {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.chat-status:not(:empty) { opacity: 1; min-height: 14px; }

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 8px 12px;
  background: rgba(125, 211, 252, 0.05);
  border-radius: 12px;
  border: 1px solid var(--border);
  animation: typingSlideIn 0.3s ease-out;
}

.typing-text { font-weight: 600; color: var(--accent); }

.typing-dots { display: flex; gap: 3px; }

.typing-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: typingPulse 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

.typewriter-cursor {
  display: inline-block;
  background: var(--accent);
  width: 2px;
  height: 1em;
  margin-left: 2px;
  animation: typewriterBlink 1s infinite;
  vertical-align: text-top;
  border-radius: 1px;
}

@keyframes typingSlideIn {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes typingPulse {
  0%, 80%, 100% { transform: scale(0); }
  40%           { transform: scale(1); }
}

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

/* ── Discovery Modal ─────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

.modal[aria-hidden="false"] { display: flex; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal-panel {
  position: relative;
  z-index: 1;
  background: #0c0e12;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close:hover { border-color: var(--accent); color: var(--accent); }

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1rem;
}

.form-row label {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-row input,
.form-row textarea,
.form-row select {
  background: #0f1114;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition-fast);
  width: 100%;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.08);
}

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

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

.form-actions { flex-direction: row; gap: 12px; }

.form-status {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  display: none;
}

.form-status.success {
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.2);
  display: block;
}

.form-status.error {
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  display: block;
}

/* File upload */
.file-upload-container { margin-bottom: 1rem; }

.file-upload-area {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
}

.file-upload-area:hover {
  border-color: var(--border-accent);
  background: rgba(125, 211, 252, 0.03);
}

.file-upload-area.dragover {
  border-color: var(--accent);
  background: rgba(125, 211, 252, 0.06);
}

.file-input-hidden {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-icon { color: var(--accent); margin-bottom: 12px; display: flex; justify-content: center; }
.file-upload-text { display: flex; flex-direction: column; gap: 4px; }
.file-upload-primary { font-size: 0.9rem; color: var(--text-primary); font-weight: 500; }
.file-upload-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.file-upload-secondary { font-size: 0.8rem; color: var(--text-secondary); }

.file-upload-status {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-upload-success { display: flex; align-items: center; gap: 8px; color: #7dd3fc; }
.uploaded-filename { font-size: 0.875rem; font-weight: 500; color: var(--text-primary); }

/* Benefits grid (careers page reuse) */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* ── Orbit animations kept (but elements hidden — canvas takes over) ── */
@keyframes rotateOrbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulseNode {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50%       { opacity: 0.5; transform: translateX(-50%) scale(1.5); }
}

/* ── Day mode (keep toggle working, minimal overrides) ─────────── */
body.day-mode {
  background-color: #f0f4f0;
  color: #1a2e22;
  --bg-primary:    #f0f4f0;
  --bg-secondary:  #e4ede6;
  --bg-card:       rgba(255, 255, 255, 0.7);
  --text-primary:  #1a2e22;
  --text-secondary:#4a6b55;
  --text-muted:    #8aad96;
  --border:        rgba(0, 0, 0, 0.08);
  --border-accent: rgba(3, 105, 161, 0.3);
  --accent-dim:    rgba(3, 105, 161, 0.1);
}

body.day-mode #decomposition-canvas { background: transparent; }
body.day-mode .particle { background: #0369a1; box-shadow: 0 0 8px rgba(3, 105, 161, 0.4); }
body.day-mode .core-sphere { background: radial-gradient(circle at 30% 30%, #7dd3fc 0%, #0369a1 60%, #0c4a6e 100%); }
body.day-mode .navbar { background: rgba(240, 244, 240, 0.6); border-bottom-color: rgba(0,0,0,0.06); }
body.day-mode .footer { background: #e4ede6; }
body.day-mode .logo-night { display: none; }
body.day-mode .logo-day  { display: block; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .work-principles { grid-template-columns: repeat(2, 1fr); }
  .engagement-models { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 968px) {
  .nav-center { display: none; }
  .nav-right .btn-primary-small { display: none; }
  .mobile-nav-overlay { display: block; }
  .mobile-menu-toggle { display: flex; }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(5, 7, 10, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 48px 24px;
    gap: 1.5rem;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--border);
    z-index: 99;
  }

  .nav-menu.active { left: 0; }
  .mobile-menu-toggle { display: flex; }

  .mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Mobile rocket float (declared globally so it's available inside @media) */
@keyframes rocket-float-mobile {
  0%, 100% { transform: translateY(0px)   rotate(-4deg); }
  50%       { transform: translateY(-10px) rotate(4deg);  }
}

@media (max-width: 768px) {
  :root { --section-padding: 80px; }

  .hero { padding: 100px 0 60px; }
  .hero-title { font-size: 2.5rem; }

  /* ── Sphere + particle origin: aligned, below CTA button ─── */
  .particle-system {
    top: 93%;
  }
  .core-sphere {
    width: 80px;
    height: 80px;
    top: 93%;
  }
  .core-glow {
    width: 180px;
    height: 180px;
    top: 93%;
  }

  /* ── hero-content: reserve the exact same space the 68px rocket used ── */
  .hero-content {
    position: relative;
    padding-top: 112px;   /* 68px rocket + 12px margin-bottom + 32px flex gap */
  }

  /* ── Rocket: absolute so it never affects text/sphere layout ────────── */
  .hero-rocket {
    position: absolute;
    /* bottom of rocket = 68px from hero-content top → 44px gap to title */
    top: -68px;
    left: 50%;
    margin-left: -68px;   /* half of 136px — centres without using transform */
    width: 136px;
    height: 136px;
    margin-bottom: 0;
    animation: rocket-float-mobile 3.5s ease-in-out infinite;
  }
  /* Reverse orientation — nose pointing up */
  .hero-rocket svg {
    transform: rotate(0deg);
  }

  .features-grid { grid-template-columns: 1fr; }
  .work-principles { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .engagement-models { grid-template-columns: 1fr; }
  .case-study { grid-template-columns: 1fr; direction: ltr; }
  .case-study:nth-child(even) { direction: ltr; }
  .vision-story-grid { grid-template-columns: 1fr; }
  .values-culture-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; }
  .process-flow { flex-direction: column; }
  .process-arrow { transform: rotate(90deg); padding: 4px 0; }
  .cta-content { padding: 48px 28px; border-radius: 1.5rem; }

  .chat-panel { width: 300px; }
  .scroll-hint { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.75rem; }
  .floating-actions { bottom: 1rem; right: 1rem; }
  .chat-panel { width: calc(100vw - 2rem); right: -1rem; }

  /* Even smaller sphere on very narrow screens */
  .particle-system { top: 93%; }
  .core-sphere { width: 70px;  height: 70px;  top: 93%; }
  .core-glow   { width: 160px; height: 160px; top: 93%; }

  /* Keep 2× rocket on very narrow screens */
  .hero-rocket { width: 136px; height: 136px; margin-left: -68px; }
  .hero-rocket svg { transform: rotate(0deg); }
}

/* ── Short-viewport fix (MacBook ~800-950px tall) ───────────── */
/* Sphere at top:80% collides with hero CTA on viewports < ~950px */
@media (max-height: 950px) and (min-width: 769px) {
  .core-sphere  { top: 90%; }
  .core-glow    { top: 90%; }
  .particle-system { top: 90%; }
}

@media (max-height: 800px) and (min-width: 769px) {
  .hero { padding: 80px 0 40px; }
  .core-sphere  { top: 92%; }
  .core-glow    { top: 92%; }
  .particle-system { top: 92%; }
  .career-hero  { margin-top: 5rem; padding: 90px 0 60px; }
}

/* ── Mobile landscape — hide sphere (viewport too short) ────── */
@media (orientation: landscape) and (max-height: 500px) {
  .core-sphere,
  .core-glow,
  .particle-system {
    display: none;
  }
}

/* ── Medium desktop (1200px) — tighten spacing ──────────────── */
@media (max-width: 1200px) {
  :root { --section-padding: 100px; }
  .hero-rocket {
    /* scale down the orbit radius on narrower desktops */
    animation-name: rocket-orbit-md;
  }
}

@keyframes rocket-orbit-md {
  0%   { transform: translate(-50%, -50%) rotate(270deg) translateX(380px); }
  12%  { transform: translate(-50%, -50%) rotate(360deg) translateX(380px); }
  24%  { transform: translate(-50%, -50%) rotate(450deg) translateX(380px); }
  36%  { transform: translate(-50%, -50%) rotate(540deg) translateX(380px); }
  44%  { transform: translate(-50%, -50%) rotate(610deg) translateX(220px); }
  50%  { transform: translate(-50%, -50%) rotate(680deg) translateX(100px); }
  56%  { transform: translate(-50%, -50%) rotate(750deg) translateX(100px); }
  64%  { transform: translate(-50%, -50%) rotate(820deg) translateX(220px); }
  72%  { transform: translate(-50%, -50%) rotate(880deg) translateX(380px); }
  84%  { transform: translate(-50%, -50%) rotate(940deg) translateX(380px); }
  100% { transform: translate(-50%, -50%) rotate(990deg) translateX(380px); }
}

/* Restore mobile rocket after the 1200px rule overrides it */
@media (max-width: 768px) {
  .hero-rocket {
    animation: rocket-float-mobile 3.5s ease-in-out infinite;
    position: absolute;
    top: -68px;
    left: 50%;
    margin-left: -68px;
  }
}


/* ======================================================
   CAREERS PAGE
   ====================================================== */

.career-hero {
  position: relative;
  padding: 120px 0 80px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  margin-top: 7.5rem;
}

.career-hero-content { 
  text-align: center; 
  max-width: 800px; 
  margin: 0 auto; 
  position: relative;
  padding: 60px 40px;
}

.career-hero-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(750px, 75vh);
  height: min(750px, 75vh);
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.3);
  box-shadow: 
    0 0 40px rgba(125, 211, 252, 0.12),
    0 0 80px rgba(125, 211, 252, 0.06),
    inset 0 0 40px rgba(125, 211, 252, 0.04);
  pointer-events: none;
  animation: heroRingGlow 4s ease-in-out infinite;
}

@keyframes heroRingGlow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
}

body.day-mode .career-hero-content::before {
  border-color: rgba(45, 138, 95, 0.25);
  box-shadow: 
    0 0 40px rgba(45, 138, 95, 0.08),
    0 0 80px rgba(45, 138, 95, 0.04),
    inset 0 0 40px rgba(45, 138, 95, 0.03);
}

.career-hero-title { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; color: var(--text-primary); margin-bottom: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.career-hero-subtitle { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 48px; line-height: 1.6; max-width: 600px; margin-left: auto; margin-right: auto; }
.career-hero-stats { display: flex; justify-content: center; gap: 60px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .stat-number { display: block; font-size: 1.4rem; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.hero-stat .stat-label { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }

.open-positions { margin-bottom: 80px; }
.positions-list { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }

.position-card { background: var(--bg-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border); border-radius: 12px; padding: 40px; transition: var(--transition); }
body.day-mode .position-card { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.08); }
.position-card:hover { border-color: var(--border-accent); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(125,211,252,0.08); }

.position-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }

.position-copy-link { background: var(--accent-dim); border: 1px solid var(--border-accent); border-radius: 8px; padding: 10px; cursor: pointer; transition: var(--transition-fast); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); }
.position-copy-link:hover { background: rgba(125,211,252,0.2); transform: translateY(-2px); }
.position-copy-link.copied { background: rgba(56,189,248,0.2); border-color: #38bdf8; color: #38bdf8; }

.position-info h4 { font-size: 1.4rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.position-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.position-type, .position-location { font-size: 0.875rem; color: var(--text-secondary); font-weight: 500; }
.position-level { background: var(--accent-dim); color: var(--accent); padding: 4px 14px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.openings-chip { background: rgba(99,102,241,0.12); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.25); padding: 4px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; white-space: nowrap; letter-spacing: 0.5px; }
body.day-mode .openings-chip { color: #4f46e5; }

.position-description { color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; font-size: 0.95rem; }
.position-skills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.skill-tag { background: transparent; border: 1px solid var(--border-accent); color: var(--accent); padding: 5px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.position-actions { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap; }

.position-details-btn { display: inline-flex; align-items: center; background: transparent; border: 1px solid var(--border-accent); color: var(--accent); padding: 10px 20px; font-weight: 600; font-size: 0.8rem; transition: var(--transition-fast); text-transform: uppercase; letter-spacing: 0.5px; font-family: var(--font-label); cursor: pointer; border-radius: 6px; }
.position-details-btn:hover { background: var(--accent-dim); transform: translateY(-1px); }

.position-apply { display: inline-flex; align-items: center; background: var(--accent-gradient); color: #0a1929; padding: 10px 24px; font-weight: 700; font-size: 0.8rem; transition: var(--transition-fast); text-transform: uppercase; letter-spacing: 0.5px; font-family: var(--font-label); border: none; cursor: pointer; border-radius: 6px; }
.position-apply:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(125,211,252,0.3); }

.career-cta { text-align: center; background: var(--bg-card); backdrop-filter: blur(20px); border: 1px solid var(--border-accent); border-radius: 16px; padding: 64px 40px; margin-bottom: 80px; }
.career-cta-content h2 { font-size: clamp(1.75rem,3vw,2.25rem); font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
.career-cta-content p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.6; }

.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1200; }
.modal[aria-hidden="false"] { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(4px); }
.modal-panel { position: relative; background: var(--bg-secondary); border: 1px solid var(--border); padding: 32px; width: 520px; max-width: calc(100% - 40px); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); z-index: 2; max-height: 90vh; overflow-y: auto; }
.modal-panel h3 { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin-bottom: 20px; }
.modal-close { position: absolute; top: 14px; right: 14px; background: transparent; border: none; color: var(--text-secondary); font-size: 26px; cursor: pointer; line-height: 1; transition: var(--transition-fast); }
.modal-close:hover { color: var(--text-primary); }

.apply-form { display: grid; gap: 14px; }
.apply-form .form-label { display: block; margin-bottom: 6px; color: var(--text-secondary); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-label); }
.apply-form input[type="text"], .apply-form input[type="email"], .apply-form textarea { width: 100%; padding: 10px 14px; background: var(--bg-primary); border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); font-size: 0.9rem; transition: var(--transition-fast); }
.apply-form input:focus, .apply-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.form-status { margin-top: 8px; padding: 8px 12px; border-radius: 6px; font-size: 0.875rem; display: none; }
.form-status:not(:empty) { display: block; }
.form-status.success { color: #7dd3fc; background: rgba(125,211,252,0.1); border: 1px solid rgba(125,211,252,0.2); }
.form-status.error { color: #f87171; background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.2); }

.details-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 12001; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.details-modal-overlay[aria-hidden="false"] { opacity: 1; visibility: visible; }
.details-modal { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 16px; padding: 0; max-width: 800px; width: 90%; max-height: 80vh; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.6); transform: scale(0.9) translateY(-20px); transition: transform 0.3s ease; }
.details-modal-overlay[aria-hidden="false"] .details-modal { transform: scale(1) translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }
.modal-body { padding: 24px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--border); }
.details-content { color: var(--text-primary); line-height: 1.7; font-size: 0.95rem; max-height: 50vh; overflow-y: auto; padding-right: 8px; }
.details-content p { margin-bottom: 12px; color: var(--text-secondary); }
.details-content ul, .details-content ol { margin: 12px 0; padding-left: 24px; }
.details-content li { margin-bottom: 6px; color: var(--text-secondary); }
.details-content strong { color: var(--accent); font-weight: 600; }

.loading-state, .error-state { text-align: center; padding: 64px 24px; }
.loading-spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state p { color: var(--text-secondary); }
.error-icon { font-size: 2.5rem; margin-bottom: 16px; }
.error-state h3 { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.error-state p { color: var(--text-secondary); max-width: 480px; margin: 0 auto 24px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.error-details { font-size: 0.8rem; color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; max-width: 480px; margin: 0 auto; }
.error-details summary { cursor: pointer; color: var(--text-secondary); margin-bottom: 8px; }

.copy-toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--bg-secondary); color: var(--text-primary); padding: 14px 24px; border-radius: 8px; border: 1px solid var(--border-accent); box-shadow: 0 8px 24px rgba(0,0,0,0.4); font-size: 0.875rem; font-weight: 500; z-index: 10000; opacity: 0; transition: all 0.3s cubic-bezier(0.4,0,0.2,1); pointer-events: none; max-width: 90%; text-align: center; }
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.position-card.highlight-position { border-color: var(--accent) !important; box-shadow: 0 0 0 4px var(--accent-dim), 0 8px 24px rgba(125,211,252,0.25) !important; scroll-margin-top: 100px; animation: highlightPulse 1.5s ease-in-out; }
@keyframes highlightPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.01); } }

.file-upload-container { display: block; margin-bottom: 16px; }
.file-upload-area { position: relative; border: 2px dashed var(--border); border-radius: 12px; padding: 32px 20px; text-align: center; background: var(--accent-dim); transition: var(--transition); cursor: pointer; overflow: hidden; }
.file-upload-area:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(125,211,252,0.15); }
.file-upload-area.dragover { border-color: var(--accent); background: rgba(125,211,252,0.1); box-shadow: 0 0 30px rgba(125,211,252,0.2); }
.file-input-hidden { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; top: 0; left: 0; }
.file-upload-icon { color: var(--accent); margin-bottom: 16px; display: flex; justify-content: center; }
.file-upload-text { display: flex; flex-direction: column; gap: 8px; }
.file-upload-primary { font-size: 0.95rem; color: var(--text-primary); font-weight: 500; }
.file-upload-link { color: var(--accent); font-weight: 600; }
.file-upload-secondary { font-size: 0.8rem; color: var(--text-secondary); }
.file-upload-status { margin-top: 12px; padding: 12px 16px; background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.3); border-radius: 8px; }
.file-upload-success { display: flex; align-items: center; gap: 8px; color: #38bdf8; }
.uploaded-filename { font-size: 0.875rem; font-weight: 500; color: var(--text-primary); }

@media (max-width: 768px) {
  .career-hero { padding: 80px 0 60px; margin-top: 5rem; }
  .career-hero-title { font-size: 2rem; }
  .career-hero-stats { gap: 32px; }
  .career-hero-content::before { display: none; }
  .position-card { padding: 24px; }
  .position-actions { flex-direction: column; align-items: flex-start; }
  .career-cta { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .career-hero-stats { flex-direction: column; gap: 24px; }
  .position-meta { gap: 8px; }
}

/* ── Rain Animation ──────────────────────────────────────────── */
.rain-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.raindrop {
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    rgba(125, 211, 252, 0.3) 50%, 
    rgba(125, 211, 252, 0.6) 100%);
  border-radius: 0 0 2px 2px;
  animation: rain-fall linear infinite;
  opacity: 0;
}

.raindrop::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: rgba(125, 211, 252, 0.4);
  border-radius: 50%;
  filter: blur(1px);
}

@keyframes rain-fall {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* Splash effect at bottom */
.rain-splash {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to top, rgba(125, 211, 252, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

/* Day mode adjustments */
body.day-mode .raindrop {
  background: linear-gradient(to bottom, 
    transparent 0%, 
    rgba(3, 105, 161, 0.25) 50%, 
    rgba(3, 105, 161, 0.5) 100%);
}

body.day-mode .raindrop::after {
  background: rgba(3, 105, 161, 0.3);
}

/* Reduce rain on mobile for performance */
@media (max-width: 768px) {
  .rain-container .raindrop:nth-child(n+30) {
    display: none;
  }
}

/* ── Stars Background ────────────────────────────────────────── */
.stars-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  background: radial-gradient(circle, 
    rgba(255, 255, 255, 1) 0%, 
    rgba(255, 255, 255, 0.8) 30%,
    rgba(200, 220, 255, 0.3) 60%,
    transparent 100%);
  border-radius: 50%;
  opacity: 0.7;
}

.star-twinkle {
  animation: star-twinkle ease-in-out infinite alternate;
}

@keyframes star-twinkle {
  0% { opacity: 0.4; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

body.day-mode .stars-container {
  opacity: 0.3;
}

/* ── Meteor Animation ────────────────────────────────────────── */
.meteor-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.meteor {
  --ball-size: 10px;
  --trail-length: 30px;
  --hue-shift: 0deg;
  
  position: absolute;
  width: var(--ball-size);
  height: calc(var(--ball-size) + var(--trail-length));
  animation: meteor-fall 2s ease-in forwards;
  filter: hue-rotate(var(--hue-shift));
}

/* Fiery ball at BOTTOM (leading as it falls) */
.meteor::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: var(--ball-size);
  height: var(--ball-size);
  background: radial-gradient(circle at 35% 65%,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 220, 150, 1) 25%,
    rgba(255, 150, 50, 0.9) 55%,
    rgba(255, 80, 0, 0.6) 80%,
    transparent 100%);
  border-radius: 50%;
  box-shadow: 
    0 0 8px rgba(255, 180, 80, 1),
    0 0 16px rgba(255, 120, 30, 0.7),
    0 0 24px rgba(255, 80, 0, 0.4);
}

/* Trail ABOVE the ball (trailing behind) */
.meteor::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--ball-size) * 0.4);
  height: var(--trail-length);
  background: linear-gradient(to top,
    rgba(255, 150, 50, 0.8) 0%,
    rgba(255, 100, 20, 0.5) 40%,
    rgba(200, 50, 0, 0.2) 70%,
    transparent 100%);
  border-radius: 50% 50% 30% 30%;
  filter: blur(1px);
}

/* Flicker effect */
.meteor-flicker::before {
  animation: fireball-flicker 0.12s ease-in-out infinite alternate;
}

@keyframes meteor-fall {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.6);
  }
  5% {
    opacity: 1;
    transform: translateY(20px) scale(1);
  }
  90% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(calc(100vh + 100px)) scale(0.8);
  }
}

@keyframes fireball-flicker {
  0% {
    box-shadow: 
      0 0 10px rgba(255, 200, 100, 1),
      0 0 20px rgba(255, 150, 50, 0.8),
      0 0 35px rgba(255, 100, 0, 0.5);
    transform: scale(1);
  }
  100% {
    box-shadow: 
      0 0 15px rgba(255, 230, 130, 1),
      0 0 30px rgba(255, 180, 80, 0.9),
      0 0 45px rgba(255, 120, 20, 0.6);
    transform: scale(1.1);
  }
}

/* Day mode */
body.day-mode .meteor::before {
  background: radial-gradient(circle at 40% 40%,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 220, 150, 1) 25%,
    rgba(220, 160, 80, 0.85) 55%,
    rgba(180, 100, 40, 0.6) 80%,
    transparent 100%);
  box-shadow: 
    0 0 8px rgba(220, 180, 100, 0.8),
    0 0 18px rgba(200, 140, 60, 0.6),
    0 0 30px rgba(180, 100, 30, 0.4);
}

body.day-mode .meteor::after {
  background: linear-gradient(to bottom,
    rgba(220, 160, 80, 0.8) 0%,
    rgba(200, 130, 60, 0.6) 20%,
    rgba(180, 100, 40, 0.4) 50%,
    transparent 100%);
}

/* Mobile: fewer effects */
@media (max-width: 768px) {
  .stars-container .star:nth-child(n+40) {
    display: none;
  }
  .meteor-container {
    display: none;
  }
}

/* ── Rocket Animation ────────────────────────────────────────── */
.rocket-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.rocket {
  --rocket-size: 24px;
  position: absolute;
  width: var(--rocket-size);
  height: calc(var(--rocket-size) * 1.8);
  animation: rocket-fall 4s ease-in forwards;
}

/* Rocket body */
.rocket::before {
  content: '';
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--rocket-size) * 0.5);
  height: calc(var(--rocket-size) * 1.2);
  background: linear-gradient(135deg,
    #e8e8e8 0%,
    #c0c0c0 30%,
    #888 70%,
    #666 100%);
  border-radius: 50% 50% 30% 30%;
  box-shadow: 
    inset 2px 0 4px rgba(255,255,255,0.3),
    inset -2px 0 4px rgba(0,0,0,0.3);
}

/* Rocket nose cone */
.rocket::after {
  content: '';
  position: absolute;
  bottom: calc(30% + var(--rocket-size) * 1.15);
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: calc(var(--rocket-size) * 0.25) solid transparent;
  border-right: calc(var(--rocket-size) * 0.25) solid transparent;
  border-bottom: calc(var(--rocket-size) * 0.5) solid #ff4444;
  filter: drop-shadow(0 0 3px rgba(255, 100, 100, 0.5));
}

/* Exhaust flame effect */
.rocket-exhaust {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--rocket-size) * 0.4);
  height: calc(var(--rocket-size) * 0.8);
  background: linear-gradient(to top,
    rgba(255, 200, 50, 1) 0%,
    rgba(255, 120, 0, 0.9) 30%,
    rgba(255, 60, 0, 0.6) 60%,
    transparent 100%);
  border-radius: 40% 40% 50% 50%;
  filter: blur(2px);
  animation: exhaust-flicker 0.1s ease-in-out infinite alternate;
}

.rocket-exhaust::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 80%;
  background: rgba(255, 255, 200, 0.8);
  border-radius: 50%;
  filter: blur(3px);
}

@keyframes rocket-fall {
  0% {
    transform: translateY(0) rotate(var(--rotation, 0deg));
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(120vh) rotate(var(--rotation, 0deg));
    opacity: 0;
  }
}

@keyframes exhaust-flicker {
  0% {
    opacity: 0.9;
    transform: translateX(-50%) scaleY(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scaleY(1.05);
  }
}

/* Day mode rockets */
body.day-mode .rocket::before {
  background: linear-gradient(135deg,
    #f5f5f5 0%,
    #ddd 30%,
    #aaa 70%,
    #888 100%);
}

body.day-mode .rocket-exhaust {
  opacity: 0.8;
}

/* Hide rockets on mobile */
@media (max-width: 768px) {
  .rocket-container {
    display: none;
  }
}
