@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;1,700;1,800&family=DM+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── CUSTOM CURSOR ─────────────────────────────────────────── */
* { cursor: none !important; }
#cursor-dot {
  position: fixed; width: 8px; height: 8px; border-radius: 50%;
  background: var(--fbm-red); pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%); transition: transform 0.1s, background 0.2s;
}
#cursor-ring {
  position: fixed; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(228,21,19,0.5); pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%); transition: width 0.25s, height 0.25s, border-color 0.25s;
}
body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring { width: 56px; height: 56px; border-color: rgba(228,21,19,0.9); }

/* ─── ROOT VARIABLES ─────────────────────────────────────────── */
:root {
  --fbm-red:       #E41513;
  --fbm-dark:      #111111;
  --fbm-black:     #080808;
  --fbm-white:     #FFFFFF;
  --fbm-gray:      #F4F4F4;
  --fbm-gray-dark: #3A3A3A;
  --fbm-gray-mid:  #888888;
  --fbm-red-hover: #C01010;
  --fbm-surface:   #1A1A1A;
  --font-display:  'Barlow Condensed', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); background: var(--fbm-dark);
  color: var(--fbm-white); line-height: 1.6; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section { position: relative; }

/* ─── NAVIGATION ─────────────────────────────────────────────── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(8,8,8,0); backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: padding 0.4s, background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
#main-nav.scrolled {
  padding: 0.75rem 2.5rem;
  background: rgba(8,8,8,0.92); backdrop-filter: blur(16px);
  border-color: rgba(255,255,255,0.06);
}
.nav-logo { display: flex; align-items: center; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.65); letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0; height: 1px;
  background: var(--fbm-red); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--fbm-white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  background: var(--fbm-red); color: var(--fbm-white);
  padding: 0.5rem 1.25rem; border-radius: 2px; letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--fbm-red-hover); transform: translateY(-1px); }
.hamburger {
  display: none; background: none; border: none; color: white;
  font-size: 1.4rem; padding: 0.25rem;
}
.mobile-menu {
  display: none; position: fixed; inset: 0; background: var(--fbm-black);
  z-index: 200; flex-direction: column; align-items: center;
  justify-content: center; gap: 2.5rem; opacity: 0;
  transition: opacity 0.3s;
}
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 3rem; font-style: italic;
  font-weight: 700; color: white; transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--fbm-red); }
.mobile-close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: none; color: white; font-size: 2rem;
}

/* ─── HERO ──────────────────────────────────────────────────── */
#hero {
  min-height: 100vh; background: var(--fbm-black);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
  padding-bottom: 7%;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  max-width: 1280px; width: 100%; padding: 0 2.5rem;
  padding-top: 5rem;
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em;
  color: var(--fbm-red); text-transform: uppercase; margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 0.8s 0.2s var(--ease-out) forwards;
}
.hero-title {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(3.5rem, 7vw, 6.5rem); line-height: 0.92; color: white;
  margin-bottom: 1.75rem;
  opacity: 0; animation: fadeUp 0.9s 0.35s var(--ease-out) forwards;
}
.hero-title span { color: var(--fbm-red); }
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.55); max-width: 420px;
  line-height: 1.7; margin-bottom: 2.5rem;
  opacity: 0; animation: fadeUp 0.9s 0.5s var(--ease-out) forwards;
}
.hero-stats {
  display: flex; gap: 2.5rem; margin-bottom: 2.75rem;
  opacity: 0; animation: fadeUp 0.9s 0.65s var(--ease-out) forwards;
}
.hero-stat .num {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 2.5rem; color: var(--fbm-red); line-height: 1;
  display: block;
}
.hero-stat small {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
}
.hero-actions {
  display: flex; gap: 1rem; align-items: center;
  opacity: 0; animation: fadeUp 0.9s 0.8s var(--ease-out) forwards;
}
.btn-primary {
  background: var(--fbm-red); color: white; font-weight: 600;
  font-size: 0.9rem; padding: 0.85rem 2rem; border-radius: 2px;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: background 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s;
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--fbm-red-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(228,21,19,0.3); }
.btn-ghost {
  color: rgba(255,255,255,0.55); font-size: 0.88rem; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.15); padding: 0.85rem 1.5rem;
  border-radius: 2px; transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: white; border-color: rgba(255,255,255,0.4); }
