/* ==========================================================================
   E-Biz Technics — Main Stylesheet
   --------------------------------------------------------------------------
   Table of contents
   01. Design tokens (colors, type, spacing) + light theme overrides
   02. Reset & base
   03. Layout helpers
   04. Buttons, badges, links
   05. Header / navigation / mobile menu
   06. Hero sections
   07. Logo marquee
   08. Cards (services, features, solutions, team, etc.)
   09. Stats / counters
   10. Testimonials carousel
   11. Split sections, images, timeline
   12. Tabs, accordions, FAQ
   13. Forms
   14. CTA banner
   15. Footer
   16. Utilities: reveal animations, back-to-top, progress bar, toast, preloader
   17. Responsive breakpoints
   18. Reduced motion
   ========================================================================== */

/* 01. DESIGN TOKENS ------------------------------------------------------ */
:root {
  /* Brand */
  --navy-950: #050b17;
  --navy-900: #0a1628;
  --navy-800: #0f1f38;
  --navy-700: #16294a;
  --cyan: #22d3ee;
  --cyan-strong: #00d4ff;
  --indigo: #6366f1;
  --purple: #8b5cf6;
  --emerald: #10b981;
  --amber: #f59e0b;

  /* Semantic (dark theme is the default) */
  --bg: var(--navy-900);
  --bg-alt: #0c1a30;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-solid: #111f37;
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e6edf7;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;
  --heading: #ffffff;
  --header-bg: rgba(10, 22, 40, 0.72);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 12px 40px rgba(34, 211, 238, 0.18);

  --gradient-brand: linear-gradient(135deg, var(--cyan) 0%, var(--indigo) 55%, var(--purple) 100%);
  /* The five colours of the E-Biz star logo */
  --logo-teal: #7ac5cf; --logo-orange: #f58b68; --logo-green: #c4d96b; --logo-yellow: #f1c753; --logo-pink: #dd6691; --logo-navy: #0a2b48;
  --gradient-logo: linear-gradient(90deg, var(--logo-teal), var(--logo-green), var(--logo-yellow), var(--logo-orange), var(--logo-pink));
  --gradient-text: linear-gradient(90deg, #67e8f9 0%, #a5b4fc 50%, #c4b5fd 100%);

  /* Type */
  --font-heading: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape & motion */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.2s var(--ease);
  --t: 0.4s var(--ease);
  --t-slow: 0.8s var(--ease);

  --container: 1200px;
  --header-h: 76px;
}

/* Light theme — toggled via [data-theme="light"] on <html> */
[data-theme="light"] {
  --bg: #f8fafc;
  --bg-alt: #eef3f9;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-hover: #f1f5f9;
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text: #334155;
  --text-muted: #64748b;
  --text-soft: #475569;
  --heading: #0a2b48;
  --header-bg: rgba(248, 250, 252, 0.8);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.12);
  --gradient-text: linear-gradient(90deg, #0891b2 0%, #4f46e5 55%, #7c3aed 100%);
}

/* 02. RESET & BASE ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--t), color var(--t);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--heading); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(34, 211, 238, 0.3); color: var(--heading); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* Skip link for keyboard users */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--cyan); color: var(--navy-900); padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 700;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 16px; }

