

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


:root {
  
  --navy: #1e3a5f;
  --navy-dark: #0b1a2e;
  --navy-deep: #0f172a;
  --indigo: #1e1b4b;
  --accent: #60a5fa;          
  --accent-bright: #3b82f6;   

  
  --blue: var(--navy);
  --blue-light: #2d5a8e;
  --blue-bg: #f0f4f8;

  
  --bg: #f8fafc;
  --surface: #ffffff;
  --slate-50: #f8fafc;  --slate-100: #f1f5f9;  --slate-200: #e2e8f0;
  --slate-500: #64748b; --slate-600: #475569;  --slate-700: #334155;
  --slate-800: #1e293b; --slate-900: #0f172a;
  
  --grey-50: #f8fafc;  --grey-100: #f1f5f9;  --grey-200: #e5e7eb;  --grey-300: #d1d5db;
  --grey-600: #4b5563; --grey-700: #374151;  --grey-800: #1f2937;  --grey-900: #111827;

  
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;
  --border: #e5e7eb;

  
  --green: #c6efce; --green-text: #1a6b2a;
  --yellow: #ffeb9c; --yellow-text: #7a6600;
  --orange: #fcd5b4; --orange-text: #8a4500;
  --red: #ffc7ce; --red-text: #9c0006;

  
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
  --shadow: 0 1px 3px rgba(15,23,42,0.05), 0 1px 2px rgba(15,23,42,0.03);
  --shadow-lg: 0 20px 40px -12px rgba(15,23,42,0.10), 0 6px 16px rgba(15,23,42,0.05);

  --ease: cubic-bezier(0.22,0.61,0.36,1);
}


html.dark {
  color-scheme: dark;
  --accent-bright: #60a5fa;   
  --blue-bg: #1c2f4a;

  --bg: #0f172a;
  --surface: #1e293b;
  --slate-50: #0f172a;  --slate-100: #1e293b;  --slate-200: #334155;
  --slate-500: #94a3b8; --slate-600: #cbd5e1;  --slate-700: #e2e8f0;
  --slate-800: #f1f5f9; --slate-900: #f8fafc;
  --grey-50: #0f172a;  --grey-100: #1e293b;  --grey-200: #334155;  --grey-300: #475569;
  --grey-600: #9ca3af; --grey-700: #d1d5db;  --grey-800: #e5e7eb;  --grey-900: #f3f4f6;

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --border: #334155;

  --green: #14532d; --green-text: #86efac;
  --yellow: #713f12; --yellow-text: #fde68a;
  --orange: #7c2d12; --orange-text: #fdba74;
  --red: #7f1d1d; --red-text: #fca5a5;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 1px 3px rgba(0,0,0,0.35), 0 1px 2px rgba(0,0,0,0.25);
  --shadow-lg: 0 20px 40px -12px rgba(0,0,0,0.5), 0 6px 16px rgba(0,0,0,0.3);
}


* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}


a { color: var(--accent-bright); text-decoration: underline; text-decoration-color: rgba(59,130,246,0.3); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--accent-bright); }

.nav-pill, .playbook-card, .breadcrumb a, .hero__back, .layer-card, .layer-card__cta,
.site-nav__brand, .site-nav__links a, .site-nav__cta, .btn, .back-to-index, .system-footer a { text-decoration: none; }
.nav-pill:hover, .breadcrumb a:hover, .site-nav__links a:hover { text-decoration: none; }

.playbook-card, .layer-card, .playbook-link { color: inherit; }

code {
  font-family: ui-monospace, 'SF Mono', 'Fira Code', 'Cascadia Code', Menlo, monospace;
  font-size: 0.82rem;
  background: var(--slate-100);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--accent-bright);
}
pre {
  background: var(--navy);
  color: #e5e7eb;
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 0.78rem;
  line-height: 1.6;
  margin: 0.5rem 0;
  max-width: 100%;
}
pre code { background: none; padding: 0; color: inherit; }


.container { max-width: 1120px; margin: 0 auto; padding: 2rem 1.5rem; }


.section { max-width: 1120px; margin: 0 auto; padding: 96px 48px; }
.section--tight { padding-top: 72px; padding-bottom: 72px; }
.section__eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent-bright); margin-bottom: 18px;
}
.section__headline {
  font-size: 36px; font-weight: 300; line-height: 1.18;
  letter-spacing: -0.022em; margin-bottom: 22px; color: var(--navy);
}
.section__headline em { font-style: normal; font-weight: 700; }
.section__lead {
  font-size: 17px; line-height: 1.7; color: var(--text-secondary);
  max-width: 640px; margin-bottom: 56px;
}
.section-desc { font-size: 0.85rem; color: var(--grey-600); margin-bottom: 1rem; line-height: 1.7; }

