/* ═══════════════════════════════════════════════════════════
   ZenOffense — Cybersecurity Solutions
   Premium dark-first theme · Performance-optimized
   (no per-card backdrop-filter, transform-only animations)
   ═══════════════════════════════════════════════════════════ */

/* ──────────────── 1. Design tokens ──────────────── */
:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Dark theme (default) */
  --bg: #050816;
  --bg-2: #07101d;
  --bg-3: #0a1526;
  --surface: rgba(14, 23, 42, 0.88);
  --surface-solid: #0b1424;
  --border: rgba(120, 160, 220, 0.13);
  --border-strong: rgba(120, 170, 235, 0.28);
  --text: #e6edf7;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --glow: rgba(34, 211, 238, 0.3);
  --grad: linear-gradient(120deg, #22d3ee 0%, #3b82f6 100%);
  --shadow-card: 0 8px 28px rgba(2, 6, 23, 0.4);
  --shadow-lift: 0 18px 44px rgba(2, 6, 23, 0.55), 0 0 0 1px var(--border-strong);
  --grid-line: rgba(110, 160, 230, 0.05);
  --nav-bg: rgba(5, 8, 22, 0.95);

  --radius: 18px;
  --radius-sm: 12px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.3s;
}

[data-theme="light"] {
  --bg: #f6f8fc;
  --bg-2: #eef2f9;
  --bg-3: #e6ecf6;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --border: rgba(15, 40, 90, 0.1);
  --border-strong: rgba(15, 60, 140, 0.22);
  --text: #0b1424;
  --text-2: #44546c;
  --text-3: #6b7a92;
  --accent: #0891b2;
  --accent-2: #2563eb;
  --accent-soft: rgba(8, 145, 178, 0.09);
  --glow: rgba(8, 145, 178, 0.2);
  --grad: linear-gradient(120deg, #0891b2 0%, #2563eb 100%);
  --shadow-card: 0 6px 22px rgba(15, 30, 70, 0.07);
  --shadow-lift: 0 16px 36px rgba(15, 30, 70, 0.12), 0 0 0 1px var(--border-strong);
  --grid-line: rgba(30, 60, 130, 0.05);
  --nav-bg: rgba(246, 248, 252, 0.96);
}

/* ──────────────── 2. Base ──────────────── */
* { box-sizing: border-box; }

html { scroll-padding-top: 90px; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

main { position: relative; z-index: 1; }

::selection { background: var(--accent); color: #041018; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; color: var(--text); }

a { color: var(--accent); text-decoration: none; }

svg.lucide, [data-lucide] { flex-shrink: 0; }

.skip-link {
  position: absolute;
  top: -48px; left: 16px;
  z-index: 3000;
  background: var(--accent);
  color: #041018;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; color: #041018; }

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

/* ──────────────── 3. Header / Nav ──────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
/* No backdrop-filter here: blur on a fixed element forces a re-blur of the
   page behind it on every scrolled frame (major Chrome/Safari scroll jank). */
.site-header.scrolled {
  background: var(--nav-bg);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.25);
}
[data-theme="light"] .site-header.scrolled { box-shadow: 0 8px 24px rgba(15, 30, 70, 0.06); }

.navbar-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

/* Brand / logo */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-logo { display: grid; place-items: center; }
.brand-logo svg { width: 34px; height: 34px; }
.brand-name { font-size: 1.22rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); line-height: 1; }
.brand-name span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
@media (min-width: 992px) { .nav-links { display: flex; } }

.nav-link-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-2);
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: color var(--dur) ease;
}
.nav-link-item::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-link-item:hover, .nav-link-item.active { color: var(--text); }
.nav-link-item:hover::after, .nav-link-item.active::after { transform: scaleX(1); }
.nav-link-item .chev { width: 14px; height: 14px; transition: transform 0.3s var(--ease-out); }
.has-dropdown:hover .chev, .has-dropdown.open .chev { transform: rotate(180deg); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  padding-top: 12px;
  min-width: 300px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.28s var(--ease-out);
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel,
.has-dropdown.open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.dropdown-inner {
  display: grid;
  gap: 2px;
  padding: 10px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
}
.dropdown-inner a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 11px;
  transition: background-color 0.2s ease;
}
.dropdown-inner a:hover, .dropdown-inner a:focus-visible { background: var(--accent-soft); }
.dropdown-inner a svg { width: 19px; height: 19px; color: var(--accent); }
.dropdown-inner strong { display: block; font-size: 0.92rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.dropdown-inner small { display: block; font-size: 0.76rem; color: var(--text-3); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  position: relative;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: color var(--dur) ease, border-color var(--dur) ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--border-strong); }
.theme-toggle svg { position: absolute; width: 18px; height: 18px; transition: opacity 0.3s ease, transform 0.4s var(--ease-out); }
[data-theme="dark"] .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="dark"] .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--dur) ease;
}
.hamburger:hover { border-color: var(--border-strong); }
@media (min-width: 992px) { .hamburger { display: none; } }
.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease-out), opacity 0.3s ease;
}
.hamburger span:nth-child(2) { width: 70%; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 900; pointer-events: none; visibility: hidden; }
.mobile-menu.open { pointer-events: auto; visibility: visible; }
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 18, 0.72);
  opacity: 0;
  transition: opacity 0.4s ease;
}
[data-theme="light"] .mobile-menu-backdrop { background: rgba(210, 220, 238, 0.72); }
.mobile-menu.open .mobile-menu-backdrop { opacity: 1; }

