:root {
  --bg: #f2f4f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: rgba(5, 34, 66, 0.14);
  --ink: #052242;
  --ink-soft: #35526d;
  --brand: #0a6cff;
  --brand-strong: #004cc2;
  --accent: #ff8f3f;
  --ok: #1f9d71;
  --shadow-soft: 0 14px 34px rgba(5, 34, 66, 0.08);
  --shadow-lg: 0 24px 52px rgba(5, 34, 66, 0.14);
  --radius-lg: 24px;
  --radius-md: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Sora", "Trebuchet MS", sans-serif;
  line-height: 1.6;
}

body.auth-locked {
  overflow: hidden;
}

.app-shell {
  display: none;
}

body.authenticated .app-shell {
  display: block;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 17, 37, 0.36);
  backdrop-filter: blur(10px);
}

body.authenticated .auth-gate {
  display: none;
}

body[data-auth-role="visitor"] [data-visitor-hidden="true"] {
  display: none !important;
}

.auth-card {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
  padding: 1.2rem;
  display: grid;
  gap: 0.6rem;
}

.auth-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.auth-input {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.58rem 0.68rem;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}

.auth-input:focus {
  outline: 2px solid rgba(10, 108, 255, 0.24);
  border-color: rgba(10, 108, 255, 0.4);
}

.auth-hint {
  margin-top: 0;
}

.auth-error {
  min-height: 1.2rem;
  margin: 0;
  color: #b51c1c;
  font-size: 0.82rem;
  font-weight: 700;
}

.bg-layer,
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.bg-layer {
  background:
    radial-gradient(circle at 18% 12%, rgba(10, 108, 255, 0.16), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(255, 143, 63, 0.15), transparent 34%),
    radial-gradient(circle at 84% 82%, rgba(31, 157, 113, 0.12), transparent 32%),
    linear-gradient(160deg, #f6f8fc 0%, #edf1f8 100%);
  animation: drift 16s ease-in-out infinite alternate;
}

.bg-grid {
  z-index: -1;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(5, 34, 66, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 34, 66, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.72), transparent 82%);
}

@keyframes drift {
  from {
    transform: translateY(0);
    filter: saturate(1);
  }
  to {
    transform: translateY(-18px);
    filter: saturate(1.08);
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(242, 244, 248, 0.86);
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.87rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.22s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand-strong);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.42rem 0.8rem;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.view-switch {
  display: inline-flex;
  gap: 0.36rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.8);
}

.view-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.32rem 0.68rem;
  font-size: 0.77rem;
  font-weight: 700;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.view-btn.active,
.view-btn:hover {
  color: #fff;
  background: linear-gradient(130deg, var(--brand), var(--brand-strong));
}

.logout-btn {
  margin-left: auto;
  border: 1px solid rgba(5, 34, 66, 0.22);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.logout-btn:hover {
  border-color: rgba(10, 108, 255, 0.38);
}

.lang-switch {
  display: inline-flex;
  gap: 0.24rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.82);
}

.lang-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.73rem;
  font-weight: 700;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.lang-btn.active,
.lang-btn:hover {
  color: #fff;
  background: linear-gradient(130deg, var(--brand), var(--brand-strong));
}

.progress-rail {
  position: fixed;
  top: 6.1rem;
  left: 1rem;
  z-index: 90;
  display: grid;
  gap: 0.45rem;
  width: 212px;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.progress-rail a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.32rem 0.4rem;
}

.progress-rail a span {
  min-width: 27px;
  border-radius: 999px;
  text-align: center;
  font-size: 0.68rem;
  color: var(--brand-strong);
  background: rgba(10, 108, 255, 0.14);
}

.progress-rail a.active {
  color: var(--ink);
  background: rgba(10, 108, 255, 0.1);
}

.deck {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.2rem 1rem 4rem;
}

.screen {
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  padding: 1.35rem;
}

.hero {
  background:
    linear-gradient(120deg, rgba(10, 108, 255, 0.11), rgba(255, 143, 63, 0.1)),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

.screen-id {
  display: inline-flex;
  margin: 0;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: rgba(10, 108, 255, 0.12);
  color: var(--brand-strong);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Georgia", serif;
  letter-spacing: 0.01em;
  line-height: 1.22;
  margin: 0.45rem 0 0.62rem;
}

h1 {
  font-size: clamp(2.05rem, 4.8vw, 3.45rem);
}

h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.35rem);
}

