*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   DESIGN TOKENS — Brand Blue
   Blue #285ddd + Dark Blue #041b45, from the Testly logo. --ink carries the
   Dark Blue everywhere it used to carry near-black — headings, buttons,
   and "inverted" dark surfaces — so the brand color is the dominant
   identity color, not just a minor accent.

   A few bands — the AI feature strip, the closing CTA, the footer — are
   deliberately always the dark navy panel, in EITHER theme (consistent
   "always dark" surfaces read as intentional, not as a light-mode bug).
   Those use the fixed --panel-* tokens below, which never change with the
   toggle — everything else uses the tokens that do.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  /* The logo's exact blue — fixed regardless of theme, used only for real
     clickable buttons. */
  --brand: #285ddd;
  --brand-ink: #ffffff;

  /* Fixed "always dark navy" tokens — same in light and dark mode, used
     only by .ai-section / .cta-box / footer and their children. */
  --panel-bg: #041b45;
  --panel-ink: #f5f7fc;
  --panel-muted: rgba(245, 247, 252, 0.6);
  --panel-border: rgba(245, 247, 252, 0.12);
  --panel-mark: #285ddd;
  --panel-mark-light: rgba(40, 93, 221, 0.2);
  --panel-accent: #6b8fe8;
  --panel-green: #6ee7b7;
  --panel-amber: #fcd34d;

  /* Light mode */
  --paper: #f5f7fc;
  --paper-deep: var(--panel-bg);
  --ink: #041b45;
  --muted: #5b6b85;
  --border: #dce3f0;
  --card-bg: #ffffff;

  --accent: #285ddd;
  --accent-light: #dce8fd;
  --accent-dark: #041b45;

  --green: #059669;
  --green-light: #d1fae5;

  --amber: #d97706;
  --amber-light: #fef3c7;

  /* Signature — same blue as --accent, used for tags, hovers, and CTAs */
  --mark: var(--accent);
  --mark-light: var(--accent-light);

  --radius: 12px;
  --font-display: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: var(--font-display);
  --font-hand: var(--font-body);

  --dust-color: rgba(4, 27, 69, 0.3);
  --nav-bg: rgba(245, 247, 252, 0.92);
  --grid-opacity: 0.35;
  --ph5-bg: #eaf0fd;
  --ph5-border: #b8ccf7;
  --visual-bg: var(--card-bg);
  --how-bg: var(--paper);
  --features-bg: var(--card-bg);
  --phases-bg: var(--paper);
  --social-bg: var(--card-bg);
  --cta-bg: var(--paper);
  --inst-bg: var(--paper);

  --toggle-bg: var(--panel-bg);
  --toggle-color: var(--panel-ink);
  --toggle-border: rgba(255, 255, 255, 0.15);
  --toggle-shadow: 0 4px 20px rgba(4, 27, 69, 0.22);
}

/* Toggle variant — deep navy */
html.dark {
  --paper: #060c18;
  --paper-deep: #040911;
  --ink: #eef2f9;
  --muted: #90a1bf;
  --border: #1c2942;
  --card-bg: #0d1526;

  --accent: #285ddd;
  --accent-light: rgba(40, 93, 221, 0.16);
  --accent-dark: #7ea3f5;

  --green: #10b981;
  --green-light: rgba(16, 185, 129, 0.15);

  --amber: #f59e0b;
  --amber-light: rgba(245, 158, 11, 0.15);

  --mark: var(--accent);
  --mark-light: var(--accent-light);

  --dust-color: rgba(245, 247, 252, 0.5);
  --nav-bg: rgba(6, 12, 24, 0.92);
  --grid-opacity: 0.22;
  --ph5-bg: rgba(40, 93, 221, 0.1);
  --ph5-border: rgba(40, 93, 221, 0.3);
  --visual-bg: #0d1526;
  --how-bg: #0d1526;
  --features-bg: var(--paper);
  --phases-bg: #0d1526;
  --social-bg: var(--paper);
  --cta-bg: var(--paper);
  --inst-bg: var(--card-bg);

  --toggle-bg: var(--panel-bg);
  --toggle-color: var(--panel-ink);
  --toggle-border: rgba(255, 255, 255, 0.1);
  --toggle-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  line-height: 1.1;
}

