/* ============================================================
   main.css — Adrise Digital Design System
   All CSS variables, base styles, utilities, animations
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- CSS Variables (Theme System — White Background Default) ---------- */
:root {
  /* Brand Palette from official logo */
  --brand-primary-raw: 46 113 125;
  --brand-accent-raw:  208 63 34;
  --brand-cyan-raw:    0 166 180;

  --brand-primary: #2E717D;       /* Brand teal from official logo */
  --brand-accent:  #D03F22;       /* Brand terracotta red from official logo */
  --brand-cyan:    #00A6B4;       /* Bright teal/cyan */

  /* Backgrounds — Clean, Bright, Premium White */
  --bg:        #FFFFFF;
  --surface:   #FFFFFF;
  --surface-2: #F8FAFC;
  --surface-3: #F1F5F9;

  /* Borders & Text */
  --border:    rgba(15, 23, 42, 0.08);
  --border-2:  rgba(15, 23, 42, 0.14);
  --text:      #0F172A;
  --muted:     #475569;
  --subtle:    #94A3B8;

  /* Glow & Shadows */
  --glow-primary: rgba(46,113,125,0.22);
  --glow-accent:  rgba(208,63,34,0.20);
  --glow-cyan:    rgba(0,166,180,0.22);
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --card-shadow-hover: 0 20px 35px -10px rgba(46, 113, 125, 0.14), 0 0 0 1px rgba(46, 113, 125, 0.2);

  /* Spacing */
  --section-py: 100px;
  --card-radius: 20px;
  --btn-radius: 50px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1);
  --t-fast: 0.15s;
  --t-med: 0.3s;
  --t-slow: 0.5s;

  /* Header */
  --header-h: 76px;
}

/* ---------- Dark Mode Variant ---------- */
[data-mode="dark"] {
  --bg:        #06141A;
  --surface:   #0C1F27;
  --surface-2: #112530;
  --surface-3: #162E3A;
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.12);
  --text:      #EAF4F6;
  --muted:     #8FA9B0;
  --subtle:    #4A6872;
  --glow-primary: rgba(46,113,125,0.35);
  --glow-accent:  rgba(208,63,34,0.35);
  --glow-cyan:    rgba(0,166,180,0.35);
  --card-shadow: 0 8px 32px rgba(0,0,0,0.3);
  --card-shadow-hover: 0 24px 64px rgba(0,0,0,0.5);
}

/* ---------- Theme Presets (Light Mode Compatible) ---------- */
[data-theme="indigo"] {
  --brand-primary: #4F46E5;
  --brand-accent:  #7C3AED;
  --brand-cyan:    #6366F1;
}

[data-theme="emerald"] {
  --brand-primary: #059669;
  --brand-accent:  #0891B2;
  --brand-cyan:    #10B981;
}

[data-theme="sunset"] {
  --brand-primary: #DC2626;
  --brand-accent:  #EA580C;
  --brand-cyan:    #FB923C;
}