h3 {
  font-size: clamp(1.04rem, 2.5vw, 1.32rem);
}

.subheading {
  margin-top: 1.35rem;
}

.subtitle {
  max-width: 79ch;
  margin: 0.25rem 0 0.92rem;
  color: var(--ink-soft);
}

.micro {
  margin-top: 0.6rem;
  padding: 0.5rem 0.7rem;
  border: 1px dashed rgba(5, 34, 66, 0.22);
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.impact-strip {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0.95rem;
}

.impact-strip article {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  padding: 0.76rem;
}

.impact-strip h3 {
  margin: 0 0 0.2rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-weight: 800;
  font-size: 1.16rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(132deg, var(--brand), var(--brand-strong));
  box-shadow: 0 10px 24px rgba(10, 108, 255, 0.3);
}

.btn.ghost {
  color: var(--brand-strong);
  border-color: rgba(10, 108, 255, 0.28);
  background: rgba(10, 108, 255, 0.06);
}

.grid {
  display: grid;
  gap: 0.85rem;
}

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

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

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 0.86rem;
}

.panel ul {
  margin: 0.4rem 0 0;
  padding-left: 1.05rem;
}

.panel li {
  margin: 0.18rem 0;
}

.panel-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

.panel.accent {
  background: linear-gradient(140deg, rgba(255, 143, 63, 0.14), rgba(10, 108, 255, 0.08));
}

.chain {
  display: grid;
  gap: 0.62rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 0.9rem;
}

.chain span {
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
  font-weight: 700;
  padding: 0.46rem 0.34rem;
  background: var(--surface-soft);
}

.architecture-shell {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr 1.2fr;
}

.architecture-map {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
}

.arch-node {
  border: 1px solid rgba(10, 108, 255, 0.22);
  border-radius: 11px;
  background: rgba(10, 108, 255, 0.06);
  color: var(--brand-strong);
  text-align: left;
  font-weight: 700;
  padding: 0.56rem 0.72rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.arch-node.active,
.arch-node:hover {
  background: linear-gradient(128deg, var(--brand), var(--brand-strong));
  color: #fff;
  box-shadow: 0 10px 20px rgba(10, 108, 255, 0.25);
}

.architecture-detail,
.flow-detail,
.role-detail,
.scenario-detail {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 0.88rem;
}

.flow-shell {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1.1fr 1fr;
  margin-top: 0.9rem;
}

.flow-steps {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 0.7rem;
  display: grid;
  gap: 0.48rem;
}

.flow-step {
  border: 1px solid rgba(5, 34, 66, 0.2);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--ink);
  text-align: left;
  font-weight: 700;
  padding: 0.48rem 0.58rem;
  cursor: pointer;
}

.flow-step.active,
.flow-step:hover {
  border-color: rgba(10, 108, 255, 0.4);
  background: rgba(10, 108, 255, 0.12);
}

.role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.82rem;
}

.role-tab {
  border: 1px solid rgba(255, 143, 63, 0.38);
  border-radius: 999px;
  background: rgba(255, 143, 63, 0.14);
  color: #8b4700;
  font-weight: 700;
  padding: 0.42rem 0.74rem;
  cursor: pointer;
}

.role-tab.active,
.role-tab:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(132deg, #ff9f5d, #ff7e2e);
}

.kpi-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.kpi {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  padding: 0.76rem;
}

.kpi h3 {
  margin-bottom: 0.24rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 0.72rem;
}

.timeline article {
  border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0;
  padding: 0.62rem 0.74rem;
  background: rgba(10, 108, 255, 0.07);
}

.budget {
  margin: 0.2rem 0 0.62rem;
  font-size: clamp(1.7rem, 4vw, 2.28rem);
  font-weight: 800;
  color: var(--brand-strong);
  line-height: 1.15;
}

.budget-controls {
  display: grid;
  gap: 0.36rem;
  margin: 0.46rem 0 0.72rem;
}

.budget-control {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.48rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink);
}

.budget-controls input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}

.budget-metrics-grid {
  display: grid;
  gap: 0.52rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0.72rem;
}

.budget-metric {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  padding: 0.48rem 0.56rem;
}