::selection {
  background: var(--mark);
  color: var(--paper);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ─── PAGE LOADER ─── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  transition: opacity 0.35s ease;
}
.page-loader-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--mark);
  animation: page-loader-spin 0.8s linear infinite;
}
.page-loader-hidden { opacity: 0; pointer-events: none; }
@keyframes page-loader-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .page-loader-spinner { animation-duration: 1.6s; } }
@media (max-width: 640px) { .page-loader-spinner { width: 32px; height: 32px; border-width: 2.5px; } }

/* ═══════════════════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 110;
  position: relative;
  transition: color 0.3s ease;
}
.nav-logo .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
  transition: background 0.3s ease;
}
.nav-logo-img {
  height: 52px; width: auto; max-height: 52px; max-width: 110px;
  display: block; object-fit: contain; flex-shrink: 0; border-radius: 50%;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-login {
  font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none;
  padding: 9px 18px; border-radius: 8px; border: 1.5px solid var(--border);
  transition: border-color 0.2s, background 0.2s, color 0.3s ease;
}
.nav-login:hover { border-color: var(--ink); background: rgba(4, 27, 69, 0.05); }
html.dark .nav-login:hover { background: rgba(238, 242, 249, 0.06); }
.nav-cta {
  background: var(--brand); color: var(--brand-ink); padding: 10px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background 0.2s, transform 0.15s, color 0.3s ease;
}
.nav-cta:hover { background: var(--mark); color: var(--paper); transform: translateY(-1px); }

/* ─── HAMBURGER ─── */
.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer;
  padding: 4px; border-radius: 8px; position: relative; z-index: 110; transition: background 0.2s;
}
.hamburger:hover { background: rgba(4, 27, 69, 0.05); }
html.dark .hamburger:hover { background: rgba(238, 242, 249, 0.08); }
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease, background 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE MENU ─── */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 105; background: var(--nav-bg);
  backdrop-filter: blur(16px); flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu-close {
  position: absolute; top: 20px; right: 24px; width: 44px; height: 44px;
  background: rgba(4, 27, 69, 0.05); border: 1.5px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.mobile-menu-close:hover { background: rgba(4, 27, 69, 0.1); border-color: var(--ink); transform: rotate(90deg); }
html.dark .mobile-menu-close { background: rgba(238, 242, 249, 0.06); }
html.dark .mobile-menu-close:hover { background: rgba(238, 242, 249, 0.12); }
.mobile-menu-close svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; transition: stroke 0.3s ease; }
.mobile-menu-links { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 0 32px; margin-bottom: 32px; }
.mobile-menu-links a {
  font-family: var(--font-display); font-size: clamp(22px, 7vw, 32px); font-weight: 800; letter-spacing: -0.6px;
  color: var(--ink); text-decoration: none; padding: 10px 0; display: block; text-align: center; width: 100%;
  border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.mobile-menu-links a:first-child { border-top: 1px solid var(--border); }
.mobile-menu-links a:hover { color: var(--mark); }
.mobile-menu-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; padding: 0 32px; max-width: 400px; }
.mobile-menu-actions .nav-login, .mobile-menu-actions .nav-cta { width: 100%; text-align: center; font-size: 14px; padding: 13px; border-radius: 10px; }

