/* ============================================================
   BATTLE.MIND — Strategic Defence Intelligence Platform
   Design System v4 — Military-First, Mobile-First
   Font: JetBrains Mono — unified tactical type system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  --black:       #060608;
  --black-2:     #0a0a0d;
  --black-3:     #0f0f13;
  --black-4:     #141418;
  --red:         #D90429;
  --red-dim:     rgba(217,4,41,0.10);
  --red-glow:    rgba(217,4,41,0.30);
  --red-border:  rgba(217,4,41,0.22);
  --white:       #FFFFFF;
  --white-90:    rgba(255,255,255,0.90);
  --white-70:    rgba(255,255,255,0.70);
  --white-50:    rgba(255,255,255,0.50);
  --white-30:    rgba(255,255,255,0.30);
  --white-15:    rgba(255,255,255,0.15);
  --white-10:    rgba(255,255,255,0.10);
  --white-06:    rgba(255,255,255,0.06);
  --white-03:    rgba(255,255,255,0.03);
  --border:      rgba(255,255,255,0.07);
  --border-mid:  rgba(255,255,255,0.12);

  --font-head:   'JetBrains Mono', 'Courier New', monospace;
  --font-body:   'JetBrains Mono', 'Courier New', monospace;
  --font-mono:   'JetBrains Mono', 'Courier New', monospace;

  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);

  --nav-h:       56px;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--black);
  color: var(--white);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img   { display: block; width: 100%; object-fit: cover; }
a     { text-decoration: none; color: inherit; }
button{ border: none; background: none; font-family: inherit; }
input { font-family: inherit; }
ul    { list-style: none; }

/* ── Custom Cursor (desktop only) ───────────────────────────── */
#cursor, #cursor-trail { display: none; }

@media (pointer: fine) {
  html { cursor: none; }
  button, a { cursor: none; }

  #cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background: var(--red);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width .2s var(--ease-expo), height .2s var(--ease-expo);
    will-change: transform;
  }
  #cursor-trail {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 28px; height: 28px;
    border: 1px solid rgba(217,4,41,0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width .3s var(--ease-expo), height .3s var(--ease-expo), opacity .3s;
    will-change: transform;
  }
}

/* ── Mouse Light ─────────────────────────────────────────────── */
#mouse-light {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,4,41,0.025) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: transform .8s var(--ease-expo);
}

/* ── Particles ───────────────────────────────────────────────── */
#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1200px) { .container { padding: 0 48px; } }

/* ── Reveal animations ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s var(--ease-expo), transform .75s var(--ease-expo);
}
.reveal.revealed          { opacity: 1; transform: translateY(0); }
.reveal-delay-1           { transition-delay: .08s; }
.reveal-delay-2           { transition-delay: .16s; }
.reveal-delay-3           { transition-delay: .24s; }
.reveal-delay-4           { transition-delay: .32s; }
.reveal-delay-5           { transition-delay: .40s; }

/* ── Section mono label ─────────────────────────────────────── */
.section-mono {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--black-3);
  border: 1px solid var(--border-mid);
  border-left: 3px solid var(--red);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  z-index: 9000;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .35s var(--ease-expo), transform .35s var(--ease-expo);
  pointer-events: none;
  max-width: calc(100vw - 40px);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-icon { font-size: 14px; color: var(--red); flex-shrink: 0; }
.toast-title { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.toast-sub   { font-size: 11px; color: var(--white-50); margin-top: 2px; }


/* ============================================================
   NAVIGATION
   ============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
#nav.scrolled {
  background: rgba(6,6,8,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-slash {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
}
.nav-logo-text {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  transition: color .2s;
}
.nav-logo:hover .nav-logo-text { color: var(--white-70); }

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-50);
  transition: color .2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width .3s var(--ease-expo);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-dashboard { display: none; }
@media (min-width: 900px) { .nav-dashboard { display: inline-flex; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all .3s var(--ease-expo);
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: #f0052f;
  box-shadow: 0 0 20px 4px var(--red-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--white-50);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--white);
  border-color: var(--border-mid);
  background: var(--white-06);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.hamburger:hover { background: var(--white-06); }
.hamburger span {
  display: block;
  width: 100%; height: 1px;
  background: var(--white-70);
  transition: transform .35s var(--ease-expo), opacity .25s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 900px) { .hamburger { display: none; } }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(6,6,8,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease-expo), transform .3s var(--ease-expo);
}
.mobile-menu.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-50);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--white); }
.mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

@media (min-width: 900px) { .mobile-menu { display: none; } }


/* ============================================================
   HERO — MOBILE FIRST, FULL VIEWPORT
   ============================================================ */
#hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

/* Hero canvas (tactical grid) */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Scanlines overlay */
.hero-scanlines {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
}

/* Classification stamp top-right */
.hero-stamp {
  position: absolute;
  top: calc(var(--nav-h) + 12px);
  right: 20px;
  z-index: 4;
}
.stamp-text {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-15);
  border: 1px solid var(--white-10);
  padding: 3px 8px;
  border-radius: 2px;
}

