/* ==========================================================================
   CARBON BLACK - ULTRA-MINIMAL LUXURY TECH DESIGN SYSTEM
   ========================================================================== */

:root {
  --bg-pure-black: #000000;
  --bg-card: #050505;
  --bg-card-hover: #0a0a0a;
  --border-color: #1a1a1a;
  --border-hover: #333333;
  --accent-silver: #ffffff;
  --accent-gray: #a3a3a3;
  --accent-dim: #525252;
  --glow-soft: rgba(255, 255, 255, 0.03);
  --glow-strong: rgba(255, 255, 255, 0.12);
  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Roboto Mono", monospace;
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none; /* Custom premium cursor active globally */
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-pure-black);
  color: var(--accent-gray);
  font-family: var(--font-display);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-pure-black);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--accent-silver);
  font-weight: 700;
  letter-spacing: -0.03em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Immersive 3D Grid & Atmospheric Overlays */
.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(26, 26, 26, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 26, 26, 0.4) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  transform: perspective(1000px) rotateX(60deg) translateY(-30%) scale(2);
  transform-origin: top center;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
  animation: gridScroll 120s linear infinite;
}

@keyframes gridScroll {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 5000px;
  }
}

.vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    transparent 20%,
    rgba(0, 0, 0, 0.95) 100%
  );
  pointer-events: none;
  z-index: 3;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3 AtemplateFilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 2;
}

/* Premium Custom Cursor */
.custom-cursor {
  width: 8px;
  height: 8px;
  background-color: var(--accent-silver);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition:
    width 0.2s,
    height 0.2s;
}

.custom-cursor-glow {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  transition:
    transform 0.1s cubic-bezier(0.1, 0.8, 0.3, 1),
    width 0.3s,
    height 0.3s;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-pure-black);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader-logo {
  width: 80px;
  height: auto;
  margin-bottom: 24px;
  filter: brightness(0) invert(1);
  opacity: 0;
  transform: scale(0.85);
  animation: preloaderBloom 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.preloader-text {
  font-family: var(--font-mono);
  color: var(--accent-dim);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

@keyframes preloaderBloom {
  0% {
    opacity: 0;
    transform: scale(0.85);
    filter: brightness(0) invert(1) drop-shadow(0 0 0px rgba(255, 255, 255, 0));
  }
  50% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(0) invert(1)
      drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(0) invert(1)
      drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
  }
}

/* Layout Containers */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 10;
}

/* Premium Header styling */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: var(--transition-smooth);
}

.logo-link:hover .logo {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-gray);
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-silver);
  transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-silver);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Sound and Custom Elements */
.sound-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-silver);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sound-toggle:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  transition: var(--transition-spring);
}

.btn-primary {
  background-color: var(--accent-silver);
  color: var(--bg-pure-black);
  border: 1px solid var(--accent-silver);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-silver);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-silver);
  background-color: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

/* Section Common Styles */
.section {
  padding: 140px 0;
  position: relative;
  z-index: 10;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-dim);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  display: block;
  margin-bottom: 20px;
}

.section-title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 30px;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--accent-gray);
  max-width: 600px;
  margin-bottom: 50px;
}

/* Hero Section with 3D elements */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 150px;
  overflow: hidden;
}

.hero-grid-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 5rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
}

.hero-subtitle-mono {
  font-family: var(--font-mono);
  color: var(--accent-dim);
  font-size: 0.9rem;
  margin-bottom: 24px;
  display: block;
}

.hero-3d-scene {
  position: relative;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.hero-geometry {
  width: 240px;
  height: 240px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: absolute;
  transform-style: preserve-3d;
  animation: geometryRotate 20s linear infinite;
}

.hero-geometry-inner {
  width: 140px;
  height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: absolute;
  transform-style: preserve-3d;
  animation: geometryRotateInner 12s linear infinite reverse;
}

@keyframes geometryRotate {
  0% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
  }
}

@keyframes geometryRotateInner {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(-360deg) rotateY(360deg);
  }
}

/* Marquee Results Ticker */
.marquee-ticker {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
  overflow: hidden;
  position: relative;
}

.marquee-wrapper {
  display: flex;
  width: max-content;
  animation: marqueeShift 30s linear infinite;
}

.marquee-item {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-silver);
  margin-right: 80px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.marquee-item span {
  color: var(--accent-dim);
}

@keyframes marqueeShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Services and Industry Filter */
.industry-selector-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.industry-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--accent-gray);
  padding: 10px 24px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.industry-btn:hover,
