/* ==========================================================================
   THE BACK DOOR MARKETING CLUB - AWWARDS LEVEL CSS (Light Theme)
   ========================================================================== */

/* --- 1. CSS VARIABLES & RESET --- */
:root {
  /* Colors - Premium Light Theme */
  --bg-color: #f8f9fa;
  --surface-color: #ffffff;
  --surface-alt: #f1f3f5;
  --text-primary: #1a1d20;
  --text-secondary: #495057;
  --text-muted: #868e96;

  /* Brand Accents */
  --accent-primary: #4f46e5; /* Indigo */
  --accent-hover: #4338ca;
  --accent-secondary: #f43f5e; /* Coral/Rose */

  /* Dark contrast for Footer/Specific sections */
  --dark-bg: #0b0f19;
  --dark-surface: #131a2a;
  --dark-text: #f8f9fa;
  --dark-text-muted: #adb5bd;

  /* Typography */
  --font-heading: "Syne", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Fluid Typography Clamps */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --text-4xl: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 6rem);

  /* Spacing */
  --space-2xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
  --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
  --space-sm: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --space-md: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --space-lg: clamp(2rem, 1.6rem + 2vw, 3rem);
  --space-xl: clamp(3rem, 2.4rem + 3vw, 4rem);
  --space-2xl: clamp(4rem, 3.2rem + 4vw, 6rem);
  --section-pad: clamp(5rem, 8vw, 10rem);

  /* Utils */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-float: 0 30px 60px rgba(79, 70, 229, 0.15);

  /* Easing */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
  --trans-fast: 0.3s var(--ease-out-expo);
  --trans-med: 0.6s var(--ease-out-expo);
  --trans-slow: 1.2s var(--ease-out-expo);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: initial; /* Handled by JS for smoothness if needed, but native is fine */
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* Custom cursor */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: inherit;
  cursor: none;
}

ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.narrow-container {
  max-width: 800px;
}
.section-padding {
  padding: var(--section-pad) 0;
}
.center {
  text-align: center;
}
.text-center {
  text-align: center;
}
.mb-4 {
  margin-bottom: var(--space-lg);
}
.mt-4 {
  margin-top: var(--space-lg);
}

/* --- 2. CUSTOM CURSOR --- */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-primary);
}
.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(79, 70, 229, 0.4);
  transition:
    width 0.3s,
    height 0.3s,
    background-color 0.3s;
}
body:hover .cursor-outline.hover {
  width: 60px;
  height: 60px;
  background-color: rgba(79, 70, 229, 0.1);
  border-color: transparent;
}

/* --- 3. TYPOGRAPHY & UTILS --- */
.text-gradient {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.large-text {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: 1.5;
}

.dark-bg {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}
.dark-bg h1,
.dark-bg h2,
.dark-bg h3,
.light-text {
  color: var(--dark-text);
}
.dark-bg p {
  color: var(--dark-text-muted);
}

/* --- 4. BUTTONS & LINKS --- */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-sm);
  position: relative;
  overflow: hidden;
  transition: var(--trans-fast);
  z-index: 1;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--surface-color);
  border: none;
}

.btn-primary .btn-circle {
  position: absolute;
  width: 150%;
  padding-bottom: 150%;
  background-color: var(--accent-primary);
  border-radius: 50%;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 0);
  transition: transform 0.5s var(--ease-out-expo);
  z-index: -1;
}

.btn-primary:hover {
  color: #fff;
}
.btn-primary:hover .btn-circle {
  transform: translate(-50%, -50%);
}

.btn-primary.large {
  padding: 1.25rem 2.5rem;
  font-size: var(--text-base);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
}
.btn-secondary:hover {
  background-color: var(--text-primary);
  color: var(--surface-color);
}

.link-hover {
  position: relative;
  display: inline-block;
  font-weight: 500;
  color: inherit;
}
.link-hover::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}
.link-hover:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* --- 5. UNIVERSAL HEADER --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-sm) 0;
  z-index: 1000;
  transition: var(--trans-fast);
  /* For logo contrast against light bg */
  background: rgba(248, 249, 250, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header.scrolled {
  padding: clamp(0.5rem, 1vw, 1rem) 0;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo img {
  height: 40px;
  width: auto;
  /* If logo is white, invert it or drop shadow. Assuming standard here, filtering if needed */
  filter: brightness(0.1);
}
.brand-logo .logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-xl);
  letter-spacing: -0.03em;
}

