/* ==========================================================================
   MASTER STYLES - Anyport Customs Agency (Redesign Edition)
   ========================================================================== */

/* Design Variables & Brand Palette */
:root {
  --bg-dark: #07080d;
  --bg-card: rgba(15, 17, 28, 0.7);
  --bg-card-hover: rgba(22, 25, 44, 0.85);
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.3);
  --secondary: #06b6d4;
  --secondary-glow: rgba(6, 182, 212, 0.3);
  --accent: #d946ef;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.4);
  --font-sans: "Poppins", sans-serif;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Reset & Configuration */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Selection Glow */
::selection {
  background-color: var(--primary);
  color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient Background Canvas */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* Static Noise Texturing */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ==========================================================================
   HEADER / NAVIGATION (Master Synchronized Structure)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 8, 13, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.header.scrolled {
  padding: 8px 0;
  background: rgba(7, 8, 13, 0.9);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: invert(1);
  transition: var(--transition-bounce);
}

.logo:hover {
  transform: scale(1.05) rotate(-2deg);
}

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Master Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  border: none;
  background: transparent;
  color: var(--text-main);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 25px var(--primary-glow),
    0 0 10px var(--secondary-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.25),
    transparent
  );
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 102;
}

.mobile-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  position: absolute;
  transition: var(--transition-smooth);
}

.bar-top {
  top: 0;
}
.bar-middle {
  top: 11px;
}
.bar-bottom {
  bottom: 0;
}