/* Vignette bottom fade */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--black), transparent);
  z-index: 3;
  pointer-events: none;
}

/* Hero content */
.hero-inner {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 0 20px;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 800px;
}

/* Eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow-line {
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,4,41,0.5));
}
.eyebrow-line:last-child {
  background: linear-gradient(270deg, transparent, rgba(217,4,41,0.5));
}
.eyebrow-code {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(217,4,41,0.7);
}

/* Hero H1 */
.hero-h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}
.h1-line {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(28px, 7.5vw, 68px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}
.h1-accent {
  color: var(--red);
  animation: hero-glitch 8s infinite;
}

@keyframes hero-glitch {
  0%, 92%, 100% { text-shadow: none; clip-path: none; }
  93% {
    text-shadow: 2px 0 rgba(217,4,41,0.7), -2px 0 rgba(255,255,255,0.4);
    clip-path: inset(10% 0 85% 0);
  }
  94% {
    text-shadow: -2px 0 rgba(217,4,41,0.7), 2px 0 rgba(255,255,255,0.4);
    clip-path: inset(40% 0 50% 0);
  }
  95% { text-shadow: none; clip-path: none; }
  96% {
    text-shadow: 1px 0 rgba(217,4,41,0.5);
    clip-path: inset(70% 0 5% 0);
  }
  97% { text-shadow: none; clip-path: none; }
}

/* Hero subhead */
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(13px, 3vw, 16px);
  font-weight: 400;
  color: var(--white-50);
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
}
.br-desktop { display: none; }
@media (min-width: 768px) { .br-desktop { display: block; } }

/* Hero CTAs */
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  margin-bottom: 32px;
}
@media (min-width: 520px) {
  .hero-ctas {
    flex-direction: row;
    max-width: 520px;
    justify-content: center;
  }
}

.hero-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  border: 1px solid var(--red);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  transition: all .3s var(--ease-expo);
  white-space: nowrap;
  flex: 1;
}
.hero-btn-primary .btn-icon {
  font-size: 8px;
  opacity: 0.7;
}
.hero-btn-primary:hover {
  background: #f0052f;
  box-shadow: 0 0 32px 8px rgba(217,4,41,0.35);
  transform: translateY(-2px);
}

.hero-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--white-70);
  background: transparent;
  border: 1px solid var(--border-mid);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  transition: all .3s var(--ease-expo);
  white-space: nowrap;
  flex: 1;
}
.hero-btn-secondary:hover {
  color: var(--white);
  border-color: var(--white-30);
  background: var(--white-06);
  transform: translateY(-2px);
}

/* Hero meta row */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.meta-label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-30);
}
.meta-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--white-70);
}
.meta-sep {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero-scroll-bar {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--white-30), transparent);
  animation: scroll-bar 1.8s ease-in-out infinite;
}
@keyframes scroll-bar {
  0%, 100% { transform: scaleY(0); transform-origin: top; }
  40%       { transform: scaleY(1); transform-origin: top; }
  60%       { transform: scaleY(1); transform-origin: bottom; }
  100%      { transform: scaleY(0); transform-origin: bottom; }
}
.hero-scroll-text {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-30);
}


/* ============================================================
   TICKER
   ============================================================ */
.ticker-wrap {
  background: var(--black-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  z-index: 5;
}
.ticker-inner {
  display: flex;
  align-items: center;
  height: 36px;
}
.ticker-label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
  padding: 0 16px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  background: rgba(217,4,41,0.06);
}
.ticker-track {
  flex: 1;
  overflow: hidden;
}
.ticker-content {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
}
.ticker-content span {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-30);
  white-space: nowrap;
  padding: 0 0 0 16px;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* ============================================================
   METHODOLOGY SECTION
   ============================================================ */
.methodology {
  padding: 80px 0;
  position: relative;
  z-index: 5;
}
@media (min-width: 768px) { .methodology { padding: 100px 0; } }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-heading {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(22px, 4.5vw, 44px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.section-heading em {
  font-style: normal;
  color: var(--red);
}
.section-sub {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(11px, 1.8vw, 13px);
  color: var(--white-50);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

.method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
@media (min-width: 768px) {
  .method-grid { grid-template-columns: repeat(3, 1fr); }
}

.method-card {
  background: var(--black-2);
  border: 1px solid var(--border);
  padding: 28px 24px 24px;
  position: relative;
  transition: border-color .3s, background .3s;
  overflow: hidden;
}
.method-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0;
  transition: opacity .4s;
}
.method-card:hover {
  border-color: rgba(217,4,41,0.2);
  background: var(--black-3);
}
.method-card:hover::before { opacity: 1; }

.method-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.method-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--white-30);
  letter-spacing: 0.1em;
}
.method-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red-border);
  background: var(--red-dim);
  padding: 3px 8px;
  border-radius: 2px;
}
.method-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 12px;
}
.method-desc {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--white-50);
  line-height: 1.75;
  margin-bottom: 20px;
}