/* 03. LAYOUT ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gradient-brand); border-radius: 2px; }
.text-gradient { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.lead { font-size: 1.15rem; color: var(--text-soft); }
.muted { color: var(--text-muted); }

/* 04. BUTTONS & BADGES --------------------------------------------------- */
.btn {
  --btn-bg: var(--surface);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.97rem; line-height: 1;
  border: 1px solid transparent; overflow: hidden; isolation: isolate;
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t), border-color var(--t), color var(--t);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--t-fast); }
.btn:hover svg.icon-arrow, .btn:hover [data-lucide="arrow-right"] { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: 0 8px 24px rgba(34, 211, 238, 0.25); }
.btn-primary::after { /* shine sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.35) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.btn-primary:hover { box-shadow: 0 12px 36px rgba(99, 102, 241, 0.4); transform: translateY(-2px); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--heading); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-lg { padding: 17px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan); font-weight: 600; font-family: var(--font-heading); font-size: 0.95rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.link-arrow:hover svg { transform: translateX(4px); }

.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: var(--radius-pill);
  background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.25);
  font-size: 0.85rem; font-weight: 500; color: var(--text-soft);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(16,185,129,0.6); animation: pulse 2s infinite; margin-left: 6px; }
.badge strong { color: var(--heading); }
.tag { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 600; background: rgba(99, 102, 241, 0.14); color: #a5b4fc; }
[data-theme="light"] .tag { color: #4f46e5; }

/* 05. HEADER ------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background var(--t), box-shadow var(--t), border-color var(--t), height var(--t);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: var(--header-bg); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-color: var(--border); box-shadow: var(--shadow-sm); --header-h: 68px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; color: var(--heading); letter-spacing: -0.02em; }
.logo-mark { width: 44px; height: 44px; flex-shrink: 0; object-fit: contain; transition: transform var(--t); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo span.accent { color: var(--cyan); }
.logo small { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 0.94rem; font-weight: 500; color: var(--text-soft); transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--heading); background: var(--surface-hover); }
.nav-links a[aria-current="page"] { color: var(--heading); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 2px; transform: translateX(-50%); background: var(--gradient-brand); border-radius: 2px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--text-soft); background: var(--surface);
  transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.icon-btn:hover { color: var(--cyan); border-color: var(--cyan); transform: rotate(15deg); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Hamburger */
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); position: relative; }
.menu-toggle span { position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px; background: var(--heading); transition: transform var(--t), opacity var(--t-fast), top var(--t); }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.menu-open .menu-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; padding: calc(var(--header-h) + 24px) 24px 32px;
  background: var(--bg); display: flex; flex-direction: column; gap: 6px;
  clip-path: circle(0% at calc(100% - 46px) 38px); visibility: hidden;
  transition: clip-path 0.6s var(--ease), visibility 0s linear 0.6s;
  overflow-y: auto;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 46px) 38px); visibility: visible; transition: clip-path 0.7s var(--ease), visibility 0s; }
.mobile-menu a.m-link {
  font-family: var(--font-heading); font-size: 1.7rem; font-weight: 700; color: var(--heading);
  padding: 12px 4px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center;
  opacity: 0; transform: translateY(16px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color var(--t-fast);
}
.mobile-menu a.m-link svg { width: 22px; height: 22px; color: var(--cyan); }
.mobile-menu a.m-link[aria-current="page"] { color: var(--cyan); }
.menu-open .mobile-menu a.m-link { opacity: 1; transform: none; }
.menu-open .mobile-menu a.m-link:nth-child(1) { transition-delay: 0.15s; }
.menu-open .mobile-menu a.m-link:nth-child(2) { transition-delay: 0.2s; }
.menu-open .mobile-menu a.m-link:nth-child(3) { transition-delay: 0.25s; }
.menu-open .mobile-menu a.m-link:nth-child(4) { transition-delay: 0.3s; }
.menu-open .mobile-menu a.m-link:nth-child(5) { transition-delay: 0.35s; }
.menu-open .mobile-menu a.m-link:nth-child(6) { transition-delay: 0.4s; }
.mobile-menu .btn { margin-top: 24px; }
.mobile-menu .m-contact { margin-top: auto; padding-top: 24px; color: var(--text-muted); font-size: 0.92rem; }
body.menu-open { overflow: hidden; }

/* 06. HERO --------------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 60px) 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.16; transform: scale(1.08); animation: slowZoom 24s ease-in-out infinite alternate; }
[data-theme="light"] .hero-bg img { opacity: 0.07; }
.hero-bg::after { /* fade to page background */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 20%, transparent 0%, var(--bg) 75%), linear-gradient(to bottom, transparent 60%, var(--bg));
}
.grid-lines { /* subtle tech grid */
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  animation: gridMove 20s linear infinite;
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; z-index: 0; animation: float 14s ease-in-out infinite; }
.orb-1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(34, 211, 238, 0.55), transparent 70%); top: -140px; right: -120px; }
.orb-2 { width: 440px; height: 440px; background: radial-gradient(circle, rgba(99, 102, 241, 0.5), transparent 70%); bottom: -160px; left: -120px; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(139, 92, 246, 0.45), transparent 70%); top: 40%; left: 45%; animation-delay: -9s; }
[data-theme="light"] .orb { opacity: 0.25; }
#particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { margin: 22px 0 22px; }
.hero .lead { max-width: 560px; margin-bottom: 34px; }
.typed-wrap { display: inline-block; min-width: 1ch; }
.typed-cursor { display: inline-block; width: 3px; height: 0.9em; margin-left: 4px; background: var(--cyan); vertical-align: -0.08em; animation: blink 1s steps(2) infinite; }
.hero-trust { display: flex; align-items: center; gap: 16px; margin-top: 42px; color: var(--text-muted); font-size: 0.92rem; }
.avatars { display: flex; }
.avatars img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--bg); object-fit: cover; margin-left: -10px; background: var(--surface-solid); }
.avatars img:first-child { margin-left: 0; }
.stars { color: var(--amber); display: flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; fill: currentColor; }

