:root {
  --bg: #0a0a0a;
  --panel: rgba(22, 22, 26, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f7fa;
  --muted: #dbe4eb;
  --green: #39ff14;
  --volt: #39ff14;
  --gold: #ffd84d;
  --teal: #00d4aa;
  --deep: #0a0a0a;
  --page: min(1240px, calc(100% - 32px));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }

/* ── ACCESSIBILITY: Skip nav ── */
.skip-nav { position:absolute; top:-100%; left:16px; z-index:9999; padding:10px 20px; background:#39ff14; color:#0a0a0a; font-weight:700; border-radius:0 0 8px 8px; font-size:14px; text-decoration:none; transition:top 0.2s; }
.skip-nav:focus { top:0; }
/* ── ACCESSIBILITY: Focus visible ── */
:focus-visible { outline:2px solid #39ff14; outline-offset:3px; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline:none; }

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(57, 255, 20, 0.12), transparent 22%),
    radial-gradient(circle at top right, rgba(255, 216, 77, 0.12), transparent 18%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 60%, #111 100%);
  min-height: 100vh;
}

a { color: inherit; }

.page {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

/* ── LAYOUT GRIDS ── */
.hero,
.content-grid,
.card-grid,
.legal-footer,
.section-stack,
.story-grid,
.quote-strip,
.cta-band {
  display: grid;
  gap: 18px;
}

/* ── FIXED NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
  width: var(--page);
  margin: 0 auto;
}

.brand {
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

.brand .dot { color: var(--volt); }

.brand-logo, .footer-logo { display: block; height: auto; max-width: 100%; }
.brand-logo { height: 80px; width: auto; }
.footer-logo { height: 64px; width: auto; }

.nav-links {
  display: flex;
  gap: 28px;
}

.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(--text); }

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s;
}

.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); }

/* Main offset for fixed nav */
main, .main-content { padding-top: 96px; }

.btn,
.btn-primary,
.btn-secondary {
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
  font: inherit;
}

.btn,
.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-primary {
  background: var(--volt);
  color: #0a0a0a;
  border: none;
  font-weight: 700;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.panel:hover,
.bullet-card:hover,
.story-card:hover,
.quote-card:hover,
.footer-links a:hover {
  transform: translateY(-2px);
}

.panel,
.bullet-card,
.story-card,
.quote-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.panel {
  padding: 28px;
}

.hero {
  grid-template-columns: 1.04fr 0.96fr;
  margin-bottom: 18px;
}

.content-grid {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-card,
.quote-card {
  padding: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 216, 77, 0.12);
  border: 1px solid rgba(255, 216, 77, 0.26);
  color: var(--gold);
}

h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  max-width: 12ch;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--green);
}

h3 {
  font-size: 20px;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

p,
li,
label {
  color: var(--muted);
  line-height: 1.72;
}

.hero-list,
.stack-list,
.footer-links,
.mini-list {
  display: grid;
  gap: 12px;
}

.hero-list li,
.bullet-card,
.footer-links a,
.mini-list div {
  list-style: none;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: 18px;
}

.hero-list li,
.mini-list div,
.footer-links a {
  padding: 14px 16px;
}

.bullet-card {
  padding: 18px;
}

.section-stack {
  display: grid;
  gap: 16px;
}

.callout {
  border-left: 3px solid var(--green);
  padding-left: 14px;
}

.meta {
  font-size: 14px;
  color: var(--muted);
}

.hero-visual {
  min-height: 340px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(5, 12, 16, 0.24), rgba(5, 12, 16, 0.84)),
    radial-gradient(circle at 20% 18%, rgba(57, 255, 20, 0.16), transparent 26%),
    radial-gradient(circle at 82% 20%, rgba(255, 216, 77, 0.18), transparent 24%),
    linear-gradient(140deg, rgba(9, 19, 28, 0.96), rgba(14, 25, 20, 0.96));
  padding: 24px;
  display: grid;
  align-content: end;
}

.quote-strip {
  grid-template-columns: 1fr 1fr 1fr;
  margin-bottom: 18px;
}

.cta-band {
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  padding: 28px;
  margin-bottom: 18px;
}

.cta-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

form {
  display: grid;
  gap: 12px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

select option { color: #111; }

textarea {
  min-height: 120px;
  resize: vertical;
}

.notice {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 14px;
}

.notice.success {
  border-color: rgba(57, 255, 20, 0.34);
  color: #b7ffac;
}

.notice.warn {
  border-color: rgba(255, 216, 77, 0.34);
  color: #ffe8a5;
}

/* ── NEW 4-COLUMN FOOTER ── */
.footer { border-top: 1px solid rgba(255,255,255,0.08); padding: 60px 0 32px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.footer-brand .dot { color: var(--volt); }
.footer-tagline { font-size: 13px; color: var(--muted); line-height: 1.6; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col-links a { font-size: 14px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-col-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; }
.footer-bottom p { font-size: 13px; color: var(--muted); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* Legacy footer classes — kept for pages not yet migrated */
.legal-footer {
  grid-template-columns: 1.1fr 1fr 1fr;
  margin-top: 26px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-column {
  display: grid;
  gap: 12px;
}

.footer-column strong {
  color: var(--text);
}

.footer-links a {
  text-decoration: none;
}

@media (max-width: 1024px) {
  .card-grid,
  .story-grid,
  .quote-strip,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .hero,
  .content-grid,
  .legal-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 760px) {
  .page {
    width: min(100%, calc(100% - 24px));
  }
  /* Nav links and CTA hidden on mobile — mobile-nav.js injects the drawer */
  .nav-links { display: none; }
  .nav-cta .btn-ghost,
  .nav-cta .btn-primary { display: none; }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(30px, 10vw, 48px); }
  h2 { font-size: clamp(20px, 6vw, 28px); }
  .hero-visual { min-height: 200px; }
  .cta-actions { flex-direction: column; }
  .cta-actions a, .btn, .btn-primary, .btn-secondary { width: 100%; text-align: center; }
}

@media (max-width: 390px) {
  h1 { font-size: 28px; }
  .page { width: calc(100% - 16px); }
}

/* ══════════════════════════════════════════════════════════════
   PROFESSIONAL COMPONENTS — v2 (matches index.html design system)
   ══════════════════════════════════════════════════════════════ */

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── STAT CHIPS (hero metrics) ── */
.stat-chips {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 28px 0 0;
}
.stat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 24px;
  background: rgba(26,26,26,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  min-width: 110px;
  flex: 1;
}
.stat-chip strong {
  font-size: 26px;
  font-weight: 800;
  color: var(--volt);
  line-height: 1.1;
}
.stat-chip span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── ICON FEATURE CARDS ── */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 24px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  cursor: default;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(57,255,20,0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-card .fc-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(57,255,20,0.1);
  border: 1px solid rgba(57,255,20,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--volt);
}
.feature-card .fc-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.feature-card p {
  font-size: 14px;
  line-height: 1.65;
}

/* ── TESTIMONIAL CARDS (v2) ── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.testimonial-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 180ms ease, border-color 180ms ease;
}
.testimonial-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,216,77,0.2);
}
.tc-stars {
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 2px;
}
.tc-quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  flex: 1;
}
.tc-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(57,255,20,0.2), rgba(0,212,170,0.2));
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--volt);
}
.tc-meta {
  display: flex;
  flex-direction: column;
}
.tc-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.tc-role {
  font-size: 12px;
  color: var(--muted);
}

/* ── HERO V2 (audience pages) ── */
.hero-v2 {
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-v2-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.hero-v2-orb-1 {
  top: -120px; left: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(57,255,20,0.08) 0%, transparent 65%);
}
.hero-v2-orb-2 {
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,212,170,0.06) 0%, transparent 65%);
}
.hero-v2-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-v2 h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -1.5px;
  color: var(--text);
  margin: 20px 0 20px;
  max-width: 16ch;
}
.hero-v2 h1 em {
  color: var(--volt);
  font-style: normal;
}
.hero-v2-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.hero-v2-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* ── SECTION DIVIDER ── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57,255,20,0.15), transparent);
  margin: 48px 0;
  border: none;
}

/* ── SECTION HEADING ── */
.section-heading {
  text-align: center;
  margin-bottom: 40px;
}
.section-heading .eyebrow {
  margin-bottom: 16px;
}
.section-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 12px;
}
.section-heading p {
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}

