/* ==========================================================================
   Green Sparrow Software Solutions — Design System
   Premium agency UI: glassmorphism, gradients, micro-interactions
   Author: Green Sparrow
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. Design Tokens (CSS Custom Properties)
   --------------------------------------------------------------------------- */
:root {
  /* Brand colors — slightly deeper, less neon for a refined look */
  --emerald: #0e9d68;
  --emerald-600: #0c8b5d;
  --emerald-700: #097350;
  --emerald-glow: rgba(14, 157, 104, 0.28);
  --navy: #0a1226;
  --navy-800: #0f1a3a;
  --navy-700: #1a2547;

  /* Neutrals — refined cool-slate scale */
  --white: #ffffff;
  --off-white: #fafbfb;
  --light-gray: #eceff0;
  --gray: #697488;
  --gray-dark: #3c4657;
  --ink: #0a0f1c;
  --border: rgba(10, 18, 38, 0.08);
  --border-strong: rgba(10, 18, 38, 0.14);

  /* Accent gradients — cohesive green→teal, restrained */
  --grad-emerald: linear-gradient(135deg, #0e9d68 0%, #14b47c 100%);
  --grad-brand: linear-gradient(120deg, #0e9d68 0%, #10a89f 100%);
  --grad-navy: linear-gradient(165deg, #0b1428 0%, #111f42 55%, #0a1226 100%);
  --grad-soft: linear-gradient(135deg, #f3faf6 0%, #f4f8fc 100%);
  --grad-hero: radial-gradient(55% 55% at 15% 12%, rgba(14,157,104,0.10) 0%, transparent 60%),
               radial-gradient(45% 45% at 88% 10%, rgba(16,168,159,0.08) 0%, transparent 55%);

  /* Surfaces */
  --surface: #ffffff;
  --surface-2: #f6f8f8;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-dark: rgba(16, 26, 58, 0.55);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

  /* Shadows — soft, layered, diffuse (premium depth) */
  --shadow-xs: 0 1px 2px rgba(10, 18, 38, 0.05);
  --shadow-sm: 0 1px 3px rgba(10, 18, 38, 0.04), 0 6px 16px rgba(10, 18, 38, 0.05);
  --shadow-md: 0 2px 6px rgba(10, 18, 38, 0.04), 0 14px 34px rgba(10, 18, 38, 0.07);
  --shadow-lg: 0 6px 20px rgba(10, 18, 38, 0.06), 0 30px 64px rgba(10, 18, 38, 0.10);
  --shadow-emerald: 0 10px 30px rgba(14, 157, 104, 0.22);

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Layout */
  --container: 1200px;
  --container-wide: 1360px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 8rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.4s;
}

/* ---------------------------------------------------------------------------
   2. Reset & Base
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 1rem;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern', 'liga', 'cv02', 'cv03';
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.14; font-weight: 700; letter-spacing: -0.025em; color: var(--navy); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
h4 { font-size: 1.15rem; }
p { color: var(--gray-dark); text-wrap: pretty; }

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

/* ---------------------------------------------------------------------------
   3. Layout Utilities
   --------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--dark { background: var(--grad-navy); color: #dbe3f4; }
.section--soft { background: var(--grad-soft); }
.section--gray { background: var(--surface-2); }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; } }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.flow > * + * { margin-top: 1rem; }

/* ---------------------------------------------------------------------------
   4. Typographic components
   --------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--emerald-700);
  background: rgba(14, 157, 104, 0.08);
  padding: 0.42rem 0.9rem; border-radius: var(--r-pill);
  border: 1px solid rgba(14, 157, 104, 0.16);
}
.section--dark .eyebrow { color: #6ff0bd; background: rgba(14,166,108,0.14); border-color: rgba(14,166,108,0.28); }

.section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 1.1rem; }
.section-head p { margin-top: 1.1rem; font-size: 1.12rem; color: var(--gray); }
.section--dark h2 { color: #fff; }
.section--dark p { color: #aeb9d4; }

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lead { font-size: 1.18rem; line-height: 1.6; color: var(--gray); }

/* ---------------------------------------------------------------------------
   5. Buttons
   --------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--emerald);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-weight: 600; font-size: 0.98rem; line-height: 1; letter-spacing: -0.01em;
  padding: 0.95rem 1.5rem; border-radius: 13px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  position: relative; white-space: nowrap; cursor: pointer;
}
.btn i { transition: transform 0.3s var(--ease); }
.btn:hover i.arrow { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(0.99); }

.btn--primary { background: var(--emerald); color: #fff; box-shadow: 0 1px 2px rgba(10,18,38,.12), var(--shadow-emerald); }
.btn--primary:hover { transform: translateY(-2px); background: var(--emerald-600); box-shadow: 0 12px 30px rgba(14,157,104,0.32); }

.btn--dark { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn--dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost { background: #fff; color: var(--navy); border: 1px solid var(--border-strong); box-shadow: var(--shadow-xs); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--emerald); color: var(--emerald-700); box-shadow: var(--shadow-sm); }

.btn--outline { background: transparent; color: var(--navy); border: 1.5px solid rgba(11,19,43,0.15); }
.btn--outline:hover { background: rgba(14,157,104,0.08); border-color: var(--emerald); color: var(--emerald-700); }
.section--dark .btn--outline,
.cta-band .btn--outline { color: #fff; border-color: rgba(255,255,255,0.25); }
.section--dark .btn--outline:hover,
.cta-band .btn--outline:hover { background: rgba(111,240,189,0.12); border-color: #6ff0bd; color: #6ff0bd; }

.btn--sm { padding: 0.7rem 1.2rem; font-size: 0.9rem; }
.btn--lg { padding: 1.15rem 2rem; font-size: 1.1rem; }
.btn--block { width: 100%; }

/* Shine sweep on primary buttons */
.btn--primary::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease); pointer-events: none;
}
.btn--primary:hover::after { transform: translateX(120%); }

/* ---------------------------------------------------------------------------
   6. Cards (glass + premium)
   --------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.15rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(14,157,104,0.28); }

.card-glass {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.section--dark .card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  box-shadow: none;
}
.section--dark .card:hover { background: rgba(255,255,255,0.07); border-color: rgba(14,166,108,0.4); }
.section--dark .card h3, .section--dark .card h4 { color: #fff; }
.section--dark .card p { color: #aeb9d4; }

/* Icon chip — soft tinted, refined (not bright fills) */
.icon-chip {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.25rem;
  color: var(--emerald-700); background: rgba(14, 157, 104, 0.09);
  border: 1px solid rgba(14, 157, 104, 0.16);
  margin-bottom: 1.35rem; transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.card:hover .icon-chip { transform: scale(1.06); }
.icon-chip.alt { color: #1f7a6f; background: rgba(16, 168, 159, 0.09); border-color: rgba(16, 168, 159, 0.16); }
.section--dark .icon-chip { background: rgba(14, 157, 104, 0.16); color: #6ff0bd; border-color: rgba(14, 157, 104, 0.28); }
.section--dark .icon-chip.alt { background: rgba(93, 214, 200, 0.12); color: #7fe6d6; border-color: rgba(93, 214, 200, 0.22); }

/* Feature card (Why choose us) */
.feature-card h4 { margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.98rem; }

/* Service card with hover reveal */
.service-card { padding: 0; overflow: hidden; }
.service-card .service-media { height: 190px; overflow: hidden; position: relative; }
.service-card .service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.08); }
.service-card .service-media::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(11,19,43,0.55)); }
.service-card .service-body { padding: clamp(1.4rem, 3vw, 2rem); }
.service-card .service-body ul { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 1.25rem; }
.service-card .service-body ul li { font-size: 0.8rem; font-weight: 600; color: var(--gray-dark); background: var(--surface-2); border: 1px solid var(--light-gray); padding: 0.3rem 0.7rem; border-radius: var(--r-pill); }
.service-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--emerald-700); }
.service-link i { transition: transform 0.3s var(--ease); }
.service-card:hover .service-link i { transform: translateX(5px); }

