/* =========================================================================
   BASE RESET & VARIABLES
   ========================================================================= */
:root {
  --bg: #0A0F1E;
  --bg2: #0D1528;
  --surface: #111827;
  --teal: #00D4FF;
  --blue: #3B82F6;
  --border: #1E293B;
  --text: #FFFFFF;
  --muted: #94A3B8;

  /* Light Theme Tokens */
  --light-bg: #F5F5F7;
  --light-surface: #FFFFFF;
  --light-text: #1D1D1F;
  --light-muted: #6E6E73;
  --light-border: #D2D2D7;
  --teal-on-light: #0097B2;
  
  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  cursor: none; /* Custom Cursor */
}

body.loading-state {
  overflow: hidden;
}

::selection {
  background: var(--teal);
  color: var(--bg);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--border);
}
::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 3px;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
}

@media(min-width: 768px) {
  h2 { font-size: 3.5rem; }
}

p {
  color: var(--muted);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.teal-gradient {
  background: linear-gradient(90deg, #00D4FF 0%, #3B82F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================================================
   LOGO LINK REFRESH
   ========================================================================= */
.logo-link {
  display: block;
  text-decoration: none;
  line-height: 0;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

/* =========================================================================
   CUSTOM CURSOR
   ========================================================================= */
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background-color: #00D4FF;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(calc(var(--x, 50vw) - 50%), calc(var(--y, 50vh) - 50%)) scale(1);
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.8), 0 0 20px rgba(0, 212, 255, 0.4);
  will-change: transform;
}

#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 44px; height: 44px;
  border: 3px solid rgba(0, 180, 220, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(calc(var(--rx, 50vw) - 50%), calc(var(--ry, 50vh) - 50%));
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              height 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
              background-color 0.3s, border-color 0.3s;
  will-change: transform, width, height;
}

body.hovering-btn #cursor-ring {
  width: 64px;
  height: 64px;
  background-color: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.8);
}

body.hovering-btn #cursor-dot {
  transform: translate(calc(var(--x, 50vw) - 50%), calc(var(--y, 50vh) - 50%)) scale(0.3);
  opacity: 0.8;
}

@media(max-width: 768px) {
  #cursor-dot, #cursor-ring { display: none; }
  body { cursor: auto; }
  a, button { cursor: pointer; }
}

/* =========================================================================
   AMBIENT ORBS (Apple-style 3D Aurora Mesh Gradient)
   ========================================================================= */
.ambient-orbs {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  background: var(--bg);
}

/* Subtle noise texture for premium glass feel */
.ambient-orbs::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
  z-index: 10;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  will-change: transform;
  transform: translateZ(0); /* own compositor layer */
}

.orb-1 { /* Light Tone (White / Pale Cyan) */
  width: 50vw; height: 50vw;
  top: -10%; left: -10%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(0, 212, 255, 0) 70%);
  animation: orb-drift 25s infinite alternate ease-in-out;
}
.orb-2 { /* Core Brand Teal */
  width: 60vw; height: 60vw;
  bottom: -20%; right: -10%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, rgba(0, 212, 255, 0) 70%);
  animation: orb-drift-rev 30s infinite alternate ease-in-out;
}
.orb-3 { /* Deep Blue Dark Tone */
  width: 70vw; height: 70vw;
  top: 40%; left: 30%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0) 70%);
  animation: orb-drift 20s infinite alternate ease-in-out;
}
.orb-4 { /* Soft Magenta/Purple for depth */
  width: 45vw; height: 45vw;
  top: 10%; right: 10%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, rgba(168, 85, 247, 0) 70%);
  animation: orb-drift-rev 22s infinite alternate ease-in-out;
}
.orb-5 { /* Vibrant Cyan */
  width: 55vw; height: 55vw;
  bottom: 10%; left: 10%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(6, 182, 212, 0) 70%);
  animation: orb-drift 28s infinite alternate ease-in-out;
}

@keyframes orb-drift {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(10vw, 5vh) scale(1.1) rotate(45deg); }
  100% { transform: translate(-5vw, 15vh) scale(0.9) rotate(-20deg); }
}

@keyframes orb-drift-rev {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(-10vw, -5vh) scale(1.2) rotate(-45deg); }
  100% { transform: translate(5vw, -15vh) scale(0.8) rotate(20deg); }
}

/* =========================================================================
   SECTION 1: LOADING SCREEN
   ========================================================================= */
#loader {
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out);
}

.loader-content {
  text-align: center;
}