/* ---------- Base Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: auto;
  transition: background-color 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; cursor: pointer; }

button, [role="button"], input[type="submit"], input[type="button"] { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }

.text-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ---------- Gradient Text ---------- */
.grad-text {
  background: linear-gradient(90deg, var(--brand-cyan) 0%, var(--brand-primary) 40%, var(--brand-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grad-text-rev {
  background: linear-gradient(90deg, var(--brand-accent) 0%, var(--brand-primary) 50%, var(--brand-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Section Utility ---------- */
section[id], .section[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.section {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

.section--sm { padding: 80px 0; }
.section--lg { padding: 160px 0; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide { max-width: 1440px; }
.container--narrow { max-width: 900px; }

/* ---------- Section Label ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  background: rgba(0,196,204,0.08);
  border: 1px solid rgba(0,196,204,0.2);
  border-radius: 50px;
  padding: 6px 16px;
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-cyan);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: var(--btn-radius);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all var(--t-med) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.touch-device .btn { cursor: pointer; }

.btn-primary {
  background: linear-gradient(135deg, #D03F22 0%, #EA580C 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 18px rgba(208, 63, 34, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(208, 63, 34, 0.45);
  transform: translateY(-2px);
  filter: brightness(1.06);
  color: #FFFFFF !important;
}

.btn-primary span { position: relative; z-index: 1; }

.btn-ghost {
  background: #FFFFFF;
  color: var(--text);
  border: 1.5px solid var(--border-2);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: #D03F22;
  color: #D03F22;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(208, 63, 34, 0.12);
}

[data-mode="dark"] .btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-color: var(--border-2);
}

[data-mode="dark"] .btn-ghost:hover {
  background: var(--surface);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
}

.btn-accent {
  background: linear-gradient(135deg, var(--brand-accent) 0%, #EA580C 100%);
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(208, 63, 34, 0.28);
}

.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(208, 63, 34, 0.4); }

.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 38px; font-size: 1.05rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: border-color var(--t-med) ease, box-shadow var(--t-med) ease, transform var(--t-med) var(--ease-out-expo);
  transform-style: preserve-3d;
  will-change: transform;
}

.card:hover { 
  transform: translateY(-4px); 
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(46, 113, 125, 0.25);
}

/* ---------- Background Utilities ---------- */
.bg-noise {
  position: relative;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

[data-mode="dark"] .bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
}

/* ---------- Glow Blobs ---------- */
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  will-change: transform;
  animation: aurora-drift 14s ease-in-out infinite alternate;
}

.aurora-blob--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(46, 113, 125, 0.12) 0%, transparent 70%);
  top: -200px; left: -200px;
  animation-delay: 0s;
}

.aurora-blob--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 166, 180, 0.10) 0%, transparent 70%);
  top: 100px; right: -150px;
  animation-delay: -4s;
}

.aurora-blob--3 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(208, 63, 34, 0.08) 0%, transparent 70%);
  bottom: -100px; left: 40%;
  animation-delay: -8s;
}

[data-mode="dark"] .aurora-blob--1 {
  background: radial-gradient(circle, rgba(46, 113, 125, 0.3) 0%, transparent 70%);
}
[data-mode="dark"] .aurora-blob--2 {
  background: radial-gradient(circle, rgba(0, 166, 180, 0.25) 0%, transparent 70%);
}
[data-mode="dark"] .aurora-blob--3 {
  background: radial-gradient(circle, rgba(208, 63, 34, 0.2) 0%, transparent 70%);
}

@keyframes aurora-drift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.05); }
  66%  { transform: translate(-20px, 20px) scale(0.97); }
  100% { transform: translate(30px, 40px) scale(1.03); }
}

@keyframes aurora-drift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.05); }
  66%  { transform: translate(-20px, 20px) scale(0.97); }
  100% { transform: translate(30px, 40px) scale(1.03); }
}

/* ---------- Scroll Progress Bar ---------- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-accent));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--brand-cyan);
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}

.preloader-logo {
  width: 160px;
  opacity: 0;
  transform: translateY(20px);
}

.preloader-bar {
  width: 200px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-accent));
  border-radius: 2px;
  transition: width 0.05s linear;
}

.preloader-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ---------- Pointer Elements ---------- */
#cursor-dot, #cursor-ring, #cursor-label, #cursor-spotlight {
  display: none !important;
}

/* ---------- Header ---------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: all var(--t-med) ease;
}

[data-mode="dark"] #site-header {
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 32px;
  max-width: 1440px;
  margin: 0 auto;
  gap: 20px;
}

/* Scrolled state */
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

[data-mode="dark"] #site-header.scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* Hide on scroll down */
#site-header.hide-header { transform: translateY(-100%); }

/* Header Left */
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.header-logo img { height: 42px; width: auto; max-width: 200px; object-fit: contain; }

.header-divider {
  width: 1px;
  height: 24px;
  background: rgba(15, 23, 42, 0.12);
  flex-shrink: 0;
}

[data-mode="dark"] .header-divider {
  background: rgba(255, 255, 255, 0.15);
}

/* Nav */
.header-nav { display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center; }

.nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 8px;
  position: relative;
  transition: color var(--t-fast) ease, background var(--t-fast) ease;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link .nav-icon {
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
}

.nav-icon-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.nav-link:hover, .nav-link.active, .nav-link--dropdown[aria-expanded="true"] {
  color: #D03F22;
  background: rgba(208, 63, 34, 0.05);
}

.nav-link--home.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #D03F22;
  border-radius: 2px;
}

.nav-link .chevron {
  width: 14px; height: 14px;
  margin-left: 2px;
  transition: transform var(--t-fast) ease;
}