.mobile-toggle[aria-expanded="true"] .bar-top {
  transform: translateY(11px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] .bar-middle {
  opacity: 0;
}
.mobile-toggle[aria-expanded="true"] .bar-bottom {
  transform: translateY(-11px) rotate(-45deg);
}

/* Mobile Nav Modal Override */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(7, 8, 13, 0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-nav a {
  color: var(--text-main);
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.mobile-nav a:hover {
  color: var(--primary);
}

/* ==========================================================================
   HOMEPAGE CONTENT & SECTIONS
   ========================================================================== */

/* Section Utility */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  color: var(--text-muted);
}

/* SECTION 1: 3D HERO AREA */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  overflow: hidden;
  perspective: 1000px;
}

.hero-grid-bg {
  position: absolute;
  width: 200%;
  height: 100%;
  top: 0;
  left: -50%;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: rotateX(60deg) translateY(-200px);
  z-index: -1;
  transform-origin: top center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-text {
  z-index: 2;
}

.smart-greeting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 24px;
}

.smart-greeting i {
  animation: spin 6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-title-wrapper {
  perspective: 1000px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  transform-style: preserve-3d;
}

.hero-title span {
  display: block;
  background: linear-gradient(135deg, #fff 30%, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span.accent {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 3D Visual Core Container */
.hero-visual-container {
  position: relative;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.hero-3d-scene {
  position: relative;
  width: 320px;
  height: 320px;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.glowing-core {
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(0);
  filter: blur(15px);
  border-radius: 50%;
  animation: corePulse 3s ease-in-out infinite alternate;
}

@keyframes corePulse {
  0% {
    transform: translate(-50%, -50%) translateZ(0) scale(0.9);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) translateZ(0) scale(1.2);
    opacity: 1;
  }
}

.orbit-ring {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateX(70deg) rotateY(15deg);
  transform-style: preserve-3d;
}

.orbiting-node {
  position: absolute;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  box-shadow: 0 0 15px var(--primary-glow);
  animation: orbit 12s linear infinite;
}

.node-1 {
  top: -22px;
  left: calc(50% - 22px);
  animation-delay: 0s;
}
.node-2 {
  bottom: -22px;
  left: calc(50% - 22px);
  animation-delay: -4s;
}
.node-3 {
  top: calc(50% - 22px);
  right: -22px;
  animation-delay: -8s;
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(130px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(130px) rotate(-360deg);
  }
}

/* SECTION 2: 3D SERVICES GRID (With flips) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.service-card-3d {
  perspective: 1200px;
  height: 380px;
  cursor: pointer;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card-3d:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  padding: 40px;
  border: 1px solid var(--border-color);
}

.service-card-front {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card-back {
  background: radial-gradient(circle at top right, #161930, var(--bg-dark));
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 24px;
}

.service-card-front h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card-front p {
  color: var(--text-muted);
}

.service-card-back h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}

.service-metrics {
  margin: 16px 0;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.metric-val {
  font-weight: 600;
  color: var(--secondary);
}

/* SECTION 3: INDUSTRY SELECTOR PANEL */
.industry-wrapper {
  background: rgba(10, 11, 20, 0.5);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  padding: 40px;
}

.industry-nav-chips {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.chip {
  padding: 10px 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-bounce);
}

.chip:hover,
.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.industry-display-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.industry-visual {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.industry-visual-icon {
  font-size: 5rem;
  color: var(--primary);
  opacity: 0.15;
  position: absolute;
  right: 20px;
  bottom: 20px;
}

/* SECTION 4: KPI DASHBOARD ACCELERATION */
.kpi-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.kpi-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition-smooth);
}

.kpi-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.kpi-num {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kpi-label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Custom Visual Interactive Chart Widget */
.chart-widget {
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  padding: 40px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.chart-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.chart-timeline {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.time-btn {
  padding: 6px 16px;
  border-radius: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 500;
}

.time-btn.active {
  background: var(--primary);
  color: #fff;
}

.visual-chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 250px;
  padding-top: 30px;
  position: relative;
}

.chart-grid-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.line-1 {
  bottom: 0%;
}
.line-2 {
  bottom: 25%;
}
.line-3 {
  bottom: 50%;
}
.line-4 {
  bottom: 75%;
}
.line-5 {
  bottom: 100%;
}

.chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 12%;
  z-index: 2;
}

.chart-bar-fill {
  width: 100%;
  background: linear-gradient(to top, var(--primary), var(--secondary));
  border-radius: 8px 8px 0 0;
  transition: height 1s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.chart-bar-fill:hover {
  filter: brightness(1.2);
}

.chart-month {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 12px;
}

/* SECTION 5: INTERACTIVE ROI VISUALIZER */
.roi-calculator-wrapper {
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  padding: 45px;
}

.roi-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.calculator-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calculator-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.label-main {
  font-weight: 600;
  font-size: 1.1rem;
}
.label-value {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.3rem;
}

.custom-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-glow);
  transition: var(--transition-bounce);
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.roi-outputs {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.output-stat-block {
  text-align: center;
}

.output-lbl {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.output-val {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--secondary);
}

.output-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.mini-stat {
  text-align: center;
}
.mini-stat-val {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

/* SECTION 6: INTERACTIVE CAMPAIGN GOAL MATCHER */
.matcher-wizard {
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  padding: 40px;
}

.step-indicator {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.indicator-dot.active {
  background: var(--primary);
}

.matcher-panel {
  display: none;
}

.matcher-panel.active {
  display: block;
}

.goals-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.goal-card-option {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-bounce);
}

.goal-card-option:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.goal-card-option.selected {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.2),
    rgba(6, 182, 212, 0.2)
  );
  border-color: var(--secondary);
}

.goal-card-option i {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 16px;
}

.panel-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.wizard-footer-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

/* SECTION 7: VISUAL PROCESS TIMELINE */
.process-timeline {
  position: relative;
  padding-left: 40px;
}

.process-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.process-step-row {
  position: relative;
  margin-bottom: 60px;
}

.process-step-row:last-child {
  margin-bottom: 0;
}

.process-indicator-dot {
  position: absolute;
  left: -48px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--secondary);
}

.process-content-card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 30px;
}

.step-num {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--secondary);
  text-transform: uppercase;
}

/* SECTION 8: TESTIMONIAL STACK DECK */
.testimonial-deck-outer {
  height: 480px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-card-element {
  position: absolute;
  width: 100%;
  max-width: 550px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
  user-select: none;
  cursor: grab;
}

.testimonial-card-element:active {
  cursor: grabbing;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

/* SECTION 9: BEFORE & AFTER SLIDER */
.before-after-outer {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  height: 450px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.slide-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.panel-label {
  position: absolute;
  bottom: 20px;
  background: rgba(0, 0, 0, 0.7);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.panel-label.before {
  left: 20px;
  color: var(--accent);
}
.panel-label.after {
  right: 20px;
  color: var(--secondary);
}

.slider-compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #fff;
  left: 50%;
  cursor: ew-resize;
  z-index: 10;
}

.slider-compare-handle::before {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}

/* SECTION 10: STATISTICS TICKER */
.high-velocity-ticker {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  animation: tickerRun 25s linear infinite;
}

@keyframes tickerRun {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: 60px;
  font-size: 1.2rem;
  font-weight: 700;
}

.ticker-item i {
  color: var(--secondary);
}

/* SECTION 11: CONTACT CTA & INBOUND FORM */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.contact-info-panel {
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.contact-method {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.method-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.3rem;
}

.method-details h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.method-details p,
.method-details a {
  color: var(--text-muted);
  text-decoration: none;
}

.contact-form-wrapper {
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  padding: 45px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  color: #fff;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
   AI CHAT WIDGET
   ========================================================================== */
.ai-widget-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ai-widget-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: var(--transition-bounce);
}

.ai-widget-trigger:hover {
  transform: scale(1.1);
}

.ai-chat-window {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 360px;
  height: 480px;
  background: #0f111c;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.ai-chat-window.open {
  display: flex;
}

.ai-chat-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-meta h4 {
  font-size: 1rem;
  font-weight: 700;
}

.ai-meta span {
  font-size: 0.75rem;
  opacity: 0.8;
}

.close-chat-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
}

.ai-chat-body {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  max-width: 80%;
  font-size: 0.9rem;
}

.chat-bubble.bot {
  background: rgba(255, 255, 255, 0.05);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  background: var(--primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.ai-chat-input-row {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
}

.ai-chat-input-row input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 10px 20px;
  color: #fff;
  outline: none;
}

.ai-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: #fff;
  cursor: pointer;
}

/* ==========================================================================
   FOOTER (Master Synchronized Structure)
   ========================================================================== */
.footer {
  background-color: #030407;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 30px 0;
  position: relative;
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-logo {
  height: 44px;
  filter: invert(1);
  margin-bottom: 24px;
}

.footer-about-text {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-bounce);
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-col-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-col ul a:hover {
  color: var(--text-main);
}

.footer-contact .contact-info li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-muted);
}

.footer-contact .contact-info i {
  color: var(--primary);
  margin-top: 4px;
}

.footer-contact .contact-info a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  text-align: center;
  color: var(--text-muted);
}

/* ==========================================================================
   SUBPAGES / LEGAL STYLING
   ========================================================================== */
.subpage {
  background-color: var(--bg-dark);
}

.page-header {
  padding: 160px 0 60px 0;
  background: radial-gradient(
    circle at center,
    rgba(99, 102, 241, 0.08) 0%,
    transparent 70%
  );
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}

.legal-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 40px 0 20px 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.legal-content ul {
  margin-left: 24px;
  margin-bottom: 24px;
}

/* Popup Successful State */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 8, 13, 0.9);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.popup:target {
  display: flex;
}

.popup-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 50px;
  max-width: 450px;
  text-align: center;
  position: relative;
}

.popup-icon {
  font-size: 4rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
}

/* ==========================================================================
   RESPONSIVE LAYOUTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .hero-visual-container {
    display: none;
  }
  .industry-display-grid {
    grid-template-columns: 1fr;
  }
  .roi-layout {
    grid-template-columns: 1fr;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .section-title {
    font-size: 2rem;
  }
  .hero-title {
    font-size: 3rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}