/* Hero visual: image card + floating glass widgets */
.hero-visual { position: relative; aspect-ratio: 4 / 4.4; max-width: 520px; justify-self: end; width: 100%; }
.hero-visual .main-img {
  position: absolute; inset: 0 0 0 8%; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border-strong);
}
.hero-visual .main-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero-visual:hover .main-img img { transform: scale(1.05); }
.hero-visual .main-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(34,211,238,0.15), rgba(10,22,40,0.55)); }
.glass {
  background: rgba(15, 31, 56, 0.72); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: var(--radius); box-shadow: var(--shadow-md); color: #e6edf7;
}
[data-theme="light"] .glass { background: rgba(255, 255, 255, 0.85); border-color: rgba(15,23,42,0.08); color: var(--text); }
.float-card { position: absolute; padding: 14px 18px; display: flex; align-items: center; gap: 12px; z-index: 2; animation: bob 6s ease-in-out infinite; }
.float-card .fc-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.float-card .fc-icon svg { width: 22px; height: 22px; }
.float-card strong { display: block; font-family: var(--font-heading); font-size: 1.05rem; color: inherit; line-height: 1.2; }
[data-theme="light"] .float-card strong { color: var(--heading); }
.float-card small { font-size: 0.78rem; opacity: 0.75; }
.fc-1 { top: 8%; left: -6%; }
.fc-2 { bottom: 14%; left: -10%; animation-delay: -2s; }
.fc-3 { top: 40%; right: -6%; animation-delay: -4s; }
.ic-cyan { background: rgba(34, 211, 238, 0.16); color: var(--cyan); }
.ic-green { background: rgba(16, 185, 129, 0.16); color: var(--emerald); }
.ic-indigo { background: rgba(99, 102, 241, 0.18); color: #a5b4fc; }
.ic-purple { background: rgba(139, 92, 246, 0.18); color: #c4b5fd; }
.ic-amber { background: rgba(245, 158, 11, 0.16); color: var(--amber); }
[data-theme="light"] .ic-indigo { color: #4f46e5; }
[data-theme="light"] .ic-purple { color: #7c3aed; }
[data-theme="light"] .ic-cyan { color: #0891b2; }
.mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.mini-bars i { width: 6px; border-radius: 3px; background: var(--gradient-brand); animation: bars 1.6s ease-in-out infinite; }
.mini-bars i:nth-child(1) { height: 40%; }
.mini-bars i:nth-child(2) { height: 75%; animation-delay: 0.2s; }
.mini-bars i:nth-child(3) { height: 55%; animation-delay: 0.4s; }
.mini-bars i:nth-child(4) { height: 90%; animation-delay: 0.6s; }
.mini-bars i:nth-child(5) { height: 65%; animation-delay: 0.8s; }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px; z-index: 1; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: scrollCue 1.8s ease-in-out infinite; }

/* Interior page hero (shorter) */
.page-hero { position: relative; padding: calc(var(--header-h) + 90px) 0 90px; overflow: hidden; isolation: isolate; text-align: center; }
.page-hero .lead { max-width: 680px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: 12px; }
.breadcrumb { display: inline-flex; gap: 8px; align-items: center; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 8px; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb svg { width: 14px; height: 14px; }

/* 07. LOGO MARQUEE ------------------------------------------------------- */
.logos { padding: 48px 0; border-block: 1px solid var(--border); background: var(--bg-alt); }
.logos p { text-align: center; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 26px; font-weight: 600; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.client-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: var(--text-muted); opacity: 0.7; transition: opacity var(--t-fast), color var(--t-fast); white-space: nowrap; }
.client-logo:hover { opacity: 1; color: var(--heading); }
.client-logo svg { width: 28px; height: 28px; }

/* 08. CARDS -------------------------------------------------------------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t), background var(--t);
  overflow: hidden;
}
[data-theme="light"] .card { box-shadow: var(--shadow-sm); }
/* Spotlight that follows the cursor (position set in JS via --mx/--my) */
.card.spotlight::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--t);
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, 0.12), transparent 40%);
}
.card.spotlight:hover::before { opacity: 1; }
.card:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, 0.35); box-shadow: var(--shadow-md); }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(99, 102, 241, 0.16)); color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.2); transition: transform var(--t), background var(--t), color var(--t);
}
[data-theme="light"] .card-icon { color: #0891b2; }
.card-icon svg { width: 26px; height: 26px; }
.card:hover .card-icon { transform: rotate(-6deg) scale(1.08); background: var(--gradient-brand); color: #fff; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.97rem; }
.card .link-arrow { margin-top: 6px; }

/* Service card with image header (Home) */
.service-card { padding: 0; display: flex; flex-direction: column; }
.service-card .sc-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.service-card .sc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.service-card:hover .sc-media img { transform: scale(1.08); }
.service-card .sc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface-solid) 0%, transparent 70%); }
.service-card .card-icon { position: absolute; left: 24px; bottom: -22px; z-index: 2; margin: 0; background: var(--surface-solid); backdrop-filter: blur(8px); box-shadow: var(--shadow-sm); }
.service-card .sc-body { padding: 36px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card .sc-body p { flex: 1; }
.service-card .sc-body p:has(+ .check-list) { flex: 0 0 auto; }
.service-card .sc-body .check-list { flex: 1; align-content: start; }

/* Compact "more services" chips */
.chip-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); font-size: 0.92rem; font-weight: 500; transition: border-color var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.chip svg { width: 17px; height: 17px; color: var(--cyan); }
.chip:hover { border-color: var(--cyan); color: var(--heading); transform: translateY(-2px); }