.main-nav .nav-list {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.nav-link::before {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  left: 0;
  color: var(--accent-primary);
  transition: top 0.3s var(--ease-out-expo);
}
.nav-link:hover {
  color: transparent;
}
.nav-link:hover::before {
  top: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: none;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1002;
}
.hamburger {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: var(--trans-fast);
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  left: 0;
  transition: var(--trans-fast);
}
.hamburger::before {
  top: -8px;
}
.hamburger::after {
  top: 8px;
}

/* Mobile Menu */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--surface-color);
  z-index: 1001;
  clip-path: circle(0% at 100% 0);
  transition: clip-path 0.8s var(--ease-in-out-circ);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-overlay.active {
  clip-path: circle(150% at 100% 0);
}
.mobile-menu-inner {
  text-align: center;
}
.mobile-nav-list li {
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--trans-med);
}
.mobile-menu-overlay.active .mobile-nav-list li {
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav-list a {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
}
.mobile-contact-info {
  margin-top: var(--space-xl);
  color: var(--text-muted);
}

/* --- 6. HERO SECTION --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(80px + var(--space-xl));
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.subtitle-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--accent-primary);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-xs);
  margin-bottom: var(--space-md);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.hero-title {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-md);
}

.hero-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 80%;
  margin-bottom: var(--space-lg);
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* 3D Visual in Hero */
.hero-visual {
  position: relative;
  height: 500px;
  perspective: 1000px;
}

.cube-container {
  width: 200px;
  height: 200px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 20s infinite linear;
}
.face {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent-primary);
  box-shadow: inset 0 0 20px rgba(79, 70, 229, 0.2);
}
.front {
  transform: translateZ(100px);
}
.back {
  transform: rotateY(180deg) translateZ(100px);
}
.right {
  transform: rotateY(90deg) translateZ(100px);
}
.left {
  transform: rotateY(-90deg) translateZ(100px);
}
.top {
  transform: rotateX(90deg) translateZ(100px);
}
.bottom {
  transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotateCube {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

.floating-card {
  position: absolute;
  background: var(--surface-color);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.top-left {
  top: 10%;
  left: 0;
}
.bottom-right {
  bottom: 10%;
  right: 0;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-primary);
}
.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes float1 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
@keyframes float2 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(20px);
  }
}
.float-anim-1 {
  animation: float1 6s ease-in-out infinite;
}
.float-anim-2 {
  animation: float2 8s ease-in-out infinite;
}

/* --- 7. MARQUEE SECTION --- */
.marquee-section {
  background: var(--accent-primary);
  color: var(--surface-color);
  padding: var(--space-sm) 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}
.marquee-inner {
  display: flex;
  animation: marquee 30s linear infinite;
}
.marquee-inner span {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  padding-right: 50px;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- 8. ABOUT / SPLIT LAYOUT --- */
.layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}
.section-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}
.feature-list {
  margin-top: var(--space-lg);
}
.feature-list li {
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}
.bullet {
  width: 12px;
  height: 12px;
  background: var(--accent-secondary);
  border-radius: 50%;
}

