/* ==========================================================================
   CSS Custom Properties & Obsidian/Emerald Theme
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@400;600;700&display=swap');

:root {
  /* Obsidian & Emerald Growth Theme */
  --bg-dark: #050907;
  --bg-surface: #0a120e;
  --bg-surface-light: #111e17;
  --primary: #00ff88;
  --primary-dark: #00cc6a;
  --accent: #baff29;
  --text-main: #f0fdf4;
  --text-muted: #8ba99b;
  --border-color: #1a2e23;
  --glass-bg: rgba(10, 18, 14, 0.6);
  --glass-border: rgba(0, 255, 136, 0.2);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;

  /* Layout & Animation */
  --header-height: 85px;
  --transition-fast: 0.2s ease-out;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  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-dark);
  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: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-surface-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

::selection {
  background: var(--accent);
  color: #000;
}

/* ==========================================================================
   Utility Classes & Typography
   ========================================================================== */
.container {
  width: 90%;
  max-width: 1440px;
  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;
}

.section-title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 5rem;
}

/* 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;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.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: var(--transition-normal);
  z-index: -1;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(0, 255, 136, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gridMove {
  0% {
    transform: translateY(0) rotateX(60deg) rotateZ(0deg);
  }

  100% {
    transform: translateY(50px) rotateX(60deg) rotateZ(360deg);
  }
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.5;
    filter: blur(50px);
  }

  50% {
    opacity: 0.8;
    filter: blur(70px);
  }
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: var(--transition-slow);
}

.reveal.active {
  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(5, 9, 7, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  transition: var(--transition-normal);
}

.site-header.scrolled {
  height: 70px;
  background: rgba(5, 9, 7, 0.95);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.header-logo img {
  height: 55px;
  filter: brightness(0) invert(1);
  transition: var(--transition-fast);
}

.header-nav ul {
  display: flex;
  gap: 3rem;
}

.header-nav a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.header-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  transform: translateX(-50%) scale(0);
  transition: var(--transition-fast);
}

.header-nav a:hover {
  color: var(--primary);
}

.header-nav a:hover::before {
  transform: translateX(-50%) scale(1);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 35px;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section (Index Page)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 5rem);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(circle at center, var(--bg-surface) 0%, var(--bg-dark) 100%);
}

.hero-grid-3d {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(rgba(0, 255, 136, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: rotateX(60deg) rotateZ(0deg);
  transform-origin: center center;
  animation: gridMove 60s linear infinite;
  z-index: -1;
  opacity: 0.3;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 255, 136, 0.15) 0%, transparent 70%);
  animation: glowPulse 5s infinite;
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content h1 span {
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* ==========================================================================
   Client Marquee Section
   ========================================================================== */
.marquee-section {
  padding: 3rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.marquee-container {
  display: flex;
  width: 200%;
  animation: scrollMarquee 30s linear infinite;
}

.marquee-content {
  display: flex;
  width: 50%;
  justify-content: space-around;
  align-items: center;
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-muted);
  opacity: 0.5;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition-fast);
}

.marquee-item:hover {
  opacity: 1;
  color: var(--primary);
}

/* ==========================================================================
   Stats / About Section
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.stat-number {
  font-size: 4rem;
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 600;
}

/* ==========================================================================
   Dynamic Glowing Services Cards
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
}

/* Mouse-tracking glow setup via JS custom properties */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
      rgba(0, 255, 136, 0.15),
      transparent 40%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--primary);
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: #000;
  transform: scale(1.1);
}

.service-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.service-card p {
  color: var(--text-muted);
}

/* ==========================================================================
   Process Vertical Timeline Section
   ========================================================================== */
.timeline-section {
  background: var(--bg-surface);
  position: relative;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--border-color);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 4rem;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-content {
  width: 90%;
  background: var(--bg-surface-light);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 8px;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 2rem;
}

.timeline-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary);
  z-index: 2;
}

/* ==========================================================================
   Industry Tabs (Glassmorphic)
   ========================================================================== */