.hero-right {
  opacity: 0; animation: fadeIn 1.2s 0.6s var(--ease-out) forwards;
}
.hero-pipeline-preview {
  background: var(--fbm-surface); border: 1px solid rgba(228,21,19,0.2);
  border-radius: 4px; padding: 1.75rem; position: relative;
  overflow: hidden;
}
.hero-pipeline-preview::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--fbm-red), transparent);
  animation: scanLine 3s infinite linear;
}
.pipeline-badge {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fbm-red);
  background: rgba(228,21,19,0.1); border: 1px solid rgba(228,21,19,0.3);
  padding: 0.25rem 0.6rem; border-radius: 2px; display: inline-block;
  margin-bottom: 1.25rem;
}
.pipeline-mini-flow { display: flex; flex-direction: column; gap: 0.6rem; }
.pflow-step {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.8rem;
}
.pflow-step .step-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; flex-shrink: 0;
}
.pflow-step.active .step-icon { background: rgba(228,21,19,0.2); border-color: var(--fbm-red); }
.pflow-step .step-label { color: rgba(255,255,255,0.6); font-family: var(--font-mono); font-size: 0.72rem; }
.pflow-step.active .step-label { color: white; }
.pflow-connector { width: 1px; height: 12px; background: rgba(255,255,255,0.1); margin-left: 13px; }
.pflow-connector.red { background: rgba(228,21,19,0.4); }
.processing-indicator {
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 0.6rem;
}
.processing-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--fbm-red);
  animation: pulse 1.5s infinite;
}
.processing-text { font-family: var(--font-mono); font-size: 0.65rem; color: rgba(255,255,255,0.35); }
.hero-scroll-hint {
  position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.25);
  animation: fadeIn 1s 1.5s both, float 3s ease-in-out infinite 1.5s;
}
.scroll-arrow { width: 1px; height: 30px; background: linear-gradient(to bottom, rgba(228,21,19,0.6), transparent); }

/* ─── SECTION COMMONS ─────────────────────────────────────────── */
.section-wrap { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }
.section-tag {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--fbm-red); margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-tag .tag-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--fbm-red);
  animation: pulse 2s infinite;
}
.section-title {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 0.95;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.5); max-width: 560px;
  line-height: 1.7;
}
.section-sub.dark { color: var(--fbm-gray-mid); }

/* ─── REVEAL ANIMATION ─────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* ─── SECTION 2: PROJECT OVERVIEW ─────────────────────────────── */
#overview {
  background: var(--fbm-white); padding: 7rem 0;
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
  margin: -3% 0;
}
#overview .section-title { color: var(--fbm-dark); }
#overview .section-tag { color: var(--fbm-red); }
.overview-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem;
  margin-top: 3.5rem;
}
.ov-card {
  background: white; border-top: 3px solid var(--fbm-red);
  padding: 2.25rem 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.ov-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.ov-stat {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 1.5rem; color: var(--fbm-red); margin-bottom: 0.75rem;
}
.ov-card h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 1.4rem; color: var(--fbm-dark); margin-bottom: 0.75rem;
}
.ov-card p { font-size: 0.9rem; color: var(--fbm-gray-dark); line-height: 1.7; }