.mobile-menu-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 100px 30px 34px;
  overflow-y: auto;
  background: var(--surface-solid);
  border-left: 1px solid var(--border);
  box-shadow: -30px 0 60px rgba(2, 6, 23, 0.45);
  transform: translateX(102%);
  transition: transform 0.5s var(--ease-out);
}
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }

.mobile-nav-list { list-style: none; margin: 0 0 26px; padding: 0; }
.mobile-nav-list > li {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.4s ease, transform 0.45s var(--ease-out);
}
.mobile-menu.open .mobile-nav-list > li { opacity: 1; transform: translateX(0); }
.mobile-menu.open .mobile-nav-list > li:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open .mobile-nav-list > li:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.open .mobile-nav-list > li:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.open .mobile-nav-list > li:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.open .mobile-nav-list > li:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu.open .mobile-nav-list > li:nth-child(6) { transition-delay: 0.38s; }

.mobile-nav-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color var(--dur) ease, padding-left var(--dur) var(--ease-out);
}
.mobile-nav-list a::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--dur) ease;
}
.mobile-nav-list a:hover { color: var(--accent); padding-left: 10px; }
.mobile-nav-list a:hover::before { opacity: 1; }

.mobile-group-label {
  display: block;
  padding: 18px 4px 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.mobile-nav-list a.mobile-sub {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 11px 4px;
  border-bottom: 0;
}
.mobile-nav-list a.mobile-sub:hover { color: var(--accent); }

.mobile-menu-footer { display: grid; gap: 14px; }
.mobile-menu-note {
  margin: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

/* ──────────────── 4. Buttons ──────────────── */
.btn-glow, .btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 13px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease;
}
.btn-glow svg, .btn-ghost svg { width: 17px; height: 17px; transition: transform var(--dur) var(--ease-out); }
.btn-glow:hover svg, .btn-ghost:hover svg { transform: translateX(4px); }

.btn-glow {
  background: var(--grad);
  color: #041018;
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-glow:hover {
  color: #041018;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(34, 211, 238, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-glow:active { transform: translateY(0) scale(0.98); }
.btn-glow-sm { padding: 10px 20px; font-size: 0.88rem; border-radius: 11px; }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 22px var(--glow);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* ──────────────── 5. Layout helpers ──────────────── */
.section-pad { padding: 104px 0; position: relative; }
.section-pad-sm { padding: 64px 0; position: relative; }
@media (max-width: 767px) {
  .section-pad { padding: 72px 0; }
  .section-pad-sm { padding: 48px 0; }
}
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head.text-start { margin-left: 0; text-align: left; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}
.section-eyebrow svg { width: 14px; height: 14px; }

.section-title { font-size: clamp(1.85rem, 4vw, 2.8rem); line-height: 1.16; margin-bottom: 18px; }
.section-sub { color: var(--text-2); font-size: 1.05rem; max-width: 680px; margin: 0 auto; }
.section-head.text-start .section-sub { margin: 0; }

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glass card base — no backdrop-filter (perf) */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease, border-color var(--dur) ease;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}
.card-link svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease-out); }
.card-link:hover svg { transform: translateX(4px); }

