/* ==========================================================================
   CSS Custom Properties & Galactic Theme
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;800;900&family=Nunito+Sans:wght@300;400;600;700&display=swap');

:root {
  /* Galactic Dark Theme */
  --bg-deep: #090a0f;
  --bg-surface: #12141d;
  --bg-surface-light: #1b1e2b;
  --bg-glass: rgba(27, 30, 43, 0.6);

  /* Electric Accents */
  --cyan: #00f2fe;
  --cyan-glow: rgba(0, 242, 254, 0.4);
  --purple: #7f00ff;
  --purple-glow: rgba(127, 0, 255, 0.4);

  --text-main: #ffffff;
  --text-muted: #8d95af;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-neon: rgba(0, 242, 254, 0.3);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;

  /* Dimensions & Timing */
  --header-height: 85px;
  --transition-fast: 0.25s ease;
  --transition-smooth: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   Reset & Base Setup
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-surface-light);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

::selection {
  background: var(--purple);
  color: #fff;
}

/* ==========================================================================
   Global Utilities & Layout Elements
   ========================================================================== */
.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

.section-padding {
  padding: 8rem 0;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.section-title span {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 4rem;
}

/* Gradient Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
}

.btn-primary {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  color: #fff;
  box-shadow: 0 10px 20px var(--purple-glow);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px var(--cyan-glow);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--cyan);
  box-shadow: inset 0 0 0 0 var(--cyan);
}

.btn-outline:hover {
  box-shadow: inset 0 0 20px 0 var(--cyan);
  color: #fff;
}

/* ==========================================================================
   Animations & Reveal Classes
   ========================================================================== */
@keyframes nebulaFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translate(5vw, -5vh) scale(1.1) rotate(5deg);
  }
}

@keyframes dataStream {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 1000px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Strict Site Header (Consistent Across All Pages)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(9, 10, 15, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: var(--transition-fast);
}

.site-header.scrolled {
  height: 70px;
  background: rgba(9, 10, 15, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--border-neon);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.header-logo img {
  height: 55px;
  transition: var(--transition-fast);
}

.header-nav ul {
  display: flex;
  gap: 2.5rem;
}

.header-nav a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.header-nav a:hover {
  color: var(--text-main);
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: var(--transition-smooth);
}

.header-nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.mobile-menu-btn span {
  width: 32px;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section (Animated Nebula & Data Grid)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: var(--bg-deep);
}

.hero-nebula {
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 60%);
  top: -20%;
  right: -10%;
  filter: blur(80px);
  animation: nebulaFloat 20s infinite alternate ease-in-out;
  z-index: -1;
}

.hero-nebula-2 {
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 60%);
  bottom: -20%;
  left: -10%;
  filter: blur(80px);
  animation: nebulaFloat 25s infinite alternate-reverse ease-in-out;
  z-index: -1;
}

.hero-data-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(1000px) rotateX(60deg) translateY(-100px) translateZ(-200px);
  animation: dataStream 20s linear infinite;
  z-index: -1;
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-neon);
  border-radius: 50px;
  color: var(--cyan);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15);
}

.hero-content h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.hero-content h1 span {
  background: linear-gradient(to right, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* ==========================================================================
   Metrics Section (Number Counters)
   ========================================================================== */
.metrics-section {
  background: linear-gradient(180deg, transparent 0%, var(--bg-surface) 100%);
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-light);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.metric-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.metric-card:hover {
  border-color: var(--cyan);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--cyan-glow);
}

.m-val {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.m-label {
  color: var(--text-muted);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   Services Grid (3D Isometric Cards)
   ========================================================================== */
.services-section {
  background: var(--bg-surface);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  perspective: 1500px;
}

.svc-card {
  background: var(--bg-surface-light);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 3rem 2rem;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1;
}

/* 3D Inner Elements */
.svc-card>* {
  transform: translateZ(30px);
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(127, 0, 255, 0.1));
  border-radius: 16px;
  opacity: 0;
  transition: var(--transition-smooth);
  transform: translateZ(0);
  z-index: -1;
}

.svc-icon {
  width: 70px;
  height: 70px;
  background: var(--bg-deep);
  border: 1px solid var(--border-neon);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.svc-icon svg {
  width: 35px;
  height: 35px;
  fill: currentColor;
}

.svc-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.svc-card p {
  color: var(--text-muted);
}

/* ==========================================================================
   Industry Matrix (Interactive Glass Tabs)
   ========================================================================== */
.industry-section {
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4IiBoZWlnaHQ9IjgiPgo8cmVjdCB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSIjMTIxNDFkIj48L3JlY3Q+CjxwYXRoIGQ9Ik0wLDBMODgsOFpNMiw4TDgsMloiIHN0cm9rZT0iIzFiMWUyYiIgc3Ryb2tlLXdpZHRoPSIxIj48L3BhdGg+Cjwvc3ZnPg==');
}

.ind-container {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 4rem;
}

.ind-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.ind-tab {
  padding: 1rem 2rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.ind-tab.active,
.ind-tab:hover {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-color: transparent;
  box-shadow: 0 5px 15px var(--purple-glow);
}

.ind-content {
  display: none;
  animation: revealTab 0.5s ease-out forwards;
}

@keyframes revealTab {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.ind-content.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ind-text h3 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--cyan);
}

.ind-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.ind-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 15px;
}

.ind-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--purple);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--purple);
}