.loader-video {
  width: 100%;
  max-width: 600px;
  height: auto;
  mix-blend-mode: screen; /* Drops pure black background */
  filter: contrast(2.2) brightness(0.8); /* Perfect balance for background dropping */
  -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 55%);
  mask-image: radial-gradient(circle at center, black 35%, transparent 55%);
  margin: 0 auto;
}

.loader-logo path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  /* Animates in JS */
}

.loader-wordmark {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.6s var(--ease-out) 1.2s;
}

.loader-wordmark.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   SECTION 2: NAVIGATION (Modern Apple Glass Pill)
   ========================================================================= */
#navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1000px;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  border-radius: 100px;
}

#navbar.scrolled {
  top: 16px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem 0.75rem 1.5rem;
  border-radius: 100px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s var(--ease-in-out);
}

#navbar.scrolled .nav-container {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  padding: 0.6rem 1rem 0.6rem 1.5rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  width: 160px;
  height: 44px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.nav-wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
  color: #FFF;
}

.nav-left:hover .nav-logo {
  transform: scale(1.1) rotate(5deg);
}

.nav-center {
  display: flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: #94A3B8;
  padding: 8px 16px;
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: #0A0F1E;
  background: linear-gradient(90deg, #00D4FF 0%, #3B82F6 100%);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none; /* override for custom cursor logic */
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 15, 30, 0.98);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-in-out);
}

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

.mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease-in-out);
}

.mobile-menu.active .mobile-links {
  transform: translateY(0);
}

.mobile-links a:not(.btn) {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 600;
}

@media(max-width: 992px) {
  .nav-center { display: none; }
  .nav-right .btn { display: none; }
  .hamburger { display: flex; cursor: pointer; }
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 100px;
  transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
  border: 1px solid transparent;
  will-change: transform;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: linear-gradient(90deg, #00D4FF 0%, #3B82F6 100%);
  color: #0A0F1E;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}
.btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: 1.15rem;
}

/* =========================================================================
   SECTION 3: HERO (Premium Liquid Glass Redesign)
   ========================================================================= */
.hero-premium {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 60px;
}

#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
}

.hero-liquid-mesh {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 40%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(56, 189, 248, 0.1) 0%, transparent 50%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

/* Subtle Skeuomorphic grain overlay */
.hero-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: overlay;
  z-index: 1;
  pointer-events: none;
}

.hud-scan-line {
  position: absolute;
  top: -100px; left: 0; right: 0;
  height: 1px;
  background: var(--teal);
  box-shadow: 0 0 10px 2px var(--teal);
  opacity: 0;
  z-index: 2;
  animation: scan-line 3s var(--ease-in-out) forwards 1.5s;
}

@keyframes scan-line {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.3; }
  90% { opacity: 0.3; }
  100% { transform: translateY(120vh); opacity: 0; }
}

.hero-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  padding: 0 2rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.justify-center { justify-content: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal);
  margin-bottom: 2rem;
}

.hero-headline {
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.hero-headline .line { display: block; }

.subtext {
  font-size: 1.25rem;
  max-width: 700px;
  margin-bottom: 3rem;
  color: var(--muted);
}

.cta-group {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 3rem;
  align-items: center;
}

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

.dots-group {
  display: flex;
  gap: 4px;
}

.trust-row .dot {
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  opacity: 0.7;
}

.trust-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ==================
   BENTO COMMAND CENTER
   ================== */
.hero-bento-wrapper {
  width: 100%;
  perspective: 2000px; /* 3D depth */
  z-index: 5;
}

.bento-glass-panel {
  width: 100%;
  padding: 24px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(0, 212, 255, 0.1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: rotateX(10deg) translateY(20px);
  will-change: transform;
}

/* Internal Iridescent glow moving across the bento board */
.bento-glow-mesh {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 180deg at 50% 50%, rgba(0, 212, 255, 0.15) 0deg, transparent 120deg, rgba(56, 189, 248, 0.1) 240deg, transparent 360deg);
  animation: spin-glow 15s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes spin-glow { 100% { transform: rotate(360deg); } }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  position: relative;
  z-index: 2; /* above glow */
}

.bento-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 2px 10px rgba(255,255,255,0.02);
}