/* ──────────────── 6. Hero (home) ──────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 150px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 65% 8%, rgba(59, 130, 246, 0.13), transparent 60%),
    radial-gradient(ellipse 55% 45% at 12% 88%, rgba(34, 211, 238, 0.09), transparent 60%),
    var(--bg);
}
[data-theme="light"] .hero {
  background:
    radial-gradient(ellipse 70% 55% at 65% 8%, rgba(37, 99, 235, 0.09), transparent 60%),
    radial-gradient(ellipse 55% 45% at 12% 88%, rgba(8, 145, 178, 0.07), transparent 60%),
    var(--bg);
}

.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; }

/* Grid overlay — animated via transform (compositor-only) */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, black 30%, transparent 75%);
}
/* Static grid: animating inside a masked full-screen layer forces Chrome to
   re-composite the mask every frame. The canvas provides the motion instead. */
.hero-grid-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Glow orbs — radial gradients, no blur() filter (perf) */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-glow-1 {
  width: 640px; height: 640px;
  top: -220px; right: -160px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.17) 0%, transparent 62%);
  animation: glowFloat 12s ease-in-out infinite;
}
.hero-glow-2 {
  width: 540px; height: 540px;
  bottom: -200px; left: -170px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.13) 0%, transparent 62%);
  animation: glowFloat 15s ease-in-out infinite reverse;
}
@keyframes glowFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-30px, 34px, 0); }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  margin-bottom: 26px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
/* Ping ring uses transform/opacity (compositor-only) instead of animating
   box-shadow, which repaints every frame. */
.pulse-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(52, 211, 153, 0.7);
  animation: pulseDot 2s ease-out infinite;
}
@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-title .line { display: block; }
.hero-title .accent {
  background: linear-gradient(120deg, #67e8f9 0%, #22d3ee 40%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .hero-title .accent {
  background: linear-gradient(120deg, #0891b2 0%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-sub { font-size: 1.1rem; color: var(--text-2); max-width: 560px; margin-bottom: 34px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 42px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-3);
}
.trust-item svg { width: 15px; height: 15px; color: var(--accent); }

/* Hero terminal visual */
.hero-visual { position: relative; }
.terminal-card { overflow: hidden; border-radius: var(--radius); }
.terminal-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.35);
}
[data-theme="light"] .terminal-head { background: rgba(230, 236, 246, 0.7); }
.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-dot.red { background: #f87171; } .t-dot.yellow { background: #fbbf24; } .t-dot.green { background: #34d399; }
.terminal-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-3);
}
.terminal-body {
  padding: 20px 22px;
  min-height: 300px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 2.05;
  color: var(--text-2);
}
.terminal-body .t-line { display: block; white-space: nowrap; overflow: hidden; }
.terminal-body .ok { color: #34d399; }
.terminal-body .warn { color: #fbbf24; }
.terminal-body .info { color: var(--accent); }
.terminal-body .t-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 15px;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
}
.floating-chip svg { width: 24px; height: 24px; color: var(--accent); }
.floating-chip strong { display: block; font-size: 1.05rem; line-height: 1.2; color: var(--text); }
.floating-chip small { color: var(--text-3); font-size: 0.72rem; }
.chip-1 { top: -26px; right: -14px; animation: chipFloat 6s ease-in-out infinite; }
.chip-2 { bottom: -22px; left: -20px; animation: chipFloat 7.5s ease-in-out infinite reverse; }
@keyframes chipFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

.scroll-indicator {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 2px solid var(--border-strong);
  border-radius: 14px;
  z-index: 2;
}
.scroll-indicator span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 3px;
  background: var(--accent);
  animation: scrollHint 1.8s var(--ease-out) infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(13px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ──────────────── 7. Page hero (sub-pages) ──────────────── */
.page-hero {
  position: relative;
  padding: 165px 0 84px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 70% at 70% 0%, rgba(59, 130, 246, 0.12), transparent 60%),
    radial-gradient(ellipse 45% 50% at 8% 100%, rgba(34, 211, 238, 0.08), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .page-hero {
  background:
    radial-gradient(ellipse 65% 70% at 70% 0%, rgba(37, 99, 235, 0.08), transparent 60%),
    radial-gradient(ellipse 45% 50% at 8% 100%, rgba(8, 145, 178, 0.06), transparent 60%),
    var(--bg);
}
.page-hero .hero-grid-overlay { -webkit-mask-image: linear-gradient(black 40%, transparent); mask-image: linear-gradient(black 40%, transparent); }

.breadcrumb-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-3);
}
.breadcrumb-custom a { color: var(--text-3); transition: color var(--dur) ease; }
.breadcrumb-custom a:hover { color: var(--accent); }
.breadcrumb-custom svg { width: 14px; height: 14px; }
.breadcrumb-custom span { color: var(--text-2); font-weight: 500; }

.page-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
  position: relative;
}
.page-hero .lead-sub {
  position: relative;
  max-width: 740px;
  font-size: 1.08rem;
  color: var(--text-2);
  margin: 0;
}
.page-hero .container { position: relative; z-index: 2; }