.nav-item:hover .chevron,
.nav-link[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

/* Header right */
.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.btn-nav-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid #D03F22;
  color: #D03F22;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  background: transparent;
  transition: all var(--t-fast) ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-nav-outline:hover {
  background: rgba(208, 63, 34, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(208, 63, 34, 0.15);
}

.btn-nav-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: linear-gradient(135deg, #D03F22 0%, #EA580C 100%);
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 14px rgba(208, 63, 34, 0.28);
  transition: all var(--t-fast) ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-nav-solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(208, 63, 34, 0.4);
  filter: brightness(1.05);
}

/* Theme toggle */
.theme-toggle-btn {
  width: 36px; height: 36px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast) ease;
}

.theme-toggle-btn:hover {
  color: #D03F22;
  border-color: #D03F22;
  background: rgba(208, 63, 34, 0.06);
}

/* ---------- Hamburger Button ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--border-2);
  background: var(--surface-2);
  cursor: pointer;
  padding: 0;
  gap: 5px;
  position: relative;
  z-index: 1001;
  transition: all var(--t-fast) ease;
}

.hamburger:hover {
  background: rgba(208, 63, 34, 0.06);
  border-color: rgba(208, 63, 34, 0.3);
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, background 0.2s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--brand-accent);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--brand-accent);
}

.hamburger.open {
  border-color: rgba(208, 63, 34, 0.4);
  background: rgba(208, 63, 34, 0.08);
}

/* ---------- Mobile Menu Overlay / Drawer ---------- */
#mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 20px 100px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

#mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

[data-mode="dark"] #mobile-menu {
  background: #06141A;
  border-top-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.mobile-nav-group {
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--t-fast) ease;
}

.mobile-nav-group:focus-within {
  border-color: var(--brand-cyan);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all var(--t-fast) ease;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.mobile-nav-group .mobile-nav-link {
  background: transparent;
  border: none;
  border-radius: 0;
}

.mobile-nav-link:hover, .mobile-nav-link:active {
  color: var(--brand-accent);
  background: rgba(208, 63, 34, 0.05);
}

.mob-link-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mob-link-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(46, 113, 125, 0.08);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-mode="dark"] .mob-link-icon {
  background: rgba(0, 166, 180, 0.15);
  color: var(--brand-cyan);
}

.mob-chevron {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--muted);
  flex-shrink: 0;
}

.mobile-accordion-content {
  display: none;
  flex-direction: column;
  padding: 6px 10px 10px;
  gap: 4px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-accordion-content.open {
  display: flex;
}

.mobile-accordion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background var(--t-fast) ease, color var(--t-fast) ease;
}

.mobile-accordion-item:hover, .mobile-accordion-item:active {
  background: rgba(0, 166, 180, 0.08);
  color: var(--brand-primary);
}

.mobile-acc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-cyan);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.mobile-acc-title {
  flex: 1;
}

.mobile-acc-tag {
  font-size: 0.74rem;
  color: var(--brand-accent);
  font-weight: 700;
  background: rgba(208, 63, 34, 0.08);
  padding: 2px 8px;
  border-radius: 50px;
  white-space: nowrap;
}

.mobile-menu-cta {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ---------- Mega Menu Dropdown ---------- */
.mega-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.14);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  width: max-content;
  min-width: 780px;
  z-index: 1000;
}

[data-mode="dark"] .mega-dropdown {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.nav-item:hover .mega-dropdown,
.nav-item:focus-within .mega-dropdown,
.nav-link[aria-expanded="true"] ~ .mega-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* 3-Column Grid matching atnod */
.mega-grid-atnod {
  display: grid;
  grid-template-columns: 240px 240px 260px;
  gap: 20px;
  align-items: stretch;
}

.mega-column {
  display: flex;
  flex-direction: column;
}

.mega-column--mid {
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  padding-left: 20px;
}

[data-mode="dark"] .mega-column--mid {
  border-left-color: rgba(255, 255, 255, 0.08);
}

.mega-head {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-left: 4px;
}

.mega-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2, #334155);
  transition: all 0.15s ease;
  text-decoration: none;
}

[data-mode="dark"] .mega-row {
  color: #cbd5e1;
}

.mega-row:hover {
  background: rgba(15, 23, 42, 0.04);
  color: #D03F22;
  transform: translateX(2px);
}