.doc-section { margin: 2rem 0 3rem; }
.doc-section:first-child { margin-top: 1rem; }


.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px; padding: 0 1.5rem;
  display: flex; align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-nav--scrolled {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.site-nav__inner {
  max-width: 1120px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.site-nav__brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.92rem; font-weight: 600; color: white; letter-spacing: 0.02em;
}
.site-nav__mark {
  width: 22px; height: 22px; border-radius: 5px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--blue-light) 70%, var(--navy) 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.site-nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
.site-nav__brand { justify-self: start; }
.site-nav__links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; justify-self: center; grid-column: 2; }
.site-nav__inner > .theme-toggle { justify-self: end; grid-column: 3; }
.site-nav__links a { font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.55); letter-spacing: 0.01em; transition: color 0.2s; }
.site-nav__links a:hover { color: white; }
.site-nav__cta { font-size: 0.78rem; font-weight: 600; color: var(--accent); letter-spacing: 0.01em; transition: opacity 0.2s; }
.site-nav__cta:hover { opacity: 0.8; }

.site-nav__end { display: inline-flex; align-items: center; gap: 0.35rem; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 6px; border: 0; background: transparent;
  color: rgba(255,255,255,0.72); cursor: pointer; transition: color 0.2s, background 0.2s;
}
.theme-toggle:hover { color: white; background: rgba(255,255,255,0.1); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 768px) {
  .site-nav { height: 52px; padding: 0 1rem; }
  .site-nav__inner { gap: 0.5rem; }
  .site-nav__links { gap: 0.9rem; }
  .site-nav__links a { font-size: 0.72rem; }
  .site-nav__brand span:not(.site-nav__mark) { display: none; }
}


.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--indigo) 100%);
  padding: 96px 48px 88px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 40%, rgba(96,165,250,0.10) 0%, transparent 55%),
              radial-gradient(ellipse at 80% 60%, rgba(124,58,237,0.08) 0%, transparent 55%);
  pointer-events: none;
}
.hero__inner { max-width: 1120px; margin: 0 auto; width: 100%; position: relative; }
.hero__back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.55);
  margin-bottom: 56px; transition: color 0.2s;
}
.hero__back:hover { color: white; }
.hero__eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 24px;
}
.hero__headline {
  font-size: 52px; font-weight: 700; line-height: 1.12;
  color: white; letter-spacing: -0.028em; margin-bottom: 28px;
}
.hero__headline em { font-style: normal; font-weight: 900; }
.hero__body { font-size: 18px; font-weight: 400; line-height: 1.7; color: rgba(255,255,255,0.6); max-width: 720px; }


.headline--thin { font-size: 2.6rem; font-weight: 300; line-height: 1.15; letter-spacing: -0.025em; color: white; }
.headline--thin em { font-style: normal; font-weight: 800; }


header {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--indigo) 100%);
  color: white; padding: 3rem 0 2.5rem; position: relative; overflow: hidden;
}
header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(124,58,237,0.06) 0%, transparent 60%);
  pointer-events: none;
}
header h1 { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.2; position: relative; }
header h1 em, .hero h1 em { font-style: normal; font-weight: 900; }
header p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 0.3rem; position: relative; }
header .stats, .hero .stats { display: flex; gap: 2rem; margin-top: 1.5rem; flex-wrap: wrap; position: relative; }
header .stat, .hero .stat { text-align: center; min-width: 70px; }
header .stat-value, .hero .stat-value {
  font-size: 1.4rem; font-weight: 900;
  background: linear-gradient(135deg, white, rgba(255,255,255,0.7));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
header .stat-label, .hero .stat-label { font-size: 0.65rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.15rem; font-weight: 500; line-height: 1.3; }
body > header:first-of-type, header.has-site-nav { padding-top: 4.5rem; }


.breadcrumb { padding: 0.75rem 0; font-size: 0.75rem; color: var(--grey-600); }
.breadcrumb a { color: var(--accent-bright); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--grey-300); margin: 0 0.4rem; }
.back-to-index { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; color: var(--accent-bright); margin-bottom: 0.5rem; }
.back-to-index:hover { text-decoration: underline; }