.ind-visual {
  height: 350px;
  background: var(--bg-surface-light);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ind-visual svg {
  width: 150px;
  height: 150px;
  fill: var(--cyan);
  opacity: 0.3;
}

/* ==========================================================================
   ROI Calculator (Neumorphic sliders)
   ========================================================================== */
.calc-section {
  background: var(--bg-deep);
}

.calc-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
}

.calc-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 3rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calc-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.calc-top span:last-child {
  color: var(--cyan);
  font-weight: bold;
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  background: var(--bg-deep);
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  margin-top: -9px;
  box-shadow: 0 0 15px var(--cyan-glow);
  border: 2px solid #fff;
}

.calc-result-panel {
  background: linear-gradient(135deg, var(--bg-surface-light) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--border-neon);
  border-radius: 20px;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 242, 254, 0.05);
}

.res-item p {
  color: var(--text-muted);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.res-item h4 {
  font-size: 4rem;
  color: #fff;
  text-shadow: 0 0 20px var(--cyan-glow);
  line-height: 1;
}

/* ==========================================================================
   Campaign Reports (3D Isometric Bars)
   ========================================================================== */
.reports-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.chart-container {
  background: var(--bg-deep);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 3rem;
  height: 450px;
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  position: relative;
}

.y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-bottom: 30px;
  color: var(--text-muted);
  font-family: var(--font-body);
  border-right: 1px dashed var(--border-light);
  padding-right: 15px;
}

.x-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: calc(100% - 30px);
}

.bar-col {
  width: 10%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

/* Fake 3D Cylinder/Bar */
.bar-3d {
  width: 100%;
  background: linear-gradient(to right, var(--purple), var(--cyan));
  border-radius: 5px 5px 0 0;
  height: 0;
  /* JS Animated */
  transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
}

.bar-3d::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px 5px 0 0;
}

.bar-3d:hover {
  filter: brightness(1.3);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.bar-lbl {
  position: absolute;
  bottom: -35px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.bar-tooltip {
  position: absolute;
  top: -45px;
  background: var(--text-main);
  color: var(--bg-deep);
  padding: 5px 12px;
  border-radius: 4px;
  font-weight: bold;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
}

.bar-3d:hover .bar-tooltip {
  opacity: 1;
  transform: translateY(-5px);
}

/* ==========================================================================
   Process Timeline (Curved SVG path logic simulated via CSS borders)
   ========================================================================== */
.timeline-section {
  background: var(--bg-deep);
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.timeline-grid::after {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  z-index: 0;
}

.tl-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 80px;
}

.tl-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: var(--bg-surface);
  border: 2px solid var(--cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), inset 0 0 15px var(--cyan-glow);
}

.tl-step h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.tl-step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Testimonials (Horizontal Scroll Snap)
   ========================================================================== */
.test-section {
  background: var(--bg-surface);
  overflow: hidden;
}

.test-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 2rem;
}

.test-slider::-webkit-scrollbar {
  height: 6px;
}

