/* ==========================================================================
   CSS RESET & CORE VARIABLES
   ========================================================================== */
:root {
  --bg-primary: #07090e;
  --bg-secondary: #0d111a;
  --bg-card: rgba(18, 24, 38, 0.7);
  --bg-card-hover: rgba(26, 34, 54, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.4);

  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.5);
  --secondary: #06b6d4;
  --accent: #ec4899;
  --success: #10b981;
  --warning: #f59e0b;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --font-main: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Grid Pattern */
.background-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image:
    radial-gradient(
      circle at 15% 15%,
      rgba(99, 102, 241, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 85% 85%,
      rgba(6, 182, 212, 0.06) 0%,
      transparent 40%
    ),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    60px 60px,
    60px 60px;
  z-index: -1;
  pointer-events: none;
}

/* Container & Global Typography */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6.5rem 0;
}

.text-center {
  text-align: center;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    var(--primary) 50%,
    var(--secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  padding: 0.35rem 1rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 50px;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 60px;
  height: 60px;
  border: 3px solid var(--border-glass);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-inner {
  width: 40px;
  height: 40px;
  border: 3px solid transparent;
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.6s infinite linear reverse;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   BUTTONS & CTAS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.65);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.25rem 0;
}

.header.scrolled {
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.85rem 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 60px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger .bar {
  width: 25px;
  height: 2px;
  background-color: #ffffff;
  transition: var(--transition);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  overflow: hidden;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-tag span.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.75rem;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-visual {
  position: relative;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  height: 480px;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: var(--shadow-glass);
}

.hero-main-card {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2rem;
  z-index: 2;
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.card-dots {
  display: flex;
  gap: 6px;
}

.card-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.card-dots span:nth-child(1) {
  background: #ef4444;
}
.card-dots span:nth-child(2) {
  background: #f59e0b;
}
.card-dots span:nth-child(3) {
  background: #10b981;
}

.card-pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border-radius: 20px;
  font-weight: 600;
}

.card-chart-placeholder {
  height: 180px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 1.25rem;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--primary), var(--secondary));
  border-radius: 4px 4px 0 0;
  transition: var(--transition);
}

.hero-badge-float {
  position: absolute;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 3;
  animation: float 4s ease-in-out infinite alternate;
}

.badge-1 {
  top: 5%;
  right: -5%;
}

.badge-2 {
  bottom: 5%;
  left: -5%;
  animation-delay: 2s;
}

.badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.badge-1 .badge-icon {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary);
}
.badge-2 .badge-icon {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-15px);
  }
}

/* ==========================================================================
   PARTNER TICKER
   ========================================================================== */
.ticker-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: rgba(13, 17, 26, 0.5);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: calc(250px * 12);
  animation: scrollTicker 25s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-dim);
  font-size: 1.15rem;
  font-weight: 700;
}

.ticker-item i {
  font-size: 1.5rem;
  color: var(--text-muted);
}

@keyframes scrollTicker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 6));
  }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(99, 102, 241, 0.12),
    transparent 40%
  );
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.75rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 20px var(--primary-glow);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  margin-bottom: 1.75rem;
}

.service-features li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features li i {
  color: var(--secondary);
  font-size: 0.8rem;
}

/* ==========================================================================
   ROI CALCULATOR (INTERACTIVE FEATURE 1)
   ========================================================================== */
.calculator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glass);
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.calc-input-group label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.calc-input-group label span {
  color: var(--secondary);
  font-size: 1.1rem;
}

.range-slider {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px var(--primary-glow);
  cursor: pointer;
}

.calc-results {
  background: rgba(13, 17, 26, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.calc-results::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.result-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.result-val {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.result-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
}

.breakdown-item h4 {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
}

.breakdown-item p {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary);
}

/* ==========================================================================
   REPORT PREVIEW SECTION (INTERACTIVE FEATURE 2)
   ========================================================================== */
.report-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-glass);
}

.report-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(13, 17, 26, 0.6);
  border-bottom: 1px solid var(--border-glass);
}

.report-tabs {
  display: flex;
  gap: 1rem;
}

.report-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: var(--transition);
}

.report-tab-btn.active,
.report-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.report-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem;
}

.metric-card {
  background: rgba(13, 17, 26, 0.5);
  border: 1px solid var(--border-glass);
  padding: 1.5rem;
  border-radius: 14px;
}

.metric-card span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.metric-card h3 {
  font-size: 1.85rem;
  margin: 0.4rem 0;
  color: #ffffff;
}

.trend-badge {
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--success);
}

.trend-badge.up {
  color: var(--success);
}

.report-chart-container {
  padding: 0 2rem 2.5rem 2rem;
}