.industry-btn.active {
  border-color: var(--accent-silver);
  color: var(--accent-silver);
  background-color: rgba(255, 255, 255, 0.02);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 30px;
}

.service-card-3d-wrapper {
  perspective: 1000px;
  height: 380px;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-3d-wrapper:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  padding: 40px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.service-card-back {
  transform: rotateY(180deg);
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #0d0d0d;
}

.service-icon-box {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background-color: var(--bg-pure-black);
  color: var(--accent-silver);
  font-size: 1.5rem;
  margin-bottom: 40px;
}

.service-card-front h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service-card-front p {
  font-size: 0.9rem;
  color: var(--accent-gray);
  line-height: 1.7;
}

/* Campaign Goal Matcher Questionnaire */
.matcher-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.matcher-wizard-step {
  display: none;
  animation: fadeReveal 0.6s ease forwards;
}

.matcher-wizard-step.active {
  display: block;
}

.matcher-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.matcher-option-card {
  border: 1px solid var(--border-color);
  background-color: var(--bg-pure-black);
  padding: 30px;
  text-align: center;
  transition: var(--transition-smooth);
}

.matcher-option-card:hover {
  border-color: var(--accent-silver);
  background-color: var(--bg-card-hover);
}

.matcher-option-card.selected {
  border-color: var(--accent-silver);
  background-color: rgba(255, 255, 255, 0.05);
}

.matcher-option-card i {
  font-size: 2rem;
  color: var(--accent-silver);
  margin-bottom: 20px;
}

.matcher-option-card h4 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.matcher-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  align-items: center;
}

.matcher-progress-bar {
  width: 200px;
  height: 2px;
  background-color: var(--border-color);
  position: relative;
}

.matcher-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 33.3%;
  background-color: var(--accent-silver);
  transition: var(--transition-smooth);
}

/* Animated KPI Dashboard */
.kpi-section {
  background-color: var(--bg-pure-black);
}

.kpi-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.kpi-visualizer {
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.kpi-bar-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kpi-label-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.kpi-bar-track {
  width: 100%;
  height: 4px;
  background-color: var(--border-color);
  position: relative;
}

.kpi-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: var(--accent-silver);
  transition: width 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.kpi-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.stat-card {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 30px;
}

.stat-card-num {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-silver);
  margin-bottom: 15px;
  font-feature-settings: "tnum";
}

.stat-card-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Before/After Campaign Slider */
.ba-slider-container {
  width: 100%;
  height: 550px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.ba-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-silver);
  text-transform: uppercase;
  user-select: none;
}

.ba-before {
  background-color: #030303;
  z-index: 1;
}

.ba-after {
  background-color: #ffffff;
  color: #000000;
  z-index: 2;
  width: 50%; /* Adjusted dynamically by JS */
}

.ba-after-text {
  position: absolute;
  width: 100%;
  text-align: center;
}

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: var(--accent-silver);
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background-color: var(--bg-pure-black);
  border: 1px solid var(--accent-silver);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-silver);
  font-size: 0.85rem;
  pointer-events: auto;
}

/* ROI Calculator */
.roi-calculator-box {
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  padding: 60px;
}

.roi-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.slider-group label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent-silver);
  display: flex;
  justify-content: space-between;
}

.slider-group input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  outline: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--accent-silver);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-group input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.roi-output-panel {
  background-color: var(--bg-pure-black);
  border: 1px solid var(--border-color);
  padding: 40px;
  text-align: center;
}

.roi-value {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-silver);
  margin-bottom: 10px;
  font-feature-settings: "tnum";
}

/* Process Section Morph & Elements */
.process-timeline {
  position: relative;
  padding-left: 50px;
}

.process-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background-color: var(--border-color);
}

.process-step {
  position: relative;
  padding-bottom: 60px;
}

.process-step-node {
  position: absolute;
  left: -55px;
  top: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: var(--bg-pure-black);
  border: 1px solid var(--accent-silver);
  transition: var(--transition-smooth);
}

.process-step:hover .process-step-node {
  background-color: var(--accent-silver);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.process-step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-dim);
  margin-bottom: 10px;
  display: block;
}

.process-step h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Testimonials Deck */
.testimonials-deck {
  height: 350px;
  position: relative;
  perspective: 1000px;
}