.budget-metric h4 {
  margin: 0 0 0.18rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.budget-metric p {
  margin: 0;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--brand-strong);
}

.demo-player {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1.2fr 1fr;
}

#demo-timeline {
  margin: 0.48rem 0 0.82rem;
  padding-left: 1.12rem;
}

.demo-event {
  margin: 0.32rem 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.demo-event.active {
  color: var(--brand-strong);
  transform: translateX(2px);
  font-weight: 700;
}

.demo-event.done {
  color: var(--ok);
}

.scenario-grid {
  margin-top: 0.45rem;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scenario-card {
  border: 1px solid rgba(5, 34, 66, 0.2);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--ink);
  text-align: left;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.58rem 0.68rem;
  cursor: pointer;
}

.scenario-card.active,
.scenario-card:hover {
  border-color: rgba(10, 108, 255, 0.4);
  background: rgba(10, 108, 255, 0.12);
}

.scenario-main-list {
  margin: 0.52rem 0 0.68rem;
  padding-left: 1.08rem;
}

.scenario-main-list li {
  margin: 0.26rem 0;
}

.scenario-algorithm {
  border: 1px dashed rgba(10, 108, 255, 0.24);
  border-radius: 10px;
  background: rgba(10, 108, 255, 0.05);
  padding: 0.58rem 0.66rem;
  margin-bottom: 0.58rem;
}

.scenario-algorithm h4 {
  margin: 0 0 0.36rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
}

.scenario-algorithm ol {
  margin: 0;
  padding-left: 1.08rem;
}

.scenario-algorithm li {
  margin: 0.2rem 0;
}

.pdf-center {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.pdf-passport-grid {
  display: grid;
  gap: 0.68rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.9rem;
}

.pdf-passport-grid h4 {
  margin: 0.28rem 0 0.38rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.pdf-passport-grid ul {
  margin: 0;
  padding-left: 1.04rem;
}

.pdf-passport-grid li {
  margin: 0.18rem 0;
}

.pdf-quick-grid {
  display: grid;
  gap: 0.52rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.85rem;
}

.pdf-quick-link {
  display: grid;
  gap: 0.22rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  padding: 0.58rem 0.7rem;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.pdf-quick-link:hover {
  border-color: rgba(10, 108, 255, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(5, 34, 66, 0.08);
}

.pdf-quick-link strong {
  font-size: 0.86rem;
}

.pdf-quick-link span {
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.pdf-toolbar {
  display: grid;
  gap: 0.68rem;
}

#pdf-search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.62rem 0.7rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
}

#pdf-search:focus {
  outline: 2px solid rgba(10, 108, 255, 0.28);
  border-color: rgba(10, 108, 255, 0.45);
}

.pdf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pdf-filter,
.pdf-track-filter,
.pdf-lang-filter {
  border: 1px solid rgba(5, 34, 66, 0.2);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 0.77rem;
  font-weight: 700;
  padding: 0.36rem 0.62rem;
  cursor: pointer;
}

.pdf-filter.active,
.pdf-filter:hover,
.pdf-track-filter.active,
.pdf-track-filter:hover,
.pdf-lang-filter.active,
.pdf-lang-filter:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(130deg, var(--brand), var(--brand-strong));
}

.pdf-list {
  display: grid;
  gap: 0.52rem;
}

.pdf-link {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  padding: 0.58rem 0.7rem;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.pdf-link:hover {
  border-color: rgba(10, 108, 255, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(5, 34, 66, 0.08);
}

.pdf-link strong {
  font-size: 0.88rem;
}

.pdf-link span {
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.pdf-link-meta {
  display: grid;
  gap: 0.2rem;
}

.doc-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  border: 1px solid rgba(5, 34, 66, 0.2);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.56rem;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.doc-btn:hover {
  border-color: rgba(10, 108, 255, 0.42);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(5, 34, 66, 0.08);
}

.doc-btn-pdf {
  background: linear-gradient(130deg, var(--brand), var(--brand-strong));
  color: #fff;
  border-color: transparent;
}

.doc-btn-pptx {
  background: linear-gradient(130deg, #0e8f66, #17b57f);
  color: #fff;
  border-color: transparent;
}

.pdf-empty {
  border: 1px dashed rgba(5, 34, 66, 0.28);
  border-radius: 12px;
  color: var(--ink-soft);
  padding: 0.68rem;
}

.footer {
  margin: 1rem auto 2.2rem;
  max-width: 1140px;
  padding: 0 1rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.footer p {
  margin: 0.25rem 0;
}

body.mode-presentation #documents {
  display: none;
}

body.mode-documents .progress-rail {
  display: none;
}

body.mode-documents .deck > section:not(#documents) {
  display: none;
}

body.mode-documents #documents {
  display: block;
}

.doc-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.doc-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(5, 34, 66, 0.22);
  padding: 0.14rem 0.45rem;
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--surface-soft);
}

.doc-tag-track.technical {
  color: #004d7f;
  border-color: rgba(0, 77, 127, 0.34);
  background: rgba(0, 121, 191, 0.11);
}

.doc-tag-track.implementation {
  color: #7d3f00;
  border-color: rgba(141, 89, 0, 0.34);
  background: rgba(255, 143, 63, 0.16);
}

.doc-tag-lang {
  color: #0f4f2c;
  border-color: rgba(15, 79, 44, 0.3);
  background: rgba(31, 157, 113, 0.12);
}

.doc-tag-fallback {
  color: #7a5200;
  border-color: rgba(122, 82, 0, 0.3);
  background: rgba(255, 203, 92, 0.22);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.58s ease, transform 0.58s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1290px) {
  .progress-rail {
    display: none;
  }
}

@media (max-width: 1020px) {
  .impact-strip,
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cols-2,
  .cols-3,
  .architecture-shell,
  .flow-shell,
  .demo-player,
  .budget-metrics-grid,
  .pdf-passport-grid,
  .pdf-quick-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .view-switch {
    order: 4;
    width: 100%;
    justify-content: space-between;
  }

  .lang-switch {
    order: 5;
  }

  .logout-btn {
    order: 3;
    margin-left: 0;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0.8rem;
    left: 0.8rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .impact-strip,
  .kpi-grid,
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .screen {
    padding: 1.05rem;
  }

  .pdf-link {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Extended presentation contour */
.extended-body .xp-back-link {
  padding: 0.38rem 0.72rem;
  font-size: 0.76rem;
}

.xp-deck {
  max-width: 1180px;
}

.xp-section {
  scroll-margin-top: 98px;
}

.xp-meta-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0.45rem 0 0.9rem;
}

.xp-meta-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.92);
}

.xp-meta-card p {
  margin: 0.22rem 0;
}

.xp-two-col {
  display: grid;
  gap: 0.78rem;
  grid-template-columns: 1.05fr 1fr;
}

.xp-process-map,
.xp-arch-map {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 0.76rem;
  display: grid;
  gap: 0.48rem;
}

.xp-process-node,
.xp-arch-node {
  border: 1px solid rgba(10, 108, 255, 0.25);
  border-radius: 11px;
  background: rgba(10, 108, 255, 0.07);
  color: var(--brand-strong);
  text-align: left;
  font-weight: 700;
  padding: 0.56rem 0.68rem;
  cursor: pointer;
}

.xp-process-node.active,
.xp-process-node:hover,
.xp-arch-node.active,
.xp-arch-node:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(132deg, var(--brand), var(--brand-strong));
  box-shadow: 0 10px 18px rgba(10, 108, 255, 0.26);
}

.xp-detail ul {
  margin: 0.42rem 0 0;
  padding-left: 1rem;
}

.xp-video-shell {
  margin-top: 0.8rem;
}

.xp-video-placeholder {
  margin-top: 0.66rem;
  border: 1px dashed rgba(5, 34, 66, 0.25);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.92);
  padding: 0.66rem;
}

.xp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin: 0.32rem 0 0.68rem;
}

.xp-tab {
  border: 1px solid rgba(5, 34, 66, 0.2);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.34rem 0.72rem;
  cursor: pointer;
}

.xp-tab.active,
.xp-tab:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(132deg, var(--brand), var(--brand-strong));
}