[data-mode="dark"] .mega-row:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.mega-row-icon {
  font-size: 1rem;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mega-row-text {
  flex: 1;
  white-space: nowrap;
}

/* Badge Chips */
.badge-chip {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 50px;
  margin-left: auto;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.badge-chip--red {
  background: rgba(225, 29, 72, 0.1);
  color: #e11d48;
}

.badge-chip--teal {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
}

/* Promo Card in 3rd column */
.mega-column--promo {
  display: flex;
}

.mega-promo-card {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  border-radius: 12px;
  padding: 20px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mega-promo-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 3px 8px;
  border-radius: 50px;
  width: fit-content;
  margin-bottom: 12px;
}

.mega-promo-title {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.mega-promo-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 16px;
}

.mega-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  color: #0f172a !important;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: auto;
}

.mega-promo-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ---------- Mobile Menu ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  background: transparent;
  padding: 8px;
}

.touch-device .hamburger { cursor: pointer; }

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t-med) var(--ease-out-expo);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 100px 24px 40px;
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease-out-expo);
  overflow-y: auto;
}

#mobile-menu.open { transform: translateX(0); }

.mobile-nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--t-fast) ease;
}

.mobile-nav-link:hover { color: var(--brand-cyan); }

.mobile-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-med) ease;
}

.mobile-accordion-content.open { max-height: 600px; }

.mobile-accordion-item {
  padding: 12px 0 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-accordion-item:hover { color: var(--brand-cyan); }

.mobile-menu-cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Hero Section ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,196,204,0.06);
  border: 1px solid rgba(0,196,204,0.2);
  border-radius: 50px;
  padding: 8px 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-cyan);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-cyan);
  animation: pulse-dot 2s infinite;
}

.hero-h1 {
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 760px;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 52px;
}

.trust-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.trust-chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-cyan);
  flex-shrink: 0;
}

/* Hero Dashboard Mockup */
.hero-dashboard {
  position: relative;
  z-index: 2;
}

.dashboard-card {
  background: #FFFFFF;
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.12);
}

[data-mode="dark"] .dashboard-card {
  background: rgba(12,31,39,0.9);
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.dash-dot { width: 8px; height: 8px; border-radius: 50%; }
.dash-dot-red { background: #FF5F57; }
.dash-dot-yellow { background: #FEBC2E; }
.dash-dot-green { background: #28C840; }

.dashboard-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 4px;
}

/* Chart bars */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  margin-bottom: 16px;
}

.chart-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--brand-cyan) 0%, var(--brand-primary) 100%);
  opacity: 0.85;
  min-width: 8px;
  transition: height 1s ease, opacity 0.3s ease;
  animation: bar-grow 1.5s ease forwards;
}

.chart-bar:nth-child(even) {
  background: linear-gradient(180deg, var(--brand-accent) 0%, rgba(208,63,34,0.6) 100%);
}

@keyframes bar-grow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1); transform-origin: bottom; }
}

/* Lead notification */
.lead-notification {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  animation: slide-in 0.5s ease forwards;
  opacity: 0;
  transform: translateX(20px);
}

[data-mode="dark"] .lead-notification {
  background: rgba(0,196,204,0.06);
  border-color: rgba(0,196,204,0.15);
}

@keyframes slide-in {
  to { opacity: 1; transform: translateX(0); }
}

.lead-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.lead-info { flex: 1; min-width: 0; }
.lead-name { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.lead-service { font-size: 0.7rem; color: var(--muted); }

.lead-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: rgba(46,113,125,0.1);
  padding: 2px 8px;
  border-radius: 50px;
  white-space: nowrap;
}

/* ---------- Marquee ---------- */
.marquee-section {
  padding: 28px 0;
  overflow: hidden;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

.marquee-section:hover .marquee-track { animation-play-state: paused; }

.marquee-track--reverse { animation-direction: reverse; }

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 28px;
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  transition: color var(--t-fast) ease;
}

.marquee-item:hover { color: var(--brand-primary); }

.marquee-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-accent);
  opacity: 0.7;
}

/* ---------- Stats Strip ---------- */
.stats-strip {
  padding: 70px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.stat-item {
  background: var(--surface);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background var(--t-med) ease;
}

.stat-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  transition: width var(--t-med) ease;
}

.stat-item:hover::before { width: 80%; }

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.stat-sublabel { font-size: 0.82rem; color: var(--muted); }

