/* ═══════════════════════════════════════════
   BONANZA FINANCE & TECH — style.css v4
   CLEAN — no duplicates, mobile-first
════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
}
img { display: block; max-width: 100%; }
/* CRITICAL: svg must be inline-block with overflow visible — prevents black blob bug */
svg { display: inline-block; overflow: visible; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
p { max-width: 66ch; text-wrap: pretty; }
ul { list-style: none; }

/* ── TOKENS ── */
:root {
  --white: #ffffff;
  --bg: #080f18;
  --bg2: #0b1520;
  --surface: #0f1e2e;
  --surface2: #132438;
  --navy-mid: #0a1e30;
  --green: #19b574;
  --green-dim: #149f66;
  --green-light: #22d68a;
  --green-subtle: rgba(25,181,116,0.08);
  --border-dark: rgba(25,181,116,0.14);
  --border-green: rgba(25,181,116,0.32);
  --text-body: #c8d8e4;
  --text-muted: #7fa3b8;
  --text-faint: #3d6478;
  --shadow-green: 0 8px 32px rgba(25,181,116,0.25);
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-w: 1100px;
  --section-py: clamp(3rem, 5.5vw, 5.5rem);
  --header-h: 76px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── BASE ── */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg);
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-weight: 700;
}
.wrap { width: min(100% - 2.5rem, var(--max-w)); margin-inline: auto; }
a, button {
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), opacity 0.2s var(--ease),
    transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