.industry-tabs {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 1rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 1px;
  transition: var(--transition-fast);
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.tab-content {
  display: none;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 4rem;
  animation: fadeInUp 0.4s ease;
}

.tab-content.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tab-content h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.tab-content ul li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tab-content ul li::before {
  content: '→';
  color: var(--accent);
  font-weight: bold;
}

.tab-visual {
  height: 300px;
  background: var(--bg-surface-light);
  border: 1px dashed var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-visual svg {
  width: 120px;
  height: 120px;
  fill: var(--primary);
  opacity: 0.2;
}

/* ==========================================================================
   ROI Calculator
   ========================================================================== */
.calculator-section {
  background: var(--bg-surface-light);
  position: relative;
  overflow: hidden;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 4rem;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.slider-group label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 1rem;
}

.slider-group span {
  color: var(--primary);
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  margin-top: -9px;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
  border: 2px solid #000;
}

.calc-results {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  padding: 3rem;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 8px;
  text-align: center;
}

.res-title {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.res-val {
  font-size: 4rem;
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

/* ==========================================================================
   Animated Campaign Reports (CSS Charts)
   ========================================================================== */
.chart-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem;
  height: 450px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-bottom: 40px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  padding-right: 20px;
  border-right: 1px solid var(--border-color);
}

.chart-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 100%;
  position: relative;
}

.bar-col {
  width: 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: calc(100% - 40px);
  position: relative;
}

.bar-fill {
  width: 100%;
  background: linear-gradient(to top, var(--primary-dark), var(--primary));
  border-radius: 4px 4px 0 0;
  height: 0;
  /* Animated by JS */
  transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
}

.bar-fill:hover {
  filter: brightness(1.3);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.bar-tooltip {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  padding: 5px 12px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9rem;
  opacity: 0;
  transition: var(--transition-fast);
  pointer-events: none;
}

.bar-fill:hover .bar-tooltip {
  opacity: 1;
}

.bar-label {
  position: absolute;
  bottom: -35px;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

/* ==========================================================================
   Testimonials Slider Alternative
   ========================================================================== */
.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.test-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: 8px;
  position: relative;
}

.test-quote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.test-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.03);
  font-family: serif;
  line-height: 1;
  z-index: 0;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.test-av {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 1.2rem;
}

/* ==========================================================================
   Contact / CTA & Form Styling
   ========================================================================== */
.cta-section {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-dark) 100%);
  border-top: 1px solid var(--border-color);
}

.form-box {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-surface-light);
  padding: 4rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-grp {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form-grp.full {
  grid-column: 1 / -1;
}

.form-grp label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 1.2rem;
  color: var(--text-main);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

textarea.form-input {
  resize: vertical;
  min-height: 150px;
}

/* ==========================================================================
   Live Chat Widget
   ========================================================================== */
.chat-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.chat-btn {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--primary);
  color: #000;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  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: 30px;
  height: 30px;
  fill: currentColor;
}

.chat-box {
  position: absolute;
  bottom: 85px;
  right: 0;
  width: 360px;
  height: 500px;
  background: var(--bg-surface-light);
  border: 1px solid var(--primary);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: var(--transition-normal);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.chat-box.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.chat-head {
  background: var(--primary);
  color: #000;
  padding: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-head h4 {
  margin: 0;
  font-size: 1.1rem;
}

.close-chat {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #000;
  cursor: pointer;
}

.chat-body {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.msg {
  max-width: 80%;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.msg.agent {
  background: var(--bg-dark);
  align-self: flex-start;
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 0;
}

.msg.user {
  background: var(--primary);
  color: #000;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

.chat-foot {
  display: flex;
  padding: 1rem;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
}

.chat-foot input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  outline: none;
}

.chat-foot button {
  background: transparent;
  border: none;
  color: var(--primary);
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
}

/* ==========================================================================
   Legal Pages Specific Styling
   ========================================================================== */
.legal-hero {
  padding-top: calc(var(--header-height) + 6rem);
  text-align: center;
  margin-bottom: 4rem;
}

.legal-box {
  background: var(--bg-surface);
  padding: 5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 5rem;
}

.legal-box h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.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: 2rem;
  list-style: square;
}

/* ==========================================================================
   Strict Site Footer (Consistent Across All Pages)
   ========================================================================== */
.site-footer {
  background: #020403;
  border-top: 1px solid var(--border-color);
  padding: 6rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.foot-brand img {
  height: 45px;
  margin-bottom: 2rem;
}

.foot-brand p {
  color: var(--text-muted);
  max-width: 350px;
}

.foot-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.foot-links li {
  margin-bottom: 1rem;
}

.foot-links a {
  color: var(--text-muted);
}

.foot-links a:hover {
  color: var(--primary);
  padding-left: 8px;
}

.foot-contact li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.foot-contact svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
  flex-shrink: 0;
}

.foot-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 4rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 40px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 80px;
    padding-right: 0;
  }

  .timeline-dot {
    left: 40px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin: 0;
    width: 100%;
  }
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .calc-grid,
  .tab-content.active {
    grid-template-columns: 1fr;
  }

  .tab-visual {
    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-surface);
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .header-nav.active {
    left: 0;
  }

  .header-nav ul {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .legal-box {
    padding: 2rem;
  }
}