/* ---------- Services Bento Grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card { grid-column: span 4; display: flex; }
.bento-card--large { grid-column: span 8; }
.bento-card--tall { grid-row: span 2; }
.bento-card--wide { grid-column: span 6; }

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 32px;
  width: 100%;
  min-height: 240px;
  border-radius: var(--card-radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  transition: all var(--t-med) var(--ease-out-expo);
}

.touch-device .service-card { cursor: pointer; }

.service-card:hover { 
  transform: translateY(-6px); 
  box-shadow: var(--card-shadow-hover); 
  border-color: var(--brand-primary); 
}

.service-icon {
  position: absolute;
  top: 24px; right: 24px;
  width: 50px; height: 50px;
  border-radius: 14px;
  background: rgba(46,113,125,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--brand-primary);
  transition: all var(--t-med) ease;
}

.service-card:hover .service-icon {
  background: var(--brand-primary);
  color: #fff;
  transform: scale(1.08) rotate(-4deg);
}

.service-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-cyan);
  margin-bottom: 12px;
}

.service-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 90%;
  margin-bottom: 24px;
}

.service-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(46,113,125,0.08);
  color: var(--brand-primary);
  font-size: 1.1rem;
  font-weight: 700;
  align-self: flex-start;
  transition: all var(--t-med) ease;
}

.service-card:hover .service-arrow { 
  background: var(--brand-primary);
  color: #fff;
  transform: translateX(4px); 
}

/* ---------- How It Works / Process Pipeline ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}

.process-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  transition: all var(--t-med) var(--ease-out-expo);
  position: relative;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.process-card:hover {
  transform: translateY(-6px);
  border-color: rgba(46, 113, 125, 0.35);
  box-shadow: 0 16px 36px -8px rgba(46, 113, 125, 0.14), 0 0 0 1px rgba(46, 113, 125, 0.18);
}

[data-mode="dark"] .process-card {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-mode="dark"] .process-card:hover {
  border-color: rgba(0, 166, 180, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 166, 180, 0.2);
}

.process-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.process-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-accent);
  background: rgba(208, 63, 34, 0.08);
  padding: 3px 10px;
  border-radius: 50px;
}

.process-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(46, 113, 125, 0.08);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-fast) ease, background var(--t-fast) ease, color var(--t-fast) ease;
}

.process-card:hover .process-step-icon {
  transform: scale(1.08);
  background: var(--brand-primary);
  color: #ffffff;
}

.process-step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.process-step-desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Portfolio Section ---------- */
.portfolio-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--muted);
  transition: all var(--t-fast) ease;
}

.touch-device .filter-btn { cursor: pointer; }

.filter-btn:hover,
.filter-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.portfolio-item {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: transform var(--t-med) var(--ease-out-expo), box-shadow var(--t-med) ease;
}

.touch-device .portfolio-item { cursor: pointer; }

.portfolio-item:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 24px 60px rgba(0,0,0,0.4); }

.portfolio-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) ease;
}

.portfolio-item:hover .portfolio-img { transform: scale(1.05); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,20,26,0.95) 0%, rgba(6,20,26,0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--t-med) ease;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: var(--surface-2);
  text-align: center;
  padding: 20px;
}

.placeholder-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-accent);
  background: rgba(196,51,16,0.1);
  border: 1px solid rgba(196,51,16,0.2);
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 4px;
}

/* ---------- Lightbox ---------- */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med) ease, visibility var(--t-med) ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#lightbox.open { opacity: 1; visibility: visible; }

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  overflow: hidden;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-close {
  position: fixed;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast) ease;
}

.touch-device .lightbox-close { cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-nav {
  position: fixed;
  top: 50%; 
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast) ease;
}

.touch-device .lightbox-nav { cursor: pointer; }
.lightbox-nav:hover { background: rgba(0,196,204,0.2); border-color: var(--brand-cyan); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ---------- Pricing Section ---------- */
.pricing-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  width: fit-content;
  margin-bottom: 52px;
}

.pricing-tab {
  padding: 10px 24px;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  transition: all var(--t-fast) ease;
  white-space: nowrap;
}

.touch-device .pricing-tab { cursor: pointer; }
.pricing-tab.active { background: var(--brand-primary); color: #fff; }
.pricing-tab:hover:not(.active) { color: var(--text); background: var(--surface-2); }

.pricing-panel {
  animation: panelFade 0.25s ease-out;
}

@keyframes panelFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: all var(--t-med) ease;
}

.pricing-card:hover { 
  transform: translateY(-6px); 
  box-shadow: var(--card-shadow-hover); 
  border-color: var(--brand-primary);
}

.pricing-card--popular {
  border-color: var(--brand-primary);
  background: var(--surface);
  box-shadow: 0 12px 36px -6px rgba(46, 113, 125, 0.16), 0 0 0 2px var(--brand-primary);
  transform: scale(1.02);
}