/* ════════════════════════════════════════════
   HEADER
════════════════════════════════════════════ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: relative;
  z-index: 10;
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
}
.brand img { height: 46px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.01em;
  padding: 0.25rem 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.25s var(--ease);
}
.nav-links a:hover { color: #0d1b2a; }
.nav-links a:hover::after { width: 100%; }

/* Right group: lang switcher + CTA on desktop, burger on mobile */
.nav-right-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.nav-desktop-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lang-sw {
  display: flex;
  border: 1.5px solid #d1dbe5;
  border-radius: 999px;
  overflow: hidden;
}
.lang-sw button {
  padding: 0.3rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
}
.lang-sw button.active { background: var(--green); color: #fff; }
.lang-sw button:hover:not(.active) { color: #0d1b2a; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
}
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dim); transform: translateY(-2px); box-shadow: var(--shadow-green); }
.btn-outline-dark { border: 1.5px solid #cbd5e1; color: #334155; }
.btn-outline-dark:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,0.3); color: #fff; }
.btn-outline-light:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-email { border: 1.5px solid var(--border-green); color: var(--green); border-radius: var(--r-md); padding: 0.75rem 1.4rem; }
.btn-email:hover { background: var(--green-subtle); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--green);
  font-weight: 600;
  font-size: 0.875rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.2s, gap 0.2s var(--ease);
}
.btn-ghost:hover { border-color: var(--green); gap: 0.75rem; }
.btn-ghost svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ── BURGER ── */
.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  background: #334155;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8,15,24,0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 2rem 4rem;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 360px;
}
.mobile-close {
  align-self: flex-end;
  margin-bottom: 2rem;
  color: var(--text-muted);
  width: 44px; height: 44px;
  border: 1px solid var(--border-dark);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mobile-close:hover { color: #fff; border-color: var(--green); }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; width: 100%; }
.mobile-menu nav a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-dark);
}
.mobile-menu nav a:last-child { border-bottom: none; }
.mobile-menu nav a:hover { color: var(--green); }
.mobile-cta { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.75rem; width: 100%; }
.mobile-cta .btn { width: 100%; border-radius: var(--r-md); padding: 1rem; font-size: 1rem; justify-content: center; }
.mobile-lang { margin-top: 2rem; display: flex; gap: 0.75rem; }
.mobile-lang button {
  border: 1.5px solid var(--border-dark);
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.mobile-lang button.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  background:
    radial-gradient(ellipse 60% 50% at 5% 10%, rgba(25,181,116,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 95% 85%, rgba(25,181,116,0.07) 0%, transparent 55%),
    var(--bg);
  padding: clamp(3.5rem, 6vw, 6rem) 0 clamp(3rem, 5vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(25,181,116,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,181,116,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
/* Canvas: fill the hero absolutely, behind all content */
#hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
/* All hero children stack above canvas */
.hero > .wrap { position: relative; z-index: 1; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr minmax(0, 420px);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  width: 30px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(2.1rem, 3.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero h1 .green { color: var(--green); }
.hero-sub {
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 44ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* Hero panel */
.hero-panel {
  border: 1px solid var(--border-green);
  border-radius: var(--r-xl);
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface2) 100%);
  box-shadow: 0 0 80px rgba(25,181,116,0.08), 0 40px 100px rgba(0,0,0,0.6);
  overflow: hidden;
}
.panel-bar {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-dots { display: flex; gap: 0.4rem; }
.pd { width: 10px; height: 10px; border-radius: 50%; }
.pd-r { background: #ff5f57; }
.pd-y { background: #febc2e; }
.pd-g { background: var(--green); }
.panel-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.panel-body { padding: 1.5rem; }
.pstat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin-bottom: 1rem; }
.pstat { border: 1px solid var(--border-dark); border-radius: var(--r-sm); padding: 1rem 1.1rem; background: rgba(5,16,26,0.5); }
.pstat strong { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--green); line-height: 1.1; letter-spacing: -0.01em; }
.pstat span { display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-top: 0.3rem; }
.psvcs { display: flex; flex-direction: column; gap: 0.4rem; }
.psvc {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(5,16,26,0.35);
}
.psvc::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   STATS STRIP
════════════════════════════════════════════ */
.stats-section {
  background: var(--bg2);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--border-dark);
  position: relative;
  cursor: default;
  transition: background 0.3s var(--ease);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(25,181,116,0.06); }
.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 40px; height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.35s var(--ease);
}
.stat-item:hover::after { transform: translateX(-50%) scaleX(1); }
.stat-val {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 0.3s, transform 0.3s var(--ease);
}
.stat-item:hover .stat-val { color: var(--green-light); transform: scale(1.06); }
.stat-label { color: var(--text-muted); font-size: 0.8rem; font-weight: 500; margin-top: 0.45rem; letter-spacing: 0.02em; }

/* ════════════════════════════════════════════
   SECTION COMMON
════════════════════════════════════════════ */
.section-dark { background: var(--bg); padding: var(--section-py) 0; }
.section-darker {
  background: var(--bg2);
  padding: var(--section-py) 0;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 0.6fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.5rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; border-radius: 2px; flex-shrink: 0; }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.4rem); font-weight: 700; color: var(--white); line-height: 1.2; letter-spacing: -0.015em; }
.section-head p { color: var(--text-muted); font-size: 0.94rem; line-height: 1.75; }

/* ════════════════════════════════════════════
   SERVICES
════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.svc-card {
  background: var(--surface);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--green);
  transition: height 0.35s var(--ease);
}
@media (hover: hover) {
  .svc-card:hover { background: var(--surface2); }
  .svc-card:hover::before { height: 100%; }
}
/* Featured card: full width row */
.svc-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--surface2) 0%, var(--navy-mid) 100%);
  border-bottom: 1px solid var(--border-dark);
  flex-direction: row;
  align-items: flex-start;
  gap: 2.5rem;
}
.svc-card.featured::before { display: none; }
.svc-featured-left { flex: 1; }
.svc-featured-right { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.svc-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--green);
  opacity: 0.15;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: -0.5rem;
}
.svc-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); letter-spacing: -0.01em; line-height: 1.25; }
.svc-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.65; }