/* ═══════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 130px 48px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 700px 500px at 82% 15%, rgba(40, 93, 221, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 500px 400px at 8% 85%, rgba(4, 27, 69, 0.05) 0%, transparent 60%);
  transition: opacity 0.3s ease;
}
html.dark .hero-bg {
  background:
    radial-gradient(ellipse 700px 500px at 82% 15%, rgba(40, 93, 221, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 500px 400px at 8% 85%, rgba(107, 143, 232, 0.1) 0%, transparent 60%);
}
/* No margin-rule equivalent in this direction — suppressed rather than removed from the markup. */
.hero-margin-rule { display: none; }
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0;
  opacity: var(--grid-opacity);
  background-image: radial-gradient(var(--dust-color) 1px, transparent 1px);
  background-size: 4px 4px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent 80%);
  transition: opacity 0.3s ease;
}
.hero-inner { position: relative; z-index: 1; max-width: 900px; text-align: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--card-bg);
  border: 1px solid var(--border); padding: 7px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 36px;
  animation: fadeUp 0.7s ease both;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.hero-badge .pill {
  background: var(--mark); color: #fff; padding: 2px 10px; border-radius: 100px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.4px;
  transition: background 0.3s ease;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 100px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -3px;
  margin-bottom: 26px;
  animation: fadeUp 0.7s 0.1s ease both;
}
.hero-h1 .line-accent { color: var(--accent); transition: color 0.3s ease; }
.hero-h1 .line-mark {
  color: var(--ink);
  position: relative;
  display: inline-block;
}
.hero-h1 .line-mark::after {
  content: "";
  position: absolute;
  left: -2%; right: -4%; bottom: 6px;
  height: 0.5em;
  border-bottom: 5px solid var(--green);
  border-radius: 2px;
  transform: rotate(-1.2deg);
  z-index: -1;
  opacity: 0.9;
}

/* Signature grade stamp — desktop-only flourish, keeps mobile clean */
.hero-stamp {
  position: absolute;
  top: 6%;
  right: 6%;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 3px dashed var(--mark);
  display: none;
  align-items: center;
  justify-content: center;
  transform: rotate(-9deg);
  color: var(--mark);
  animation: fadeUp 0.8s 0.4s ease both, stampWobble 7s 1.5s ease-in-out infinite;
}
.hero-stamp-inner { text-align: center; }
.hero-stamp-pct {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}
.hero-stamp-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-top: 4px;
}
@keyframes stampWobble {
  0%, 100% { transform: rotate(-9deg); }
  50% { transform: rotate(-6deg); }
}
@media (min-width: 1080px) {
  .hero-stamp { display: flex; }
}

.hero-sub {
  font-size: 21px; font-weight: 300; color: var(--muted); max-width: 580px;
  margin: 0 auto 44px; line-height: 1.65; animation: fadeUp 0.7s 0.2s ease both;
  transition: color 0.3s ease;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}
.hero-hand {
  font-family: var(--font-hand); font-size: 15px; font-style: italic; font-weight: 500; color: var(--muted);
  display: inline-block; margin-left: 2px;
}
.btn-primary {
  background: var(--brand); color: var(--brand-ink); padding: 15px 32px; border-radius: 10px;
  font-size: 15px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, transform 0.15s, color 0.3s ease;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
html.dark .btn-primary:hover { background: var(--mark); }
.btn-secondary {
  background: transparent; color: var(--ink); border: 1.5px solid var(--border);
  padding: 15px 32px; border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color 0.2s, transform 0.15s, color 0.3s ease;
}
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-2px); }

.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 48px; margin-top: 62px;
  padding-top: 38px; border-top: 1px solid var(--border); animation: fadeUp 0.7s 0.4s ease both;
  flex-wrap: wrap; transition: border-color 0.3s ease;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-mono); font-size: 32px; font-weight: 700; letter-spacing: -1px;
  color: var(--ink); transition: color 0.3s ease;
}
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; transition: color 0.3s ease; }

/* ═══════════════════════════════════════════════════════════════════════
   SECTION COMMONS
   ═══════════════════════════════════════════════════════════════════════ */
section { padding: 100px 48px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--mark); margin-bottom: 20px; transition: color 0.3s ease;
}
.section-tag::before {
  content: ""; width: 18px; height: 2px; background: var(--mark); border-radius: 2px;
  transition: background 0.3s ease;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(34px, 4vw, 52px); font-weight: 800;
  letter-spacing: -1.5px; line-height: 1.05; margin-bottom: 18px; transition: color 0.3s ease;
}
.section-sub { font-size: 17px; color: var(--muted); max-width: 520px; font-weight: 300; line-height: 1.7; transition: color 0.3s ease; }
.container { max-width: 1120px; margin: 0 auto; }