.xp-tab-panels {
  display: grid;
  gap: 0.6rem;
}

.xp-tab-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.8rem;
}

.xp-tab-panel:not(.active) {
  opacity: 0.92;
}

.xp-counter-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0.85rem;
}

.xp-counter-value {
  margin: 0.2rem 0;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--brand-strong);
}

.xp-dashboard {
  display: grid;
  gap: 0.5rem;
}

.xp-dashboard-row {
  display: grid;
  gap: 0.56rem;
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 1.6fr) auto;
  align-items: center;
}

.xp-dashboard-row span {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.xp-dashboard-row strong {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.86rem;
  color: var(--ink);
}

.xp-dashboard-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(5, 34, 66, 0.12);
  overflow: hidden;
}

.xp-dashboard-bar-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(130deg, var(--brand), var(--brand-strong));
  transition: width 0.95s ease;
}

.xp-roadmap {
  display: grid;
  gap: 0.55rem;
}

.xp-road-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.62rem 0.72rem;
}

.xp-road-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.xp-road-item p {
  margin: 0.48rem 0 0;
}

.xp-demo-timeline {
  margin: 0.2rem 0 0.7rem;
  padding-left: 1.08rem;
}

.xp-demo-step {
  margin: 0.32rem 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.xp-demo-step.active {
  color: var(--brand-strong);
  font-weight: 700;
  transform: translateX(2px);
}

.xp-demo-step.done {
  color: var(--ok);
}

.xp-scenario-matrix {
  margin-top: 0.78rem;
  display: grid;
  gap: 0.58rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.xp-scenario-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.64rem 0.72rem;
}

.xp-scenario-item h4 {
  margin: 0 0 0.34rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 0.87rem;
  font-weight: 800;
}

.xp-scenario-item p {
  margin: 0.26rem 0;
  font-size: 0.8rem;
}

.xp-budget-simulator {
  margin-top: 0.8rem;
}

@media (max-width: 1120px) {
  .xp-meta-grid,
  .xp-counter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xp-scenario-matrix {
    grid-template-columns: 1fr;
  }

  .xp-two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .extended-body .xp-back-link {
    order: 6;
    width: 100%;
    justify-content: center;
  }

  .xp-meta-grid,
  .xp-counter-grid,
  .xp-dashboard-row {
    grid-template-columns: 1fr;
  }

  .xp-dashboard-row {
    gap: 0.3rem;
  }
}

/* Extended presentation v1.1 visual layer */
.xp-hero-layout {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  margin-bottom: 0.85rem;
}

.xp-hero-copy ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.08rem;
}