.testimonial-card-premium {
  position: absolute;
  width: 100%;
  max-width: 650px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 50px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: var(--transition-spring);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.testimonial-quote {
  font-size: 1.25rem;
  color: var(--accent-silver);
  margin-bottom: 40px;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #222;
}

.testimonial-author-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.testimonial-author-info p {
  font-size: 0.8rem;
  color: var(--accent-dim);
}

/* Testimonial Controls */
.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.testimonial-ctrl-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--accent-silver);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.testimonial-ctrl-btn:hover {
  border-color: var(--accent-silver);
  background-color: var(--bg-card-hover);
}

/* CTA with Vortex Background */
.cta-vortex-section {
  position: relative;
  padding: 180px 0;
  overflow: hidden;
  text-align: center;
}

.vortex-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.15;
  pointer-events: none;
}

.cta-vortex-content {
  position: relative;
  z-index: 10;
}

/* Dynamic Forms */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.form-group input,
.form-group textarea,
.form-group select {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px;
  color: var(--accent-silver);
  font-family: var(--font-display);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-silver);
  background-color: var(--bg-card-hover);
}

/* AI Chat Widget styling */
.ai-chat-launcher {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent-silver);
  color: var(--bg-pure-black);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  z-index: 998;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
  transition: var(--transition-spring);
  visibility: hidden; /* Displayed after delay */
  opacity: 0;
}

.ai-chat-launcher.visible {
  visibility: visible;
  opacity: 1;
}

.ai-chat-launcher:hover {
  transform: scale(1.1);
}

.ai-chat-window {
  position: fixed;
  bottom: 120px;
  right: 40px;
  width: 380px;
  height: 500px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  z-index: 998;
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-spring);
}

.ai-chat-window.active {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ai-chat-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-chat-header h3 {
  font-size: 1rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.ai-chat-close {
  background: transparent;
  border: none;
  color: var(--accent-dim);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ai-chat-close:hover {
  color: var(--accent-silver);
}

.ai-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-message {
  max-width: 80%;
  padding: 12px 16px;
  font-size: 0.85rem;
}

.chat-message.ai {
  background-color: var(--bg-pure-black);
  border: 1px solid var(--border-color);
  color: var(--accent-silver);
  align-self: flex-start;
}

.chat-message.user {
  background-color: var(--accent-silver);
  color: var(--bg-pure-black);
  align-self: flex-end;
}

.ai-chat-options {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-color);
}

.chat-option-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--accent-gray);
  padding: 10px;
  font-size: 0.75rem;
  text-align: left;
  transition: var(--transition-smooth);
}

.chat-option-btn:hover {
  border-color: var(--accent-silver);
  color: var(--accent-silver);
}

/* Success Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 50px;
  text-align: center;
  max-width: 450px;
  transform: scale(0.9);
  transition: var(--transition-spring);
}

.popup.active {
  display: flex;
}

.popup.active .popup-content {
  transform: scale(1);
}

.popup-icon {
  font-size: 3rem;
  color: var(--accent-silver);
  margin-bottom: 24px;
}

/* Standard Inner Page Styles */
.page-header {
  padding: 180px 0 80px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 20px;
}

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-dim);
  display: flex;
  align-items: center;
  gap: 12px;
}

.breadcrumbs a {
  color: var(--accent-dim);
}

.breadcrumbs a:hover {
  color: var(--accent-silver);
}

.main-content {
  padding: 100px 0;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.8rem;
  margin-top: 50px;
  margin-bottom: 24px;
}

.legal-content p {
  color: var(--accent-gray);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* Universal Footer */
.footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-pure-black);
  padding: 100px 0 40px 0;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 80px;
}

.footer-logo {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 24px;
}

.footer-about-text {
  font-size: 0.9rem;
  color: var(--accent-dim);
  margin-bottom: 24px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-dim);
  transition: var(--transition-smooth);
}

.social-links a:hover {
  color: var(--accent-silver);
  border-color: var(--accent-silver);
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-silver);
  margin-bottom: 30px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col ul li {
  font-size: 0.9rem;
}

.footer-col ul li a {
  color: var(--accent-gray);
}

.footer-col ul li a:hover {
  color: var(--accent-silver);
}

.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--accent-gray);
}

.footer-contact ul li i {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--accent-dim);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-dim);
}

/* Animations */
@keyframes fadeReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Scaling */
@media (max-width: 1024px) {
  .hero-grid-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-3d-scene {
    display: none;
  }
  .hero-title {
    font-size: 3.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 20px;
  }
  .nav-menu {
    display: none; /* In production: can implement standard toggle fallback, menu items structured cleanly */
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .kpi-layout {
    grid-template-columns: 1fr;
  }
  .roi-form-grid {
    grid-template-columns: 1fr;
  }
}