/* --- 9. SERVICES GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.service-card {
  background: var(--dark-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--trans-med);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(79, 70, 229, 0.1),
    transparent 50%
  );
  opacity: 0;
  transition: var(--trans-med);
}
.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(79, 70, 229, 0.3);
}
.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
}
.service-icon svg {
  width: 30px;
  height: 30px;
}
.service-card h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}
.service-card p {
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
}
.service-link {
  color: var(--accent-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.service-link span {
  transition: transform 0.3s;
}
.service-card:hover .service-link span {
  transform: translateX(5px);
}

/* --- 10. DASHBOARD PREVIEW --- */
.dashboard-mockup {
  margin-top: var(--space-xl);
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.dash-header {
  background: var(--surface-alt);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.dash-dots {
  display: flex;
  gap: 6px;
}
.dash-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
}
.dash-dots span:nth-child(1) {
  background: #f87171;
}
.dash-dots span:nth-child(2) {
  background: #fbbf24;
}
.dash-dots span:nth-child(3) {
  background: #34d399;
}
.dash-title {
  font-weight: 600;
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.dash-body {
  padding: var(--space-lg);
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
.dash-widget {
  background: var(--surface-alt);
  padding: var(--space-md);
  border-radius: var(--radius-md);
}
.dash-widget.full-width {
  grid-column: 1 / -1;
}
.dash-widget h4 {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  font-family: var(--font-body);
}
.counter,
.cpa-value {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
}
.trend.down {
  color: #10b981;
  font-size: var(--text-xs);
  font-weight: 600;
  margin-top: 8px;
}

/* Chart SVG */
.chart-line {
  width: 100%;
  height: 60px;
  margin-top: 10px;
}
.chart-line path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 2s ease-out;
}
.dash-widget.is-inview .chart-line path {
  stroke-dashoffset: 0;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.bar-row .label {
  width: 80px;
  font-size: var(--text-xs);
  font-weight: 600;
}
.bar-track {
  flex-grow: 1;
  height: 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  transition: width 1.5s ease-out;
}
.dash-widget.is-inview .bar-fill {
  /* Widths are inline style */
}
.bar-row .pct {
  width: 40px;
  font-size: var(--text-xs);
  text-align: right;
  font-weight: 600;
}

/* --- 11. INDUSTRY STICKY --- */
.layout-sticky {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
.sticky-left {
  position: sticky;
  top: 120px;
}
.industry-item {
  padding: var(--space-xl);
  background: var(--surface-color);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.02);
}
.ind-num {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: rgba(79, 70, 229, 0.1);
  position: absolute;
  top: 20px;
  right: 30px;
}
.industry-item h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

/* --- 12. CALCULATOR --- */
.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  background: var(--dark-surface);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
}
.calc-group {
  margin-bottom: var(--space-lg);
}
.calc-group label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--dark-text);
  font-size: var(--text-base);
}
.calc-group label span {
  color: var(--accent-primary);
}

/* Custom Range Input */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: var(--accent-primary);
  cursor: pointer;
  margin-top: -10px;
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
  border: 2px solid #fff;
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.calc-results {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.res-box {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  flex: 1;
}
.res-box h5 {
  font-family: var(--font-body);
  color: var(--dark-text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.res-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--dark-text);
}
.res-number.highlight {
  color: var(--accent-secondary);
}

/* --- 13. TESTIMONIALS --- */
.testimonial-slider {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding: var(--space-md) 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.testimonial-slider::-webkit-scrollbar {
  display: none;
}
.test-card {
  flex: 0 0 calc(50% - 1rem);
  min-width: 300px;
  scroll-snap-align: center;
  background: var(--surface-color);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.quote-mark {
  font-family: var(--font-heading);
  font-size: 8rem;
  color: rgba(79, 70, 229, 0.1);
  position: absolute;
  top: -20px;
  left: 20px;
  line-height: 1;
}
.test-text {
  font-size: var(--text-lg);
  font-style: italic;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}
.test-author strong {
  display: block;
  font-size: var(--text-base);
  color: var(--text-primary);
}
.test-author span {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* --- 14. PRE-FOOTER CTA --- */
.cta-container {
  background: var(--accent-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  color: var(--surface-color);
  position: relative;
  overflow: hidden;
}
.cta-container h2 {
  font-size: var(--text-4xl);
  color: #fff;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 2;
}
.cta-container p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
  opacity: 0.9;
  position: relative;
  z-index: 2;
}
.cta-btn {
  background: #fff;
  color: var(--accent-primary);
  position: relative;
  z-index: 2;
}
.cta-btn:hover {
  color: #fff;
}
.cta-btn .btn-circle {
  background: var(--text-primary);
}
.bg-shape {
  position: absolute;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  top: -300px;
  right: -100px;
  z-index: 1;
  pointer-events: none;
}

/* --- 15. UNIVERSAL FOOTER --- */
.site-footer {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: var(--space-2xl) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer-brand .logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: #fff;
}
.footer-brand img {
  filter: brightness(0) invert(1);
} /* Force white logo for dark footer */
.footer-desc {
  color: var(--dark-text-muted);
  margin: var(--space-sm) 0 var(--space-lg);
  max-width: 300px;
}
.social-links {
  display: flex;
  gap: 16px;
}
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--trans-fast);
}
.social-links a:hover {
  background: var(--accent-primary);
  transform: translateY(-3px);
}
.social-links svg {
  width: 18px;
  height: 18px;
}

.footer-title {
  font-size: var(--text-lg);
  color: #fff;
  margin-bottom: var(--space-md);
}
.footer-links-group ul li {
  margin-bottom: 12px;
}
.footer-links-group a {
  color: var(--dark-text-muted);
  transition: var(--trans-fast);
}
.footer-links-group a:hover {
  color: var(--accent-primary);
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--dark-text-muted);
}
.contact-details svg {
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  text-align: center;
  color: var(--dark-text-muted);
  font-size: var(--text-sm);
}

/* --- 16. CHAT WIDGET --- */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}
.chat-toggle {
  width: 60px;
  height: 60px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
  cursor: none;
  transition: transform 0.3s;
}
.chat-toggle svg {
  width: 28px;
  height: 28px;
}
.chat-toggle:hover {
  transform: scale(1.1);
}