.method-visual {
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--black-3);
  overflow: hidden;
}
.method-svg {
  width: 100%;
  height: auto;
  display: block;
}

.method-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.method-points li {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--white-40, rgba(255,255,255,0.4));
  padding-left: 12px;
  position: relative;
}
.method-points li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}


/* ============================================================
   FRAMEWORK SECTION
   ============================================================ */
.framework {
  padding: 80px 0;
  background: var(--black-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 5;
}
@media (min-width: 768px) { .framework { padding: 100px 0; } }

.framework-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 900px) {
  .framework-inner { grid-template-columns: 1fr 1fr; gap: 80px; }
}

.framework-text .section-mono { margin-bottom: 20px; }

.framework-title {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(18px, 3.5vw, 34px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.framework-title em {
  font-style: normal;
  color: var(--red);
}
.framework-desc {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--white-50);
  line-height: 1.75;
  margin-bottom: 36px;
}

.framework-chain {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.chain-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
}
.chain-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--white-15);
  border: 1px solid var(--border-mid);
  flex-shrink: 0;
  margin-top: 4px;
  transition: background .3s;
}
.chain-dot-mid  { background: rgba(217,4,41,0.3); border-color: rgba(217,4,41,0.4); }
.chain-dot-red  { background: rgba(217,4,41,0.6); border-color: var(--red); }
.chain-dot-bright { background: var(--red); border-color: var(--red); box-shadow: 0 0 8px rgba(217,4,41,0.6); }
.chain-label { display: flex; flex-direction: column; gap: 2px; }
.chain-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-90);
}
.chain-sub {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--white-40, rgba(255,255,255,0.4));
}
.chain-arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(217,4,41,0.4);
  padding-left: 0;
  margin-left: 3px;
  line-height: 1;
}

.framework-visual {
  position: relative;
}
.framework-svg {
  width: 100%;
  height: auto;
  max-width: 400px;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 0 40px rgba(217,4,41,0.08));
}


/* ============================================================
   EXPLAINERS SECTION
   ============================================================ */
.explainers {
  padding: 80px 0;
  position: relative;
  z-index: 5;
}
@media (min-width: 768px) { .explainers { padding: 100px 0; } }

.explainers .section-header { margin-bottom: 48px; }

.explainer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
@media (min-width: 600px) { .explainer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .explainer-grid { grid-template-columns: repeat(3, 1fr); } }

.explainer-card {
  background: var(--black-2);
  border: 1px solid var(--border);
  padding: 24px 20px 20px;
  position: relative;
  transition: border-color .3s, transform .3s var(--ease-expo);
  overflow: hidden;
}
.explainer-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(217,4,41,0.04), transparent);
  opacity: 0;
  transition: opacity .4s;
}
.explainer-card:hover {
  border-color: rgba(217,4,41,0.18);
  transform: translateY(-2px);
}
.explainer-card:hover::after { opacity: 1; }

.explainer-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red-border);
  background: var(--red-dim);
  display: inline-block;
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.explainer-visual {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--black-3);
  overflow: hidden;
}
.explainer-visual svg {
  width: 100%;
  height: auto;
  display: block;
}
.explainer-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(13px, 1.8vw, 16px);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 10px;
}
.explainer-desc {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--white-40, rgba(255,255,255,0.4));
  line-height: 1.8;
}


/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philosophy {
  padding: 80px 0;
  position: relative;
  z-index: 5;
  background: var(--black-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.philosophy-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
  padding-left: 0;
}
@media (min-width: 900px) {
  .philosophy-inner {
    grid-template-columns: 3fr 2fr;
    gap: 80px;
    align-items: center;
    padding-left: 48px;
  }
  .philosophy-inner::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--red) 30%, var(--red) 70%, transparent);
  }
}

.philosophy-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.philosophy-quote {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(20px, 3.5vw, 38px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white-90);
  margin-bottom: 20px;
}
.philosophy-quote em {
  font-style: normal;
  color: var(--red);
}
.philosophy-sub {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--white-50);
  line-height: 1.8;
  max-width: 520px;
}