.xp-hero-visual {
  background:
    radial-gradient(circle at 12% 10%, rgba(10, 108, 255, 0.12), transparent 35%),
    radial-gradient(circle at 90% 85%, rgba(255, 143, 63, 0.14), transparent 30%),
    var(--surface);
}

.xp-hero-gauge {
  position: relative;
  width: 172px;
  height: 172px;
  margin: 0 auto 0.7rem;
  border-radius: 50%;
  background: conic-gradient(var(--brand) 0 48%, var(--accent) 48% 78%, var(--ok) 78% 100%);
  box-shadow: 0 12px 24px rgba(5, 34, 66, 0.15);
}

.xp-hero-gauge::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(5, 34, 66, 0.14);
}

.xp-hero-gauge-center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  text-align: center;
}

.xp-hero-gauge-center strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-strong);
}

.xp-hero-gauge-center span {
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.xp-chip-grid {
  display: grid;
  gap: 0.44rem;
}

.xp-chip {
  border: 1px solid rgba(5, 34, 66, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0.3rem 0.62rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink);
}

.xp-problem-layout {
  display: grid;
  gap: 0.8rem;
}

.xp-risk-cards {
  display: grid;
  gap: 0.72rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.xp-risk-card {
  position: relative;
  padding-top: 1.35rem;
}

.xp-risk-icon {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(130deg, var(--brand), var(--brand-strong));
}

.xp-heatmap-grid {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.3rem;
  grid-template-columns: minmax(110px, 1fr) repeat(4, minmax(0, 1fr));
  min-width: 420px;
}

.xp-heatmap {
  overflow-x: auto;
}

.xp-cell {
  min-height: 30px;
  border: 1px solid rgba(5, 34, 66, 0.12);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.9);
}

.xp-cell.head {
  background: rgba(10, 108, 255, 0.12);
  color: var(--brand-strong);
}

.xp-cell.label {
  justify-content: start;
  padding-left: 0.5rem;
}

.xp-cell.l1 {
  background: rgba(31, 157, 113, 0.2);
}

.xp-cell.l2 {
  background: rgba(255, 143, 63, 0.25);
}

.xp-cell.l3 {
  background: rgba(210, 48, 48, 0.28);
}

.xp-loss-flow {
  background:
    linear-gradient(120deg, rgba(10, 108, 255, 0.06), rgba(255, 143, 63, 0.08)),
    var(--surface);
}

.xp-loss-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, 1.8fr);
  gap: 0.62rem;
  align-items: center;
  margin: 0.44rem 0;
}

