/* ============================================================
   Noah Trader — style.css
   Primary: #0A64BC · Rounded corners · Dark/Light themes
   ============================================================ */

:root {
  --primary: #0A64BC;
  --primary-light: #3B8EE8;
  --primary-glow: rgba(10, 100, 188, 0.45);
  --green: #22c55e;
  --red: #ef4444;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.35s;
}

[data-theme='dark'] {
  --bg: #060b14;
  --bg-2: #0a1220;
  --surface: #0d1626;
  --surface-2: #111d31;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(59, 142, 232, 0.45);
  --text: #eaf1fa;
  --text-muted: #93a3ba;
  --nav-bg: rgba(6, 11, 20, 0.75);
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --card-shadow-hover: 0 18px 50px rgba(10, 100, 188, 0.28);
  --orb-opacity: 0.5;
  --grid-line: rgba(59, 142, 232, 0.07);
  --chart-bg: rgba(13, 22, 38, 0.85);
}

[data-theme='light'] {
  --bg: #f5f8fc;
  --bg-2: #eef3fa;
  --surface: #ffffff;
  --surface-2: #f2f6fb;
  --border: rgba(10, 40, 80, 0.1);
  --border-hover: rgba(10, 100, 188, 0.45);
  --text: #0c1a2b;
  --text-muted: #4e617a;
  --nav-bg: rgba(245, 248, 252, 0.8);
  --card-shadow: 0 8px 30px rgba(15, 45, 90, 0.08);
  --card-shadow-hover: 0 18px 50px rgba(10, 100, 188, 0.18);
  --orb-opacity: 0.25;
  --grid-line: rgba(10, 100, 188, 0.06);
  --chart-bg: rgba(255, 255, 255, 0.9);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background var(--dur) ease, color var(--dur) ease;
  -webkit-font-smoothing: antialiased;
}
img, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.container { width: min(1160px, 92%); margin: 0 auto; }
.section-pad { padding: 82px 0; }
.section-pad-sm { padding: 42px 0; }

::selection { background: var(--primary); color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Typography ---------- */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(10, 100, 188, 0.12);
  border: 1px solid rgba(10, 100, 188, 0.25);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub { color: var(--text-muted); font-size: 1.05rem; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.head-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.head-rule::before {
  content: '';
  width: 56px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.head-rule::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
}
.accent-text {
  background: linear-gradient(100deg, var(--primary-light), var(--primary) 60%, #7db8f5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease;
}
.btn svg { transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: scale(1.15) rotate(-6deg); }
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  box-shadow: 0 6px 20px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 34px var(--primary-glow), 0 0 0 4px rgba(10, 100, 188, 0.18);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  background: rgba(10, 100, 188, 0.08);
  transform: translateY(-3px);
}
.btn-ghost:hover svg { transform: translateX(5px); }

.btn-light {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}
.btn-light:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3); }

.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-sm { padding: 9px 20px; font-size: 0.88rem; }

/* ---------- Nav (morphing floating pill) ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: padding 0.5s var(--ease);
}
.nav .container {
  width: min(1160px, 92%);
  transition: width 0.5s var(--ease);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 8px 6px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease),
    border-color 0.5s var(--ease), padding 0.5s var(--ease);
}
/* On scroll: shrink into a centered, glassy, rounded pill */
.nav.scrolled { padding: 12px 0; }
.nav.scrolled .container { width: min(900px, 92%); }
.nav.scrolled .nav-inner {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.14);
  padding: 6px 8px 6px 16px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; transition: transform var(--dur) var(--ease); }
.logo:hover { transform: scale(1.04); }
.logo-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 12px;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.logo-text em { font-style: normal; color: var(--primary-light); }

.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
/* Push the CTA to the far right, visually separated from the text links */
.nav-links .nav-cta { margin-left: 8px; }
.nav-links > a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color var(--dur) ease;
}
.nav-links > a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--primary-light);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-links > a:not(.btn):hover::after { transform: scaleX(1); }

/* On desktop this only wraps the hidden hamburger — collapse it so it doesn't
   leave dead space to the right of the Connect button */
.nav-actions { display: none; align-items: center; gap: 12px; }

