/* =================================================================
   Mindpod Technologies — Enterprise Intelligence design system (v2)
   Distinctive, animated dark marketing site.
   Shared stylesheet for index.html, supplymind.html, mitb.html.
   Google Fonts (Rajdhani + Inter) is the only external dependency.
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Palette (kept from v1) */
  --bg:            #0A1628; /* deep navy page background */
  --bg-alt:        #0C1B30; /* alternating section background */
  --card:          #102339; /* card surface */
  --border:        #1E3A5C; /* 1px card / divider border */
  --text:          #EAF1FA; /* primary text */
  --muted:         #9DB2C9; /* secondary / muted text */
  --accent:        #36D1E0; /* cyan accent */
  --accent-2:      #1E6BFF; /* electric blue (network nodes) */
  --accent-soft:   rgba(54, 209, 224, 0.12);
  --accent-border: rgba(54, 209, 224, 0.40);
  --red:           #E5484D; /* brand red — primary CTA */
  --red-hover:     #F05257;

  /* Effects */
  --shadow:        0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg:     0 24px 60px rgba(0, 0, 0, 0.45);
  --glow:          0 0 0 1px rgba(54,209,224,0.30), 0 8px 30px rgba(54,209,224,0.22);
  --radius:        14px;
  --radius-sm:     10px;
  --radius-lg:     20px;

  /* Layout */
  --container:     1180px;
  --gutter:        24px;
  --nav-h:         70px;

  /* Type — Google Fonts with robust system fallbacks */
  --font-display:  'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: #6fe2ee; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #04121f;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  z-index: 2000;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Animated background canvas ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
/* Keep all real content above the canvas */
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: 92px 0; position: relative; }
.section--alt { background: rgba(12, 27, 48, 0.82); backdrop-filter: blur(2px); }
.section--tight { padding: 64px 0; }

.section-head { max-width: 740px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  font-weight: 700;
}
.lead { color: var(--muted); font-size: 1.12rem; font-family: var(--font-body); }

.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease,
              transform 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(229, 72, 77, 0.32);
}
.btn--primary:hover { background: var(--red-hover); color: #fff; box-shadow: 0 10px 28px rgba(229, 72, 77, 0.42); }

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--accent-border);
}
.btn--secondary:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--text); box-shadow: var(--glow); }

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  padding-inline: 0;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.96rem;
}
.btn--ghost:hover { color: #6fe2ee; transform: none; }
.btn--ghost::after { content: " \2192"; transition: margin 0.18s ease; }
.btn--ghost:hover::after { margin-left: 5px; }

.btn--sm { padding: 10px 18px; font-size: 0.92rem; }
.btn--block { width: 100%; }

/* ---------- Top navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--nav-h);
}

/* Brand lockup */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  margin-right: auto;
}
.brand:hover { color: var(--text); }
.brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand .brand-sub {
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  align-self: center;
}

/* Nav menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu > li { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-link:hover, .nav-link:focus-visible,
.has-dropdown:hover .nav-link,
.has-dropdown:focus-within .nav-link { color: var(--text); }
.nav-link:hover::after, .nav-link:focus-visible::after,
.has-dropdown:hover > .nav-link::after { transform: scaleX(1); }
.nav-link.active { color: var(--text); }
.nav-link.active::after { transform: scaleX(1); }
.nav-link .caret { font-size: 0.6rem; opacity: 0.8; transition: transform 0.2s ease; }
.has-dropdown:hover .caret, .has-dropdown:focus-within .caret { transform: rotate(180deg); }

/* Dropdowns — CSS hover/focus-within + JS for mobile */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 290px;
  background: rgba(16, 35, 57, 0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.4;
  font-family: var(--font-body);
}
.dropdown a:hover, .dropdown a:focus-visible { background: var(--accent-soft); color: var(--text); }
.dropdown a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.dropdown a small { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 400; }