/* Feature (why choose us) */
.feature { display: flex; gap: 18px; padding: 26px; }
.feature .card-icon { margin: 0; flex-shrink: 0; width: 52px; height: 52px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { margin: 0; }

/* Case study / solution card */
.case-card { padding: 0; }
.case-card .cc-media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.case-card .cc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.case-card:hover .cc-media img { transform: scale(1.07); }
.case-card .cc-media .tag { position: absolute; top: 16px; left: 16px; background: rgba(10, 22, 40, 0.75); backdrop-filter: blur(8px); color: #fff; }
.case-card .cc-body { padding: 26px; }
.case-card .metric { display: flex; gap: 22px; margin: 16px 0 18px; padding-top: 16px; border-top: 1px dashed var(--border-strong); }
.case-card .metric strong { display: block; font-family: var(--font-heading); font-size: 1.45rem; color: var(--heading); line-height: 1.1; }
.case-card .metric span { font-size: 0.8rem; color: var(--text-muted); }

/* Team */
.team-card { padding: 0; text-align: center; }
.team-card .tc-photo { aspect-ratio: 1 / 1.05; overflow: hidden; position: relative; }
.team-card .tc-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(25%); transition: transform 0.9s var(--ease), filter var(--t); }
.team-card:hover .tc-photo img { transform: scale(1.06); filter: grayscale(0); }
.team-card .tc-social { position: absolute; inset: auto 0 16px 0; display: flex; justify-content: center; gap: 8px; transform: translateY(20px); opacity: 0; transition: transform var(--t), opacity var(--t); }
.team-card:hover .tc-social, .team-card:focus-within .tc-social { transform: none; opacity: 1; }
.team-card .tc-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 22, 40, 0.8); color: #fff; backdrop-filter: blur(6px); transition: background var(--t-fast); }
.team-card .tc-social a:hover { background: var(--cyan); color: var(--navy-900); }
.team-card .tc-social svg { width: 16px; height: 16px; }
.team-card .tc-body { padding: 20px; }
.team-card h3 { font-size: 1.08rem; margin-bottom: 2px; }
.team-card p { margin: 0; font-size: 0.9rem; color: var(--cyan); }

/* Value / certification */
.value-card { text-align: center; }
.value-card .card-icon { margin-inline: auto; }
.cert { display: flex; align-items: center; gap: 14px; padding: 20px 22px; }
.cert .card-icon { margin: 0; width: 48px; height: 48px; flex-shrink: 0; }
.cert strong { display: block; color: var(--heading); font-family: var(--font-heading); }
.cert span { font-size: 0.85rem; color: var(--text-muted); }

/* Check lists */
.check-list { display: grid; gap: 12px; margin: 18px 0 24px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); font-size: 0.97rem; }
.check-list li svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--emerald); margin-top: 3px; }
.check-list.cols-2 { grid-template-columns: 1fr 1fr; }