/* --- 17. SUBPAGES (Contact, Legal) --- */
.subpage-main {
  padding-top: 120px;
}
.page-header-minimal {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--surface-color);
}

/* Contact Layout */
.contact-info-blocks {
  margin-top: var(--space-xl);
}
.info-block {
  display: flex;
  gap: 16px;
  margin-bottom: var(--space-md);
  align-items: center;
}
.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-icon svg {
  width: 24px;
  height: 24px;
}
.info-block h5 {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 500;
}

/* Form Styling */
.premium-form {
  background: var(--surface-color);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
.input-group {
  position: relative;
  margin-bottom: 8px;
}
.input-group.full-width {
  grid-column: 1 / -1;
}
.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: var(--trans-fast);
  color: var(--text-primary);
}
.input-group select {
  appearance: none;
  cursor: pointer;
}
.input-group textarea {
  resize: vertical;
  min-height: 120px;
}
.input-group label {
  position: absolute;
  top: 16px;
  left: 16px;
  color: var(--text-muted);
  transition: var(--trans-fast);
  pointer-events: none;
  font-size: var(--text-base);
}
.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
  top: -10px;
  left: 12px;
  font-size: 12px;
  background: #fff;
  padding: 0 4px;
  color: var(--accent-primary);
  font-weight: 600;
}
.select-group::after {
  content: "▼";
  position: absolute;
  right: 16px;
  top: 18px;
  font-size: 12px;
  color: var(--text-muted);
  pointer-events: none;
}
.submit-btn {
  width: 100%;
}

/* Legal Content styling */
.prose {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-secondary);
}
.prose h2 {
  font-size: var(--text-2xl);
  color: var(--text-primary);
  margin: var(--space-xl) 0 var(--space-sm);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.prose p {
  margin-bottom: var(--space-sm);
}
.prose ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
}
.prose ul li {
  list-style-type: disc;
  margin-bottom: 8px;
}

/* --- 18. ANIMATIONS & REVEALS --- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo);
}
.reveal-up.is-inview {
  opacity: 1;
  transform: translateY(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition:
    opacity 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo);
}
.reveal-scale.is-inview {
  opacity: 1;
  transform: scale(1);
}

.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}

/* --- 19. RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .hero-grid,
  .layout-split,
  .layout-sticky,
  .calc-wrapper {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    height: 400px;
    margin-top: var(--space-lg);
  }
  .sticky-left {
    position: static;
    margin-bottom: var(--space-lg);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav,
  .header-actions .btn-primary {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .services-grid,
  .dash-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .test-card {
    flex: 0 0 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-section {
    padding-top: 120px;
    text-align: center;
  }
  .hero-btns {
    justify-content: center;
  }
  .cursor-dot,
  .cursor-outline {
    display: none;
  } /* Disable custom cursor on mobile */
  body,
  a,
  button {
    cursor: auto;
  }
}