.test-card {
  min-width: 400px;
  background: var(--bg-surface-light);
  border: 1px solid var(--border-light);
  padding: 3rem;
  border-radius: 16px;
  scroll-snap-align: center;
  flex-shrink: 0;
}

.tc-quote {
  font-size: 1.1rem;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.tc-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.tc-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.tc-name h4 {
  font-size: 1.1rem;
  margin: 0;
}

.tc-name span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   Contact CTA
   ========================================================================== */
.contact-section {
  background: linear-gradient(0deg, var(--bg-deep) 0%, var(--bg-surface) 100%);
  border-top: 1px solid var(--border-light);
}

.contact-wrapper {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-neon);
  border-radius: 20px;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cw-text h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cw-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.cw-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  font-size: 1.1rem;
}

.cw-list svg {
  width: 24px;
  height: 24px;
  fill: var(--cyan);
}

.c-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.f-grp {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.f-grp label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.f-ctrl {
  background: var(--bg-deep);
  border: 1px solid var(--border-light);
  padding: 1rem;
  color: var(--text-main);
  border-radius: 8px;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.f-ctrl:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-glow);
}

textarea.f-ctrl {
  min-height: 150px;
  resize: vertical;
}

/* ==========================================================================
   Live Chat Widget
   ========================================================================== */
.chat-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

.chat-btn {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 50%;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px var(--purple-glow);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-btn:hover {
  transform: scale(1.1);
}

.chat-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.chat-box {
  position: absolute;
  bottom: 85px;
  right: 0;
  width: 350px;
  height: 480px;
  background: var(--bg-surface);
  border: 1px solid var(--border-neon);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

.chat-box.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.cb-head {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  padding: 1.2rem;
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
}

.cb-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.cb-body {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-deep);
}

.msg {
  max-width: 85%;
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

.msg.bot {
  background: var(--bg-surface-light);
  color: var(--text-main);
  border-bottom-left-radius: 0;
}

.msg.user {
  background: var(--purple);
  color: #fff;
  border-bottom-right-radius: 0;
  align-self: flex-end;
}

.cb-foot {
  padding: 1rem;
  display: flex;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
}

.cb-foot input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-body);
  outline: none;
}

.cb-foot button {
  background: none;
  border: none;
  color: var(--cyan);
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
}

/* ==========================================================================
   Legal Pages Styling
   ========================================================================== */
.legal-header {
  padding-top: calc(var(--header-height) + 6rem);
  margin-bottom: 4rem;
  text-align: center;
}

.legal-box {
  background: var(--bg-surface);
  padding: 5rem;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  margin-bottom: 6rem;
}

.legal-box h2 {
  color: var(--cyan);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.legal-box h2:first-child {
  margin-top: 0;
}

.legal-box p,
.legal-box ul {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.legal-box ul {
  padding-left: 2.5rem;
  list-style: disc;
}

/* ==========================================================================
   Strict Site Footer (Consistent Across All Pages)
   ========================================================================== */
.site-footer {
  background: #050608;
  border-top: 1px solid var(--border-light);
  padding: 6rem 0 2rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.ft-brand img {
  height: 45px;
  margin-bottom: 2rem;
}

.ft-brand p {
  color: var(--text-muted);
  max-width: 350px;
  font-size: 1rem;
}

.ft-title {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ft-links li {
  margin-bottom: 1rem;
}

.ft-links a {
  color: var(--text-muted);
}

.ft-links a:hover {
  color: var(--cyan);
  padding-left: 8px;
}

.ft-contact li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.ft-contact svg {
  width: 22px;
  height: 22px;
  fill: var(--purple);
  flex-shrink: 0;
}

.foot-bottom {
  text-align: center;
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Queries
   ========================================================================== */
@media(max-width: 1100px) {

  .calc-grid,
  .contact-wrapper,
  .ind-content.active {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .test-card {
    min-width: 320px;
  }

  .timeline-grid::after {
    display: none;
  }
}

@media(max-width: 768px) {
  .header-nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-deep);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
  }

  .header-nav.active {
    left: 0;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .metrics-grid,
  .timeline-grid,
  .foot-grid,
  .f-row {
    grid-template-columns: 1fr;
  }

  .legal-box {
    padding: 2.5rem;
  }

  .contact-wrapper {
    padding: 2.5rem;
  }

  .ind-visual {
    display: none;
  }
}