/* Mobile menu toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px; height: 44px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
}

.nav-cta { margin-left: 10px; }
.nav-cta .btn { letter-spacing: 0.06em; }

/* ---------- Hero splash ---------- */
.hero {
  position: relative;
  padding: 120px 0 104px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  /* readable radial vignette over the animated canvas */
  background:
    radial-gradient(900px 520px at 50% 22%, rgba(10,22,40,0.55), rgba(10,22,40,0.0) 70%),
    radial-gradient(1200px 700px at 50% 0%, rgba(54,209,224,0.08), transparent 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 880px; margin-inline: auto; }

/* Brand lockup ⟦ MINDPOD ⟧ */
.splash {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 26px);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  margin: 0;
}
.splash .word {
  font-size: clamp(2.8rem, 9vw, 6.2rem);
  letter-spacing: 0.12em;
  color: var(--text);
  text-shadow: 0 2px 40px rgba(54,209,224,0.18);
}
.splash .bracket {
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  color: var(--accent);
  font-weight: 500;
  text-shadow: 0 0 24px rgba(54,209,224,0.55);
}
.splash-sub {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(0.95rem, 2.4vw, 1.5rem);
  letter-spacing: 0.62em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 0;
  padding-left: 0.62em; /* optical balance for letter-spacing */
}

.hero .tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin: 40px 0 16px;
}
.hero .subhead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Page hero variant for product pages (no full splash) */
.hero--page { padding: 96px 0 72px; text-align: left; }
.hero--page .hero-inner { margin-inline: 0; }