.custom-chart-bar-group {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  height: 220px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 10px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.bar-fill {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(
    180deg,
    var(--primary) 0%,
    rgba(99, 102, 241, 0.2) 100%
  );
  transition: height 1s ease;
}

.bar-label {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================================================
   INDUSTRY SOLUTIONS
   ========================================================================== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 2rem;
  border-radius: 16px;
  transition: var(--transition);
}

.industry-card:hover {
  border-color: var(--secondary);
  transform: translateY(-5px);
}

.industry-card i {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 1.25rem;
}

.industry-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.industry-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PROCESS SECTION
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 2.5rem 1.75rem;
  border-radius: 18px;
  position: relative;
}

.step-num {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  color: #ffffff;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rating-stars {
  color: #fbbf24;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.testimonial-card p {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2rem;
}

.client-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.client-info h4 {
  font-size: 1rem;
  color: #ffffff;
}

.client-info span {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==========================================================================
   CONSULTATION / QUOTE FORM
   ========================================================================== */
.consultation-wrapper {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(6, 182, 212, 0.05) 100%
  );
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  padding: 4rem 3rem;
}

.consult-form {
  max-width: 800px;
  margin: 2.5rem auto 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.95rem 1.25rem;
  background: rgba(13, 17, 26, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  background: rgba(18, 24, 38, 0.95);
}

/* ==========================================================================
   FOOTER (100% IDENTICAL SITE-WIDE)
   ========================================================================== */
.footer {
  background: #04060a;
  border-top: 1px solid var(--border-glass);
  padding: 5rem 0 2rem 0;
  position: relative;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-about .footer-logo img {
  height: 60px;
  filter: brightness(0) invert(1);
  margin-bottom: 1.25rem;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h3::after,
.footer-contact h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 25px;
  height: 2px;
  background: var(--primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-contact ul {
  list-style: none;
}

.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-contact ul li i {
  color: var(--primary);
  margin-top: 4px;
}

.footer-contact ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact ul li a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-legal a {
  color: var(--text-dim);
  text-decoration: none;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: #ffffff;
}

/* ==========================================================================
   BACK TO TOP & LIVE CHAT WIDGET
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: rgba(18, 24, 38, 0.8);
  border: 1px solid var(--border-glass);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 990;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.chat-widget {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 999;
}

.chat-button {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: var(--transition);
}

.chat-button .fa-times {
  display: none;
}

.chat-widget.open .chat-button .fa-comments {
  display: none;
}

.chat-widget.open .chat-button .fa-times {
  display: block;
}

.chat-popup {
  position: absolute;
  bottom: 70px;
  left: 0;
  width: 320px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-glass);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.chat-widget.open .chat-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-header {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  padding: 1.25rem;
  color: #ffffff;
}

.chat-header h3 {
  font-size: 1rem;
  margin: 0;
}

.chat-header p {
  font-size: 0.75rem;
  opacity: 0.85;
}

.chat-body {
  padding: 1.25rem;
  max-height: 200px;
  overflow-y: auto;
}

.chat-message.received {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1rem;
  border-radius: 12px 12px 12px 0;
  font-size: 0.85rem;
  color: var(--text-main);
}

.chat-footer {
  display: flex;
  border-top: 1px solid var(--border-glass);
  padding: 0.75rem;
}

.chat-footer input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
}

.chat-footer button {
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 0.5rem;
}

/* ==========================================================================
   INNER / LEGAL / CONTACT PAGES STYLING
   ========================================================================== */
.page-header {
  padding: 10rem 0 4rem 0;
  text-align: center;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(99, 102, 241, 0.15),
    transparent 70%
  );
  border-bottom: 1px solid var(--border-glass);
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.legal-content .content-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 3.5rem;
  backdrop-filter: blur(16px);
}

.legal-content h3 {
  font-size: 1.4rem;
  margin: 2rem 0 0.85rem 0;
  color: #ffffff;
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
}

.legal-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-content ul li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-page-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3.5rem;
  margin-top: 3rem;
}

.contact-info-block {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-info-item .info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info-item .info-text h4 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.contact-info-item .info-text p,
.contact-info-item .info-text p a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.contact-form-block {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 3rem;
}

/* Modal Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.popup.show {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  max-width: 450px;
  position: relative;
}

.popup-icon i {
  font-size: 3.5rem;
  color: var(--success);
  margin-bottom: 1.25rem;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dim);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATION
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 992px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    margin: 0 auto 2.25rem auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .calculator-box {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-page-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: rgba(13, 17, 26, 0.98);
    backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
    border-left: 1px solid var(--border-glass);
  }

  .nav-menu.open {
    right: 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .report-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