.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.card-full { grid-column: 1 / -1; }


.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid rgba(15,23,42,0.05); padding: 1.5rem; overflow: hidden;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: rgba(96,165,250,0.45); }
.card h2 { font-weight: 700; color: var(--navy); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; opacity: 0.8; }
.card h3 { font-size: 1rem; font-weight: 800; color: var(--grey-900); margin: 1.25rem 0 0.5rem 0; letter-spacing: -0.01em; }
.card h3:first-of-type { margin-top: 0; }


.layer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.layer-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.layer-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--accent); }
.layer-card__num { font-size: 11px; font-weight: 700; color: var(--accent-bright); letter-spacing: 1.5px; margin-bottom: 14px; }
.layer-card__title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 14px; letter-spacing: -0.01em; }
.layer-card__desc { font-size: 14px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 22px; flex-grow: 1; }
.layer-card__desc code { background: var(--slate-100); color: var(--slate-700); }
.layer-card__desc em { font-style: italic; color: var(--slate-700); }
.layer-card__cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent-bright); letter-spacing: 0.02em; transition: gap 0.2s; }
.layer-card:hover .layer-card__cta { gap: 10px; }


.thesis { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 40px 44px; max-width: 820px; }
.thesis p { font-size: 18px; line-height: 1.75; color: var(--text-secondary); }
.thesis strong { color: var(--navy); font-weight: 700; }


.nav-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.nav-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.6rem 1rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
  border: 1px solid var(--grey-200); background: var(--surface); color: var(--grey-700);
  cursor: pointer; transition: all 0.2s; min-height: 44px;
}
.nav-pill:hover { background: var(--navy); color: white; border-color: var(--navy); }


.badge { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; }
.badge-green { background: var(--green); color: var(--green-text); }
.badge-yellow { background: var(--yellow); color: var(--yellow-text); }
.badge-orange { background: var(--orange); color: var(--orange-text); }
.badge-red { background: var(--red); color: var(--red-text); }
.badge-blue { background: #dbeafe; color: #1e40af; }


.loop-tag { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--navy); margin-bottom: 0.5rem; }
.loop-num { display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--navy); color: white; font-size: 0.7rem; font-weight: 800; }


.tier-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin: 1.25rem 0 0.5rem 0; padding: 0.25rem 0.6rem; border-radius: 999px; display: inline-block; }
.tier-free { background: var(--green); color: var(--green-text); }
.tier-core { background: #dbeafe; color: #1e40af; }
.tier-target { background: #e0e7ff; color: #3730a3; }


.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 0.6rem 0 0.6rem 1.75rem; font-size: 0.85rem; border-bottom: 1px solid var(--grey-100); line-height: 1.6; }
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.75rem; width: 1rem; height: 1rem; border: 2px solid var(--grey-300); border-radius: 3px; }

.checklist li.is-free { border-left: 3px solid var(--green-text); background: linear-gradient(90deg, var(--green) 0%, transparent 30%); padding-left: 2.35rem; }
.checklist li.is-free::before { left: 0.6rem; }
.checklist .meta { display: flex; gap: 0.5rem; margin-top: 0.25rem; flex-wrap: wrap; }
.checklist .time { font-size: 0.68rem; color: var(--grey-600); font-weight: 500; }



body.checklist-mode #scenarios,
body.checklist-mode #platforms,
body.checklist-mode #extortion,
body.checklist-mode .nav-pill[href="#scenarios"],
body.checklist-mode .nav-pill[href="#platforms"],
body.checklist-mode .nav-pill[href="#extortion"] { display: none; }


.checklist-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.85rem; margin: -0.5rem 0 1.5rem; }
.checklist-toggle {
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px;
  padding: 0.6rem 1.1rem; border-radius: 6px; border: 1px solid var(--navy);
  background: var(--navy); color: white; font-family: inherit; font-size: 0.8rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s;
}
.checklist-toggle::before {
  content: ""; flex-shrink: 0; width: 0.95rem; height: 0.95rem; box-sizing: border-box;
  border: 2px solid currentColor; border-radius: 3px;
}
.checklist-toggle[aria-pressed="true"]::before { background: currentColor; box-shadow: inset 0 0 0 2px var(--navy); }
.checklist-toggle:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.checklist-toggle:hover[aria-pressed="true"]::before { box-shadow: inset 0 0 0 2px var(--accent-bright); }
.checklist-toggle:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.checklist-bar__hint { font-size: 0.75rem; color: var(--grey-600); }