/* ─── SECTION 3: AP PRESENTATION ─────────────────────────────── */
#ap-presentation {
  background: var(--fbm-black); padding: 7rem 0 8rem;
  border-top: 1px solid rgba(228,21,19,0.2);
}
.ap-header { margin-bottom: 5rem; }
.ap-slides { display: flex; flex-direction: column; gap: 3rem; }
.ap-slide {
  background: var(--fbm-surface); border-radius: 4px;
  border-left: 3px solid var(--fbm-red);
  overflow: hidden;
}
.ap-slide-header {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.75rem 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.slide-num {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 3rem; color: rgba(228,21,19,0.2); line-height: 1; flex-shrink: 0;
}
.slide-title-wrap h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 1.75rem; color: white; margin-bottom: 0.25rem;
}
.slide-title-wrap p { font-size: 0.85rem; color: rgba(255,255,255,0.4); }
.ap-slide-body { padding: 2.5rem; }

/* AP Slide: Problem */
.problem-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 2rem;
}
.prob-stat {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem; border-radius: 3px; text-align: center;
}
.prob-stat.accent { border-color: rgba(228,21,19,0.4); background: rgba(228,21,19,0.05); }
.prob-stat .big {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 2.25rem; color: var(--fbm-red); line-height: 1; display: block;
  margin-bottom: 0.5rem;
}
.prob-stat p { font-size: 0.8rem; color: rgba(255,255,255,0.5); line-height: 1.4; }
.slide-body-text { font-size: 0.95rem; color: rgba(255,255,255,0.6); line-height: 1.75; }

/* AP Slide: Solution flow */
.solution-flow {
  display: flex; align-items: center; gap: 0; margin-bottom: 2rem;
  overflow-x: auto; padding-bottom: 0.5rem;
}
.sol-node {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 1rem; border-radius: 3px; text-align: center;
  min-width: 120px; flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s;
}
.sol-node.ai-node {
  border-color: var(--fbm-red); background: rgba(228,21,19,0.08);
  box-shadow: 0 0 30px rgba(228,21,19,0.15);
}
.sol-node .node-icon { font-size: 1.5rem; margin-bottom: 0.5rem; display: block; }
.sol-node strong { font-size: 0.8rem; font-weight: 600; display: block; margin-bottom: 0.25rem; }
.sol-node span { font-size: 0.7rem; color: rgba(255,255,255,0.4); font-family: var(--font-mono); }
.sol-arrow {
  flex-shrink: 0; padding: 0 0.75rem;
  color: rgba(228,21,19,0.5); font-size: 1.25rem; font-weight: 300;
}