.card-header {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--teal);
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.b-icon { margin-right: 8px; font-size: 1.2rem; }
.pulse-dot { width: 8px; height: 8px; background: #10B981; border-radius: 50%; margin-left: auto; box-shadow: 0 0 10px #10B981; animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; box-shadow: none; } 100% { opacity: 1; } }

/* Cell Details */
.card-voice { grid-column: span 1; }
.card-pipeline { grid-column: span 2; }
.card-metrics { grid-column: span 2; }
.card-brain { grid-column: span 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }

/* Sub-components */
.waveform { display: flex; gap: 4px; align-items: center; height: 32px; margin-bottom: 1rem; }
.waveform .bar { width: 6px; background: var(--teal); border-radius: 3px; animation: wave 1s ease-in-out infinite alternate; }
.waveform .bar-1 { height: 16px; } .waveform .bar-2 { height: 32px; animation-delay: 0.2s; }
.waveform .bar-3 { height: 24px; animation-delay: 0.4s; } .waveform .bar-4 { height: 28px; animation-delay: 0.6s; } .waveform .bar-5 { height: 14px; animation-delay: 0.8s; }
@keyframes wave { 0% { transform: scaleY(0.5); } 100% { transform: scaleY(1); } }
.b-text { font-size: 0.9rem; color: #94A3B8; }

.pipe-flow { display: flex; align-items: center; width: 100%; justify-content: space-between; padding: 1rem 0; flex: 1; }
.p-node { padding: 8px 16px; border-radius: 20px; background: rgba(255,255,255,0.05); font-size: 0.8rem; font-family: var(--font-mono); color: #64748B; transition: all 0.3s; }
.p-node.active { background: rgba(0,212,255,0.1); color: #fff; border: 1px solid rgba(0,212,255,0.3); }
.p-node.glowing { background: var(--teal); color: #000; box-shadow: 0 0 15px var(--teal); font-weight: bold; }
.p-line { flex: 1; height: 2px; background: rgba(255,255,255,0.1); margin: 0 10px; position: relative; overflow: hidden; }
.p-line.active::after { content: ""; position: absolute; top:0; left:0; height:100%; width: 50%; background: var(--teal); animation: flow 2s linear infinite; }
@keyframes flow { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }

.m-row { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px dashed rgba(255,255,255,0.1); }
.m-row:last-child { border-bottom: none; }
.m-label { color: #94A3B8; font-size: 0.95rem; }
.m-val { font-family: var(--font-mono); font-size: 1.1rem; font-weight: bold; }

.synapse-net { position: absolute; inset: 0; }
.s-node { position: absolute; width: 6px; height: 6px; background: rgba(255,255,255,0.2); border-radius: 50%; }
.s-node.active { background: #A855F7; box-shadow: 0 0 15px #A855F7; }

@media(max-width: 992px) {
  .bento-grid { grid-template-columns: 1fr; }
  .card-voice, .card-pipeline, .card-metrics, .card-brain { grid-column: span 1; }
  .hero-headline { font-size: clamp(2.5rem, 8vw, 4rem); }
  .pipe-flow { flex-direction: column; gap: 10px; }
  .p-line { width: 2px; height: 20px; margin: 10px 0; }
  .p-line.active::after { width: 100%; height: 50%; animation: flowY 2s linear infinite; }
  @keyframes flowY { 0% { transform: translateY(-100%); } 100% { transform: translateY(200%); } }
}

@media(max-width: 768px) {
  .cta-group { flex-direction: column; width: 100%; }
  .cta-group .btn { width: 100%; text-align: center; justify-content: center; }
  .hero-bento-wrapper { display: none; } /* Hide on smallest screens to keep text visible */
}

/* =========================================================================
   SECTION 4: MARQUEE BAR
   ========================================================================= */
#marquee {
  background: rgba(10, 15, 30, 0.95);
  border-top: 1px solid rgba(0, 212, 255, 0.2);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.05) inset;
}

.marquee-wrapper {
  display: flex;
  white-space: nowrap;
  width: 200%;
}

.marquee-content {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--teal);
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: marquee 30s linear infinite;
  width: 50%;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* =========================================================================
   GLOBAL REVEAL CLASSES (OBSERVER TARGETS)
   ========================================================================= */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  will-change: opacity, transform;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }

/* Hero specific reveals handled by JS / internal classes */
.fade-up {
  opacity: 0; transform: translateY(20px);
  animation: initial-fade-up 0.8s var(--ease-out) forwards;
}
.stagger-0 { animation-delay: 1.5s; }
.stagger-1 { animation-delay: 1.6s; }
.stagger-2 { animation-delay: 1.7s; }
.stagger-3 { animation-delay: 1.85s; }
.stagger-4 { animation-delay: 2.0s; }

@keyframes initial-fade-up {
  to { opacity: 1; transform: translateY(0); }
}


/* =========================================================================
   GENERIC SECTION WRAPPER
   ========================================================================= */
.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8rem 2rem;
}
.text-center { text-align: center; }
.subtitle { font-size: 1.25rem; max-width: 600px; margin: 0 auto; }

/* =========================================================================
   SECTION 5: SERVICES (JS generated cards)
   ========================================================================= */
.services-3d-pin {
  position: relative;
  height: 500vh;
  background: transparent;
  padding-top: 10rem; /* Increased entry buffer for better separation */
}

.services-3d-pin .section-heading {
  z-index: 10;
  width: 100%;
  margin-bottom: 2rem; /* Consistent spacing below title */
}

.pin-wrapper {
  position: sticky;
  top: 80px; /* Offset for the sticky navbar */
  height: calc(100vh - 80px); /* Adjust height for the offset */
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  perspective: 2000px;
}

.services-track {
  display: flex;
  gap: 8rem;
  padding: 4rem calc(50vw - 200px); /* Vertical padding prevents clipping */
  align-items: center;
  will-change: transform;
  transform-style: preserve-3d;
}

.cf-card {
  flex: 0 0 400px;
  width: 400px;
  height: 600px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  transition: box-shadow 0.4s var(--ease-out);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.cf-card-glow {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 2px var(--teal);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
  z-index: 5;
  border-radius: 24px;
}

.cf-img-wrapper {
  width: 100%;
  flex: 0 0 280px;
  position: relative;
  overflow: hidden;
}

.cf-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
}

.cf-img-blur {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--surface) 100%);
  z-index: 1;
}

.cf-content {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 2;
}

.cf-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.cf-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.cf-body {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.cf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.cf-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: #CBD5E1;
}

@media(max-width: 992px) {
  .services-track {
    padding: 0 calc(50vw - 160px);
    gap: 4rem;
  }
  .cf-card {
    flex: 0 0 320px;
    width: 320px;
    height: 520px;
  }
  .cf-img-wrapper {
    flex: 0 0 220px;
  }
}

@media(max-width: 576px) {
  .services-track {
    padding: 0 calc(50vw - 160px);
    gap: 2rem;
  }
  .cf-card {
    flex: 0 0 320px;
    width: 320px;
    height: 540px;
  }
  .cf-img-wrapper {
    flex: 0 0 200px;
  }
  .cf-content {
    padding: 1.5rem;
  }
  .cf-title {
    font-size: 1.5rem;
  }
  .cf-icon {
    font-size: 2rem;
  }
}


/* =========================================================================
   SECTION 6: METRICS
   ========================================================================= */
#metrics {
  background: rgba(10, 15, 30, 0.97);
  position: relative;
  padding: 6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.data-rain-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.1) 50%, transparent 100%);
  background-size: 100% 200%;
  animation: data-rain 8s linear infinite;
  opacity: 0.5;
  pointer-events: none;
}