/* ──────────────── 8. Service / feature cards ──────────────── */
.service-card {
  height: 100%;
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.5), transparent 40%, transparent 60%, rgba(59, 130, 246, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur) ease;
  pointer-events: none;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease;
}
.service-icon svg { width: 24px; height: 24px; }
.service-icon.lg { width: 60px; height: 60px; }
.service-icon.lg svg { width: 28px; height: 28px; }
.service-card:hover .service-icon { transform: scale(1.08); box-shadow: 0 0 22px var(--glow); }

.service-card h3 { font-size: 1.14rem; margin-bottom: 10px; }
.service-card p { font-size: 0.92rem; color: var(--text-2); margin-bottom: 18px; flex: 1; }

/* Numbered cards (benefits / process steps) */
.num-card { height: 100%; padding: 30px 28px; }
.num-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--border-strong); }
.num-badge {
  display: inline-flex;
  padding: 4px 12px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}
.num-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.num-card p { font-size: 0.92rem; color: var(--text-2); margin: 0; }

/* ──────────────── 9. Split rows (text + visual) ──────────────── */
.visual-panel {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% 110%, rgba(34, 211, 238, 0.14), transparent 65%),
    var(--surface-solid);
  overflow: hidden;
}
.visual-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 30px 30px;
}
.visual-panel .vp-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 116px; height: 116px;
  border-radius: 30px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 44px var(--glow);
}
.visual-panel .vp-icon svg { width: 52px; height: 52px; }
.visual-panel .vp-tag {
  position: absolute;
  bottom: 22px;
  padding: 7px 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.visual-panel.alt { background: radial-gradient(ellipse at 50% 110%, rgba(59, 130, 246, 0.15), transparent 65%), var(--surface-solid); }

.split-content h3 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-bottom: 14px; }
.split-content .split-kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.split-content p { color: var(--text-2); font-size: 0.98rem; }

/* Check / arrow lists */
.check-list, .arrow-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 13px; }
.check-list li, .arrow-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 0.95rem; color: var(--text-2); }
.check-list li strong, .arrow-list li strong { color: var(--text); }
.check-list svg, .arrow-list svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }

/* ──────────────── 10. Stats ──────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 575px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card { padding: 32px 28px; }
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.stat-value {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-unit { font-size: 0.6em; }
.stat-card p { margin: 0; font-size: 0.9rem; color: var(--text-2); }

/* ──────────────── 11. Timeline ──────────────── */
.timeline { position: relative; max-width: 880px; margin: 0 auto; padding-left: 42px; }
.timeline-progress {
  position: absolute;
  left: 19px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.timeline-progress span {
  display: block;
  width: 100%;
  height: 0%;
  background: var(--grad);
}

.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -42px; top: 22px;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  box-shadow: 0 0 0 5px var(--bg);
  z-index: 1;
}
.section-alt .timeline-marker { box-shadow: 0 0 0 5px var(--bg-2); }
.timeline-card { padding: 28px 30px; }
.timeline-card:hover { transform: translateX(6px); box-shadow: var(--shadow-lift); border-color: var(--border-strong); }
.timeline-card h3 { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; margin-bottom: 10px; }
.timeline-card h3 svg { width: 20px; height: 20px; color: var(--accent); }
.timeline-card p { margin: 0; font-size: 0.94rem; color: var(--text-2); }
.timeline-card ul { margin: 12px 0 0; padding-left: 20px; color: var(--text-2); font-size: 0.92rem; display: grid; gap: 6px; }

@media (min-width: 768px) {
  .timeline { padding-left: 0; }
  .timeline-progress { left: 50%; margin-left: -1px; }
  .timeline-item { width: 50%; padding-bottom: 46px; }
  .timeline-item:nth-child(even) { padding-right: 54px; }
  .timeline-item:nth-child(even) .timeline-marker { left: auto; right: -20px; }
  .timeline-item:nth-child(odd) { margin-left: 50%; padding-left: 54px; }
  .timeline-item:nth-child(odd) .timeline-marker { left: -20px; }
}

/* ──────────────── 12. Cert badges ──────────────── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
}
.cert-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
}
.cert-badge svg { width: 21px; height: 21px; color: var(--accent); }
.cert-badge:hover {
  transform: translateY(-4px);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: 0 0 22px var(--glow);
}

/* ──────────────── 13. FAQ ──────────────── */
.faq-accordion { display: grid; gap: 14px; }
.faq-accordion .accordion-item {
  background: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.faq-accordion .accordion-item:hover { border-color: var(--border-strong) !important; }
.faq-accordion .accordion-button {
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  box-shadow: none;
}
.faq-accordion .accordion-button:not(.collapsed) { color: var(--accent); background: transparent; }
.faq-accordion .accordion-button:focus { box-shadow: 0 0 0 2px var(--glow); }
.faq-accordion .accordion-button::after {
  filter: 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='%2322d3ee' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.faq-accordion .accordion-body { padding: 0 24px 22px; font-size: 0.93rem; color: var(--text-2); }

.faq-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 46px 0 20px;
  font-size: 1.25rem;
}
.faq-group-title:first-of-type { margin-top: 0; }
.faq-group-title svg { width: 22px; height: 22px; color: var(--accent); }

/* ──────────────── 14. CTA band ──────────────── */
.cta-band {
  position: relative;
  padding: 66px 40px;
  text-align: center;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse 60% 120% at 50% -20%, rgba(34, 211, 238, 0.14), transparent 70%),
    var(--surface-solid);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(black, transparent 80%);
  mask-image: linear-gradient(black, transparent 80%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.cta-band p { color: var(--text-2); max-width: 560px; margin: 0 auto 30px; }
.cta-band .hero-cta { justify-content: center; margin: 0; }

/* ──────────────── 15. Contact ──────────────── */
.contact-shell { overflow: hidden; }
.contact-info {
  position: relative;
  padding: 52px 44px;
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.07), rgba(59, 130, 246, 0.05));
  border-right: 1px solid var(--border);
  overflow: hidden;
  height: 100%;
}
@media (max-width: 991px) { .contact-info { border-right: 0; border-bottom: 1px solid var(--border); } }
.contact-info > p { color: var(--text-2); font-size: 0.97rem; margin: 18px 0 32px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; position: relative; z-index: 1; }
.contact-list li { display: flex; gap: 16px; }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.contact-list strong { display: block; font-size: 0.92rem; margin-bottom: 2px; }
.contact-list a, .contact-list span { font-size: 0.9rem; color: var(--text-2); }
.contact-list a:hover { color: var(--accent); }
.contact-shield {
  position: absolute;
  right: -60px; bottom: -60px;
  width: 260px; height: 260px;
  color: var(--accent);
  opacity: 0.07;
  pointer-events: none;
}