/* CRITICAL: Icon box — must use flex with explicit size, green stroke SVG */
.svc-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 1px solid var(--border-green);
  border-radius: var(--r-sm);
  background: var(--green-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
/* Force SVG inside icon to correct size and green stroke — no fill */
.svc-icon svg,
.why-icon svg,
.std-principle-icon svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc-tag {
  align-self: flex-start;
  border: 1px solid var(--border-green);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: auto;
}
.section-cta { display: flex; justify-content: center; margin-top: 2.5rem; }

/* Scope list */
.scope-list { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 1.5rem; }
.scope-list li {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 0.7rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
  align-items: start;
}
.scope-list li::before {
  content: '';
  width: 7px; height: 7px;
  margin-top: 0.42em;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   PLATFORMS
════════════════════════════════════════════ */
.platform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.platform-card {
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  align-items: center;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
@media (hover: hover) { .platform-card:hover { border-color: var(--border-green); transform: translateY(-4px); } }
.platform-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green);
  opacity: 0.18;
  line-height: 1;
  letter-spacing: -0.02em;
}
.platform-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--white); }
.platform-card p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; }
.platform-tag {
  border: 1px solid var(--border-green);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: auto;
}
.platforms-cta {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.platforms-cta p { color: var(--text-muted); font-size: 0.9rem; max-width: none; }
.platforms-cta strong { display: block; color: var(--white); font-weight: 700; margin-bottom: 0.2rem; }

/* ════════════════════════════════════════════
   PROCESS
════════════════════════════════════════════ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--border-dark);
}
.process-step { background: var(--surface); padding: 2rem 1.75rem; transition: background 0.25s; }
@media (hover: hover) { .process-step:hover { background: var(--surface2); } }
.step-num {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.process-step h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.55rem; }
.process-step p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; max-width: none; }
.process-cta-bar {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--surface) 0%, var(--navy-mid) 100%);
  flex-wrap: wrap;
  text-align: center;
}
.process-cta-bar span { color: var(--text-muted); font-size: 0.9rem; max-width: none; }

/* ════════════════════════════════════════════
   WHY BONANZA
════════════════════════════════════════════ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.why-card {
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  padding: 1.85rem;
  background: var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
@media (hover: hover) { .why-card:hover { border-color: var(--border-green); transform: translateY(-4px); } }
.why-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  background: var(--green-subtle);
  border: 1px solid var(--border-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--green);
}
.why-card h3 { font-size: 1.025rem; font-weight: 700; color: var(--white); margin-bottom: 0.55rem; }
.why-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; max-width: none; }

/* ════════════════════════════════════════════
   STANDARDS
════════════════════════════════════════════ */
.standards-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.std-quote-block {
  border: 1px solid rgba(201,168,67,0.22);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  background: linear-gradient(145deg, var(--surface) 0%, var(--navy-mid) 100%);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
.std-quote-block::before {
  content: '"';
  position: absolute;
  top: -1rem; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 10rem;
  font-weight: 700;
  color: var(--green);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
}
.std-quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--white);
  max-width: none;
}
.std-certs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cert-badge {
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.std-principles { display: flex; flex-direction: column; gap: 0.75rem; }
.std-principle {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
@media (hover: hover) {
  .std-principle:hover { border-color: var(--border-green); transform: translateX(4px); }
}
.std-principle-icon {
  width: 36px; height: 36px;
  min-width: 36px;
  border-radius: 8px;
  background: var(--green-subtle);
  border: 1px solid var(--border-green);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
}
.std-principle h4 { font-size: 0.875rem; font-weight: 700; color: var(--white); margin-bottom: 0.25rem; }
.std-principle p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; max-width: none; }

/* ════════════════════════════════════════════
   FAQ
════════════════════════════════════════════ */
.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border-dark); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.5rem 1.75rem;
  text-align: left;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 1.025rem;
  font-weight: 700;
  color: var(--white);
  transition: background 0.2s, color 0.2s;
}
.faq-q:hover { background: var(--surface2); }
.faq-q.open { color: var(--green); background: var(--surface2); }
.faq-icon {
  width: 28px; height: 28px;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease), border-color 0.2s, color 0.2s;
}
.faq-q.open .faq-icon { transform: rotate(45deg); border-color: var(--green); color: var(--green); }
.faq-a { display: none; padding: 0 1.75rem 1.5rem; background: var(--surface2); }
.faq-a.open { display: block; }
.faq-a p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.75; max-width: none; }