@keyframes data-rain {
  0% { background-position: 0 -200%; }
  100% { background-position: 0 200%; }
}

.metrics-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  z-index: 2;
}

@media(max-width: 992px) {
  .metrics-container { grid-template-columns: repeat(2, 1fr); gap: 4rem 2rem; }
}

@media(max-width: 576px) {
  .metrics-container { grid-template-columns: 1fr; gap: 4rem 2rem; }
}

.metric-card {
  position: relative;
  text-align: center;
}

.ghost-number {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-size: 180px;
  font-weight: 800;
  color: var(--teal);
  opacity: 0; /* JS controls this */
  z-index: -1;
  pointer-events: none;
  transition: transform 2s var(--ease-out), opacity 2s var(--ease-out);
}

.metric-value {
  font-family: var(--font-head);
  font-size: 4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.always-on {
  opacity: 0;
  transition: opacity 2s ease-in;
}

.metric-card.is-visible .always-on {
  opacity: 1;
}

/* =========================================================================
   SECTION 7: HOW IT WORKS (Neural Pipeline Scroll Sequence)
   ========================================================================= */
.neural-section {
  position: relative;
  background: transparent;
  padding: 10rem 0 0 0; /* Add top buffer */
}

.neural-pin-container {
  position: relative;
  height: 400vh;
}

.neural-sticky-wrapper {
  position: sticky;
  top: 15vh;
  /* Removed height constraint to allow content to perfectly size itself */
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.neural-header {
  text-align: center;
  z-index: 10;
  margin-bottom: 2rem;
}

.neural-header p.subtitle {
  color: #fff;
  opacity: 1;
  max-width: 600px;
  margin: 0 auto;
}

.neural-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  gap: 6rem;
  padding: 0 2rem 24px; /* bottom padding gives node-4 room to breathe */
  height: 40vh;
}

/* --- Left Column: Laser Track --- */
.neural-track-col {
  position: relative;
  width: 4px;
  height: 100%;
  margin-top: 0;
  overflow: visible; /* CRITICAL: prevent node-4 from clipping */
}

.neural-track-bg {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 4px;
}

.neural-laser {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: var(--teal);
  box-shadow: 0 0 20px var(--teal), 0 0 40px var(--teal);
  border-radius: 4px;
  z-index: 2;
  transition: height 0.1s linear;
}

/* Nodes on the track */
.track-node {
  position: absolute;
  left: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  z-index: 3;
  transform: translateY(-50%);
  transition: all 0.4s var(--ease-out);
}

/* node-4 at 95% instead of 100% - keeps it fully inside the visible area */
.track-node-1 { top: 0%; }
.track-node-2 { top: 33.33%; }
.track-node-3 { top: 66.66%; }
.track-node-4 { top: 95%; }

.track-node.is-active {
  background: var(--teal);
  border-color: #fff;
  box-shadow: 0 0 15px var(--teal);
  transform: translateY(-50%) scale(1.3);
}

/* --- Right Column: The 3D Glass Cards Stacked --- */
.neural-cards-col {
  position: relative;
  width: 600px;
  max-width: 100%;
  height: 100%; /* Slaved to master height */
  perspective: 2000px;
}

.neural-card {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  max-width: 600px;
  background: rgba(12, 18, 35, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  
  /* Initial base transform. */
  opacity: 0;
  pointer-events: none;
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  
  /* Inactive State: Pushed Back & Down */
  transform: translateY(calc(-50% + 100px)) translateZ(-200px) rotateX(10deg);
}

/* Passed State: pushed up and back */
.neural-card.is-passed {
  opacity: 0;
  transform: translateY(calc(-50% - 100px)) translateZ(-200px) rotateX(-10deg);
}

/* Active State: snapped to exact center front */
.neural-card.is-active {
  opacity: 1;
  transform: translateY(-50%) translateZ(0) rotateX(0);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 
    0 30px 60px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(0, 212, 255, 0.2);
  pointer-events: auto;
}

.nc-number {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  transition: color 0.4s, text-shadow 0.4s;
}

.neural-card.is-active .nc-number {
  color: var(--teal);
  -webkit-text-stroke: 0px;
  text-shadow: 0 0 20px color-mix(in srgb, var(--teal) 50%, transparent);
}

.nc-content {
  flex: 1;
}

.nc-timing {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--teal);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.nc-content h3 {
  font-family: var(--font-head);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.nc-content p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

@media(max-width: 992px) {
  .neural-track-col { margin-left: 5%; }
  .neural-card { max-width: 500px; padding: 30px; }
  .nc-number { font-size: 4rem; }
  .nc-content h3 { font-size: 1.5rem; }
}

@media(max-width: 768px) {
  .neural-layout { gap: 2rem; padding: 0 1.5rem; top: 25vh; }
  .neural-header { top: 10vh; margin-bottom: 2rem; }
  .neural-track-col { display: none; /* Hide track on mobile for more space */ }
  .neural-card { padding: 24px; gap: 1rem; flex-direction: column; }
  .nc-number { font-size: 3rem; -webkit-text-stroke: 1px var(--teal); }
}

/* =========================================================================
   SECTION 8: CASE STUDIES (3D Holographic Cylinder)
   ========================================================================= */
.holo-section {
  position: relative;
  background: transparent;
  padding: 6rem 0; /* Reduced padding to bring header closer and save space */
  overflow: hidden;
}

.holo-ambient {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.blur-left { left: -200px; background: rgba(0, 212, 255, 0.08); }
.blur-right { right: -200px; background: rgba(59, 130, 246, 0.06); }

.holo-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--teal);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.holo-stage-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 2rem auto 0; /* Reduced margin to keep carousel close to header */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  z-index: 2;
  perspective: 2500px;
}

.holo-nav-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(10,15,30,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}
.holo-nav-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--teal);
  box-shadow: 0 0 20px rgba(0,212,255,0.4);
  transform: scale(1.1);
}