/* ---------- Cards & grids ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Product strip cards */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(54,209,224,0.06), transparent 42%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 38px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { border-color: var(--accent-border); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .badge {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 5px 13px;
  font-weight: 600;
}
.product-card h3 { font-size: 1.7rem; margin: 4px 0 0; text-transform: none; }
.product-card .product-tag { color: var(--accent); font-size: 0.92rem; font-weight: 500; margin: 0; font-family: var(--font-body); }
.product-card p { color: var(--muted); margin: 0; }
.product-card .product-foot { margin-top: auto; padding-top: 12px; }

/* Service tiles */
.service-tile {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.service-tile:hover { border-color: var(--accent-border); transform: translateY(-3px); box-shadow: var(--shadow); }
.service-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  margin-bottom: 18px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-tile:hover .service-icon { box-shadow: var(--glow); transform: translateY(-1px); }
.service-icon svg { width: 23px; height: 23px; }
.service-tile h3 { font-size: 1.25rem; margin-bottom: 8px; text-transform: none; letter-spacing: 0; }
.service-tile p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.service-tile .btn--ghost { margin-top: auto; font-size: 0.9rem; align-self: flex-start; text-align: left; }

/* ---------- Enterprise Intelligence feature band ---------- */
.feature-band {
  background:
    radial-gradient(800px 400px at 80% -10%, rgba(30,107,255,0.12), transparent 60%),
    radial-gradient(700px 380px at 10% 110%, rgba(54,209,224,0.08), transparent 60%),
    rgba(12, 27, 48, 0.85);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pillar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pillar:hover { border-color: var(--accent-border); transform: translateY(-3px); }
.pillar .num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 14px;
}
.pillar h3 { font-size: 1.18rem; margin-bottom: 8px; text-transform: none; letter-spacing: 0; }
.pillar p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- Agentic AI vertical cards ---------- */
.vertical-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.vertical-card:hover { border-color: var(--accent-border); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.vertical-card .vc-icon { font-size: 1.6rem; line-height: 1; }
.vertical-card h3 { font-size: 1.16rem; margin: 0; text-transform: none; letter-spacing: 0; }
.vertical-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.vertical-card .vc-go {
  margin-top: auto; padding-top: 10px;
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  font-size: 0.82rem; color: var(--accent);
}
.vertical-card .vc-go::after { content: " \2192"; transition: margin 0.18s ease; }
.vertical-card:hover .vc-go::after { margin-left: 5px; }

/* ---------- Founder / authority block ---------- */
.founder {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 44px;
  align-items: center;
}
.founder-mark {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 40%, rgba(54,209,224,0.20), transparent 70%),
    var(--card);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.founder-mark img { width: 64%; height: auto; }
.founder blockquote { margin: 0; }
.founder .cred {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  color: var(--text);
  font-weight: 600;
}
.founder .cred .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* ---------- Trust band & honest placeholders ---------- */
.trust-credential {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  color: var(--text);
}
.trust-credential strong { color: var(--accent); }

.placeholder {
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius);
  background: rgba(54,209,224,0.03);
  padding: 26px;
  text-align: center;
  color: var(--muted);
}
.placeholder .ph-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.placeholder p { margin: 0; font-size: 0.95rem; }

/* ---------- Steps (how it works) ---------- */
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.step:hover { border-color: var(--accent-border); transform: translateY(-3px); }
.step .step-num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.3rem; margin-bottom: 8px; text-transform: none; letter-spacing: 0; }
.step p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ---------- Lists ---------- */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  color: var(--muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.check-list li strong { color: var(--text); }

/* ---------- Package cards ---------- */
.package {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 34px;
}
.package h3 { font-size: 1.5rem; margin: 0; text-transform: none; letter-spacing: 0; }
.package .pkg-kicker { color: var(--accent); font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin: 0; }
.package p { color: var(--muted); margin: 0; }
.package .btn { margin-top: auto; }

/* ---------- FAQ accordions ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq .faq-body { padding: 0 24px 22px; color: var(--muted); }
.faq .faq-body p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 50% -40%, rgba(54,209,224,0.16), transparent 70%),
    rgba(12, 27, 48, 0.85);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); max-width: 800px; margin-inline: auto; }
.cta-band p { color: var(--muted); max-width: 600px; margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; }
.cta-microcopy { color: var(--muted); font-size: 0.88rem; margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 36px;
  margin-bottom: 44px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 300px; }

.brand { align-items: center; }
.brand-logo { height: 30px; width: auto; display: block; flex: 0 0 auto; }
.site-header .brand-logo { height: 30px; }
.footer-brand .brand-logo { height: 40px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text); font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent); }
.footer-contact span { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-security { display: inline-flex; align-items: center; gap: 8px; }
.footer-security .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* =================================================================
   SCROLL-REVEAL ANIMATIONS
   ================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* stagger via data-delay handled in JS; nth-child fallback for grids */
.grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .reveal:nth-child(4) { transition-delay: 0.24s; }

/* =================================================================
   HERO INTRO ANIMATION (page-load)
   ================================================================= */
.splash .bracket, .splash .word, .splash-sub,
.hero .tagline, .hero .subhead, .hero-actions {
  opacity: 0;
}
.intro-ready .splash .bracket.left  { animation: bracketInLeft  0.7s 0.1s cubic-bezier(0.22,1,0.36,1) forwards; }
.intro-ready .splash .bracket.right { animation: bracketInRight 0.7s 0.1s cubic-bezier(0.22,1,0.36,1) forwards; }
.intro-ready .splash .word          { animation: fadeUp 0.7s 0.32s cubic-bezier(0.22,1,0.36,1) forwards; }
.intro-ready .splash-sub            { animation: fadeUp 0.7s 0.5s cubic-bezier(0.22,1,0.36,1) forwards; }
.intro-ready .hero .tagline         { animation: fadeUp 0.7s 0.68s cubic-bezier(0.22,1,0.36,1) forwards; }
.intro-ready .hero .subhead         { animation: fadeUp 0.7s 0.82s cubic-bezier(0.22,1,0.36,1) forwards; }
.intro-ready .hero-actions          { animation: fadeUp 0.7s 0.96s cubic-bezier(0.22,1,0.36,1) forwards; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bracketInLeft  { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@keyframes bracketInRight { from { opacity: 0; transform: translateX(36px); }  to { opacity: 1; transform: none; } }

/* =================================================================
   CHAT WIDGET
   ================================================================= */
.chat-fab {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 20px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(54,209,224,0.18), rgba(16,35,57,0.96));
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: var(--glow), var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--accent), 0 10px 36px rgba(54,209,224,0.4); }
.chat-fab .spark { color: var(--accent); font-size: 1.05rem; }
.chat-fab[aria-expanded="true"] { opacity: 0; pointer-events: none; }

.chat-panel {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 1300;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.chat-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(54,209,224,0.10), transparent);
}
.chat-head .avatar {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 1.1rem;
}
.chat-head .ch-title { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 1rem; }
.chat-head .ch-status { display: block; font-family: var(--font-body); font-size: 0.74rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.chat-head .ch-status .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2ecc71; margin-right: 5px; box-shadow: 0 0 8px #2ecc71; }
.chat-close {
  margin-left: auto;
  background: none; border: 0; color: var(--muted);
  font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 8px;
}
.chat-close:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
.chat-msg {
  max-width: 82%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.chat-msg.bot {
  align-self: flex-start;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-bottom-right-radius: 4px;
  color: var(--text);
}
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.chat-pill {
  background: transparent;
  border: 1px solid var(--accent-border);
  color: var(--accent);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.chat-pill:hover { background: var(--accent-soft); }

.chat-typing { display: inline-flex; gap: 4px; align-items: center; }
.chat-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--muted);
  animation: typingBlink 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBlink { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: rgba(10,22,40,0.5);
}
.chat-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 11px 13px;
  resize: none;
}
.chat-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.chat-input::placeholder { color: var(--muted); }
.chat-send {
  flex: 0 0 auto;
  width: 44px;
  display: grid; place-items: center;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-sm);
  color: #04121f;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}
.chat-send:hover { background: #6fe2ee; transform: translateY(-1px); }
.chat-send svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .founder { grid-template-columns: 1fr; gap: 26px; }
  .founder-mark { max-width: 180px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 84px 0 64px; }

  /* Mobile nav */
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(16, 35, 57, 0.99);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-link { width: 100%; justify-content: space-between; padding: 12px 14px; }
  .nav-link::after { display: none; }

  /* Mobile dropdowns: toggled via JS .open on the parent li */
  .dropdown {
    position: static;
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0;
    min-width: 0;
    transition: none;
  }
  .has-dropdown.open .dropdown {
    opacity: 1;
    visibility: visible;
    height: auto;
    padding: 4px 0 8px 14px;
  }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }

  /* Grids collapse */
  .grid-2, .grid-3, .grid-4, .grid-auto, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .chat-fab { right: 16px; bottom: 16px; padding: 12px 16px; font-size: 0.84rem; }
  .chat-panel { right: 8px; bottom: 8px; }
}

/* =================================================================
   PAGE ADDITIONS — services.html & tools.html (reuse existing tokens)
   ================================================================= */

/* Anchored sections clear the sticky header when jumped to */
[id] { scroll-margin-top: calc(var(--nav-h) + 18px); }

/* Active nav state (aria-current) — persistent underline + bright text */
.nav-link[aria-current="page"] { color: var(--text); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* Sticky in-page sub-nav (services hub) */
.subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  background: rgba(10,22,40,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.subnav .container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.subnav a {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.subnav a:hover, .subnav a:focus-visible {
  color: var(--text);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

/* Detailed service blocks (alternating layout) */
.svc-block { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.svc-block + .svc-block { margin-top: 28px; }
.svc-block .svc-copy h2 { text-transform: none; letter-spacing: 0; }
.svc-block .svc-copy p { color: var(--muted); }
.svc-block .svc-aside {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.svc-block:hover .svc-aside { border-color: var(--accent-border); }
.svc-aside h3 {
  font-family: var(--font-display);
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.checks { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--text); font-size: 0.98rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border-radius: 4px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}
.checks li::after {
  content: ""; position: absolute; left: 5px; top: 7px;
  width: 5px; height: 9px; border: solid var(--accent);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.svc-cta { margin-top: 8px; }
@media (max-width: 760px) {
  .svc-block, .svc-block:nth-child(even) { grid-template-columns: 1fr; }
  .svc-block .svc-aside { order: 2; }
}

/* Field-note cards (tools.html) */
.note-card {
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--card);
  padding: 26px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.note-card:hover { border-color: var(--accent-border); border-left-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.note-card h3 { font-size: 1.18rem; margin: 0; text-transform: none; letter-spacing: 0; }
.note-card p { color: var(--muted); font-size: 0.96rem; margin: 0; }
.note-tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}

/* Toolkit categories + annotated tool rows */
.toolkit-cat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 26px 28px;
  display: flex; flex-direction: column;
}
.toolkit-cat:hover { border-color: var(--accent-border); }
.toolkit-cat h3 { font-size: 1.22rem; margin: 0 0 4px; text-transform: none; letter-spacing: 0; }
.toolkit-cat .cat-sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 18px; }
.tool-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.tool-list li { border-top: 1px solid var(--border); padding-top: 16px; }
.tool-list li:first-child { border-top: 0; padding-top: 0; }
.tool-name {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  color: var(--text);
}
.tool-name::after { content: " \2197"; font-size: 0.8em; color: var(--accent); transition: transform 0.18s ease; }
.tool-name:hover { color: var(--accent); }
.tool-name:hover::after { transform: translate(2px,-2px); }
.tool-why { color: var(--muted); font-size: 0.92rem; margin: 4px 0 0; }
.tool-why b { color: var(--text); font-weight: 600; }

/* =================================================================
   REDUCED MOTION — show everything, no transforms/animation
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .splash .bracket, .splash .word, .splash-sub,
  .hero .tagline, .hero .subhead, .hero-actions { opacity: 1 !important; transform: none !important; }
}