.pricing-card--popular:hover { 
  transform: scale(1.02) translateY(-6px); 
  box-shadow: 0 20px 48px -6px rgba(46, 113, 125, 0.24), 0 0 0 2px var(--brand-primary);
}

.popular-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-primary));
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-plan-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.pricing-goal {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.pricing-currency {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-cyan);
}

.pricing-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.pricing-features { 
  list-style: none; 
  display: flex; 
  flex-direction: column; 
  gap: 12px;
  flex: 1;
  margin-bottom: 28px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text);
}

.pricing-feature-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(0,196,204,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-cyan);
  flex-shrink: 0;
}

.pricing-cta { 
  width: 100%; 
  margin-top: auto; 
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center; 
}

.pricing-disclaimer {
  margin-top: 28px;
  padding: 16px 20px;
  background: rgba(196,51,16,0.05);
  border: 1px solid rgba(196,51,16,0.15);
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Why Choose Section ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.why-card {
  padding: 36px 28px;
  border-radius: var(--card-radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all var(--t-med) ease;
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-primary);
  box-shadow: var(--card-shadow-hover);
}

.why-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(46,113,125,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  margin: 0 auto 16px;
  transition: all var(--t-med) ease;
}

.why-icon svg,
.service-icon svg,
.timeline-step-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.why-card:hover .why-icon {
  background: var(--brand-primary);
  color: #fff;
  transform: scale(1.08);
}

.why-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.why-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* ---------- Testimonials ---------- */
.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform var(--t-slow) var(--ease-out-expo);
}

.testimonial-card {
  min-width: calc(33.333% - 16px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 32px;
  flex-shrink: 0;
  transition: border-color var(--t-med) ease;
}

.testimonial-card:hover { border-color: var(--brand-primary); }

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: #F59E0B;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.testimonial-role { font-size: 0.78rem; color: var(--muted); }
.testimonial-placeholder-note { font-size: 0.7rem; color: var(--subtle); margin-top: 4px; }

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.slider-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast) ease;
  font-size: 1rem;
}

.touch-device .slider-btn { cursor: pointer; }
.slider-btn:hover { border-color: var(--brand-cyan); color: var(--brand-cyan); background: rgba(0,196,204,0.08); }

.slider-dots {
  display: flex;
  gap: 6px;
}

.slider-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-2);
  transition: all var(--t-fast) ease;
}

.touch-device .slider-dot { cursor: pointer; }
.slider-dot.active { background: var(--brand-cyan); width: 20px; border-radius: 3px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color var(--t-fast) ease;
}

.faq-item.open { border-color: var(--brand-primary); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  gap: 16px;
  transition: color var(--t-fast) ease;
}

.touch-device .faq-question { cursor: pointer; }
.faq-item.open .faq-question { color: var(--brand-cyan); }

.faq-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.85rem;
  transition: all var(--t-med) ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  background: rgba(0,196,204,0.08);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow) ease;
}

.faq-answer-inner {
  padding: 0 24px 22px;
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  border-radius: 28px;
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(46, 113, 125, 0.06) 0%, rgba(0, 166, 180, 0.04) 50%, rgba(208, 63, 34, 0.05) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}

[data-mode="dark"] .cta-banner {
  background: linear-gradient(135deg, rgba(42,111,123,0.3) 0%, rgba(0,196,204,0.1) 50%, rgba(196,51,16,0.15) 100%);
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Lead Form */
.lead-form { display: flex; flex-direction: column; gap: 16px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.form-input,
.form-select,
.form-textarea {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
  width: 100%;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(0,196,204,0.12);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(196,51,16,0.12);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--subtle); }

[data-mode="light"] .form-input,
[data-mode="light"] .form-select,
[data-mode="light"] .form-textarea {
  background: #fff;
  border-color: rgba(42,111,123,0.15);
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%238FA9B0' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.touch-device .form-select { cursor: pointer; }

.form-textarea { min-height: 120px; resize: vertical; }

.form-error {
  font-size: 0.75rem;
  color: var(--brand-accent);
  display: none;
}

.form-error.show { display: block; }

.form-microcopy {
  font-size: 0.78rem;
  color: var(--subtle);
  text-align: center;
  margin-top: 4px;
}

/* Success animation */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 40px;
  min-height: 200px;
}

.form-success.show { display: flex; }

.success-check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0,196,204,0.1);
  border: 2px solid var(--brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--brand-cyan);
  animation: scale-in 0.5s var(--ease-out-expo) forwards;
}

