:root {
  /* Colors */
  --bg-color: #050507;
  --fg-color: #ededee;
  --fg-muted: #8b8b90;
  --fg-dim: #444449;
  
  /* 7 Chakra Palette */
  --accent-white: #ffffff;
  --accent-violet: #6a4ec7;
  --accent-blue: #3b9ae0;
  --accent-green: #3be075;
  --accent-gold: #c79a4e;
  --accent-orange: #e06d3b;
  --accent-red: #e03b3b;
  
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(199, 154, 78, 0.12);
  
  /* Fonts */
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background-color: transparent;
  color: var(--fg-color);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  width: 100%;
}

/* WebGL Background Canvas */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 1; /* Always visible since it holds face plane too */
  background-color: var(--bg-color);
}

/* Interactive Cursor Glow Trailer */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(106, 78, 199, 0.02) 40%, rgba(0, 0, 0, 0) 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  transition: width 0.4s ease, height 0.4s ease, background 0.8s ease;
}

/* Lenis Smooth Scroll Recommended Styles */
html.lenis {
  height: auto;
}
.lenis-clean [data-lenis-prevent] {
  overflow: clip;
}
.lenis-clean iframe {
  pointer-events: none;
}

/* Scroll Container */
.scroll-wrapper {
  position: relative;
  width: 100%;
  z-index: 10;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 100;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.85) 0%, rgba(5, 5, 7, 0.4) 60%, rgba(5, 5, 7, 0) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: backdrop-filter 0.3s ease, background 0.3s ease;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg-color);
}

.logo img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg-muted);
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--fg-color);
}

/* Sections Structure */
.section {
  position: relative;
  width: 100%;
  min-height: 140vh; /* Spacious to match Active Theory scroll kinetics */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  justify-content: flex-start;
  padding-top: 150px;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.hero-text-block {
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 500;
}

.eyebrow-red {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
  margin-bottom: 8px;
  display: inline-block;
}

.main-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 7.5vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.main-title .highlight {
  font-weight: 500;
  color: var(--accent-gold);
}

.lead {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  color: var(--fg-muted);
  font-weight: 300;
  line-height: 1.65;
  max-width: 48ch;
}

.scroll-prompt {
  position: absolute;
  bottom: -40px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.bounce {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
  60% {
    transform: translateY(-3px);
  }
}

/* Capability Section (Editorial Asymmetric Layout) */
.capability-section {
  min-height: 140vh;
}

.split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.split-container.reverse {
  grid-template-columns: 1fr 1fr;
}

.split-container.reverse .text-panel {
  grid-column: 2;
  grid-row: 1;
}

.split-container.reverse .visual-panel-spacer {
  grid-column: 1;
  grid-row: 1;
}

.text-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 480px;
}

.node-indicator {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.node-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.node-lbl {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
}

/* 7 Chakra node indicator color selectors */
[data-node="1"] .node-dot { background-color: var(--accent-white); box-shadow: 0 0 12px var(--accent-white); }
[data-node="2"] .node-dot { background-color: var(--accent-violet); box-shadow: 0 0 12px var(--accent-violet); }
[data-node="3"] .node-dot { background-color: var(--accent-blue); box-shadow: 0 0 12px var(--accent-blue); }
[data-node="4"] .node-dot { background-color: var(--accent-green); box-shadow: 0 0 12px var(--accent-green); }
[data-node="5"] .node-dot { background-color: var(--accent-gold); box-shadow: 0 0 12px var(--accent-gold); }
[data-node="6"] .node-dot { background-color: var(--accent-orange); box-shadow: 0 0 12px var(--accent-orange); }
[data-node="7"] .node-dot { background-color: var(--accent-red); box-shadow: 0 0 12px var(--accent-red); }

.text-panel h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.description {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.65;
  font-weight: 300;
}

.tag-list {
  display: flex;
  gap: 12px;
  list-style: none;
  margin-top: 8px;
}

.tag-list li {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border: 1px solid var(--border-color);
  padding: 4px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

/* WebGL visual panel placeholder */
.visual-panel-spacer {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/5;
  pointer-events: none;
  position: relative;
}

/* GSAP Opacity Trigger Points */
.capability-section .text-panel {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Contact / CTA Section */
.contact-section {
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0) 0%, rgba(5, 5, 7, 0.98) 40%, #030304 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 40px;
}

.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  text-align: center;
}

.contact-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 640px;
}

.contact-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.contact-lead {
  font-size: 1.15rem;
  color: var(--fg-muted);
  font-weight: 300;
  line-height: 1.55;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 480px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--fg-color);
  transition: border-color 0.3s ease;
}

.contact-row:hover {
  border-color: var(--accent-gold);
}

.contact-label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.contact-value {
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 40px;
  font-size: 0.72rem;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 991px) {
  .split-container, 
  .split-container.reverse {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .split-container.reverse .text-panel {
    grid-column: 1;
    grid-row: 1;
  }

  .split-container.reverse .visual-panel-spacer {
    grid-column: 1;
    grid-row: 2;
  }
  
  .text-panel {
    max-width: 100%;
  }
  
  .visual-panel-spacer {
    max-width: 100%;
    aspect-ratio: 16/10;
  }
}

@media (max-width: 767px) {
  .header-inner {
    padding: 0 20px;
  }
  
  .nav {
    display: none;
  }
  
  .section {
    padding: 80px 20px;
    min-height: 100vh;
  }
  
  .hero-section {
    padding-top: 120px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}