/* Floating theme toggle — pinned just above the WhatsApp button */
.theme-float {
  position: fixed;
  left: 26px;
  bottom: 26px;               /* bottom-left corner */
  z-index: 90;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
  transition: transform var(--dur) var(--ease), border-color var(--dur) ease,
    background var(--dur) ease;
  animation: wa-pop 0.6s var(--ease) 1.35s backwards;
}
.theme-float:hover {
  border-color: var(--border-hover);
  background: rgba(10, 100, 188, 0.12);
  transform: rotate(20deg) scale(1.1);
}
[data-theme='dark'] .icon-moon { display: none; }
[data-theme='light'] .icon-sun { display: none; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span {
  width: 24px; height: 2.5px;
  background: var(--text);
  border-radius: 3px;
  transition: all var(--dur) var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 0 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--orb-opacity);
  animation: drift 16s ease-in-out infinite alternate;
}
.orb-1 { width: 480px; height: 480px; background: var(--primary); top: -140px; left: -120px; }
.orb-2 { width: 380px; height: 380px; background: #1d4ed8; bottom: -100px; right: -80px; animation-delay: -5s; }
.orb-3 { width: 260px; height: 260px; background: var(--primary-light); top: 40%; left: 55%; animation-delay: -10s; opacity: calc(var(--orb-opacity) * 0.6); }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, -40px) scale(1.15); }
}
.grid-overlay {
  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;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(10, 100, 188, 0.1);
  border: 1px solid rgba(10, 100, 188, 0.3);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 26px;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }

.hero-proof { display: flex; align-items: center; gap: 14px; color: var(--text-muted); font-size: 0.92rem; }
.avatars { display: flex; }
.avatars span {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--surface-2), var(--primary));
  border: 2px solid var(--bg);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  margin-left: -10px;
  transition: transform var(--dur) var(--ease);
}
.avatars span:first-child { margin-left: 0; }
.avatars span:hover { transform: translateY(-4px); }

/* Hero chart card */
.hero-chart { position: relative; }
.chart-card {
  background: var(--chart-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--card-shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s ease;
}
.chart-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-hover);
}
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; gap: 12px; }
.chart-pair { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); }
.pair-dot { width: 9px; height: 9px; border-radius: 50%; background: #f7931a; box-shadow: 0 0 10px rgba(247, 147, 26, 0.7); flex: none; }
.pair-meta { display: flex; flex-direction: column; line-height: 1.25; }
.pair-name { font-weight: 600; font-size: 0.95rem; }
.chart-price {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  transition: color 0.45s ease;
}
.chart-price.up { color: var(--green); }
.chart-price.down { color: var(--red); }
.chart-price.muted { color: var(--text-muted); font-weight: 600; font-size: 0.9rem; }

.chart-head-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.chart-change {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.chart-change.up { color: var(--green); }
.chart-change.down { color: var(--red); }

.chart-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--green);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.chart-badge.demo {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: live-pulse 1.6s ease-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
#heroCanvas { width: 100%; height: 300px; border-radius: var(--radius-sm); }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  box-shadow: var(--card-shadow);
  font-size: 0.85rem;
  animation: floaty 5s ease-in-out infinite;
  transition: transform var(--dur) var(--ease), border-color var(--dur) ease;
}
.float-card:hover { border-color: var(--border-hover); }
.float-card strong { font-family: var(--font-head); display: block; font-size: 0.9rem; }
.float-card small { color: var(--text-muted); }
.float-card-1 { top: 132px; right: -18px; }
.float-card-2 { bottom: -20px; left: -14px; animation-delay: -2.5s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
}
.float-icon.up { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.float-icon.shield { background: rgba(10, 100, 188, 0.15); color: var(--primary-light); }

/* ---------- Ticker ---------- */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  padding: 14px 0;
  position: relative;
}
.ticker::before, .ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }
.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tick {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-muted);
  transition: color var(--dur) ease, transform var(--dur) var(--ease);
  cursor: default;
}
.tick:hover { color: var(--text); transform: scale(1.08); }
.tick b { font-weight: 700; margin-left: 6px; }
.tick.up b { color: var(--green); }
.tick.down b { color: var(--red); }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat {
  padding: 30px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), border-color var(--dur) ease, box-shadow var(--dur) var(--ease);
}
.stat:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  background: linear-gradient(120deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: block;
}
.stat-label { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: center;
}
.about-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* ---- Shuffling certificate stack ---- */
.cert-stack {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 500 / 530;   /* matches the certificate images */
  perspective: 1400px;
}
.cert-glow {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 70%; height: 70%;
  background: var(--primary);
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  z-index: 0;
  animation: drift 10s ease-in-out infinite alternate;
}
.cert-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  transform-origin: center bottom;
  will-change: transform, z-index;
  animation: cert-shuffle 9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.cert-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  border: 1px solid var(--border);
}
/* Stagger the three cards across the same loop */
.cert-card:nth-child(2) { animation-delay: 0s; }      /* cert-3 (back-most start) */
.cert-card:nth-child(3) { animation-delay: -3s; }     /* cert-2 */
.cert-card:nth-child(4) { animation-delay: -6s; }     /* cert-1 (front start) */