.xp-loss-row span {
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.xp-loss-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(5, 34, 66, 0.12);
  overflow: hidden;
}

.xp-loss-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(130deg, var(--accent), #ff5f5f);
}

.xp-solution-layout {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr) minmax(0, 1fr);
}

.xp-solution-ring {
  position: relative;
  min-height: 248px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.xp-solution-ring::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 2px dashed rgba(10, 108, 255, 0.36);
  animation: ring-drift 12s linear infinite;
}

@keyframes ring-drift {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.xp-ring-center {
  position: relative;
  z-index: 2;
  width: 102px;
  height: 102px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.83rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(130deg, var(--brand), var(--brand-strong));
  box-shadow: 0 10px 20px rgba(10, 108, 255, 0.35);
}

.xp-ring-node {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(5, 34, 66, 0.18);
  border-radius: 999px;
  padding: 0.24rem 0.52rem;
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
}

.xp-ring-node.n1 {
  top: 14%;
  left: 39%;
}

.xp-ring-node.n2 {
  top: 45%;
  right: 9%;
}

.xp-ring-node.n3 {
  bottom: 13%;
  left: 39%;
}

.xp-ring-node.n4 {
  top: 45%;
  left: 9%;
}

.xp-feature-cards {
  display: grid;
  gap: 0.72rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0.72rem;
}

.xp-matrix-wrap {
  overflow-x: auto;
}

.xp-matrix {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.xp-matrix th,
.xp-matrix td {
  border: 1px solid rgba(5, 34, 66, 0.15);
  padding: 0.52rem 0.56rem;
  text-align: left;
  vertical-align: top;
}

.xp-matrix th {
  background: rgba(10, 108, 255, 0.1);
  color: var(--brand-strong);
  font-weight: 800;
}

.xp-matrix tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.9);
}

.xp-io-grid {
  display: grid;
  gap: 0.72rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.75rem;
}

.xp-arch-flow {
  margin-top: 0.72rem;
}

.xp-flow-route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
}

.xp-flow-pill {
  border: 1px solid rgba(5, 34, 66, 0.2);
  border-radius: 999px;
  padding: 0.3rem 0.54rem;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.74rem;
  font-weight: 700;
}

.xp-flow-arrow {
  color: var(--brand-strong);
  font-size: 0.84rem;
  font-weight: 800;
}

.xp-threat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.35rem 0 0.55rem;
}

.xp-threat-chip {
  border: 1px solid rgba(10, 108, 255, 0.3);
  border-radius: 999px;
  background: rgba(10, 108, 255, 0.1);
  color: var(--brand-strong);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.26rem 0.56rem;
}

.xp-case-grid {
  display: grid;
  gap: 0.45rem;
}

.xp-case-grid p {
  margin: 0;
}

.xp-stakeholder-map {
  display: grid;
  gap: 0.72rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.75rem;
}

.xp-stakeholder-item {
  background:
    radial-gradient(circle at 100% 0, rgba(10, 108, 255, 0.11), transparent 45%),
    var(--surface);
}

.xp-impact-compare {
  margin-bottom: 0.78rem;
}

.xp-compare-row {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 1.7fr);
  align-items: center;
  margin: 0.45rem 0;
}