/* ---------------------------------------------------------------------------
   7. Navbar
   --------------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding-block: 1.1rem;
}
.nav.scrolled {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(10,18,38,0.05), 0 8px 30px rgba(10,18,38,0.05);
  padding-block: 0.65rem;
  border-bottom: 1px solid rgba(10,18,38,0.04);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; font-weight: 800; font-size: 1.2rem; color: var(--navy); letter-spacing: -0.02em; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-emerald); color: #fff; font-size: 1.1rem; box-shadow: 0 4px 12px rgba(14,157,104,0.28);
}
.brand small { display: block; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); }

.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.6rem 0.9rem; border-radius: var(--r-pill); font-weight: 600; font-size: 0.97rem; color: var(--navy);
  transition: color 0.25s, background 0.25s;
}
.nav-links > li > a:hover, .nav-links > li > button:hover { color: var(--emerald-700); background: rgba(14,166,108,0.08); }
.nav-links a.active { color: var(--emerald-700); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Mega menu */
.has-mega { position: relative; }
/* Invisible bridge across the 14px gap so the panel survives the trip from button to menu */
.has-mega::after {
  content: ''; display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: min(760px, 90vw); height: 14px;
}
.has-mega:hover::after, .has-mega:focus-within::after { display: block; }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(10px);
  width: min(760px, 90vw); background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px); border: 1px solid var(--light-gray);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 1.5rem;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.mega-item { display: flex; gap: 0.75rem; padding: 0.7rem; border-radius: var(--r-md); transition: background 0.25s; }