/* AP Slide: Pipeline Architecture */
.pipeline-tree {
  background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 3px; padding: 1.75rem 2rem; margin-bottom: 2rem;
  overflow-x: auto;
}
.pipeline-tree pre {
  font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.9;
  color: rgba(255,255,255,0.7); white-space: pre;
}
.pipeline-tree .tree-red { color: var(--fbm-red); }
.pipeline-tree .tree-green { color: #4EC9B0; }
.pipeline-tree .tree-yellow { color: #DCDCAA; }
.pipeline-tree .tree-blue { color: #9CDCFE; }

/* Pipeline visual nodes */
.pipeline-nodes-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 0.75rem;
}
.pnode {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  padding: 0.875rem 1rem; border-radius: 3px;
  transition: border-color 0.2s, background 0.2s;
}
.pnode:hover { border-color: rgba(228,21,19,0.3); background: rgba(228,21,19,0.04); }
.pnode-num {
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--fbm-red);
  letter-spacing: 0.1em; margin-bottom: 0.25rem;
}
.pnode-name { font-family: var(--font-mono); font-size: 0.7rem; color: white; margin-bottom: 0.25rem; }
.pnode-type { font-size: 0.7rem; color: rgba(255,255,255,0.35); }
.pnode.critical { border-color: rgba(228,21,19,0.4); background: rgba(228,21,19,0.06); }

/* AP Slide: Entities */
.entities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.entity-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  padding: 1.25rem; border-radius: 3px; display: flex; align-items: center; gap: 1rem;
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}
.entity-card:hover { border-color: rgba(228,21,19,0.35); transform: translateY(-2px); }
.entity-avatar {
  width: 40px; height: 40px; border-radius: 2px;
  background: rgba(228,21,19,0.15); border: 1px solid rgba(228,21,19,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 1rem; color: var(--fbm-red); flex-shrink: 0;
}
.entity-info .entity-name { font-size: 0.78rem; font-weight: 600; margin-bottom: 0.15rem; }
.entity-info .entity-code { font-family: var(--font-mono); font-size: 0.65rem; color: rgba(255,255,255,0.35); }

/* AP Slide: Confidence Routing */
.confidence-visual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem;
}
.conf-path {
  border: 1px solid rgba(255,255,255,0.08); border-radius: 3px; padding: 1.5rem;
  background: rgba(255,255,255,0.02);
}
.conf-path.high { border-color: rgba(74,222,128,0.3); background: rgba(74,222,128,0.04); }
.conf-path.low { border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.04); }
.conf-threshold {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 2.5rem; margin-bottom: 0.5rem;
}
.conf-path.high .conf-threshold { color: #4ADE80; }
.conf-path.low .conf-threshold { color: #FBB F24; }
.conf-path.low .conf-threshold { color: #FBBD23; }
.conf-label { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.75rem; }
.conf-steps { display: flex; flex-direction: column; gap: 0.4rem; }
.conf-step { font-size: 0.78rem; color: rgba(255,255,255,0.55); display: flex; gap: 0.5rem; }
.conf-step::before { content: '→'; color: var(--fbm-red); }

/* Classification signals */
.signals-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 2rem; }
.signal-row {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  padding: 0.75rem 1rem; border-radius: 3px;
}
.signal-priority {
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--fbm-red);
  width: 24px; flex-shrink: 0;
}
.signal-name { font-size: 0.82rem; font-weight: 500; flex: 1; }
.signal-desc { font-size: 0.75rem; color: rgba(255,255,255,0.35); font-family: var(--font-mono); }

/* AP Slide: Error Handling */
.error-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 0.75rem; margin-bottom: 2rem; }
.error-card {
  background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.06);
  border-left: 2px solid; padding: 1rem 1.25rem; border-radius: 3px;
}
.error-card.err-skip { border-left-color: rgba(255,255,255,0.2); }
.error-card.err-warn { border-left-color: #FBBD23; }
.error-card.err-crit { border-left-color: var(--fbm-red); }
.error-code { font-family: var(--font-mono); font-size: 0.65rem; color: var(--fbm-red); letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.error-stage { font-size: 0.7rem; color: rgba(255,255,255,0.35); margin-bottom: 0.5rem; }
.error-action { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-bottom: 0.3rem; }
.error-notify { font-size: 0.72rem; color: rgba(255,255,255,0.35); }

/* AP Slide: Folder Structure */
.folder-tree {
  background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem; border-radius: 3px; margin-bottom: 2rem;
}
.folder-tree pre {
  font-family: var(--font-mono); font-size: 0.75rem; line-height: 2;
  color: rgba(255,255,255,0.65);
}
.folder-tree .folder-red { color: var(--fbm-red); }
.folder-tree .folder-dim { color: rgba(255,255,255,0.3); }

/* ─── SECTION 4: MODULES ─────────────────────────────────────── */
#modules { background: var(--fbm-dark); padding: 7rem 0; }
#modules .section-title { color: white; }
.modules-list { display: flex; flex-direction: column; gap: 1px; margin-top: 3.5rem; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; }
.module-card {
  background: var(--fbm-dark); padding: 1.75rem 2.5rem;
  display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 2rem;
  transition: background 0.25s; position: relative;
}
.module-card.active { border-left: 4px solid var(--fbm-red); }
.module-card:hover { background: rgba(255,255,255,0.025); }
.module-num {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 2.5rem; color: rgba(228,21,19,0.18); line-height: 1;
}
.module-card.active .module-num { color: rgba(228,21,19,0.4); }
.module-info {}
.module-name {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 1.3rem; color: white; margin-bottom: 0.35rem;
}
.module-desc { font-size: 0.85rem; color: rgba(255,255,255,0.45); }
.module-tools { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.tool-tag {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); padding: 0.2rem 0.5rem;
  border-radius: 2px;
}
.module-card.active .tool-tag { color: rgba(228,21,19,0.8); border-color: rgba(228,21,19,0.2); background: rgba(228,21,19,0.06); }
.module-badge {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: 20px;
  border: 1px solid; white-space: nowrap;
}
.badge-active { background: var(--fbm-red); color: white; border-color: var(--fbm-red); }
.badge-next { color: var(--fbm-red); border-color: var(--fbm-red); }
.badge-planned { color: rgba(255,255,255,0.35); border-color: rgba(255,255,255,0.15); }

/* ─── SECTION 5: TECH STACK ──────────────────────────────────── */
#stack {
  background: var(--fbm-gray); padding: 7rem 0;
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
  margin: -3% 0;
}
#stack .section-title { color: var(--fbm-dark); }
#stack .section-tag { color: var(--fbm-red); }
.stack-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 1.25rem; margin-top: 3rem;
}
.stack-card {
  background: white; padding: 1.75rem 1.5rem; border-radius: 3px;
  border-top: 2px solid transparent;
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  transition: border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
  text-align: center;
}
.stack-card:hover {
  border-color: var(--fbm-red); transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.stack-avatar {
  width: 48px; height: 48px; border-radius: 3px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 1.1rem; color: white; background: var(--fbm-dark);
}
.stack-card h4 { font-size: 0.92rem; font-weight: 600; color: var(--fbm-dark); margin-bottom: 0.25rem; }
.stack-card .stack-role {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fbm-red);
}