/* ═══════════════════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════════════════ */
.how { background: var(--how-bg); transition: background 0.3s ease; }
.how-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: 1120px; margin: 0 auto; }
.steps-list { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--border); cursor: default; transition: all 0.2s; }
.step:first-child { padding-top: 0; }
.step:last-child { border-bottom: none; }
.step:hover .step-icon { background: var(--mark); color: #fff; border-color: var(--mark); }
.step-icon {
  width: 40px; height: 40px; border-radius: 9px; background: var(--paper); border: 1px solid var(--border);
  display: grid; place-items: center; flex-shrink: 0; font-family: var(--font-mono); font-weight: 700;
  font-size: 14px; color: var(--muted); transition: all 0.2s;
}
.step-content h3 { font-weight: 800; font-size: 18px; margin-bottom: 6px; letter-spacing: -0.2px; }
.step-content p { font-size: 14px; color: var(--muted); line-height: 1.65; font-weight: 300; }

.how-visual {
  background: var(--visual-bg); border-radius: 20px; border: 1px solid var(--border); padding: 34px;
  position: relative; transition: background 0.3s ease, border-color 0.3s ease;
}
.mock-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--border); transition: border-color 0.3s ease; }
.mock-title { font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.mock-badge { background: var(--green-light); color: var(--green); padding: 4px 12px; border-radius: 100px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; transition: background 0.3s ease, color 0.3s ease; }
.mock-question { background: var(--card-bg); border-radius: 12px; padding: 20px; border: 1px solid var(--border); margin-bottom: 14px; transition: background 0.3s ease, border-color 0.3s ease; }
.mock-q-text { font-size: 14px; font-weight: 500; margin-bottom: 14px; color: var(--ink); }
.mock-options { display: flex; flex-direction: column; gap: 8px; }
.mock-opt { padding: 10px 14px; border-radius: 8px; font-size: 13px; border: 1.5px solid var(--border); cursor: pointer; display: flex; align-items: center; gap: 10px; transition: all 0.15s; color: var(--ink); }
.mock-opt.selected { border-color: var(--accent); background: var(--accent-light); color: var(--accent-dark); font-weight: 500; }
.mock-opt span { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 11px; flex-shrink: 0; font-family: var(--font-mono); }
.mock-stat { flex: 1; border-radius: 10px; padding: 13px; border: 1px solid var(--border); background: var(--paper); transition: background 0.3s ease, border-color 0.3s ease; }
.mock-stat-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.mock-stat-val { font-family: var(--font-mono); font-weight: 700; font-size: 19px; }
.mock-stat-val.amber { color: var(--amber); }
/* A countdown readout reads best dark regardless of overall page theme —
   uses the fixed always-dark-navy tokens, same as the AI/CTA/footer bands. */
.mock-timer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 14px 18px; background: var(--panel-bg); border-radius: 10px; color: var(--panel-ink); }
.mock-timer-label { font-size: 12px; opacity: 0.6; }
.mock-timer-val { font-family: var(--font-mono); font-weight: 700; font-size: 21px; letter-spacing: -0.3px; }
.mock-timer-val span { color: var(--panel-accent); }
.mock-submit-btn { background: rgba(255, 255, 255, 0.15); color: inherit; border: none; padding: 10px 20px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.2s; }

/* ═══════════════════════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════════════════════ */
.features { background: var(--features-bg); transition: background 0.3s ease; }
.features-head { text-align: center; max-width: 620px; margin: 0 auto 68px; }
.features-head .section-tag { justify-content: center; }
.features-head .section-tag::before { display: none; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1120px; margin: 0 auto; }
.feat-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s ease, border-color 0.3s ease;
  position: relative; overflow: hidden;
}
.feat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--green)); opacity: 0; transition: opacity 0.2s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(4, 27, 69, 0.12); }
html.dark .feat-card:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.feat-card:hover::before { opacity: 1; }
.feat-icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px;
  font-family: var(--font-mono); font-weight: 700; font-size: 14px; transition: background 0.3s ease;
}
.feat-icon.blue { background: var(--accent-light); color: var(--accent); }
.feat-icon.green { background: var(--green-light); color: var(--green); }
.feat-icon.amber { background: var(--amber-light); color: var(--amber); }
.feat-icon.mark { background: var(--mark-light); color: var(--mark); }
.feat-card h3 { font-weight: 800; font-size: 17.5px; margin-bottom: 9px; letter-spacing: -0.3px; }
.feat-card p { font-size: 14px; color: var(--muted); line-height: 1.7; font-weight: 300; }