.mega-item:hover { background: var(--surface-2); }
.mega-item i { color: var(--emerald); font-size: 1.1rem; margin-top: 0.2rem; }
.mega-item strong { display: block; color: var(--navy); font-size: 0.95rem; }
.mega-item span { font-size: 0.82rem; color: var(--gray); }
.mega-promo { background: var(--grad-navy); color: #fff; border-radius: var(--r-md); padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.mega-promo h4 { color: #fff; }
.mega-promo p { color: #aeb9d4; font-size: 0.9rem; margin: 0.5rem 0 1rem; }

/* Mobile nav */
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); color: var(--navy); font-size: 1.2rem; align-items: center; justify-content: center; }
.mobile-panel {
  position: fixed; inset: 0 0 0 auto; width: min(420px, 88vw); z-index: 950;
  background: #fff; box-shadow: var(--shadow-lg); transform: translateX(100%);
  transition: transform 0.45s var(--ease); padding: 5.5rem 1.75rem 2rem; overflow-y: auto;
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel a { display: block; padding: 0.9rem 0.5rem; font-weight: 600; font-size: 1.1rem; color: var(--navy); border-bottom: 1px solid var(--light-gray); }
.mobile-panel .sub { padding-left: 1rem; font-size: 0.98rem; color: var(--gray-dark); font-weight: 500; }
.mobile-close { position: absolute; top: 1.5rem; right: 1.5rem; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); font-size: 1.2rem; color: var(--navy); }
.nav-overlay { position: fixed; inset: 0; background: rgba(11,19,43,0.5); backdrop-filter: blur(4px); z-index: 940; opacity: 0; visibility: hidden; transition: opacity 0.4s; }
.nav-overlay.open { opacity: 1; visibility: visible; }

@media (max-width: 1080px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
}

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad-emerald); z-index: 999; transition: width 0.1s linear; }

/* ---------------------------------------------------------------------------
   8. Hero
   --------------------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(8rem, 16vw, 12rem); padding-bottom: var(--section-y); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: var(--grad-hero); z-index: -2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lead { max-width: 540px; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2rem; }
.hero-stats .stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.hero-stats .stat span { font-size: 0.85rem; color: var(--gray); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { order: -1; } }

.hero-visual { position: relative; }
.hero-visual img { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.floating-badge {
  position: absolute; background: rgba(255,255,255,0.78); backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.7); border-radius: 14px; padding: 0.8rem 1rem;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 0.88rem; color: var(--navy);
}
.floating-badge i { color: var(--emerald); font-size: 1.1rem; }
.floating-badge.b1 { top: 8%; left: -6%; animation: float 6s ease-in-out infinite; }
.floating-badge.b2 { bottom: 12%; right: -5%; animation: float 5s ease-in-out infinite reverse; }
.floating-badge.b3 { bottom: 40%; left: -9%; animation: float 7s ease-in-out infinite; }
@media (max-width: 1200px) { .floating-badge.b1 { left: 2%; } .floating-badge.b2 { right: 2%; } .floating-badge.b3 { display: none; } }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Typing cursor */
.type-target { color: var(--emerald-700); }
.type-cursor { display: inline-block; width: 3px; height: 1em; background: var(--emerald); margin-left: 2px; vertical-align: -0.1em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }

/* Mouse-follow glow */
.glow-follow { position: fixed; width: 480px; height: 480px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(14,166,108,0.14), transparent 65%); transform: translate(-50%, -50%); transition: opacity 0.4s; }

/* ---------------------------------------------------------------------------
   9. Marquee / trusted-by
   --------------------------------------------------------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: scroll-x 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: 1.05rem; font-weight: 700; color: var(--gray); opacity: 0.55; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.55rem; letter-spacing: 0.01em; transition: opacity 0.3s, color 0.3s; }
.marquee-track span:hover { opacity: 1; color: var(--navy); }
.marquee-track span i { color: var(--emerald); opacity: 0.75; font-size: 0.95rem; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------------------
   10. Process timeline
   --------------------------------------------------------------------------- */
.timeline { position: relative; }
.timeline-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--light-gray), var(--emerald), var(--light-gray)); transform: translateX(-50%); }
.timeline-item { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; margin-bottom: 2rem; }
.timeline-item .t-card { grid-column: 1; }
.timeline-item:nth-child(even) .t-card { grid-column: 3; }
.timeline-node { grid-column: 2; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid var(--emerald); color: var(--emerald-700); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; box-shadow: var(--shadow-sm); z-index: 2; }
@media (max-width: 780px) {
  .timeline-line { left: 27px; }
  .timeline-item { grid-template-columns: 56px 1fr; gap: 1.25rem; }
  .timeline-item .t-card, .timeline-item:nth-child(even) .t-card { grid-column: 2; }
  .timeline-node { grid-column: 1; }
}

/* ---------------------------------------------------------------------------
   11. Stats counters
   --------------------------------------------------------------------------- */