.cert-stack:hover .cert-card { animation-play-state: paused; }

@keyframes cert-shuffle {
  /* Front, held on top */
  0%   { transform: translate(0, 0) scale(1); z-index: 30; }
  22%  { transform: translate(0, 0) scale(1); z-index: 30; }
  /* Lift the top card straight up and out */
  33%  { transform: translate(0, -85%) scale(1.02); z-index: 30; }
  /* Drop it to the back peek position */
  44%  { transform: translate(0, -26%) scale(0.84); z-index: 10; }
  66%  { transform: translate(0, -26%) scale(0.84); z-index: 10; }
  /* Rise to the middle peek position */
  83%  { transform: translate(0, -13%) scale(0.92); z-index: 20; }
  /* Back to front */
  100% { transform: translate(0, 0) scale(1); z-index: 30; }
}

@media (prefers-reduced-motion: reduce) {
  .cert-card { animation: none; }
  .cert-glow { animation: none; }
  /* Static neat fan when motion is disabled */
  .cert-card:nth-child(2) { transform: translate(0, -26%) scale(0.84); z-index: 10; }
  .cert-card:nth-child(3) { transform: translate(0, -13%) scale(0.92); z-index: 20; }
  .cert-card:nth-child(4) { transform: translate(0, 0) scale(1); z-index: 30; }
}
.about-copy p { color: var(--text-muted); margin-bottom: 18px; max-width: 560px; }
.about-copy p strong { color: var(--text); }
.check-list { list-style: none; margin: 10px 0 30px; }
.check-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 12px;
  color: var(--text-muted);
  transition: color var(--dur) ease, transform var(--dur) var(--ease);
}
.check-list li:hover { color: var(--text); transform: translateX(6px); }
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 7px;
}

/* ---------- Edge cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) ease, box-shadow var(--dur) var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: rgba(10, 100, 188, 0.12);
  border: 1px solid rgba(10, 100, 188, 0.25);
  color: var(--primary-light);
  border-radius: var(--radius);
  margin-bottom: 22px;
  transition: all var(--dur) var(--ease);
}
.card:hover .card-icon {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #fff;
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 8px 24px var(--primary-glow);
}
.card h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Process ---------- */
.process { background: var(--bg-2); }
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 26px;
  align-items: stretch;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  transition: transform var(--dur) var(--ease), border-color var(--dur) ease, box-shadow var(--dur) var(--ease);
}
.step:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}
.step-num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: block;
  margin-bottom: 16px;
}
.step h3 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }
.step-line {
  align-self: center;
  width: 40px; height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  border-radius: 2px;
  opacity: 0.6;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) ease, box-shadow var(--dur) var(--ease);
}
.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.price-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}
.price-card:hover::before { transform: scaleX(1); }

/* Slider dots — mobile only (shown inside the 768px media query) */
.pricing-dots,
.stats-dots,
.cert-dots { display: none; justify-content: center; align-items: center; gap: 8px; margin-top: 22px; }
.pricing-dot,
.stats-dot,
.cert-dot {
  width: 8px; height: 8px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  cursor: pointer;
  transition: width 0.3s var(--ease), background 0.3s ease, border-color 0.3s ease;
}
.pricing-dot.is-active,
.stats-dot.is-active,
.cert-dot.is-active {
  width: 24px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  border-color: transparent;
}