/* ── CTA BAND V2 ── */
.cta-v2 {
  background: linear-gradient(135deg, rgba(57,255,20,0.06) 0%, rgba(0,212,170,0.04) 100%);
  border: 1px solid rgba(57,255,20,0.12);
  border-radius: 28px;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 18px;
}
.cta-v2 h2 {
  color: var(--text);
  margin-bottom: 8px;
}
.cta-v2 p {
  max-width: 440px;
}

/* ── RESPONSIVE FOR NEW COMPONENTS ── */
@media (max-width: 1024px) {
  .feature-cards { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .cta-v2 { flex-direction: column; text-align: center; }
  .cta-v2 p { margin: 0 auto; }
  .cta-v2 .cta-actions { justify-content: center; }
}
@media (max-width: 640px) {
  .feature-cards { grid-template-columns: 1fr; }
  .hero-v2 { padding: 100px 0 40px; }
  .hero-v2 h1 { max-width: 100%; }
  .stat-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-chip { padding: 12px 16px; min-width: 0; }
  .stat-chip strong { font-size: 22px; }
  .cta-v2 { padding: 32px 24px; }

  /* ── TESTIMONIAL CAROUSEL (mobile) ── */
  .testimonials {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding-bottom: 16px;
    scrollbar-width: none;
  }
  .testimonials::-webkit-scrollbar { display: none; }
  .testimonial-card {
    min-width: 85vw;
    max-width: 85vw;
    scroll-snap-align: center;
    flex-shrink: 0;
  }
}