.holo-3d-scene {
  width: 400px; /* Shrunk from 500 for better fit */
  height: 520px; /* Shrunk from 650 to eliminate vertical overflow */
  margin: 0 4rem;
  position: relative;
  transform-style: preserve-3d;
}

.holo-cylinder {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1); /* Epic smooth spinning */
}

.holo-card {
  position: absolute;
  width: 400px;
  height: 520px;
  left: 0;
  top: 0;
  border-radius: 24px;
  background: rgba(12, 18, 38, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  opacity: 0.5;
  filter: blur(4px) grayscale(50%);
  transition: opacity 0.8s, filter 0.8s, border-color 0.8s, box-shadow 0.8s;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.holo-card.is-active {
  opacity: 1;
  filter: blur(0px) grayscale(0%);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 
    0 40px 100px rgba(0,0,0,0.8),
    0 0 40px color-mix(in srgb, var(--holo-accent) 40%, transparent),
    inset 0 0 0 1px var(--holo-accent);
}

.holo-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--holo-accent) 20%, transparent) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.holo-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.4;
  mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
  z-index: 0;
}

.holo-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
}

.holo-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: color-mix(in srgb, var(--holo-accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--holo-accent) 40%, transparent);
  padding: 6px 12px;
  border-radius: 4px;
  color: #fff;
  margin-bottom: auto; /* Pushes everything else down */
  align-self: flex-start;
}