/* ═══════════════════════════════════════════════════════════════════════
   AI SECTION — always the dark navy panel, in either theme. Uses the
   fixed --panel-* tokens throughout, not the light/dark-flipping ones.
   ═══════════════════════════════════════════════════════════════════════ */
.ai-section { background: var(--panel-bg); color: var(--panel-ink); position: relative; overflow: hidden; }
.ai-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 600px 400px at 90% 50%, rgba(40, 93, 221, 0.22) 0%, transparent 60%); }
.ai-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.ai-text .section-tag { color: var(--panel-accent); }
.ai-text .section-tag::before { background: var(--panel-accent); }
.ai-text .section-title { color: var(--panel-ink); }
.ai-text .section-sub { color: var(--panel-muted); }
.ai-bullets { display: flex; flex-direction: column; gap: 16px; margin-top: 34px; }
.ai-bullet { display: flex; gap: 14px; align-items: flex-start; }
.ai-bullet-icon {
  width: 30px; height: 30px; border-radius: 8px; background: rgba(40, 93, 221, 0.25); border: 1px solid rgba(40, 93, 221, 0.4);
  display: grid; place-items: center; flex-shrink: 0; font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: var(--panel-accent);
}
.ai-bullet-text h4 { font-size: 15px; font-weight: 500; color: var(--panel-ink); margin-bottom: 3px; }
.ai-bullet-text p { font-size: 13px; color: rgba(245, 247, 252, 0.55); font-weight: 300; }
.ai-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 30px; }
.ai-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.ai-card-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--panel-accent); display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--panel-bg); flex-shrink: 0; }
.ai-card-name { font-size: 14px; font-weight: 500; color: rgba(245, 247, 252, 0.85); }
.ai-card-score { margin-left: auto; font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--panel-ink); }
.ai-feedback-label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: rgba(245, 247, 252, 0.45); margin-bottom: 12px; }
.ai-feedback-text {
  font-size: 14px; color: rgba(245, 247, 252, 0.75); line-height: 1.75; font-weight: 300; background: rgba(255, 255, 255, 0.04);
  border-radius: 10px; padding: 16px; border: 1px solid rgba(255, 255, 255, 0.08); border-left: 3px solid var(--panel-mark);
}
.ai-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ai-tag { padding: 5px 12px; border-radius: 100px; font-size: 12px; font-weight: 500; background: rgba(255, 255, 255, 0.07); color: rgba(245, 247, 252, 0.65); border: 1px solid rgba(255, 255, 255, 0.1); }
.ai-tag.warn { background: rgba(217, 119, 6, 0.15); color: #fcd34d; border-color: rgba(217, 119, 6, 0.3); }
.ai-tag.ok { background: rgba(5, 150, 105, 0.15); color: #6ee7b7; border-color: rgba(5, 150, 105, 0.3); }

/* ═══════════════════════════════════════════════════════════════════════
   PHASES / ROADMAP
   ═══════════════════════════════════════════════════════════════════════ */
.phases { background: var(--phases-bg); transition: background 0.3s ease; }
.phases-inner { max-width: 1120px; margin: 0 auto; }
.phases-head { margin-bottom: 60px; }
.phases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.phase-card { border-radius: 14px; padding: 22px 20px; border: 1.5px solid var(--border); position: relative; transition: transform 0.2s, box-shadow 0.2s, background 0.3s ease, border-color 0.3s ease; background: var(--paper); }
.phase-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(4, 27, 69, 0.12); }
html.dark .phase-card:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42); }
.phase-num-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.phase-num { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.phase-live { background: var(--green-light); color: var(--green); padding: 2px 9px; border-radius: 100px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.2px; white-space: nowrap; flex-shrink: 0; }
.phase-live--new { background: var(--mark-light); color: var(--mark); }
.phase-card h4 { font-weight: 800; font-size: 14px; margin-bottom: 10px; line-height: 1.3; }
.phase-card ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.phase-card ul li { font-size: 12px; color: var(--muted); font-weight: 300; padding-left: 14px; position: relative; }
.phase-card ul li::before { content: "—"; position: absolute; left: 0; color: var(--border); }
.ph1 .phase-num { color: var(--accent); }
.ph2 .phase-num { color: var(--green); }
.ph3 .phase-num { color: var(--amber); }
.ph4 .phase-num { color: var(--accent-dark); }
.ph5 { background: var(--ph5-bg); border-color: var(--ph5-border); }
.ph5 .phase-num { color: var(--accent); }
.ph6 .phase-num { color: var(--green); }
.ph7 .phase-num { color: var(--amber); }
.ph8 .phase-num { color: var(--accent-dark); }

/* ═══════════════════════════════════════════════════════════════════════
   INSTITUTIONS BANNER
   ═══════════════════════════════════════════════════════════════════════ */
.inst-band { background: var(--inst-bg); transition: background 0.3s ease; }
.inst-box {
  max-width: 1120px; margin: 0 auto; background: var(--card-bg); border: 1.5px solid var(--border);
  border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
  position: relative; overflow: hidden; transition: background 0.3s ease, border-color 0.3s ease;
}
.inst-box::before {
  content: ""; position: absolute; top: -80px; right: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 93, 221, 0.12), transparent 70%);
}
.inst-copy .section-tag { margin-bottom: 16px; }
.inst-copy h2 { font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -1px; line-height: 1.08; margin-bottom: 14px; }
.inst-copy p { font-size: 15.5px; color: var(--muted); line-height: 1.7; font-weight: 300; max-width: 480px; margin-bottom: 26px; }
.inst-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.inst-tiers { display: flex; flex-direction: column; gap: 12px; }
.inst-tier-row {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 18px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--paper); font-size: 13.5px;
}
.inst-tier-row strong { font-family: var(--font-mono); font-weight: 700; color: var(--ink); }
.inst-tier-row span { color: var(--muted); }