.price-head { margin-bottom: 22px; }
.price-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 8px;
}
.price-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 14px;
  min-height: 2.6em;
}
.price { display: flex; align-items: baseline; gap: 6px; }
.price-amount {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.price-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 14px;
}

.price-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 22px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
}
.price-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color var(--dur) ease;
}
.price-card:hover .price-list li { color: var(--text); }
.price-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 2px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: rgba(10, 100, 188, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B8EE8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
  border: 1px solid rgba(10, 100, 188, 0.28);
}
.price-btn { width: 100%; justify-content: center; margin-top: auto; }

/* Featured card — premium package (blue fill + gold accents) */
.price-card-featured {
  padding-top: 54px;
  color: #fff;
  border: 1px solid rgba(245, 195, 73, 0.5);
  background:
    radial-gradient(130% 90% at 50% 0%, rgba(125, 184, 245, 0.3), transparent 62%),
    linear-gradient(165deg, #0e6fd0 0%, #0a4d95 45%, #062b52 100%);
  box-shadow: 0 24px 60px rgba(10, 100, 188, 0.42), 0 0 0 1px rgba(245, 195, 73, 0.18);
}
.price-card-featured:hover {
  transform: translateY(-10px);
  border-color: rgba(245, 195, 73, 0.85);
  box-shadow: 0 32px 72px rgba(10, 100, 188, 0.5), 0 0 0 1px rgba(245, 195, 73, 0.35);
}
.price-card-featured::before {
  transform: scaleX(1);
  height: 4px;
  background: linear-gradient(90deg, #FFDD8A, #F5C349 50%, #E8A93A);
}
.price-card-featured .price-eyebrow { color: #FFD778; }
.price-card-featured h3 { color: #fff; }
.price-card-featured .price-amount {
  background: linear-gradient(120deg, #FFE7AD, #F5C349 58%, #E8A93A);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.price-card-featured .price-desc { color: rgba(255, 255, 255, 0.82); }
.price-card-featured .price-list { border-top-color: rgba(255, 255, 255, 0.18); }
.price-card-featured .price-list li,
.price-card-featured:hover .price-list li { color: rgba(255, 255, 255, 0.92); }
.price-card-featured .price-list li::before {
  background: rgba(245, 195, 73, 0.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5C349' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
  border: 1px solid rgba(245, 195, 73, 0.45);
}

/* Gold "Most Popular" badge */
.price-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3a2a06;
  background: linear-gradient(135deg, #FFE7AD, #F5C349 55%, #E8A93A);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(245, 195, 73, 0.5);
}

/* Gold CTA on the featured card */
.price-card-featured .price-btn {
  background: linear-gradient(135deg, #FFE7AD, #F5C349 55%, #E8A93A);
  color: #2a1e04;
  box-shadow: 0 8px 24px rgba(245, 195, 73, 0.4);
}
.price-card-featured .price-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(245, 195, 73, 0.55);
}

.disclaimer-line {
  text-align: center;
  margin-top: 40px;
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.8;
}

/* ---------- Results / proof gallery ---------- */
.achv-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}
.achv-card {
  --achv: var(--primary);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  font: inherit;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) ease, box-shadow var(--dur) var(--ease);
}
.achv-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}
.achv-blue { --achv: #3b82f6; }
.achv-green { --achv: #16a34a; }
.achv-purple { --achv: #7c3aed; }
[data-theme='dark'] .achv-blue { --achv: #5ba0ff; }
[data-theme='dark'] .achv-green { --achv: #34d17a; }
[data-theme='dark'] .achv-purple { --achv: #a78bfa; }

.achv-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  margin-bottom: 22px;
  color: var(--achv);
  background: color-mix(in srgb, var(--achv) 14%, transparent);
  transition: transform var(--dur) var(--ease);
}
.achv-card:hover .achv-icon { transform: scale(1.06); }

.achv-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--achv);
}
.achv-label {
  display: block;
  margin: 8px 0 10px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.achv-card p { color: var(--text-muted); font-size: 0.95rem; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}
.result-wide { grid-column: 1 / -1; }
.result-wide img { max-height: 620px; object-fit: contain; object-position: center; background: var(--surface-2); }
.result-shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  cursor: zoom-in;
  transition: transform var(--dur) var(--ease), border-color var(--dur) ease, box-shadow var(--dur) var(--ease);
}
.result-shot img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--ease);
}
.result-shot::after {
  content: '⤢';
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  font-size: 1rem;
  color: #fff;
  background: rgba(10, 100, 188, 0.85);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--dur) ease, transform var(--dur) ease;
}
.result-shot:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}
.result-shot:hover img { transform: scale(1.04); }
.result-shot:hover::after { opacity: 1; transform: translateY(0); }
.result-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  text-align: left;
  background: linear-gradient(transparent, rgba(4, 10, 20, 0.82));
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(4, 9, 18, 0.88);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1000px, 94vw);
  max-height: 88vh;
  width: auto; height: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.3s var(--ease);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 22px; right: 26px;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 1.8rem;
  line-height: 1;
  color: #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background var(--dur) ease, transform var(--dur) ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); transform: rotate(90deg); }

/* ---------- Testimonials (auto-scrolling wall) ---------- */
.testimonials { background: var(--bg-2); overflow: hidden; }
.testi-wall {
  position: relative;
  width: min(1160px, 92%);
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  height: 360px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%);
}
.testi-col { position: relative; overflow: hidden; }
.testi-track {
  display: flex;
  flex-direction: column;
  animation: testi-scroll var(--scroll-dur, 44s) linear infinite;
  will-change: transform;
}
.testi-set { display: flex; flex-direction: column; }
.testi-col:nth-child(1) .testi-track { --scroll-dur: 46s; }
.testi-col:nth-child(2) .testi-track { --scroll-dur: 58s; animation-direction: reverse; }
.testi-col:nth-child(3) .testi-track { --scroll-dur: 50s; }
.testi-wall:hover .testi-track { animation-play-state: paused; }
@keyframes testi-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  margin-bottom: 22px;
  transition: border-color var(--dur) ease, box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.testi-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}