.holo-content h3 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.holo-content p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
  margin-bottom: 30px;
}

.holo-metrics-panel {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  transform-style: preserve-3d;
}

.pop-out-layer {
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.holo-card.is-active .pop-out-layer {
  transform: translateZ(60px); /* 3D POP OUT */
}

.holo-metric-val {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--holo-accent);
  text-shadow: 0 0 20px color-mix(in srgb, var(--holo-accent) 40%, transparent);
  margin-bottom: 8px;
}

.holo-metric-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media(max-width: 992px) {
  .holo-3d-scene { width: 350px; height: 480px; margin: 0 1rem; }
  .holo-card { width: 350px; height: 480px; }
  .holo-content h3 { font-size: 22px; }
  .holo-metric-val { font-size: 46px; }
}

@media(max-width: 768px) {
  .holo-3d-scene { width: 300px; height: 480px; margin: 0 1rem; }
  .holo-card { width: 300px; height: 480px; }
  .holo-content { padding: 24px; }
  .holo-metric-val { font-size: 42px; }
  .holo-content h3 { font-size: 20px; }
  .holo-stage-wrapper { padding: 0 1rem; }
  .holo-nav-btn { width: 40px; height: 40px; font-size: 18px; }
}

/* =========================================================================
   SECTION 9: ABOUT (CYBERPUNK BENTO GRID)
   ========================================================================= */
#about {
  position: relative;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  padding: 8rem 0;
}

.about-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}
.about-blob.blob-1 {
  background: rgba(0, 212, 255, 0.15);
  width: 600px; height: 600px;
  top: -100px; left: -200px;
  animation: orb-drift 20s infinite alternate ease-in-out;
}
.about-blob.blob-2 {
  background: rgba(59, 130, 246, 0.15);
  width: 500px; height: 500px;
  bottom: -150px; right: -150px;
  animation: orb-drift-rev 25s infinite alternate ease-in-out;
}

.about-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.about-bento-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

.about-card {
  position: relative;
  background: rgba(12, 18, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
}

.about-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 212, 255, 0.3);
}

.spotlight-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.spotlight {
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  pointer-events: none;
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(0, 212, 255, 0.06), transparent 40%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s;
}

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