/* 09. STATS -------------------------------------------------------------- */
.stats-band { position: relative; overflow: hidden; }
.stats-panel { border-radius: var(--radius-lg); padding: 56px 40px; background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(99, 102, 241, 0.12) 50%, rgba(139, 92, 246, 0.1)); border: 1px solid var(--border-strong); position: relative; overflow: hidden; }
.stats-panel::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--border-strong) 1px, transparent 1px); background-size: 22px 22px; opacity: 0.5; mask-image: linear-gradient(to bottom, #000, transparent); -webkit-mask-image: linear-gradient(to bottom, #000, transparent); }
.stat { text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -12px; top: 15%; height: 70%; width: 1px; background: var(--border-strong); }
.stat-num { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; }
.stat-label { margin-top: 10px; color: var(--text-muted); font-size: 0.95rem; }

/* 10. TESTIMONIALS ------------------------------------------------------- */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track { display: flex; transition: transform 0.7s var(--ease); }
.testimonial { flex: 0 0 100%; padding: 4px; }
.testimonial-inner { display: grid; grid-template-columns: 300px 1fr; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.testimonial-photo { position: relative; min-height: 320px; }
.testimonial-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.testimonial-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.testimonial-body .quote-icon { width: 44px; height: 44px; color: var(--cyan); opacity: 0.6; margin-bottom: 16px; }
.testimonial-body blockquote { margin: 0 0 28px; font-family: var(--font-heading); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; color: var(--heading); font-weight: 500; }
.testimonial-body cite { font-style: normal; display: block; }
.testimonial-body cite strong { display: block; color: var(--heading); font-family: var(--font-heading); }
.testimonial-body cite span { font-size: 0.9rem; color: var(--text-muted); }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { width: 10px; height: 10px; border-radius: var(--radius-pill); background: var(--border-strong); transition: width var(--t), background var(--t); padding: 0; }
.carousel-dots button[aria-selected="true"] { width: 30px; background: var(--gradient-brand); }

/* 11. SPLIT / IMAGES / TIMELINE ----------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media { position: relative; }
.img-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5 / 4; transition: transform 1.2s var(--ease); }
.img-frame:hover img { transform: scale(1.04); }
.img-stack { position: relative; padding: 0 0 60px 40px; }
.img-stack .img-frame:nth-child(2) { position: absolute; left: 0; bottom: 0; width: 46%; border: 6px solid var(--bg); box-shadow: var(--shadow-lg); }
.img-stack .img-frame:nth-child(2) img { aspect-ratio: 1; }
.exp-badge { position: absolute; top: 24px; right: -16px; padding: 18px 22px; text-align: center; z-index: 2; animation: bob 6s ease-in-out infinite; }
.exp-badge strong { display: block; font-family: var(--font-heading); font-size: 2.2rem; line-height: 1; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.exp-badge span { font-size: 0.8rem; }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.mv-grid .card { padding: 24px; }
.mv-grid .card-icon { width: 46px; height: 46px; margin-bottom: 14px; }
.mv-grid .card-icon svg { width: 22px; height: 22px; }

.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--border-strong); transform: translateX(-50%); }
.timeline-progress { position: absolute; left: 50%; top: 0; width: 2px; height: 0; background: var(--gradient-brand); transform: translateX(-50%); transition: height 0.2s linear; }
.tl-item { position: relative; width: 50%; padding: 0 48px 48px 0; }
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 48px 48px; }
.tl-item::after { content: ""; position: absolute; top: 6px; right: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--cyan); box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.12); z-index: 1; }
.tl-item:nth-child(even)::after { right: auto; left: -9px; }
.tl-item:nth-child(odd) { text-align: right; }
.tl-year { font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; color: var(--cyan); }
.tl-item h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.tl-item p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* 12. TABS / ACCORDION / FAQ -------------------------------------------- */
.tabs-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); width: fit-content; margin: 0 auto 44px; max-width: 100%; }
.tabs-nav button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.93rem; color: var(--text-muted); transition: background var(--t), color var(--t); }
.tabs-nav button svg { width: 17px; height: 17px; }
.tabs-nav button:hover { color: var(--heading); }
.tabs-nav button[aria-selected="true"] { background: var(--gradient-brand); color: #fff; box-shadow: 0 6px 20px rgba(34, 211, 238, 0.25); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: fadeUp 0.6s var(--ease); }

/* Service detail blocks (services page) */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--border); }
.service-detail:last-child { border-bottom: 0; }
.service-detail:nth-child(even) .sd-media { order: 2; }
.service-detail .sd-num { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; color: var(--text-muted); }
.service-detail h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 10px 0 14px; }
.service-detail .card-icon { margin-bottom: 0; }
.sd-head { display: flex; align-items: center; gap: 14px; }
.sd-media { position: relative; }
.sd-media .glass { position: absolute; right: 20px; bottom: 20px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.sd-media .glass strong { font-family: var(--font-heading); font-size: 1.3rem; display: block; line-height: 1.1; }
.sd-media .glass small { opacity: 0.75; font-size: 0.78rem; }

/* Services quick-jump nav */
.service-jump { position: sticky; top: calc(var(--header-h) + 4px); z-index: 20; background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-block: 1px solid var(--border); }
.service-jump .container { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.service-jump .container::-webkit-scrollbar { display: none; }
.service-jump a { flex-shrink: 0; padding: 8px 14px; border-radius: var(--radius-pill); font-size: 0.87rem; font-weight: 600; color: var(--text-muted); transition: background var(--t-fast), color var(--t-fast); }
.service-jump a:hover, .service-jump a.is-active { background: rgba(34, 211, 238, 0.12); color: var(--cyan); }

/* Accordion (additional services + FAQ) */
.accordion { display: grid; gap: 14px; }
.acc-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color var(--t), box-shadow var(--t); }
.acc-item.is-open { border-color: rgba(34, 211, 238, 0.4); box-shadow: var(--shadow-sm); }
.acc-trigger { width: 100%; display: flex; align-items: center; gap: 16px; padding: 20px 24px; text-align: left; font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--heading); }
.acc-trigger .card-icon { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.acc-trigger .card-icon svg { width: 20px; height: 20px; }
.acc-trigger .acc-title { flex: 1; }
.acc-trigger .acc-chevron { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); transition: transform var(--t), background var(--t), color var(--t); flex-shrink: 0; }
.acc-trigger .acc-chevron svg { width: 16px; height: 16px; }
.acc-item.is-open .acc-chevron { transform: rotate(180deg); background: var(--cyan); color: var(--navy-900); border-color: var(--cyan); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-content { padding: 0 24px 24px; color: var(--text-muted); }
.acc-content .check-list { margin-top: 8px; }
.acc-content--indent { padding-left: 84px; }

/* Process steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 28px; }
.step-num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; color: var(--heading); background: var(--surface-solid); border: 2px solid var(--border-strong); margin-bottom: 20px; position: relative; z-index: 1; transition: background var(--t), border-color var(--t), color var(--t); }
.step:hover .step-num { background: var(--gradient-brand); border-color: transparent; color: #fff; }
.steps-line { position: relative; }
.steps-line::before { content: ""; position: absolute; top: 56px; left: 28px; right: 28px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--indigo), var(--purple)); opacity: 0.35; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* Job listing (careers) */
.job { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 28px; }
.job:hover { transform: translateX(6px); }
.job h3 { margin: 0 0 6px; font-size: 1.12rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.88rem; color: var(--text-muted); }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-meta svg { width: 15px; height: 15px; }

/* 13. FORMS -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 0.9fr; gap: 32px; align-items: start; }
.form-card { padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-soft); margin-bottom: 8px; }
.field label .req { color: #f87171; }
.input {
  width: 100%; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border-strong); color: var(--heading);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast); font-size: 0.97rem;
}
.input::placeholder { color: var(--text-muted); opacity: 0.7; }
.input:hover { border-color: rgba(34, 211, 238, 0.4); }
.input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15); }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px; }
select.input option { background: var(--surface-solid); color: var(--heading); }
textarea.input { min-height: 150px; resize: vertical; }
.field.has-error .input { border-color: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12); animation: shake 0.4s; }
.field .error-msg { display: none; color: #f87171; font-size: 0.82rem; margin-top: 6px; }
.field.has-error .error-msg { display: block; }
.field.is-valid .input { border-color: rgba(16, 185, 129, 0.6); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 22px; }
.consent input { margin-top: 5px; accent-color: var(--cyan); width: 16px; height: 16px; }
.hp-field { position: absolute !important; left: -9999px !important; } /* honeypot spam trap */
.btn .spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; display: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-label-icon { display: none; }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success.is-visible { display: block; animation: fadeUp 0.6s var(--ease); }
.success-check { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(16, 185, 129, 0.15); color: var(--emerald); }
.success-check svg { width: 42px; height: 42px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawCheck 0.6s 0.2s var(--ease) forwards; }

.info-card { padding: 28px; }
.info-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.info-item:last-child { border-bottom: 0; }
.info-item .card-icon { width: 46px; height: 46px; margin: 0; flex-shrink: 0; border-radius: 12px; }
.info-item .card-icon svg { width: 20px; height: 20px; }
.info-item strong { display: block; color: var(--heading); font-family: var(--font-heading); font-size: 0.95rem; }
.info-item a, .info-item span { color: var(--text-muted); font-size: 0.93rem; }
.info-item a:hover { color: var(--cyan); }
.hours { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hours td { padding: 9px 0; border-bottom: 1px dashed var(--border); }
.hours td:last-child { text-align: right; color: var(--heading); font-weight: 600; }
.hours tr.is-today td { color: var(--cyan); }
.open-status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; padding: 4px 12px; border-radius: var(--radius-pill); margin-bottom: 10px; }
.open-status.open { background: rgba(16, 185, 129, 0.14); color: var(--emerald); }
.open-status.closed { background: rgba(248, 113, 113, 0.12); color: #f87171; }
.open-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); height: 420px; position: relative; background: var(--surface-solid); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.2) contrast(1.05); }
[data-theme="dark"] .map-wrap iframe, :root:not([data-theme="light"]) .map-wrap iframe { filter: invert(0.9) hue-rotate(180deg) grayscale(0.3); }