/* ═══════════════════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════════════════ */
.social { background: var(--social-bg); transition: background 0.3s ease; }
.social-inner { max-width: 1120px; margin: 0 auto; }
.social-head { text-align: center; max-width: 520px; margin: 0 auto 60px; }
.social-head .section-tag { justify-content: center; }
.social-head .section-tag::before { display: none; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: background 0.3s ease, border-color 0.3s ease; }
.review-stars { color: #f59e0b; font-size: 14px; margin-bottom: 14px; letter-spacing: 1px; }
.review-text { font-size: 14px; color: var(--muted); line-height: 1.75; font-weight: 300; margin-bottom: 20px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: #fff; flex-shrink: 0; }
.review-name { font-size: 14px; font-weight: 600; }
.review-role { font-size: 12px; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════════════════
   GLOBAL REACH
   ═══════════════════════════════════════════════════════════════════════ */
.reach { background: var(--phases-bg); transition: background 0.3s ease; }
.reach-inner { max-width: 1120px; margin: 0 auto; }
.reach-head { text-align: center; margin-bottom: 52px; }
.reach-head .section-tag { justify-content: center; }
.reach-head .section-tag::before { display: none; }
.reach-head .section-title { margin-bottom: 26px; }
.reach-pills { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.reach-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 100px; padding: 8px 20px; font-size: 14px; font-weight: 500; transition: background 0.3s ease, border-color 0.3s ease; }
.reach-pill strong { font-family: var(--font-mono); font-weight: 700; font-size: 15px; color: var(--mark); }
.reach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.reach-row { display: flex; align-items: center; gap: 14px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px 20px; transition: background 0.3s ease, border-color 0.3s ease; }
.reach-flag { font-size: 24px; line-height: 1; flex-shrink: 0; }
.reach-country { flex: 1; min-width: 0; }
.reach-country-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.reach-bar-wrap { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; transition: background 0.3s ease; }
.reach-bar { height: 100%; background: var(--mark); border-radius: 2px; width: 0; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); }
.reach-count { font-family: var(--font-mono); font-weight: 700; font-size: 17px; color: var(--ink); flex-shrink: 0; min-width: 40px; text-align: right; transition: color 0.3s ease; }
.reach-loading { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 14px; padding: 48px 0; }
@media (max-width: 680px) { .reach-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════════════════ */
.cta-section { background: var(--cta-bg); padding: 100px 48px; text-align: center; transition: background 0.3s ease; }
.cta-box { max-width: 780px; margin: 0 auto; background: var(--panel-bg); color: var(--panel-ink); border-radius: 24px; padding: 70px 60px; position: relative; overflow: hidden; }
.cta-box-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 500px 300px at 100% 0%, rgba(40, 93, 221, 0.28) 0%, transparent 60%); }
.cta-box h2 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 50px); font-weight: 800; letter-spacing: -1.3px; line-height: 1.05; margin-bottom: 18px; position: relative; z-index: 1; color: var(--panel-ink); }
.cta-box p { font-size: 17px; color: rgba(245, 247, 252, 0.6); font-weight: 300; margin-bottom: 38px; position: relative; z-index: 1; }
.cta-box .btn-primary { background: var(--panel-ink); color: var(--panel-bg); position: relative; z-index: 1; }
.cta-box .btn-primary:hover { background: var(--panel-mark); color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */
footer { background: var(--panel-bg); color: rgba(245, 247, 252, 0.55); padding: 54px 48px 40px; }
.footer-inner { max-width: 1120px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 46px; flex-wrap: wrap; gap: 40px; }
.footer-brand .nav-logo { color: var(--panel-ink); }
.footer-brand p { font-size: 13px; color: rgba(245, 247, 252, 0.45); margin-top: 10px; max-width: 240px; font-weight: 300; }
.footer-links { display: flex; gap: 54px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; text-transform: uppercase; color: rgba(245, 247, 252, 0.85); margin-bottom: 16px; letter-spacing: 0.8px; }
.footer-col a { display: block; font-size: 13px; color: rgba(245, 247, 252, 0.45); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: rgba(245, 247, 252, 0.85); }
.footer-bottom { border-top: 1px solid rgba(245, 247, 252, 0.1); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; }

/* ═══════════════════════════════════════════════════════════════════════
   FLOATING ACTION STACK (WhatsApp / Get in touch / Theme toggle)
   ═══════════════════════════════════════════════════════════════════════ */
.fab-stack {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  display: flex; flex-direction: column; align-items: center;
}

.fab-btn {
  position: relative; width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  border: none; cursor: pointer; box-shadow: var(--toggle-shadow);
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  outline: none;
}
/* Stacked flush against each other, in a shared column */
.fab-stack .fab-btn + .fab-btn { margin-top: -6px; }
.fab-btn:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25); z-index: 1; }
html.dark .fab-btn:hover { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6); }
.fab-btn:active { transform: scale(0.96); }
.fab-btn svg { width: 22px; height: 22px; }
.fab-btn::after {
  content: attr(data-tooltip); position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  background: var(--toggle-bg); color: var(--toggle-color); font-family: var(--font-body); font-size: 12px; font-weight: 500;
  white-space: nowrap; padding: 6px 12px; border-radius: 8px; pointer-events: none; opacity: 0;
  transition: opacity 0.2s ease 0.1s; box-shadow: var(--toggle-shadow);
}
.fab-btn:hover::after { opacity: 1; }