.testi-card blockquote {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
  margin-bottom: 20px;
}
.testi-card figcaption { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 42px; height: 42px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
}
.testi-avatar.c1 { background: rgba(10, 100, 188, 0.16); color: var(--primary-light); }
.testi-avatar.c2 { background: rgba(34, 197, 94, 0.16); color: #22c55e; }
.testi-avatar.c3 { background: rgba(139, 92, 246, 0.18); color: #a78bfa; }
.testi-avatar.c4 { background: rgba(245, 158, 11, 0.18); color: #f59e0b; }
.testi-card figcaption strong { font-family: var(--font-head); display: block; line-height: 1.2; }
.testi-card figcaption small { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- FAQ ---------- */
.faq-container { max-width: 780px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur) ease, box-shadow var(--dur) var(--ease);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-item[open] { border-color: var(--border-hover); box-shadow: var(--card-shadow); }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  transition: color var(--dur) ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary-light); }
.faq-icon {
  flex: none;
  width: 26px; height: 26px;
  position: relative;
  border-radius: 8px;
  background: rgba(10, 100, 188, 0.12);
  transition: transform var(--dur) var(--ease), background var(--dur) ease;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  background: var(--primary-light);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease), background var(--dur) ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--primary); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }
.faq-body { padding: 0 24px; overflow: hidden; }
.faq-body p { color: var(--text-muted); padding-bottom: 22px; font-size: 0.96rem; }

/* ---------- CTA banner ---------- */
.cta-box {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  border-radius: calc(var(--radius-lg) + 8px);
  background: linear-gradient(135deg, #0A64BC, #083d75 60%, #062b52);
  overflow: hidden;
  box-shadow: 0 24px 70px var(--primary-glow);
}
.cta-glow {
  position: absolute;
  width: 420px; height: 420px;
  background: rgba(125, 184, 245, 0.35);
  border-radius: 50%;
  filter: blur(90px);
  top: -180px; right: -100px;
  animation: drift 12s ease-in-out infinite alternate;
}
.cta-box h2 {
  position: relative;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.cta-box p {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 34px;
  font-size: 1.05rem;
}
.cta-box .btn { position: relative; }

/* ---------- Newsletter / email magnet ---------- */
.newsletter { padding: 30px 0 68px; }
.news-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 6px);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.news-copy { padding: 52px 20px 52px 52px; }
.news-copy h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.news-copy > p {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 460px;
  margin-bottom: 28px;
}
.news-form { display: flex; gap: 12px; flex-wrap: wrap; }
.news-input {
  flex: 1;
  min-width: 240px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  outline: none;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.news-input::placeholder { color: var(--text-muted); }
.news-input:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 4px rgba(10, 100, 188, 0.14);
}
.news-btn {
  flex: none;
  padding: 16px 30px;
  border-radius: 14px;
}
.news-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--dur) ease;
}
.news-note.news-error { color: var(--red); }