.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter .input { padding: 12px 14px; font-size: 0.9rem; }
.newsletter .btn { padding: 12px 16px; }

/* 14. CTA BANNER --------------------------------------------------------- */
.cta-banner { position: relative; border-radius: var(--radius-lg); padding: clamp(48px, 7vw, 80px); overflow: hidden; isolation: isolate; text-align: center; background: var(--navy-800); border: 1px solid var(--border-strong); }
.cta-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.35; }
.cta-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(10, 22, 40, 0.92) 10%, rgba(49, 46, 129, 0.75) 60%, rgba(8, 145, 178, 0.6)); background-size: 200% 200%; animation: gradientShift 10s ease infinite; }
.cta-banner h2 { color: #fff; max-width: 760px; margin-inline: auto; }
.cta-banner p { color: #cbd5e1; max-width: 600px; margin: 0 auto 32px; font-size: 1.1rem; }
.cta-banner .btn-group { justify-content: center; }
.cta-banner .btn-ghost { color: #fff; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); }

/* 15. FOOTER ------------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: #94a3b8; padding: 88px 0 0; position: relative; overflow: hidden; }
[data-theme="light"] .site-footer { background: #0b1324; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gradient-logo); opacity: 0.85; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; }
.site-footer .logo { color: #fff; }
.footer-logo { display: inline-block; }
.footer-logo img { width: 190px; height: auto; transition: transform var(--t); }
.footer-logo:hover img { transform: scale(1.03); }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 20px; letter-spacing: 0.02em; }
.footer-about p { margin: 18px 0 22px; font-size: 0.94rem; max-width: 320px; }
.footer-links li + li { margin-top: 11px; }
.footer-links a { font-size: 0.93rem; transition: color var(--t-fast), padding var(--t-fast); display: inline-flex; }
.footer-links a:hover { color: var(--cyan); padding-left: 4px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(148, 163, 184, 0.2); color: #cbd5e1; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), border-color var(--t-fast); }
.socials a:hover { background: var(--cyan); border-color: var(--cyan); color: var(--navy-900); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-contact li { display: flex; gap: 10px; font-size: 0.93rem; margin-bottom: 12px; }
.footer-contact svg { width: 17px; height: 17px; color: var(--cyan); flex-shrink: 0; margin-top: 4px; }
.footer-contact a:hover { color: var(--cyan); }
.site-footer .newsletter .input { background: rgba(255,255,255,0.05); border-color: rgba(148,163,184,0.2); color: #fff; }
.footer-bottom { margin-top: 64px; padding: 24px 0; border-top: 1px solid rgba(148, 163, 184, 0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.86rem; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--cyan); }
.footer-watermark { font-family: var(--font-heading); font-weight: 800; font-size: clamp(4rem, 15vw, 12rem); line-height: 0.8; text-align: center; letter-spacing: -0.05em; background: linear-gradient(to bottom, rgba(148,163,184,0.09), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; margin-top: 24px; white-space: nowrap; overflow: hidden; }

/* 16. UTILITIES & ANIMATION --------------------------------------------- */
/* Scroll reveal — elements start hidden, JS adds .is-visible.
   The .js class guarantees content stays visible if JavaScript is off. */
.js [data-reveal] { opacity: 0; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--delay, 0s); will-change: opacity, transform; }
.js [data-reveal="up"] { transform: translateY(40px); }
.js [data-reveal="down"] { transform: translateY(-30px); }
.js [data-reveal="left"] { transform: translateX(-50px); }
.js [data-reveal="right"] { transform: translateX(50px); }
.js [data-reveal="zoom"] { transform: scale(0.92); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200; background: var(--gradient-logo); transform-origin: 0 50%; transform: scaleX(0); }

/* Back to top with ring progress */
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-solid); border: 1px solid var(--border-strong); color: var(--heading); box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity var(--t), transform var(--t), visibility var(--t), color var(--t-fast); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: var(--cyan); transform: translateY(-3px); }
.back-to-top svg.arrow { width: 20px; height: 20px; position: relative; z-index: 1; }
.back-to-top .ring { position: absolute; inset: -1px; width: 54px; height: 54px; transform: rotate(-90deg); }
.back-to-top .ring circle { fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 157; stroke-dashoffset: 157; transition: stroke-dashoffset 0.1s linear; }