.fab-whatsapp { background: #25d366; color: #fff; }
.fab-whatsapp svg { width: 24px; height: 24px; }
.fab-chat { background: var(--brand); color: var(--brand-ink); }

.theme-toggle { background: var(--toggle-bg); color: var(--toggle-color); }
.theme-toggle svg { position: absolute; transition: opacity 0.25s ease, transform 0.35s ease; }
.theme-toggle .icon-sun { opacity: 0; transform: rotate(90deg) scale(0.7); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
html.dark .theme-toggle .icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
html.dark .theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(0.7); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .phases-grid { grid-template-columns: repeat(2, 1fr); }
  .inst-box { grid-template-columns: 1fr; padding: 40px; }
}

@media (max-width: 900px) {
  nav { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-right { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  section { padding: 72px 24px; }
  .hero { padding: 96px 24px 64px; }
  .how-inner { grid-template-columns: 1fr; gap: 48px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .ai-inner { grid-template-columns: 1fr; gap: 48px; }
  .phases-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-stats { gap: 28px; }
  .cta-section { padding: 72px 24px; }
  .cta-box { padding: 48px 32px; }
  .cta-box h2 { letter-spacing: -1px; }
  footer { padding: 48px 24px 32px; }
  .footer-links { gap: 36px; flex-wrap: wrap; }
  .fab-stack { bottom: 20px; right: 20px; }
  .fab-btn { width: 46px; height: 46px; }
  .fab-whatsapp svg { width: 21px; height: 21px; }
}

@media (max-width: 640px) {
  .hero-badge { font-size: 11px; padding: 5px 11px; }
  .hero-h1 { letter-spacing: -2px; }
  .hero-sub { font-size: 15.5px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; justify-content: center; font-size: 14px; padding: 13px 24px; }
  .hero-hand { display: none; }
  .hero-stats { gap: 20px; }
  .hero-stats .stat-item { min-width: 100px; }
  .stat-num { font-size: 27px; }
  .stat-label { font-size: 12px; }
  .section-title { font-size: clamp(28px, 7vw, 40px); letter-spacing: -1px; }
  .section-sub { font-size: 15px; }
  .step-content h3 { font-size: 16px; }
  .step-content p { font-size: 13px; }
  .feat-card { padding: 22px; }
  .feat-card h3 { font-size: 16px; }
  .feat-card p { font-size: 13px; }
  .features-grid { grid-template-columns: 1fr; }
  .phases-grid { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .review-text { font-size: 13px; }
  .review-name { font-size: 13px; }
  .how-visual { padding: 22px; }
  .mock-header { flex-wrap: wrap; gap: 8px; }
  .inst-box { padding: 28px; border-radius: 18px; }
  .inst-actions { flex-direction: column; align-items: stretch; }
  .inst-actions a { text-align: center; }
  .cta-box { padding: 40px 24px; border-radius: 16px; }
  .cta-box p { font-size: 14px; }
  .cta-box .btn-primary { width: 100%; justify-content: center; font-size: 14px; }
  footer { padding: 40px 20px 28px; }
  .footer-links { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-bottom p { font-size: 12px; }
  .footer-col a { font-size: 12px; }
  .footer-col h5 { font-size: 11px; }
  .ai-card { padding: 22px; }
  .ai-card-header { flex-wrap: wrap; gap: 8px; }
  .ai-card-score { margin-left: 0; }
  .ai-feedback-text { font-size: 13px; }
  .ai-bullet-text h4 { font-size: 14px; }
  .ai-bullet-text p { font-size: 12px; }
  .mobile-menu-links a { font-size: clamp(20px, 6.5vw, 28px); padding: 9px 0; }
  .mobile-menu-actions .nav-login, .mobile-menu-actions .nav-cta { font-size: 13px; padding: 12px; }
  .fab-stack { bottom: 16px; right: 16px; }
  .fab-btn::after { display: none; }
}

@media (max-width: 380px) {
  .hero-h1 { letter-spacing: -1.5px; font-size: clamp(40px, 11vw, 60px); }
  .stat-num { font-size: 24px; }
  .section-title { letter-spacing: -0.8px; font-size: clamp(26px, 8vw, 36px); }
  .hero-sub { font-size: 14px; }
  .mobile-menu-links a { font-size: clamp(18px, 6vw, 24px); }
}