/* ════════════════════════════════════════════
   CTA SECTION
════════════════════════════════════════════ */
.cta-section {
  border: 1px solid var(--border-green);
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  background:
    radial-gradient(ellipse 80% 60% at 10% 50%, rgba(25,181,116,0.1) 0%, transparent 55%),
    linear-gradient(135deg, var(--surface) 0%, var(--navy-mid) 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
}
.cta-section h2 { font-size: clamp(1.5rem, 2.2vw, 2.2rem); margin-bottom: 0.75rem; }
.cta-section p { color: var(--text-muted); font-size: 0.94rem; max-width: 50ch; }
.cta-btns { display: flex; flex-direction: column; gap: 0.65rem; align-items: stretch; min-width: 210px; }
.cta-btns .btn { justify-content: center; }

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.site-footer {
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 3.5rem 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.footer-brand img { height: 42px; margin-bottom: 1.1rem; }
.footer-brand p { color: #64748b; font-size: 0.875rem; line-height: 1.75; max-width: 28ch; }
.footer-col h4 { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #94a3b8; margin-bottom: 1.1rem; }
.footer-col a { display: block; color: #475569; font-size: 0.875rem; margin-bottom: 0.55rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p, .footer-bottom a { color: #94a3b8; font-size: 0.78rem; }
.footer-bottom a:hover { color: var(--green); }

/* ════════════════════════════════════════════
   FADE-IN ANIMATIONS
════════════════════════════════════════════ */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.fade-up.visible { opacity: 1; transform: none; }
.why-grid .why-card:nth-child(2) { transition-delay: 0.08s; }
.why-grid .why-card:nth-child(3) { transition-delay: 0.16s; }
.platform-card:nth-child(2) { transition-delay: 0.07s; }
.platform-card:nth-child(3) { transition-delay: 0.14s; }
.platform-card:nth-child(4) { transition-delay: 0.21s; }

/* ════════════════════════════════════════════
   RESPONSIVE — TABLET ≤1024px
════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — MOBILE ≤768px
════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── Nav: logo left, nav-right-group right ── */
  .nav { position: relative; gap: 0; }
  .nav-links { display: none; }
  .nav-desktop-actions { display: none; }
  .burger { display: flex; }
  .brand { position: absolute; left: 50%; transform: translateX(-50%); }

  /* ── Hero ── */
  .hero { padding: 2.5rem 0 2rem; }
  .hero > .wrap { position: relative; z-index: 1; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.15; }
  .hero-eyebrow { justify-content: center; }
  .hero-sub { margin-inline: auto; max-width: 36ch; }
  .hero-actions { justify-content: center; }
  .hero-panel { display: none; }

  /* ── Section heads ── */
  .section-head { grid-template-columns: 1fr; text-align: center; }
  .eyebrow { justify-content: center; }

  /* ── Stats: 2 columns ── */
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border-dark); border-right: 1px solid var(--border-dark); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border-dark); border-right: none; }

  /* ── Services: single column, centered ── */
  .services-grid { grid-template-columns: 1fr; background: none; border-radius: var(--r-lg); gap: 0.75rem; }
  .svc-card { border: 1px solid var(--border-dark); border-radius: var(--r-lg); text-align: center; align-items: center; }
  .svc-card::before { display: none; }
  .svc-card.featured { grid-column: span 1; flex-direction: column; gap: 1.5rem; align-items: center; text-align: center; background: linear-gradient(135deg, var(--surface2) 0%, var(--navy-mid) 100%); border: 1px solid var(--border-dark); }
  .svc-featured-left, .svc-featured-right { width: 100%; align-items: center; }
  .svc-featured-right { margin-top: 0; }
  .svc-icon { margin-inline: auto; }
  .svc-tag { align-self: center; }
  .btn-ghost { justify-content: center; }
  .scope-list li { grid-template-columns: 1fr; text-align: center; }
  .scope-list li::before { display: none; }

  /* ── Platforms ── */
  .platform-grid { grid-template-columns: 1fr; }
  .platforms-cta { flex-direction: column; text-align: center; align-items: center; }

  /* ── Process ── */
  .process-grid { grid-template-columns: 1fr; }
  .process-step { text-align: center; }

  /* ── Why ── */
  .why-grid { grid-template-columns: 1fr; }
  .why-card { text-align: center; }
  .why-icon { margin-inline: auto; }

  /* ── Standards ── */
  .standards-new { grid-template-columns: 1fr; }
  .std-quote-block { align-items: center; text-align: center; }
  .std-quote-block blockquote { text-align: left; }
  .std-principle { text-align: left; }

  /* ── CTA section ── */
  .cta-section { grid-template-columns: 1fr; text-align: center; }
  .cta-section p { margin-inline: auto; }
  .cta-btns { flex-direction: row; flex-wrap: wrap; justify-content: center; min-width: 0; align-items: center; }

  /* ── Footer: centered, bigger logo ── */
  .footer-top { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-brand img { height: 56px; width: auto; margin-inline: auto; margin-bottom: 1rem; }
  .footer-brand p { margin-inline: auto; max-width: 30ch; text-align: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — SMALL PHONE ≤480px
════════════════════════════════════════════ */
@media (max-width: 480px) {
  .wrap { width: calc(100% - 2rem); }
  .hero h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); line-height: 1.15; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; border-radius: var(--r-md); }
  .stats-strip { grid-template-columns: 1fr; }
  .stat-item { border-right: none !important; border-top: none !important; border-bottom: 1px solid var(--border-dark); }
  .stat-item:last-child { border-bottom: none; }
  .cta-btns { flex-direction: column; width: 100%; }
  .cta-btns .btn { width: 100%; border-radius: var(--r-md); }
  .svc-card { padding: 1.5rem; }
  .faq-q { font-size: 0.9rem; padding: 1.25rem; }
  .faq-a { padding: 0 1.25rem 1.25rem; }
}

/* ════════════════════════════════════════════
   REDUCED MOTION
════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