/* Page preloader */
.preloader { position: fixed; inset: 0; z-index: 999; background: var(--navy-900); display: grid; place-items: center; transition: opacity 0.6s var(--ease), visibility 0.6s; }
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader .logo-mark { width: 64px; height: 64px; animation: pulseScale 1.4s ease-in-out infinite; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 120px); padding: 14px 20px; display: flex; align-items: center; gap: 10px; transition: transform 0.5s var(--ease); font-size: 0.93rem; max-width: calc(100% - 32px); }
.toast.is-visible { transform: translate(-50%, 0); }
.toast svg { width: 20px; height: 20px; color: var(--emerald); flex-shrink: 0; }

/* Image fallback (applied by JS when a remote image fails to load) */
img.img-fallback { object-fit: cover; background: linear-gradient(135deg, #0f1f38, #312e81 60%, #0e7490); }

/* Keyframes */
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -40px) scale(1.05); } 66% { transform: translate(-20px, 20px) scale(0.95); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes slowZoom { from { transform: scale(1.05); } to { transform: scale(1.18); } }
@keyframes gridMove { from { background-position: 0 0; } to { background-position: 64px 64px; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); } 70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
@keyframes blink { to { opacity: 0; } }
@keyframes bars { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.5); } }
.mini-bars i { transform-origin: bottom; }
@keyframes scrollCue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
@keyframes gradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes pulseScale { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.88); opacity: 0.7; } }
@keyframes rotate { to { transform: rotate(360deg); } }