/* Stats */
.philosophy-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 600px) and (max-width: 899px) {
  .philosophy-stats { flex-direction: row; gap: 32px; }
}

.pstat { display: flex; flex-direction: column; gap: 4px; }
.pstat-num {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  color: var(--white);
}
.pstat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-30);
}
.pstat-div {
  width: 100%; height: 1px;
  background: var(--border);
}
@media (min-width: 600px) and (max-width: 899px) {
  .pstat-div { width: 1px; height: auto; align-self: stretch; }
}
@media (min-width: 900px) { .pstat-div { display: none; } }


/* ============================================================
   DISPATCH SECTION
   ============================================================ */
.dispatch {
  padding: 80px 0;
  position: relative;
  z-index: 5;
}
@media (min-width: 768px) { .dispatch { padding: 100px 0; } }

.dispatch-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.dispatch-header { margin-bottom: 36px; }

.dispatch-title {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: clamp(24px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  margin: 12px 0 16px;
}
.dispatch-title em {
  font-style: normal;
  color: var(--red);
}
.dispatch-sub {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--white-50);
  line-height: 1.75;
}

/* Form */
.dispatch-form { margin-bottom: 16px; }
.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 500px) { .form-row { flex-direction: row; gap: 0; } }

.dispatch-input {
  flex: 1;
  background: var(--black-3);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 14px 16px;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
  width: 100%;
}
.dispatch-input::placeholder { color: var(--white-30); }
.dispatch-input:focus {
  border-color: rgba(217,4,41,0.5);
  box-shadow: 0 0 0 3px rgba(217,4,41,0.08);
}
@media (min-width: 500px) {
  .dispatch-input {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-right: none;
  }
}

.dispatch-submit {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  border: 1px solid var(--red);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .3s, box-shadow .3s, transform .2s;
  white-space: nowrap;
  width: 100%;
}
@media (min-width: 500px) {
  .dispatch-submit {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    width: auto;
  }
}
.dispatch-submit:hover {
  background: #f0052f;
  box-shadow: 0 0 24px 6px rgba(217,4,41,0.3);
  transform: translateY(-1px);
}
.dispatch-submit:disabled { opacity: 0.6; pointer-events: none; }

.dispatch-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--white-30);
  margin-bottom: 32px;
}

.dispatch-or {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.or-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.dispatch-or span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-30);
}

.dashboard-cta {
  display: block;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  background: var(--black-2);
  transition: border-color .3s, background .3s, transform .3s var(--ease-expo);
  text-align: left;
}
.dashboard-cta:hover {
  border-color: rgba(217,4,41,0.25);
  background: var(--black-3);
  transform: translateY(-2px);
}
.dashboard-cta-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dashboard-cta-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-dim);
  border: 1px solid var(--red-border);
  border-radius: var(--radius-sm);
  color: var(--red);
  flex-shrink: 0;
}
.dashboard-cta-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white-90);
  margin-bottom: 4px;
}
.dashboard-cta-sub {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  color: var(--white-40, rgba(255,255,255,0.4));
}


/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--black-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
  position: relative;
  z-index: 5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-logo-slash { color: var(--red); }
.footer-brand-desc {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--white-40, rgba(255,255,255,0.4));
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-socials {
  display: flex;
  gap: 8px;
}
.footer-social {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white-50);
  transition: all .25s;
}
.footer-social:hover {
  color: var(--white);
  border-color: var(--border-mid);
  background: var(--white-06);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-30);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--white-50);
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
  text-align: center;
}
@media (min-width: 600px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-copyright {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--white-30);
}
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--white-20, rgba(255,255,255,0.2));
  font-style: italic;
}


/* ============================================================
   MOBILE RESPONSIVE REFINEMENTS
   ============================================================ */
@media (max-width: 480px) {
  .hero-h1 { gap: 0; }
  .hero-ctas { max-width: 100%; }
  .hero-btn-primary,
  .hero-btn-secondary { font-size: 10px; padding: 12px 16px; }
  .methodology { padding: 60px 0; }
  .framework { padding: 60px 0; }
  .explainers { padding: 60px 0; }
  .philosophy { padding: 60px 0; }
  .dispatch { padding: 60px 0; }
  .philosophy-inner { padding-left: 0; }
  .section-heading { letter-spacing: 0; }
}

/* Ensure hero fits perfectly on all mobile sizes */
@media (max-height: 700px) {
  .hero-inner { gap: 0; }
  .hero-h1 { margin-bottom: 16px; }
  .h1-line { font-size: clamp(42px, 12vw, 80px); }
  .hero-sub { margin-bottom: 20px; font-size: 12px; }
  .hero-ctas { margin-bottom: 20px; }
  .hero-meta { display: none; }
  .hero-scroll { bottom: 12px; }
}