@keyframes scale-in {
  from { transform: scale(0) rotate(-30deg); }
  to   { transform: scale(1) rotate(0deg); }
}

/* ---------- Footer ---------- */
#site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo { height: 36px; width: auto; }

.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-socials { display: flex; gap: 10px; margin-top: 4px; }

.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: all var(--t-fast) ease;
}

.social-btn:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  background: rgba(0,196,204,0.08);
}

.footer-col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-link {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color var(--t-fast) ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover { color: var(--brand-cyan); }
.footer-link:hover::before { content: '→ '; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.footer-contact-icon { flex-shrink: 0; margin-top: 2px; color: var(--brand-cyan); }

/* Newsletter */
.newsletter-form { display: flex; gap: 8px; margin-top: 12px; }

.newsletter-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text);
  min-width: 0;
}

.newsletter-input:focus { outline: none; border-color: var(--brand-cyan); }

.newsletter-btn {
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--brand-primary);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  transition: background var(--t-fast) ease;
  white-space: nowrap;
}

.touch-device .newsletter-btn { cursor: pointer; }
.newsletter-btn:hover { background: var(--brand-cyan); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--subtle);
}

.footer-copy a { color: var(--brand-cyan); }

/* ---------- WhatsApp Float Button ---------- */
#whatsapp-float {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(37,211,102,0.4);
  transition: all var(--t-med) var(--ease-out-expo);
  text-decoration: none;
}

.touch-device #whatsapp-float { cursor: pointer; }

#whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 16px 48px rgba(37,211,102,0.5);
}

#whatsapp-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- Sticky Mobile Bottom Bar ---------- */
#mobile-cta-bar {
  display: none; /* shown via media query as flex */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  padding: 8px 12px max(8px, env(safe-area-inset-bottom));
  z-index: 999;
  gap: 8px;
  align-items: center;
}

[data-mode="dark"] #mobile-cta-bar {
  background: rgba(15, 23, 42, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
}

.mobile-cta-btn {
  flex: 1;
  padding: 9px 6px;
  border-radius: 12px;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  transition: all var(--t-fast) ease;
  line-height: 1.1;
}

.mobile-cta-btn:hover {
  transform: translateY(-1px);
}

.mobile-cta-btn:nth-child(1) {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

.mobile-cta-btn:nth-child(2) {
  background: linear-gradient(135deg, #D03F22 0%, #EA580C 100%);
  border-color: transparent;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(208, 63, 34, 0.28);
}

.mobile-cta-btn:nth-child(3) {
  background: #25D366;
  border-color: transparent;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);
}

.mobile-cta-btn span {
  font-size: 1.1rem;
  line-height: 1;
}

/* ---------- Theme Switcher Panel ---------- */
#theme-switcher {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease;
  border: 2px solid transparent;
}