/* Hero entrance (runs once on load) */
.hero-enter > * { animation: fadeUp 1s var(--ease) both; }
.hero-enter > *:nth-child(1) { animation-delay: 0.1s; }
.hero-enter > *:nth-child(2) { animation-delay: 0.2s; }
.hero-enter > *:nth-child(3) { animation-delay: 0.32s; }
.hero-enter > *:nth-child(4) { animation-delay: 0.44s; }
.hero-enter > *:nth-child(5) { animation-delay: 0.56s; }

/* 17. RESPONSIVE --------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-actions .btn { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { justify-self: center; max-width: 480px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .service-detail { gap: 48px; }
  .stat:nth-child(3)::before { display: none; }
}
@media (min-width: 1081px) { .mobile-menu { display: none; } }
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .service-detail, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split-media, .service-detail:nth-child(even) .sd-media { order: 0; }
  .testimonial-inner { grid-template-columns: 1fr; }
  .testimonial-photo { min-height: 220px; }
  .testimonial-body { padding: 32px; }
  .timeline::before, .timeline-progress { left: 9px; }
  .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 40px 44px; text-align: left; }
  .tl-item::after, .tl-item:nth-child(even)::after { left: 0; right: auto; }
  .steps-line::before { display: none; }
  .acc-content--indent { padding-left: 24px; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .container { padding: 0 20px; }
  .grid-2, .grid-3, .grid-4, .form-row, .mv-grid, .check-list.cols-2 { grid-template-columns: 1fr; }
  .stats-panel .grid-4 { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .stat::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-visual { aspect-ratio: 4 / 4.2; }
  .fc-1 { left: 0; top: 4%; }
  .fc-2 { left: 0; bottom: 6%; }
  .fc-3 { right: 0; }
  .float-card { padding: 10px 14px; transform: scale(0.9); }
  .btn-group .btn { flex: 1 1 auto; }
  .form-card { padding: 26px 20px; }
  .job { flex-direction: column; align-items: flex-start; }
  .img-stack { padding: 0 0 40px 20px; }
  .exp-badge { right: 0; }
  .tabs-nav { border-radius: var(--radius); }
  .feature { padding: 22px; }
  .hero-trust { flex-wrap: wrap; }
  .scroll-cue { display: none; }
  .theme-toggle { width: 40px; height: 40px; }
}

/* 18. REDUCED MOTION ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ---- Refinements ---------------------------------------------------- */
.feature--stack { flex-direction: column; gap: 14px; }
.steps-line::before { right: calc(25% - 4px); }
.footer-watermark { font-size: min(11vw, 8.4rem); }
.newsletter .btn { width: 46px; height: 46px; padding: 0; flex-shrink: 0; }
@media (max-width: 640px) {
  .logo small { display: none; }
  .logo { font-size: 1.15rem; }
}
/* Services page: leave room for the sticky header + quick-jump bar when jumping to a section */
html:has(.service-jump) { scroll-padding-top: calc(68px + 72px); }
.service-jump { top: 68px; }