/* ─── SECTION 6: DOCS HUB ────────────────────────────────────── */
#docs { background: var(--fbm-dark); padding: 7rem 0; }
#docs .section-title { color: white; }
.docs-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.25rem; margin-top: 3rem;
}
.doc-card {
  background: var(--fbm-surface); border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--fbm-red); padding: 1.75rem;
  transition: background 0.25s, transform 0.25s var(--ease-out);
}
.doc-card:hover { background: rgba(255,255,255,0.04); transform: translateY(-3px); }
.doc-card h4 {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 1.1rem; color: white; margin-bottom: 0.5rem;
}
.doc-card p { font-size: 0.83rem; color: rgba(255,255,255,0.45); line-height: 1.6; margin-bottom: 1.25rem; }
.doc-link { font-size: 0.82rem; color: var(--fbm-red); font-weight: 500; display: flex; align-items: center; gap: 0.3rem; }
.doc-link:hover { opacity: 0.8; }

/* ─── FOOTER ────────────────────────────────────────────────── */
#footer {
  background: var(--fbm-red); padding: 3rem 0 2rem;
  clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(6% + 2rem);
}
.footer-grid {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 3rem; align-items: center; margin-bottom: 2rem;
}
.footer-center { text-align: center; }
.footer-brand {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 1.1rem; color: white; margin-bottom: 0.25rem;
}
.footer-sub { font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2); padding-top: 1.5rem;
  text-align: center; font-family: var(--font-mono); font-size: 0.68rem;
  color: rgba(255,255,255,0.55); letter-spacing: 0.06em;
}

/* ─── KEYFRAMES ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes float {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
@keyframes scanLine {
  from { transform: translateX(-100%); } to { transform: translateX(100%); }
}
@keyframes processingStep {
  0%,100% { opacity: 0.3; } 50% { opacity: 1; }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .overview-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: repeat(2,1fr); }
  .confidence-visual { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: 1fr 1fr; }
  .module-card { grid-template-columns: 50px 1fr; }
  .module-badge { display: none; }
}
@media (max-width: 640px) {
  #main-nav { padding: 1rem 1.5rem; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .docs-grid { grid-template-columns: 1fr; }
  .section-wrap { padding: 0 1.5rem; }
  .entities-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
}