.contact-form-wrap { position: relative; padding: 52px 44px; }
@media (max-width: 767px) {
  .contact-info, .contact-form-wrap { padding: 36px 26px; }
}

/* Floating-label fields */
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 24px 18px 10px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { cursor: pointer; }
.field label {
  position: absolute;
  left: 18px; top: 17px;
  font-size: 0.94rem;
  color: var(--text-3);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.22s var(--ease-out), color 0.22s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label,
.field select:focus ~ label,
.field select.has-value ~ label {
  transform: translateY(-11px) scale(0.74);
  color: var(--accent);
}

/* Phone field with prefix */
.field.field-phone input { padding-left: 66px; }
.field.field-phone label { left: 66px; }
.phone-prefix {
  position: absolute;
  left: 0; top: 1px; bottom: 1px;
  display: flex;
  align-items: center;
  padding: 0 12px 0 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-2);
  border-right: 1px solid var(--border);
  pointer-events: none;
}

.field-error {
  display: block;
  max-height: 0;
  overflow: hidden;
  font-size: 0.78rem;
  color: #f87171;
  transition: max-height 0.3s ease, margin 0.3s ease;
}
.field.invalid .field-error { max-height: 26px; margin-top: 7px; }
.field.invalid input, .field.invalid textarea, .field.invalid select {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}
.form-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 0.78rem;
  color: var(--text-3);
}
.form-note svg { width: 13px; height: 13px; color: var(--accent); }

.form-success {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 10px;
  padding: 40px;
  background: var(--surface-solid);
  border-radius: inherit;
  animation: fadeScaleIn 0.5s var(--ease-out);
  z-index: 5;
}
.form-success[hidden] { display: none; }
.form-success svg { width: 52px; height: 52px; color: #34d399; margin: 0 auto; }
.form-success h3 { margin: 0; }
.form-success p { color: var(--text-2); margin: 0; }
@keyframes fadeScaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

/* ──────────────── 16. Prose (policy pages) ──────────────── */
.prose { max-width: 840px; margin: 0 auto; }
.prose h2 { font-size: 1.45rem; margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--text-2); font-size: 0.97rem; }
.prose ul { padding-left: 22px; display: grid; gap: 8px; margin-bottom: 16px; }
.prose strong { color: var(--text); }
.prose .prose-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 34px;
}

/* ──────────────── 17. Footer ──────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.footer-top { padding: 76px 0 56px; }
.footer-desc { margin: 20px 0 24px; font-size: 0.9rem; color: var(--text-2); max-width: 350px; }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: color var(--dur) ease, border-color var(--dur) ease, transform var(--dur) var(--ease-out);
}
.footer-social svg { width: 17px; height: 17px; }
.footer-social a:hover {
  color: var(--accent);
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-links a {
  position: relative;
  font-size: 0.92rem;
  color: var(--text-2);
  transition: color var(--dur) ease;
}
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.footer-links a:hover { color: var(--text); }
.footer-links a:hover::after { transform: scaleX(1); }

.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.footer-contact li { display: flex; gap: 10px; font-size: 0.86rem; color: var(--text-2); }
.footer-contact svg { width: 16px; height: 16px; color: var(--accent); margin-top: 4px; }
.footer-contact a { color: var(--text-2); transition: color var(--dur) ease; }
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}
.footer-bottom p { margin: 0; font-size: 0.82rem; color: var(--text-3); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer-legal a { font-size: 0.82rem; color: var(--text-3); transition: color var(--dur) ease; }
.footer-legal a:hover { color: var(--accent); }

/* ──────────────── 18. WhatsApp float ──────────────── */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 850;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }
.whatsapp-float:hover, .whatsapp-float:focus-visible {
  color: #ffffff;
  transform: translateY(-4px) scale(1.07);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.5);
}
.whatsapp-float:active { transform: scale(0.96); }
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: waPing 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes waPing {
  0% { transform: scale(1); opacity: 1; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}
@media (max-width: 767px) {
  .whatsapp-float { width: 50px; height: 50px; right: 16px; bottom: 16px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* Form sending state */
.btn-glow:disabled { opacity: 0.7; cursor: wait; transform: none; }

/* ──────────────── 19. Reduced motion ──────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