.xp-compare-row span {
  font-size: 0.81rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.xp-compare-bars {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(5, 34, 66, 0.12);
  overflow: hidden;
}

.xp-compare-bars i {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 999px;
}

.xp-compare-bars i.base {
  background: linear-gradient(130deg, #b9c9dd, #9ab0cc);
}

.xp-compare-bars i.target {
  background: linear-gradient(130deg, var(--ok), #38bf8f);
}

.xp-waterfall {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.xp-waterfall li {
  margin: 0.28rem 0;
}

.xp-trend {
  margin-top: 0.75rem;
}

.xp-trend-svg {
  width: 100%;
  height: 178px;
  border-radius: 12px;
  border: 1px solid rgba(5, 34, 66, 0.12);
  background:
    linear-gradient(rgba(5, 34, 66, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 34, 66, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(31, 157, 113, 0.14), rgba(31, 157, 113, 0.02));
  background-size: 24px 24px, 24px 24px, cover;
}

.xp-trend-svg polyline {
  fill: none;
  stroke: #1f9d71;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.xp-trend-svg line {
  stroke: rgba(5, 34, 66, 0.36);
  stroke-width: 2;
}

.xp-phase-track {
  display: grid;
  gap: 0.52rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0.72rem;
}

.xp-phase-node {
  border: 1px solid rgba(5, 34, 66, 0.2);
  border-radius: 12px;
  padding: 0.52rem;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--surface-soft);
}

.xp-phase-node.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(130deg, var(--brand), var(--brand-strong));
}

.xp-decision-tree {
  display: grid;
  gap: 0.72rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0.72rem;
}

.xp-decision-card:nth-child(1) {
  border-top: 4px solid #1f9d71;
}

.xp-decision-card:nth-child(2) {
  border-top: 4px solid #ff8f3f;
}

.xp-decision-card:nth-child(3) {
  border-top: 4px solid #a14545;
}

@media (max-width: 1120px) {
  .xp-hero-layout,
  .xp-solution-layout,
  .xp-risk-cards,
  .xp-feature-cards,
  .xp-stakeholder-map,
  .xp-decision-tree {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .xp-loss-row,
  .xp-compare-row,
  .xp-io-grid {
    grid-template-columns: 1fr;
  }

  .xp-hero-gauge {
    width: 146px;
    height: 146px;
  }

  .xp-flow-route {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.pilot-body .topbar {
  gap: 0.85rem;
}

.pilot-deck {
  max-width: 1180px;
}

.pilot-section h2 {
  margin-top: 0.15rem;
}

.pilot-hero-layout,
.pilot-split-grid,
.pilot-three-grid,
.pilot-two-col,
.pilot-budget-shell,
.pilot-decision-grid,
.pilot-opportunity-band,
.pilot-kpi-grid {
  display: grid;
  gap: 1rem;
}

.pilot-hero-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.9fr);
  align-items: stretch;
}

.pilot-split-grid,
.pilot-budget-shell,
.pilot-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.pilot-opportunity-band,
.pilot-kpi-grid,
.pilot-decision-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pilot-hero-copy h2 {
  margin: 0.1rem 0 0.55rem;
  font-size: clamp(1.52rem, 2.8vw, 2.25rem);
  line-height: 1.15;
}

.pilot-list {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.pilot-list li {
  margin: 0.26rem 0;
}

.pilot-media-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  background:
    linear-gradient(180deg, rgba(4, 22, 45, 0.14) 0%, rgba(4, 22, 45, 0.42) 58%, rgba(4, 22, 45, 0.78) 100%),
    var(--pilot-card-image) center/cover no-repeat;
}

.pilot-media-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
}

.pilot-media-card::after {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 1.1rem;
  width: 92px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(130deg, #5db0ff, #0a6cff);
  box-shadow: 0 10px 20px rgba(10, 108, 255, 0.24);
}

.pilot-media-copy {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  align-content: end;
  gap: 0.55rem;
  padding: 1.25rem;
  color: #fff;
}

.pilot-media-copy h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.18;
}

.pilot-media-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.pilot-media-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.28rem 0.64rem;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pilot-chip-set {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.pilot-chip-set span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 700;
}

.pilot-status-line {
  margin-top: 0.2rem;
}

.pilot-impact-strip article h3 {
  font-size: clamp(1.24rem, 2.4vw, 1.9rem);
}

.pilot-network-card {
  background:
    radial-gradient(circle at 0 0, rgba(10, 108, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.92));
}

.pilot-node-map {
  position: relative;
  min-height: 240px;
  margin-top: 0.7rem;
  border-radius: 18px;
  background:
    linear-gradient(rgba(5, 34, 66, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 34, 66, 0.05) 1px, transparent 1px),
    rgba(255, 255, 255, 0.65);
  background-size: 24px 24px;
  overflow: hidden;
}

.pilot-node-map::before,
.pilot-node-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
}

.pilot-node-map::before {
  background-image:
    linear-gradient(140deg, transparent 49.2%, rgba(10, 108, 255, 0.28) 50%, transparent 50.8%),
    linear-gradient(210deg, transparent 49.2%, rgba(10, 108, 255, 0.22) 50%, transparent 50.8%),
    linear-gradient(180deg, transparent 49.2%, rgba(10, 108, 255, 0.18) 50%, transparent 50.8%);
  background-size: 100% 100%, 100% 100%, 100% 100%;
}

.pilot-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 0.45rem 0.62rem;
  border: 1px solid rgba(5, 34, 66, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.pilot-node.center {
  left: 50%;
  top: 50%;
  min-width: 112px;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(130deg, var(--brand), var(--brand-strong));
  transform: translate(-50%, -50%);
}

.pilot-node.n1 { left: 6%; top: 16%; }
.pilot-node.n2 { right: 8%; top: 18%; }
.pilot-node.n3 { left: 10%; bottom: 16%; }
.pilot-node.n4 { right: 7%; bottom: 14%; }
.pilot-node.n5 { left: 39%; top: 8%; }
.pilot-node.n6 { left: 38%; bottom: 8%; }

.pilot-route-shell {
  margin-top: 1rem;
}

.pilot-route-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
  margin: 0.45rem 0 0.85rem;
}

.pilot-route-node,
.pilot-stage-btn,
.pilot-scenario-btn {
  border: 1px solid rgba(5, 34, 66, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.pilot-route-node {
  padding: 0.44rem 0.76rem;
}

.pilot-route-arrow {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--brand-strong);
}

.pilot-core-notes {
  margin-top: 0.85rem;
}

.pilot-stage-toolbar {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.pilot-stage-btn,
.pilot-scenario-btn {
  cursor: pointer;
  padding: 0.52rem 0.4rem;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pilot-stage-btn:hover,
.pilot-stage-btn.active,
.pilot-scenario-btn:hover,
.pilot-scenario-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(130deg, var(--brand), var(--brand-strong));
  transform: translateY(-1px);
}

.pilot-kpi-card {
  text-align: left;
}

.pilot-counter {
  margin: 0.2rem 0 0.18rem;
  font-size: clamp(1.72rem, 3vw, 2.5rem);
  line-height: 1;
}

.pilot-dashboard {
  background:
    radial-gradient(circle at 100% 0, rgba(10, 108, 255, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.98);
}

.pilot-bar-row {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 1.2fr);
  align-items: center;
  margin: 0.48rem 0;
}

.pilot-bar-row span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.pilot-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(5, 34, 66, 0.12);
  overflow: hidden;
}

.pilot-bar i {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(130deg, var(--ok), #42c897);
}

.pilot-budget-toolbar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 0.9rem;
}

.pilot-budget-total {
  margin: 0.18rem 0 0.4rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--brand-strong);
}

.pilot-budget-breakdown {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 1rem 0 0.75rem;
}

.pilot-budget-breakdown article {
  border: 1px solid rgba(5, 34, 66, 0.1);
  border-radius: 18px;
  padding: 0.75rem;
  background:
    radial-gradient(circle at 100% 0, rgba(10, 108, 255, 0.08), transparent 42%),
    rgba(248, 250, 252, 0.98);
}

.pilot-budget-breakdown h4 {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.25;
}

.pilot-budget-breakdown p {
  margin: 0.35rem 0 0;
  font-weight: 800;
  color: var(--ink);
}

.pilot-decision-grid {
  margin: 1rem 0;
}

@media (max-width: 1160px) {
  .pilot-hero-layout,
  .pilot-split-grid,
  .pilot-three-grid,
  .pilot-budget-shell,
  .pilot-opportunity-band,
  .pilot-kpi-grid,
  .pilot-decision-grid {
    grid-template-columns: 1fr;
  }

  .pilot-budget-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .pilot-stage-toolbar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pilot-two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .pilot-bar-row,
  .pilot-route-diagram {
    grid-template-columns: 1fr;
  }

  .pilot-route-diagram {
    display: grid;
  }

  .pilot-budget-breakdown {
    grid-template-columns: 1fr;
  }

  .pilot-stage-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pilot-media-card {
    min-height: 280px;
  }
}