.touch-device .theme-dot { cursor: pointer; }
.theme-dot:hover { transform: scale(1.2); }
.theme-dot.active { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.3); }
.theme-dot[data-theme="teal"]   { background: linear-gradient(135deg, #2A6F7B, #00C4CC); }
.theme-dot[data-theme="indigo"] { background: linear-gradient(135deg, #4F46E5, #7C3AED); }
.theme-dot[data-theme="emerald"]{ background: linear-gradient(135deg, #059669, #0891B2); }
.theme-dot[data-theme="sunset"] { background: linear-gradient(135deg, #DC2626, #EA580C); }

/* ---------- Results Section ---------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--t-med) ease;
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--brand-primary);
}

.result-card--wide { grid-column: span 2; }

.result-metric {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 6px;
}

.result-label { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.result-platform {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  background: rgba(0,196,204,0.08);
  padding: 4px 10px;
  border-radius: 50px;
}

/* GBP Chart */
.gbp-chart-wrapper { margin-top: 16px; position: relative; }

.gbp-chart-svg { width: 100%; height: 80px; overflow: visible; }

/* ---------- Animated Gradient Border ---------- */
@keyframes gradient-rotate {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-border {
  position: relative;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-cyan), var(--brand-accent), var(--brand-primary));
  background-size: 300% 300%;
  animation: gradient-rotate 4s linear infinite;
}

.animated-border-inner {
  background: var(--surface);
  border-radius: 23px;
  height: 100%;
  width: 100%;
}

/* ---------- Magnetic Button Wrapper ---------- */
.magnetic-wrapper {
  display: inline-block;
  position: relative;
}

/* ---------- Split Text Spans (for GSAP) ---------- */
.split-line { overflow: hidden; display: block; }
.split-word { display: inline-block; transform: translateY(100%); }
.split-char { display: inline-block; }

/* ---------- Page Transition Overlay ---------- */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: bottom;
}

/* ---------- Scroll-triggered fade-up ---------- */
.fade-up {
  opacity: 1;
  transform: none;
}

/* ---------- Lazy load ---------- */
img[loading="lazy"] { transition: opacity 0.4s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .bento-grid { grid-template-columns: repeat(8, 1fr); }
  .bento-card--large { grid-column: span 5; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

@media (max-width: 1024px) {
  :root { --section-py: 80px; }
  .btn-nav-outline { display: none; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .bento-card, .bento-card--large, .bento-card--wide { grid-column: span 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card--popular { transform: none; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .result-card--wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-card { min-width: calc(50% - 12px); }
  #theme-switcher { display: none; }
}

@media (max-width: 768px) {
  :root { --section-py: 56px; --header-h: 64px; }
  
  /* Prevent content being covered by sticky bottom bar */
  body { padding-bottom: 70px; }
  #main-content { padding-bottom: 24px; }
  #site-footer { padding-bottom: 60px; }

  /* Hide duplicate float on mobile to prevent overlap with sticky CTA bar */
  #whatsapp-float { display: none !important; }
  #mobile-cta-bar { display: flex; }

  .header-nav { display: none; }
  .header-divider { display: none; }
  .btn-nav-outline, .btn-nav-solid { display: none; }
  .hamburger { display: flex; }

  /* Hero Section Mobile */
  #hero { min-height: auto; padding-top: calc(var(--header-h) + 24px); padding-bottom: 40px; }
  .hero-content { text-align: center; }
  #hero > .container > div { grid-template-columns: 1fr !important; gap: 32px; }
  .hero-dashboard { display: none; }
  .hero-badge { margin-bottom: 20px; font-size: 0.78rem; padding: 6px 16px; }
  .hero-h1 { font-size: clamp(2.1rem, 7.5vw, 2.75rem); line-height: 1.15; margin-bottom: 16px; }
  .hero-sub { font-size: 0.95rem; line-height: 1.6; margin-bottom: 28px; max-width: 100%; }

  .hero-cta-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 28px;
    gap: 12px;
    align-items: stretch;
  }
  .hero-cta-group .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95rem;
  }

  .trust-chips {
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0 auto;
  }
  .trust-chip { font-size: 0.76rem; padding: 6px 12px; }

  /* Sections & Grids — No shrinking */
  .section { padding: 56px 0; }
  .form-row { grid-template-columns: 1fr; }
  
  .why-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .why-card { padding: 24px 20px; }

  /* Process Pipeline on Mobile */
  .process-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .process-card {
    padding: 22px 18px;
  }

  /* Services Bento on Mobile */
  .bento-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
  .bento-card, .bento-card--large, .bento-card--wide {
    width: 100%;
    grid-column: span 1 !important;
  }
  .service-card {
    padding: 28px 22px;
    min-height: auto;
  }
  .service-desc {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-card { padding: 20px 14px; }
  .stat-number { font-size: clamp(1.75rem, 6vw, 2.25rem); }

  .results-grid { grid-template-columns: 1fr; gap: 16px; }
  .result-card--wide, .result-card {
    grid-column: span 1 !important;
    padding: 24px 20px;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 18px;
  }
  .pricing-card { padding: 28px 20px; }
  .pricing-tabs { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .pricing-tab { padding: 8px 16px; font-size: 0.84rem; }

  .testimonial-card { min-width: 88vw; padding: 24px 20px; }
  .cta-banner { padding: 36px 20px; border-radius: 20px; text-align: center; }
  .cta-grid { grid-template-columns: 1fr !important; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 0 14px; }
  .header-logo img { height: 36px; }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-card { padding: 18px 12px; }
  .stat-number { font-size: 1.65rem; }
  .stat-label { font-size: 0.76rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand { grid-column: span 1; }
  
  .pricing-card { padding: 24px 16px; }
  .pricing-amount { font-size: 2rem; }
}

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .aurora-blob { animation: none; }
  .marquee-track { animation: none; }
  .btn-primary::after { animation: none; }
  .preloader-bar-fill { transition: none; }
}

/* ---------- Helper / Utility ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-cyan { color: var(--brand-cyan); }
.text-accent { color: var(--brand-accent); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.w-full { width: 100%; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