.news-success {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
  animation: news-pop 0.4s var(--ease);
}
.news-success-icon {
  flex: none;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 4px 14px var(--primary-glow);
}
@keyframes news-pop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Right-side visual */
.news-visual {
  position: relative;
  align-self: stretch;
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(90% 95% at 72% 26%, rgba(59, 142, 232, 0.34), transparent 62%),
    radial-gradient(85% 85% at 26% 84%, rgba(10, 100, 188, 0.20), transparent 60%),
    radial-gradient(70% 70% at 88% 90%, rgba(125, 184, 245, 0.22), transparent 60%),
    var(--surface-2);
}
.news-glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--primary-light);
  filter: blur(90px);
  opacity: 0.28;
  top: 42%; left: 58%;
  transform: translate(-50%, -50%);
}
.news-envelope {
  position: relative;
  width: min(320px, 86%);
  height: auto;
  filter: drop-shadow(0 24px 36px rgba(10, 40, 80, 0.26));
  animation: news-float 5s ease-in-out infinite;
}
.news-card:hover .env-letter { transform: translateY(-8px); }
.env-letter { transition: transform 0.5s var(--ease); }
@keyframes news-float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}

/* Input shake on invalid */
.shake { animation: shake 0.4s ease; }
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 46px 0 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 30px;
  align-items: start;
}
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; margin: 18px 0 22px; max-width: 300px; }
.footer-quote {
  margin: 16px 0 0;
  padding-left: 18px;
  max-width: 440px;
  border-left: 2px solid var(--border-hover);
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.65;
  font-style: italic;
}
.footer-cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-head);
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--primary-light);
}
.socials { display: flex; gap: 12px; }
.social-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
}
.social-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-color: transparent;
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 22px var(--primary-glow);
}
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--text);
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 12px;
  width: fit-content;
  position: relative;
  transition: color var(--dur) ease, transform var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--primary-light); transform: translateX(5px); }