.card-content {
  position: relative;
  z-index: 1;
  padding: 3rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-content.centered {
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Card 1: Main Story */
.main-story {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.glass-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #00D4FF;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  margin-bottom: 2rem;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-story h2 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.main-story .story-text {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.main-story .story-text.accent {
  color: #fff;
  font-weight: 500;
  margin-bottom: 3rem;
}

.action-footer {
  margin-top: auto;
}

/* Card 2: Founder Profile */
.founder-profile {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  min-height: 300px;
}

.founder-hud-ring {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hud-spin {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  animation: spin 20s linear infinite;
}

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

.founder-avatar {
  width: 90px;
  height: 90px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.2), 0 0 20px rgba(0, 212, 255, 0.2);
}

.founder-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
  color: #fff;
}

.founder-role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #00D4FF;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Card 3: Core Tech */
.core-tech {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.pulse-dot-green {
  width: 8px; height: 8px;
  background: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 10px #22C55E;
  animation: pulse 2s infinite;
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #22C55E;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tech-pattern {
  position: relative;
  height: 60px;
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.scan-bar {
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
  animation: scan-horizontal 3s infinite;
}

@keyframes scan-horizontal {
  0% { transform: translateX(0); }
  100% { transform: translateX(300%); }
}

.waveform-svg {
  width: 100%;
  height: 100%;
}

.core-tech h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.core-tech p {
  color: var(--muted);
  font-size: 0.95rem;
}

.mt-6 { margin-top: 1.5rem; }

@media(max-width: 1024px) {
  .main-story h2 { font-size: 2.8rem; }
  .card-content { padding: 2rem; }
}

@media(max-width: 992px) {
  .about-bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .main-story, .founder-profile, .core-tech {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .main-story h2 { font-size: 2.5rem; }
}

/* =========================================================================
   SECTION 10: FAQ
   ========================================================================= */
.faq-accordion {
  max-width: 800px;
  margin: 4rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  border-left: 2px solid transparent;
  transition: border-color 0.3s;
}

.faq-item.active {
  border-left-color: var(--teal);
  background: rgba(0, 212, 255, 0.02);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.5rem;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question .icon {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--teal);
  transition: transform 0.3s;
}

.faq-item.active .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  color: var(--muted);
}

/* =========================================================================
   SECTION 11: CTA
   ========================================================================= */
#cta {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: transparent;
  overflow: hidden;
}

#cta-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cta-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.5);
  z-index: 0;
}

.sonar-wrapper {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  z-index: 0;
}

.sonar-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--teal);
  border-radius: 50%;
  opacity: 0;
  animation: pulse-ring 9s infinite linear;
}

.r1 { animation-delay: 0s; }
.r2 { animation-delay: 3s; }
.r3 { animation-delay: 6s; }