.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); margin: 0.5rem 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.data-table th { background: linear-gradient(135deg, var(--navy), var(--indigo)); color: white; padding: 0.6rem 0.85rem; font-weight: 600; text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.data-table th:first-child { border-radius: 8px 0 0 0; }
.data-table th:last-child { border-radius: 0 8px 0 0; }
.data-table td { padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--grey-100); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: rgba(15,23,42,0.015); }
.data-table .cost { font-family: ui-monospace, 'SF Mono', monospace; font-weight: 600; text-align: right; }


.callout { background: linear-gradient(135deg, var(--blue-bg) 0%, #f8fafc 100%); border-left: 3px solid var(--navy); padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; font-size: 0.85rem; line-height: 1.7; }
.callout strong { color: var(--navy); font-weight: 700; }
.callout-red { background: linear-gradient(135deg, #fef2f2, #fff5f5); border-left-color: #dc2626; }
.callout-red strong { color: #dc2626; }
.callout-amber { background: linear-gradient(135deg, #fffbeb, #fefce8); border-left-color: #d97706; }
.callout-amber strong { color: #d97706; }


.diagram { background: var(--navy); border-radius: var(--radius-lg); padding: 44px 40px; position: relative; overflow: hidden; }
.diagram::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 60% 20%, rgba(96,165,250,0.10) 0%, transparent 60%); pointer-events: none; }
.diagram__wrap { position: relative; display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.band { border: 1px dashed rgba(96,165,250,0.5); background: rgba(96,165,250,0.06); border-radius: var(--radius); padding: 12px 18px; text-align: center; color: white; position: relative; }
.band__title { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.band__title span { color: var(--accent); font-weight: 600; }
.band__arrow { font-size: 16px; color: var(--accent); margin-top: 4px; line-height: 1; }
.pipeline { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.node { flex: 1 1 150px; min-width: 150px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12); border-radius: 9px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.node--loop { border-color: var(--accent); background: rgba(96,165,250,0.10); }
.node__label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.node__title { font-size: 15px; font-weight: 700; color: white; line-height: 1.25; }
.node__sub { font-size: 12px; line-height: 1.55; color: rgba(255,255,255,0.6); }
.node__sub code { background: none; color: var(--accent); }
.node__hosts { display: flex; flex-direction: column; gap: 4px; }
.node__hosts span { font-size: 12px; color: rgba(255,255,255,0.72); }
.arrow { align-self: center; color: var(--accent); font-size: 20px; font-weight: 700; flex-shrink: 0; padding: 0 2px; }
.arrow__labeled { display: flex; flex-direction: column; align-items: center; align-self: center; color: var(--accent); flex-shrink: 0; min-width: 92px; }
.arrow__labeled .glyph { font-size: 20px; font-weight: 700; }
.arrow__labeled .lbl { font-size: 10px; color: rgba(255,255,255,0.55); text-align: center; line-height: 1.3; margin-top: 2px; }


.workflow { margin-bottom: 44px; }
.workflow:last-of-type { margin-bottom: 0; }
.workflow__title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 16px; letter-spacing: -0.01em; }
.flow { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }
.flow__step { display: inline-flex; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; padding: 9px 14px; font-size: 13px; font-weight: 500; color: var(--text-secondary); line-height: 1.35; transition: border-color 0.2s, background 0.2s; }
.flow__step:hover { border-color: var(--accent); background: var(--slate-50); }
.flow__step code { background: var(--slate-100); color: var(--accent-bright); font-weight: 600; }
.flow__chevron { align-self: center; color: var(--accent-bright); font-size: 14px; font-weight: 700; flex-shrink: 0; }


.drill-list { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.drill { background: var(--slate-100); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 14px; line-height: 1.65; color: var(--text-secondary); }
.drill strong { color: var(--navy); font-weight: 700; }
.drill code { background: var(--surface); color: var(--accent-bright); font-weight: 600; }


.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.5rem; border-radius: 6px; font-family: inherit; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em; border: 1px solid transparent; cursor: pointer; transition: all 0.2s; }
.btn--primary { background: var(--accent-bright); color: white; border-color: var(--accent-bright); }
.btn--primary:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-1px); color: white; }
.btn--outline { background: transparent; color: rgba(255,255,255,0.72); border-color: rgba(255,255,255,0.2); }
.btn--outline:hover { color: white; border-color: rgba(255,255,255,0.4); }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }


footer { margin-top: 3rem; padding: 2rem 0; border-top: 1px solid var(--grey-100); text-align: center; font-size: 0.7rem; color: var(--grey-600); letter-spacing: 0.02em; }

footer.system-footer { margin-top: 0; border-top: none; background: var(--navy-dark); padding: 48px 48px 44px; text-align: left; }
.system-footer__inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.system-footer a { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.system-footer a:hover { color: var(--accent); }
.system-footer a.is-home { color: rgba(255,255,255,0.85); }
.system-footer__sep { color: rgba(255,255,255,0.2); }


.skip-link { position: absolute; top: -100%; left: 1rem; padding: 0.75rem 1rem; background: var(--navy); color: white; border-radius: 0 0 var(--radius) var(--radius); font-size: 0.85rem; font-weight: 600; z-index: 1000; }
.skip-link:focus { top: 0; }
.back-to-top { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: white; border: none; cursor: pointer; font-size: 1.2rem; display: none; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: all 0.2s; z-index: 100; }
.back-to-top:hover { transform: scale(1.1); }
.back-to-top.visible { display: flex; }


.fade-in, .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
.fade-in.visible, .reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .fade-in, .reveal { opacity: 1; transform: none; transition: none; } }


@media (max-width: 900px) {
  .hero { padding: 72px 24px 64px; }
  .hero__back { margin-bottom: 40px; }
  .hero__headline { font-size: 34px; }
  .hero__body { font-size: 16px; }
  .headline--thin { font-size: 1.75rem; }
  .section { padding: 64px 24px; }
  .section__headline { font-size: 28px; }
  .section__lead { font-size: 16px; margin-bottom: 40px; }
  .thesis { padding: 28px 26px; }
  .thesis p { font-size: 16px; }
  .diagram { padding: 28px 22px; }
  .pipeline { flex-direction: column; align-items: stretch; }
  .node { min-width: 0; }
  .arrow, .arrow__labeled { transform: rotate(90deg); align-self: center; min-width: 0; }
  .arrow__labeled .lbl { transform: rotate(-90deg); white-space: nowrap; }
  .layer-grid { grid-template-columns: 1fr; gap: 18px; }
  .drill-list { grid-template-columns: 1fr; }
  footer.system-footer { padding: 40px 24px; }
}
@media (max-width: 768px) {
  .container { padding: 1.25rem 1rem; }
  .grid { grid-template-columns: 1fr; gap: 1rem; }
  header { padding: 2rem 0 1.75rem; }
  header h1 { font-size: 1.35rem; }
  header p { font-size: 0.8rem; }
  header .stats, .hero .stats { gap: 1rem; }
  header .stat-value, .hero .stat-value { font-size: 1.15rem; }
  header .stat-label, .hero .stat-label { font-size: 0.58rem; }
  .card { padding: 1.15rem; }
  .card h3 { font-size: 0.92rem; }
  .nav-pills { gap: 0.35rem; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .nav-pill { flex-shrink: 0; font-size: 0.72rem; padding: 0.5rem 0.85rem; }
  .callout { padding: 0.85rem 1rem; font-size: 0.8rem; }
  .data-table { min-width: 520px; font-size: 0.75rem; }
  .data-table th { font-size: 0.65rem; padding: 0.5rem 0.65rem; }
  .data-table td { padding: 0.5rem 0.65rem; }
  pre { font-size: 0.72rem; padding: 0.75rem; }
  .checklist li { font-size: 0.8rem; padding-left: 1.5rem; }
  .checklist .time { font-size: 0.63rem; }
  .section-desc { font-size: 0.8rem; }
  .tier-label { font-size: 0.62rem; }
  footer { font-size: 0.6rem; padding: 1.5rem 0; }
}
@media (max-width: 480px) {
  .hero__headline { font-size: 28px; }
  .section__headline { font-size: 24px; }
  header h1 { font-size: 1.15rem; }
  header .stat-value, .hero .stat-value { font-size: 1rem; }
  .card { padding: 1rem; }
}


@media print {
  header, .hero { background: white !important; color: black !important; border-bottom: 2px solid var(--navy); }
  .hero::before, .diagram::before { display: none !important; }
  header h1, .hero__headline { color: var(--navy) !important; -webkit-text-fill-color: var(--navy) !important; }
  header p, header .stat-label, .hero__body { color: var(--grey-600) !important; }
  header .stat-value { -webkit-text-fill-color: var(--navy); color: var(--navy); }
  .hero, .diagram, .node, .band, footer.system-footer { background: white !important; color: var(--text-primary) !important; }
  .node__title, .band__title { color: var(--navy) !important; }
  .card, .layer-card { box-shadow: none; border: 1px solid var(--grey-200); break-inside: avoid; page-break-inside: avoid; }
  .ir-step { break-inside: avoid; page-break-inside: avoid; }
  .nav-pills, .checklist-bar, .back-to-top, .skip-link, .back-to-index, .site-nav { display: none !important; }
  .fade-in, .reveal { opacity: 1 !important; transform: none !important; }
  body { background: white; }
  .table-wrap { overflow: visible; }
  .data-table { min-width: 0; font-size: 0.7rem; }
  .data-table th { background: var(--grey-100) !important; color: var(--grey-900); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  pre { white-space: pre-wrap; word-break: break-all; background: var(--grey-100) !important; color: var(--grey-900); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  pre code { color: var(--grey-900); }
  a { color: var(--navy); text-decoration: underline; }
}



.pf-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.6rem; margin-top: 0.45rem; font-size: 0.74rem; color: var(--grey-600); }
.attack-id { display: inline-block; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.1rem 0.45rem; border-radius: 999px; background: var(--slate-100); color: var(--grey-800); text-decoration: none; border: 1px solid var(--border); }
.attack-id:hover { border-color: var(--accent-bright); color: var(--accent-bright); text-decoration: none; }
.pf-fp { flex-basis: 100%; }
.pf-tested { color: var(--green-text); font-weight: 600; }
.pf-gap { border-left: 3px dashed var(--border); padding: 0.5rem 0 0.5rem 1rem; margin-bottom: 0.75rem; font-size: 0.8rem; color: var(--grey-700); }
.pf-gap .pf-stage { margin-right: 0.4rem; }

.data-table td.attack-cell { min-width: 6.5rem; vertical-align: top; }
.data-table td.attack-cell .attack-id { margin: 0 0.25rem 0.25rem 0; }



html.dark .section__headline, html.dark .card h2, html.dark .layer-card__title, html.dark .thesis strong,
html.dark .loop-tag, html.dark .workflow__title, html.dark .drill strong, html.dark .callout strong,
html.dark .timeline__content h3, html.dark .trust-item__title, html.dark .mantra, html.dark .rule-stack__title,
html.dark .phase-month, html.dark .pf-stage, html.dark .tag-posture, html.dark .pipe-step, html.dark .cert-badge { color: var(--accent); }
html.dark .pf-stage--act { color: var(--red-text); }


html.dark .thesis, html.dark .layer-card, html.dark .flow__step, html.dark .rule-stack__item, html.dark .guardrail,
html.dark .maturity-level, html.dark .drill code { background: var(--surface); }
html.dark .flow__step:hover { background: var(--blue-bg); }
html.dark .card, html.dark .dimension-card { border-color: rgba(255,255,255,0.08); }
html.dark .data-table tr:nth-child(even) td { background: rgba(255,255,255,0.03); }
html.dark .site-nav--scrolled { background: rgba(30,41,59,0.92); box-shadow: 0 1px 0 rgba(255,255,255,0.08); }


html.dark .badge-blue, html.dark .tier-core, html.dark .tag-foundation, html.dark .dimension-weight,
html.dark .persona-1 .persona-icon { background: var(--navy); color: #bfdbfe; }
html.dark .tier-target { background: #312e81; color: #c7d2fe; }
html.dark .flag-item.active { background: var(--blue-bg); }


html.dark .callout { background: linear-gradient(135deg, var(--blue-bg) 0%, var(--surface) 100%); }
html.dark .callout-red { background: rgba(220,38,38,0.14); border-left-color: #f87171; }
html.dark .callout-red strong { color: #fca5a5; }
html.dark .callout-amber { background: rgba(217,119,6,0.16); border-left-color: #fbbf24; }
html.dark .callout-amber strong { color: #fcd34d; }


html.dark .btn--primary { background: var(--accent); border-color: var(--accent); color: var(--navy-dark); }
html.dark .btn--primary:hover { background: var(--navy); border-color: var(--navy); color: white; }
html.dark .checklist-toggle:hover { background: var(--accent); border-color: var(--accent); color: var(--navy-dark); }


html.dark .cmd-block, html.dark .export-output { background: var(--navy); color: #e5e7eb; }
html.dark .timeline-dot { border-color: var(--bg); }