/* Social column: icon aligned left of the label */
.footer-social { padding-left: 50px; }
.footer-social a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-social a svg {
  flex: none;
  color: var(--text-muted);
  transition: color var(--dur) ease;
}
.footer-social a:hover svg { color: var(--primary-light); }
.footer-disclaimer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.7;
  opacity: 0.85;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-tag { font-family: var(--font-head); color: var(--primary-light); font-weight: 600; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 90;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  animation: wa-pop 0.6s var(--ease) 1.2s backwards;
}
.wa-float:hover {
  transform: scale(1.12) rotate(8deg);
  box-shadow: 0 14px 38px rgba(37, 211, 102, 0.6);
}
@keyframes wa-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- Legal pages ---------- */
.legal-main { padding: 150px 0 80px; min-height: 70vh; }
.legal-main .container { max-width: 800px; }
.legal-main h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.legal-updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 42px; display: block; }
.legal-main h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  margin: 40px 0 12px;
}
.legal-main p, .legal-main li { color: var(--text-muted); margin-bottom: 12px; font-size: 0.97rem; }
.legal-main ul { padding-left: 22px; margin-bottom: 16px; }
.legal-main a:not(.btn):not(.logo) { color: var(--primary-light); }
.legal-main a:not(.btn):not(.logo):hover { text-decoration: underline; }
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary-light);
  transition: transform var(--dur) var(--ease);
}
.back-home:hover { transform: translateX(-5px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 70px; }
  .hero { min-height: auto; padding-top: 140px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-proof { justify-content: center; }
  .hero-chart { max-width: 560px; margin: 0 auto; width: 100%; }
  .cards-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-col:nth-child(3) { display: none; }
  .testi-wall { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step-line { width: 2px; height: 34px; margin: 0 auto; background: linear-gradient(180deg, var(--primary-light), var(--primary)); }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .achv-row { grid-template-columns: repeat(3, 1fr); }
  .news-card { grid-template-columns: 1fr; }
  .news-copy { padding: 44px 40px; order: 2; }
  .news-visual { order: 1; min-height: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  /* Section spacing tightened 20% on mobile */
  .section-pad { padding: 48px 0; }
  .section-pad-sm { padding: 34px 0; }
  .section-head { margin-bottom: 48px; }
  /* Hamburger becomes a small outlined pill button */
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4.5px;
    width: 40px; height: 40px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: border-color var(--dur) ease, background var(--dur) ease;
  }
  .hamburger.open { border-color: var(--border-hover); background: rgba(10, 100, 188, 0.12); }
  .hamburger span { width: 17px; height: 2px; }
  .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* Compact floating popup anchored under the hamburger */
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 216px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin-left: 0;
    padding: 8px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--nav-bg);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: var(--card-shadow);
    transform-origin: top right;
    transform: translateY(-6px) scale(0.94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s var(--ease), opacity 0.2s ease, visibility 0.28s;
    z-index: 99;
  }
  .nav-links.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links > a:not(.btn) {
    font-size: 0.92rem;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: color var(--dur) ease, background var(--dur) ease, border-color var(--dur) ease;
  }
  .nav-links > a:not(.btn):hover,
  .nav-links > a:not(.btn):active {
    color: var(--text);
    background: var(--surface-2);
    border-color: var(--border);
  }
  /* Underline animation doesn't fit the popup rows */
  .nav-links > a:not(.btn)::after { display: none; }
  .nav-links .nav-cta {
    margin: 6px 0 0;
    justify-content: center;
    width: 100%;
  }
  .nav-actions { display: flex; position: relative; z-index: 100; }
  /* Centre the "Talk to me on WhatsApp" CTA under the About copy */
  .about-copy > .btn { display: flex; width: fit-content; justify-content: center; margin: 4px auto 0; }
  /* Stats become an auto-sliding rail: 2 cards fully visible, the 3rd half peeking */
  .stats-grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Room for the cards' hover/lift shadow without clipping */
    padding: 4px 0 8px;
  }
  .stats-grid::-webkit-scrollbar { display: none; }
  .stats-grid > .stat {
    /* 2.5 cards across: 2.5w + 2gap = 100% */
    flex: 0 0 calc(40% - 10px);
    scroll-snap-align: start;
    padding: 24px 12px;
  }
  /* Off-screen cards never trigger the scroll-reveal observer horizontally */
  .stats-grid > .stat.reveal { opacity: 1; transform: none; transition-delay: 0s; }
  .stats-dots { display: flex; margin-top: 14px; }

  /* Certificates: shuffling stack becomes a swipeable, auto-sliding rail */
  .about-visual { width: 100%; }
  .cert-stack {
    display: flex;
    width: 100%;
    aspect-ratio: auto;
    perspective: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 8px;
  }
  .cert-stack::-webkit-scrollbar { display: none; }
  .cert-glow { display: none; }
  .cert-stack > .cert-card {
    position: static;
    flex: 0 0 78%;
    scroll-snap-align: start;
    aspect-ratio: 500 / 530;
    animation: none;
    transform: none;
  }
  .cert-dots { display: flex; margin-top: 14px; }
  /* Pricing becomes a swipeable slider: active plan ~75%, next plan peeks ~25% */
  .pricing-grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Room for the cards' hover/lift shadow without clipping */
    padding: 4px 0 8px;
  }
  .pricing-grid::-webkit-scrollbar { display: none; }
  .pricing-grid > .price-card {
    flex: 0 0 75%;
    scroll-snap-align: start;
    padding: 28px 22px;
  }
  /* Off-screen cards never trigger the scroll-reveal observer horizontally,
     so show them immediately inside the slider */
  .pricing-grid > .price-card.reveal { opacity: 1; transform: none; transition-delay: 0s; }
  .pricing-dots { display: flex; }

  /* The Edge: 2 columns x 3 rows on mobile */
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card { padding: 22px 16px; border-radius: var(--radius); }
  .card-icon { width: 44px; height: 44px; margin-bottom: 14px; }
  .card-icon svg { width: 21px; height: 21px; }
  .card h3 { font-size: 1rem; margin-bottom: 8px; }
  .card p { font-size: 0.84rem; line-height: 1.55; }
  /* The Receipts: smaller thumbnails on mobile — tap opens full size in the lightbox */
  .results-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .result-shot { border-radius: var(--radius); }
  .result-shot img { height: 150px; object-fit: cover; object-position: top center; }
  /* wide shot behaves like every other tile on mobile */
  .result-wide { grid-column: auto; }
  .result-wide img { height: 150px; max-height: none; object-fit: cover; object-position: top center; }
  .result-shot::after { top: 8px; right: 8px; width: 26px; height: 26px; font-size: 0.8rem; opacity: 1; transform: none; }
  .result-cap { padding: 20px 10px 8px; font-size: 0.7rem; }
  /* Enlarged view stays big: use nearly the whole screen */
  .lightbox { padding: 14px; }
  .lightbox img { max-width: 96vw; max-height: 84vh; }
  .lightbox-close { top: 12px; right: 14px; width: 40px; height: 40px; font-size: 1.6rem; }
  /* The Receipts: all three tiles stay in one row, scaled down */
  .achv-row { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 28px; }
  .achv-card { padding: 16px 12px 20px; }
  .achv-icon { width: 38px; height: 38px; margin-bottom: 14px; }
  .achv-icon svg { width: 19px; height: 19px; }
  .achv-num { font-size: clamp(1rem, 5.2vw, 1.6rem); }
  .achv-label { margin: 6px 0 6px; font-size: 0.62rem; letter-spacing: 0.03em; line-height: 1.25; }
  .achv-card p { font-size: 0.68rem; line-height: 1.45; }
  /* Newsletter: compact card so it doesn't eat a full mobile screen */
  .newsletter { padding: 20px 0 44px; }
  .news-copy { padding: 24px 20px 26px; }
  .news-copy h2 { font-size: 1.4rem; margin-bottom: 8px; }
  .news-copy > p { font-size: 0.92rem; line-height: 1.5; margin-bottom: 18px; }
  .news-visual { min-height: 118px; }
  .news-envelope { width: min(180px, 56%); }
  .news-glow { width: 180px; height: 180px; filter: blur(60px); }
  .news-form { flex-direction: column; gap: 10px; }
  .news-input { min-width: 0; width: 100%; padding: 13px 16px; font-size: 0.95rem; border-radius: 12px; }
  .news-btn { width: 100%; justify-content: center; padding: 13px 22px; border-radius: 12px; }
  .news-note { margin-top: 12px; font-size: 0.8rem; }
  /* Testimonials: one card in view, the rest scroll up behind it */
  .testi-wall {
    grid-template-columns: 1fr;
    height: 222px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
  }
  .testi-col:nth-child(n + 2) { display: none; } /* fallback if the merge script doesn't run */
  .testi-col .testi-track { --scroll-dur: 70s; animation-direction: normal; }
  .testi-card {
    min-height: 206px;
    margin-bottom: 16px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .testi-card blockquote { font-size: 0.94rem; margin-bottom: 16px; }
  .float-card-1 { top: 56px; right: -4px; }
  .float-card-2 { bottom: -16px; left: -4px; }
  #heroCanvas { height: 240px; }
  /* Footer: brand on top, then Social | Legal side by side with a divider */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col { align-self: start; padding: 0; }
  .footer-social { padding-left: 20px; }
  .footer-col h4 { text-align: left; margin-bottom: 16px; }
  .footer-col a { width: fit-content; margin-right: auto; text-align: left; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-box { padding: 60px 24px; }
  .wa-float { width: 52px; height: 52px; bottom: 20px; right: 20px; }
  .theme-float { width: 44px; height: 44px; left: 20px; bottom: 20px; } /* bottom-left corner */
  .br-desktop { display: none; }
}

@media (max-width: 420px) {
  .hero-cta .btn { width: 100%; justify-content: center; }
  .float-card { font-size: 0.78rem; padding: 10px 14px; }
  .cards-grid { gap: 10px; }
  .card { padding: 18px 13px; }
  .card h3 { font-size: 0.94rem; }
  .card p { font-size: 0.8rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }

  /* Testimonial wall becomes a static, natural-height grid */
  .testi-wall { height: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .testi-track { animation: none; }
}