@keyframes pulse-ring {
  0% { width: 0; height: 0; opacity: 0.4; border-width: 2px; }
  100% { width: 800px; height: 800px; opacity: 0; border-width: 0px; }
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.breathing-glow {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 2rem;
  animation: breathe 4s infinite alternate ease-in-out;
}

@keyframes breathe {
  0% { filter: brightness(1) drop-shadow(0 0 10px rgba(0, 212, 255, 0.2)); }
  100% { filter: brightness(1.3) drop-shadow(0 0 30px rgba(0, 212, 255, 0.6)); }
}

.cta-burst-btn {
  position: relative;
  overflow: hidden;
}

.trust-footer {
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 1px;
}

/* =========================================================================
   SECTION 12: FOOTER
   ========================================================================= */
footer {
  background: rgba(10, 12, 24, 0.99);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6rem 2rem 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

@media(max-width: 992px) {
  .footer-container { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media(max-width: 576px) {
  .footer-container { grid-template-columns: 1fr; }
  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
}

.footer-logo {
  width: 200px;
  height: 60px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 1rem;
}

.brand-col .footer-tagline {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--teal);
}

.teal-link {
  color: var(--teal) !important;
  font-weight: 600;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* =========================================================================
   DUAL THEME: LIGHT SECTION SYSTEM (Apple-Inspired)
   ========================================================================= */

/* --- Base Light Section --- */
.light-section {
  background: var(--light-bg) !important;
  position: relative;
  z-index: 1;
}

.light-section h2,
.light-section h3,
.light-section h4 {
  color: var(--light-text);
}

.light-section p,
.light-section .subtitle {
  color: var(--light-muted);
}

/* --- Theme Transition Bridges --- */
.theme-bridge {
  height: 120px;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.bridge-dark-to-light {
  background: linear-gradient(to bottom, var(--bg), var(--light-bg));
}

.bridge-light-to-dark {
  background: linear-gradient(to bottom, var(--light-bg), var(--bg));
}

/* =========================================================================
   LIGHT: SERVICES OVERRIDES
   ========================================================================= */
.services-3d-pin.light-section {
  padding-top: 6rem;
}

.light-section .cf-card {
  background: var(--light-surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 12px 24px rgba(0, 0, 0, 0.06);
}

.light-section .cf-card-glow {
  box-shadow: inset 0 0 0 2px var(--teal-on-light);
}

.light-section .cf-img-blur {
  background: linear-gradient(180deg, transparent 40%, var(--light-surface) 100%);
}

.light-section .cf-body {
  color: var(--light-muted);
}

.light-section .cf-tag {
  background: #F0F0F2;
  border-color: var(--light-border);
  color: var(--light-text);
}

/* =========================================================================
   LIGHT: HOW IT WORKS (NEURAL PIPELINE) OVERRIDES
   ========================================================================= */
.neural-section.light-section {
  border-top: none;
  padding-top: 6rem;
}

.light-section .neural-header p.subtitle {
  color: var(--light-muted);
}

.light-section .neural-track-bg {
  background: var(--light-border);
}

.light-section .track-node {
  background: var(--light-bg);
  border-color: var(--light-border);
}

.light-section .track-node.is-active {
  background: var(--teal);
  border-color: var(--light-text);
}

.light-section .neural-card {
  background: var(--light-surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.light-section .neural-card.is-active {
  border-color: var(--teal-on-light);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 151, 178, 0.3);
}

.light-section .neural-card.is-passed {
  opacity: 0;
}

.light-section .nc-number {
  -webkit-text-stroke-color: var(--light-border);
}

.light-section .neural-card.is-active .nc-number {
  color: var(--teal-on-light);
  text-shadow: none;
}

.light-section .nc-timing {
  color: var(--teal-on-light);
}

.light-section .nc-content h3 {
  color: var(--light-text);
}

.light-section .nc-content p {
  color: var(--light-muted);
}

/* =========================================================================
   LIGHT: ABOUT OVERRIDES
   ========================================================================= */
#about.light-section {
  border-top: none;
}

#about.light-section .about-blob {
  display: none;
}

.light-section .about-card {
  background: var(--light-surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

.light-section .about-card:hover {
  border-color: var(--teal-on-light);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.1);
}

.light-section .about-card:hover .spotlight {
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(0, 151, 178, 0.04), transparent 40%);
}

.light-section .glass-badge {
  color: var(--teal-on-light);
  background: rgba(0, 151, 178, 0.08);
  border-color: rgba(0, 151, 178, 0.25);
}

.light-section .main-story .story-text {
  color: var(--light-muted);
}

.light-section .main-story .story-text.accent {
  color: var(--light-text);
}

.light-section .founder-info h3 {
  color: var(--light-text);
}

.light-section .founder-role {
  color: var(--teal-on-light);
}

.light-section .founder-avatar {
  background: rgba(0, 151, 178, 0.06);
  border-color: rgba(0, 151, 178, 0.25);
  box-shadow: inset 0 0 20px rgba(0, 151, 178, 0.1), 0 0 20px rgba(0, 151, 178, 0.1);
}

.light-section .founder-avatar svg {
  stroke: var(--teal-on-light);
}

.light-section .hud-spin circle {
  stroke: rgba(0, 151, 178, 0.2);
}

.light-section .status-text {
  color: #16A34A;
}

.light-section .tech-pattern {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

.light-section .scan-bar {
  background: linear-gradient(90deg, transparent, rgba(0, 151, 178, 0.15), transparent);
}

.light-section .waveform-svg path {
  stroke: rgba(0, 151, 178, 0.2);
}

.light-section .core-tech h4 {
  color: var(--light-text);
}

.light-section .core-tech p {
  color: var(--light-muted);
}

/* =========================================================================
   LIGHT: FAQ OVERRIDES
   ========================================================================= */
.light-section .faq-item {
  border-bottom-color: var(--light-border);
  border-left-color: transparent;
}

.light-section .faq-item.active {
  border-left-color: var(--teal-on-light);
  background: rgba(0, 151, 178, 0.03);
}

.light-section .faq-question {
  color: var(--light-text);
}

.light-section .faq-question .icon {
  color: var(--teal-on-light);
}

.light-section .faq-answer p {
  color: var(--light-muted);
}

/* =========================================================================
   ADAPTIVE NAVBAR (GLASS TINT SWAP)
   ========================================================================= */
#navbar.on-light .nav-container {
  background: rgba(245, 245, 247, 0.65);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#navbar.on-light.scrolled .nav-container {
  background: rgba(245, 245, 247, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#navbar.on-light .nav-link {
  color: var(--light-muted);
}

#navbar.on-light .nav-link:hover {
  color: #0A0F1E;
  background: linear-gradient(90deg, #00D4FF 0%, #3B82F6 100%);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

#navbar.on-light .nav-wordmark {
  color: var(--light-text);
}

#navbar.on-light .nav-logo {
  filter: invert(1) hue-rotate(180deg);
}

#navbar.on-light .nav-center {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.04);
}

#navbar.on-light .hamburger span {
  background: var(--light-text);
}

/* Light section teal-gradient override */
.light-section .teal-gradient {
  background: linear-gradient(90deg, #0097B2 0%, #2563EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Light section button adjustments */
.light-section .btn-primary {
  background: linear-gradient(90deg, #0097B2 0%, #2563EB 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 151, 178, 0.25);
}

.light-section .btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 151, 178, 0.4);
}

/* End Configuration */