.stat-block { text-align: center; padding: 1.5rem; }
.stat-block .num { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 800; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.stat-block .label { margin-top: 0.5rem; font-weight: 600; color: var(--gray-dark); }
.section--dark .stat-block .label { color: #aeb9d4; }

/* ---------------------------------------------------------------------------
   12. Testimonials (Swiper)
   --------------------------------------------------------------------------- */
.testi-card { background: #fff; border-radius: var(--r-lg); padding: 2.25rem; box-shadow: var(--shadow-sm); border: 1px solid var(--light-gray); height: auto; }
.testi-card .stars { color: #f5a623; margin-bottom: 1rem; letter-spacing: 2px; }
.testi-card blockquote { font-size: 1.1rem; color: var(--navy); font-weight: 500; line-height: 1.6; }
.testi-author { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.5rem; }
.testi-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testi-author strong { display: block; color: var(--navy); }
.testi-author span { font-size: 0.85rem; color: var(--gray); }
.swiper { padding-bottom: 3.5rem !important; }
.swiper-pagination-bullet { background: var(--emerald) !important; }
.swiper-button-next, .swiper-button-prev { color: var(--emerald) !important; }

/* ---------------------------------------------------------------------------
   13. Pricing
   --------------------------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.price-card { background: #fff; border: 1.5px solid var(--light-gray); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); position: relative; }
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.price-card.featured { border-color: rgba(14,157,104,0.5); box-shadow: 0 10px 40px rgba(14,157,104,0.16), var(--shadow-md); transform: scale(1.02); }
.price-card.featured::before { content: 'MOST POPULAR'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-emerald); color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; padding: 0.35rem 0.9rem; border-radius: var(--r-pill); box-shadow: var(--shadow-emerald); }
.price-card .plan { font-weight: 700; color: var(--gray-dark); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }
.price-card .amount { font-size: 2.5rem; font-weight: 800; color: var(--navy); margin: 0.75rem 0; }
.price-card .amount span { font-size: 1rem; font-weight: 600; color: var(--gray); }
.price-card .amount--quote { font-size: 1.5rem; letter-spacing: -0.01em; }
.price-card .amount--quote span { display: block; font-size: 0.9rem; font-weight: 500; margin-top: 0.25rem; }
.price-card ul { margin: 1.5rem 0; display: grid; gap: 0.75rem; }
.price-card ul li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--gray-dark); font-size: 0.97rem; }
.price-card ul li i { color: var(--emerald); margin-top: 0.25rem; }

/* ---------------------------------------------------------------------------
   14. FAQ accordion
   --------------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--light-gray); border-radius: var(--r-md); margin-bottom: 1rem; background: #fff; overflow: hidden; transition: box-shadow 0.3s, border-color 0.3s; }
.faq-item.open { box-shadow: var(--shadow-md); border-color: rgba(14,166,108,0.4); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem 1.5rem; font-weight: 700; font-size: 1.08rem; color: var(--navy); text-align: left; }
.faq-q i { flex: 0 0 auto; transition: transform 0.35s var(--ease); color: var(--emerald); }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding: 0 1.5rem 1.5rem; color: var(--gray-dark); }

/* ---------------------------------------------------------------------------
   15. CTA band
   --------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(2.5rem, 6vw, 5rem); background: var(--grad-navy); color: #fff; text-align: center; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: var(--grad-hero); opacity: 0.9; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b9c3dd; max-width: 620px; margin: 1rem auto 2rem; font-size: 1.15rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------------------------------------------------------------------------
   16. Offers / promo cards
   --------------------------------------------------------------------------- */
.offer-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--light-gray); box-shadow: var(--shadow-xs); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.offer-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.offer-card .gift { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad-brand); font-size: 1.1rem; }
.offer-card strong { display: block; color: var(--navy); font-size: 1rem; }
.offer-card p { font-size: 0.88rem; margin-top: 0.2rem; }

.promo-hero { background: var(--grad-emerald); color: #fff; border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.promo-hero h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.promo-hero p { color: rgba(255,255,255,0.9); }
.promo-hero .tag { position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(255,255,255,0.2); padding: 0.4rem 1rem; border-radius: var(--r-pill); font-weight: 700; font-size: 0.8rem; backdrop-filter: blur(6px); }

/* ---------------------------------------------------------------------------
   17. Portfolio / Our work
   --------------------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-btn { padding: 0.6rem 1.2rem; border-radius: var(--r-pill); font-weight: 600; font-size: 0.92rem; color: var(--gray-dark); background: #fff; border: 1.5px solid var(--light-gray); transition: all 0.3s var(--ease); }
.filter-btn:hover { border-color: var(--emerald); color: var(--emerald-700); }
.filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .portfolio-grid { grid-template-columns: 1fr; } }
.portfolio-item { border-radius: var(--r-lg); overflow: hidden; position: relative; cursor: pointer; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; transition: transform 0.4s var(--ease), opacity 0.4s var(--ease); }
.portfolio-item.hide { display: none; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(11,19,43,0.88)); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; opacity: 0; transform: translateY(10px); transition: all 0.4s var(--ease); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; transform: translateY(0); }
.portfolio-overlay .cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #6ff0bd; }
.portfolio-overlay h4 { color: #fff; margin-top: 0.3rem; }
.portfolio-overlay .view { margin-top: 0.75rem; display: inline-flex; align-items: center; gap: 0.4rem; color: #fff; font-weight: 600; font-size: 0.9rem; }

/* Logo-first variant (Our Work): client logo at rest, screenshot on hover */
.portfolio-grid--logos .portfolio-item { background: var(--surface); border: 1px solid var(--light-gray); display: grid; place-items: center; aspect-ratio: 3/2; }
.portfolio-grid--logos .portfolio-item:hover { border-color: rgba(14,166,108,0.35); box-shadow: var(--shadow-md); }
/* must out-specify the display:grid above, or the filters stop hiding cards */
.portfolio-grid--logos .portfolio-item.hide { display: none; }
.portfolio-logo { display: grid; place-items: center; padding: 1.5rem; text-align: center; transition: opacity 0.35s var(--ease); }
.portfolio-grid--logos .portfolio-item:hover .portfolio-logo { opacity: 0; }
.wordmark { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: clamp(1rem, 1.5vw, 1.25rem); letter-spacing: -0.02em; color: var(--navy); }
.wordmark i { color: var(--emerald); font-size: 1.15em; }
.wordmark--muted { color: var(--gray); font-weight: 700; }
.portfolio-empty { text-align: center; color: var(--gray); margin-top: 2rem; }
.portfolio-empty a { color: var(--emerald-700); font-weight: 600; }
.portfolio-item--more { cursor: default; }
.portfolio-item--more:hover { box-shadow: var(--shadow-sm); border-color: var(--light-gray); }
.portfolio-logo img { width: auto; max-width: 78%; max-height: 64px; object-fit: contain; }

.portfolio-grid--logos .portfolio-overlay { background: linear-gradient(180deg, rgba(11,19,43,0.94), rgba(11,19,43,0.97)); justify-content: center; align-items: center; gap: 0.9rem; padding: 1.25rem; }
.portfolio-grid--logos .portfolio-overlay .shot { width: 82%; height: auto; max-height: 62%; object-fit: cover; object-position: top; border-radius: 10px; box-shadow: var(--shadow-md); transform: scale(0.96); transition: transform 0.45s var(--ease); }
.portfolio-grid--logos .portfolio-item:hover .shot { transform: scale(1); }
.portfolio-grid--logos .portfolio-overlay .view { margin-top: 0; font-size: 0.85rem; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(11,19,43,0.7); backdrop-filter: blur(6px); z-index: 970; display: grid; place-items: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: opacity 0.35s; }
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal { background: #fff; border-radius: var(--r-xl); max-width: 720px; width: 100%; max-height: 90vh; overflow: auto; transform: scale(0.94); transition: transform 0.35s var(--ease); }
.modal-backdrop.open .modal { transform: scale(1); }
/* Full-length page screenshot: scrolls inside its own pane so the modal's
   title and buttons stay reachable instead of sitting below a 6000px image. */
.modal-shot { max-height: 55vh; overflow-y: auto; border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--surface-2); overscroll-behavior: contain; }
.modal-shot img { width: 100%; height: auto; display: block; }
.modal-shot::-webkit-scrollbar { width: 10px; }
.modal-shot::-webkit-scrollbar-thumb { background: rgba(11,19,43,0.25); border-radius: 10px; }
.modal-body { padding: 2rem; }
.modal-close { position: fixed; top: 1.5rem; right: 1.5rem; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--navy); font-size: 1.2rem; box-shadow: var(--shadow-md); z-index: 971; }
.modal-tags li { font-size: 0.8rem; font-weight: 600; color: var(--gray-dark); background: var(--surface-2); border: 1px solid var(--light-gray); padding: 0.3rem 0.75rem; border-radius: var(--r-pill); }

/* ---------------------------------------------------------------------------
   18. Team
   --------------------------------------------------------------------------- */
.team-card { text-align: center; padding: 0; overflow: hidden; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.team-body { padding: 1.4rem; }
.team-body strong { display: block; color: var(--navy); font-size: 1.1rem; }
.team-body span { color: var(--emerald-700); font-size: 0.9rem; font-weight: 600; }
.team-social { display: flex; justify-content: center; gap: 0.75rem; margin-top: 0.9rem; }
.team-social a { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--navy); display: grid; place-items: center; transition: all 0.3s; }
.team-social a:hover { background: var(--emerald); color: #fff; }

/* ---------------------------------------------------------------------------
   19. Forms
   --------------------------------------------------------------------------- */
.form-card { background: #fff; border-radius: var(--r-xl); padding: clamp(1.75rem, 4vw, 2.75rem); box-shadow: var(--shadow-lg); border: 1px solid var(--light-gray); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 0.5rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.9rem 1.1rem; border: 1.5px solid var(--light-gray); border-radius: var(--r-md);
  background: var(--surface-2); color: var(--ink); transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--emerald); background: #fff; box-shadow: 0 0 0 4px rgba(14,166,108,0.12); }
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: var(--gray); margin-top: 1rem; text-align: center; }
.form-success { background: rgba(14,166,108,0.1); border: 1px solid rgba(14,166,108,0.3); color: var(--emerald-700); padding: 1rem 1.25rem; border-radius: var(--r-md); font-weight: 600; display: none; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.form-success.show { display: flex; }
.form-error { background: rgba(220,68,68,0.08); border: 1px solid rgba(220,68,68,0.28); color: #c23434; padding: 1rem 1.25rem; border-radius: var(--r-md); font-weight: 600; display: none; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.form-error.show { display: flex; }
/* Honeypot — hidden from people, visible to bots. Not display:none, which bots skip. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Contact info cards */
.contact-info { display: grid; gap: 1rem; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--light-gray); box-shadow: var(--shadow-xs); transition: transform 0.3s, box-shadow 0.3s; }
.info-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.info-row i { width: 46px; height: 46px; border-radius: 12px; background: rgba(14,166,108,0.1); color: var(--emerald-700); display: grid; place-items: center; font-size: 1.15rem; flex: 0 0 auto; }
.info-row strong { display: block; color: var(--navy); }
.info-row span, .info-row a { color: var(--gray-dark); font-size: 0.95rem; }
.map-embed { border-radius: var(--r-lg); overflow: hidden; height: 320px; background: var(--surface-2); position: relative; border: 1px solid var(--light-gray); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------------------------------
   20. Tools / calculators
   --------------------------------------------------------------------------- */
.tool-card { background: #fff; border-radius: var(--r-xl); padding: clamp(1.75rem, 4vw, 2.5rem); box-shadow: var(--shadow-md); border: 1px solid var(--light-gray); }
.range-row { margin-bottom: 1.5rem; }
.range-row label { display: flex; justify-content: space-between; font-weight: 600; color: var(--navy); margin-bottom: 0.6rem; }
.range-row label .val { color: var(--emerald-700); }
input[type=range] { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--light-gray); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--grad-emerald); cursor: pointer; box-shadow: var(--shadow-emerald); border: 3px solid #fff; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--emerald); cursor: pointer; border: 3px solid #fff; }
.result-box { background: var(--grad-navy); color: #fff; border-radius: var(--r-lg); padding: 2rem; text-align: center; }
.result-box .big { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: #6ff0bd; }
.result-box span { color: #aeb9d4; }
.chip-select { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { padding: 0.55rem 1rem; border-radius: var(--r-pill); border: 1.5px solid var(--light-gray); background: #fff; font-weight: 600; font-size: 0.9rem; color: var(--gray-dark); cursor: pointer; transition: all 0.25s; }
.chip.active { background: var(--emerald); color: #fff; border-color: var(--emerald); }

/* ---------------------------------------------------------------------------
   21. Breadcrumbs
   --------------------------------------------------------------------------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.9rem; color: var(--gray); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--gray); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--emerald-700); }
.breadcrumbs i { font-size: 0.7rem; }
.breadcrumbs .current { color: var(--navy); font-weight: 600; }

/* ---------------------------------------------------------------------------
   22. Floating widgets
   --------------------------------------------------------------------------- */
.float-stack { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 800; display: flex; flex-direction: column; gap: 0.85rem; align-items: flex-end; }
.fab { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.4rem; box-shadow: var(--shadow-lg); transition: transform 0.3s var(--ease); position: relative; }
.fab:hover { transform: scale(1.08) translateY(-2px); }
.fab--wa { background: #25d366; }
.fab--wa::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,0.5); animation: pulse-ring 2.2s infinite; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); } 70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.fab--chat { background: var(--navy); }
.fab--top { background: #fff; color: var(--navy); font-size: 1.1rem; width: 48px; height: 48px; opacity: 0; visibility: hidden; }
.fab--top.show { opacity: 1; visibility: visible; }

.sticky-quote { position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 800; }
@media (max-width: 560px) { .sticky-quote { display: none; } }

/* Exit intent popup */
.exit-popup { position: fixed; inset: 0; z-index: 980; display: grid; place-items: center; padding: 1.5rem; background: rgba(11,19,43,0.7); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity 0.4s; }
.exit-popup.open { opacity: 1; visibility: visible; }
.exit-card { background: #fff; border-radius: var(--r-xl); max-width: 480px; width: 100%; overflow: hidden; transform: translateY(20px) scale(0.96); transition: transform 0.4s var(--ease); position: relative; }
.exit-popup.open .exit-card { transform: translateY(0) scale(1); }
.exit-head { background: var(--grad-emerald); color: #fff; padding: 2rem; text-align: center; }
.exit-head h3 { color: #fff; }
.exit-body { padding: 2rem; }
.exit-close { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.25); color: #fff; }

/* ---------------------------------------------------------------------------
   23. Footer
   --------------------------------------------------------------------------- */
.footer { background: var(--grad-navy); color: #aeb9d4; padding-top: clamp(3.5rem, 7vw, 6rem); position: relative; overflow: hidden; }
.footer::before { content:''; position:absolute; top:0; left:0; right:0; height:1px; background: linear-gradient(90deg, transparent, rgba(14,166,108,0.5), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer .brand { color: #fff; margin-bottom: 1rem; }
.footer p { color: #8b96b4; font-size: 0.95rem; }
.footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1.25rem; letter-spacing: 0.02em; }
.footer-links a { display: block; padding: 0.4rem 0; color: #8b96b4; font-size: 0.95rem; transition: color 0.25s, transform 0.25s; }
.footer-links a:hover { color: #6ff0bd; transform: translateX(4px); }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.06); color: #cdd6ea; display: grid; place-items: center; transition: all 0.3s; }
.footer-social a:hover { background: var(--emerald); color: #fff; transform: translateY(-3px); }
.newsletter-form { display: flex; gap: 0.5rem; margin-top: 1rem; }
.newsletter-form input { flex: 1; padding: 0.8rem 1rem; border-radius: var(--r-md); border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color: #fff; }
.newsletter-form input::placeholder { color: #8b96b4; }
.newsletter-form input:focus { outline: none; border-color: var(--emerald); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.88rem; color: #8b96b4; }
.footer-bottom a { color: #8b96b4; }
.footer-bottom a:hover { color: #6ff0bd; }

/* ---------------------------------------------------------------------------
   24. Reveal animation fallback (if AOS unavailable)
   --------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Page loader */
.loader { position: fixed; inset: 0; z-index: 9999; background: var(--navy); display: grid; place-items: center; transition: opacity 0.6s var(--ease), visibility 0.6s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-mark { display: flex; align-items: center; gap: 0.75rem; color: #fff; font-weight: 800; font-size: 1.5rem; }
.loader-mark .brand-mark { animation: pulse-scale 1.2s ease-in-out infinite; }
@keyframes pulse-scale { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.loader-bar { position: absolute; bottom: 0; left: 0; height: 3px; background: var(--grad-emerald); width: 0; animation: load-bar 1s var(--ease) forwards; }
@keyframes load-bar { to { width: 100%; } }

/* Section divider */
.divider-wave { display: block; width: 100%; height: 60px; }

/* Small helpers */
.badge-soft { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 700; color: var(--emerald-700); background: rgba(14,166,108,0.1); padding: 0.35rem 0.8rem; border-radius: var(--r-pill); }
.check-list { display: grid; gap: 0.75rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--gray-dark); }
.check-list li i { color: var(--emerald); margin-top: 0.3rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.rounded-img { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }

/* ==========================================================================
   25. Theme toggle button
   --------------------------------------------------------------------------- */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 1rem;
  color: var(--navy); background: var(--surface-2);
  border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  transition: transform 0.3s var(--ease), color 0.3s, border-color 0.3s, background 0.3s;
}
.theme-toggle:hover { color: var(--emerald-700); border-color: var(--emerald); transform: translateY(-2px); }
.theme-toggle i { transition: transform 0.4s var(--ease); }
.theme-toggle:hover i { transform: rotate(-20deg) scale(1.1); }
/* Mobile toggle row inside panel */
.mobile-theme { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding: 0.9rem 1rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); font-weight: 600; color: var(--navy); }
.mobile-theme .theme-toggle { background: #fff; }

/* Smooth cross-fade while switching themes */
html.theme-anim, html.theme-anim * { transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important; }

/* ==========================================================================
   26. DARK LUXURY THEME  ·  html[data-theme="dark"]
   All logic lives here so the light theme stays untouched.
   --------------------------------------------------------------------------- */
html[data-theme="dark"] {
  /* Text & headings become light (navy token is used as heading color) */
  --navy: #eef2f9;
  --ink: #e8eef7;
  --gray: #93a0b9;
  --gray-dark: #aab4c9;

  /* Borders & fills */
  --light-gray: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Surfaces */
  --surface: #111a2b;
  --surface-2: #0c1320;
  --off-white: #0c1320;
  --glass: rgba(17, 26, 45, 0.62);
  --glass-border: rgba(255, 255, 255, 0.10);

  /* Accents — brighter, glowing on dark */
  --emerald: #17c98d;
  --emerald-600: #14b47c;
  --emerald-700: #52e4b3;
  --emerald-glow: rgba(23, 201, 141, 0.4);

  /* Gradients */
  --grad-emerald: linear-gradient(135deg, #17c98d 0%, #16c2b0 100%);
  --grad-brand: linear-gradient(120deg, #4fe3b0 0%, #56d9e0 100%);
  --grad-navy: linear-gradient(165deg, #0b1424 0%, #0f1d38 55%, #080d18 100%);
  --grad-soft: linear-gradient(135deg, #0d1728 0%, #0b1220 100%);
  --grad-hero: radial-gradient(55% 55% at 15% 12%, rgba(23,201,141,0.16) 0%, transparent 60%),
               radial-gradient(45% 45% at 88% 10%, rgba(22,194,176,0.12) 0%, transparent 55%);

  /* Shadows read against the dark page via black + emerald glow */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 8px 22px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.34), 0 18px 44px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.42), 0 36px 72px rgba(0, 0, 0, 0.46);
  --shadow-emerald: 0 10px 34px rgba(23, 201, 141, 0.34);
}

/* Page backdrop with fixed ambient glows */
html[data-theme="dark"] body { background: #070b14; color: var(--ink); }
html[data-theme="dark"] body::before {
  content: ''; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(58% 48% at 10% -2%, rgba(23,201,141,0.10) 0%, transparent 60%),
    radial-gradient(52% 45% at 92% 6%, rgba(22,194,176,0.08) 0%, transparent 55%),
    radial-gradient(60% 50% at 50% 108%, rgba(23,201,141,0.06) 0%, transparent 60%),
    #070b14;
}

/* Component surfaces that hardcode light colors — re-skinned for dark */
html[data-theme="dark"] .btn--ghost { background: rgba(255,255,255,0.05); color: var(--navy); border-color: var(--border-strong); }
html[data-theme="dark"] .btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--emerald); color: var(--emerald-700); }
html[data-theme="dark"] .btn--dark { background: #fff; color: #0a1020; }
html[data-theme="dark"] .btn--dark:hover { background: #eef2f9; }

html[data-theme="dark"] .nav.scrolled { background: rgba(9,14,26,0.72); border-bottom-color: rgba(255,255,255,0.06); box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 10px 34px rgba(0,0,0,0.45); }
html[data-theme="dark"] .mega { background: rgba(13,19,33,0.97); border-color: var(--border); }
html[data-theme="dark"] .mobile-panel { background: #0a0f1c; }
html[data-theme="dark"] .mobile-theme .theme-toggle { background: rgba(255,255,255,0.06); }

html[data-theme="dark"] .floating-badge { background: rgba(15,22,38,0.72); border-color: rgba(255,255,255,0.10); color: var(--navy); }
html[data-theme="dark"] .timeline-node { background: #0e1626; color: var(--emerald-700); border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(23,201,141,0.10), var(--shadow-sm); }

html[data-theme="dark"] .testi-card,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .offer-card,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .info-row,
html[data-theme="dark"] .tool-card { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .price-card.featured { background: linear-gradient(180deg, rgba(23,201,141,0.07), var(--surface)); border-color: rgba(23,201,141,0.45); box-shadow: 0 0 40px rgba(23,201,141,0.14), var(--shadow-md); }

html[data-theme="dark"] .filter-btn { background: rgba(255,255,255,0.04); border-color: var(--border); color: var(--gray-dark); }
html[data-theme="dark"] .filter-btn:hover { border-color: var(--emerald); color: var(--emerald-700); }
html[data-theme="dark"] .filter-btn.active { background: var(--emerald); color: #04160f; border-color: var(--emerald); }

html[data-theme="dark"] .chip { background: rgba(255,255,255,0.04); border-color: var(--border); color: var(--gray-dark); }
html[data-theme="dark"] .chip.active { background: var(--emerald); color: #04160f; border-color: var(--emerald); }

html[data-theme="dark"] .modal { background: #0e1626; }
html[data-theme="dark"] .modal-close,
html[data-theme="dark"] .fab--top { background: #0e1626; color: var(--navy); }
html[data-theme="dark"] .exit-card { background: #0e1626; }

html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field textarea:focus,
html[data-theme="dark"] .field select:focus { background: rgba(255,255,255,0.06); box-shadow: 0 0 0 4px rgba(23,201,141,0.16); }
html[data-theme="dark"] .field ::placeholder { color: var(--gray); }
html[data-theme="dark"] select option { background: #0e1626; color: var(--ink); }

html[data-theme="dark"] .loader { background: #070b14; }
html[data-theme="dark"] .theme-toggle { background: rgba(255,255,255,0.05); }

/* Section panels keep their layered feel in dark */
html[data-theme="dark"] .section--gray { background: #0a111e; }
html[data-theme="dark"] .marquee-track span:hover { color: #fff; }
