/* Slope Monitoring Command View — halaman penjelasan
   Token warna dan tipografi sengaja sama dengan prototipe agar kedua artefak
   terbaca sebagai satu produk. */

:root {
  --bg: #0b0d10;
  --bg-raised: #10141a;
  --bg-alt: #0e1116;
  --panel: rgba(20, 24, 30, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #e9eff5;
  --text-2: #a3b0bd;
  --text-3: #6b7786;

  --accent: #38d9e6;
  --accent-2: #1aa3b3;
  --accent-dim: rgba(56, 217, 230, 0.12);
  --accent-glow: rgba(56, 217, 230, 0.35);

  --l1: #3ddc84;
  --l2: #f5c542;
  --l3: #ff8f3c;
  --l4: #ff4553;

  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --shell: 1120px;
  --radius: 14px;
  --radius-sm: 8px;
  --topbar-h: 64px;

  --space-1: 6px;
  --space-2: 12px;
  --space-3: 20px;
  --space-4: 32px;
  --space-5: 52px;
  --space-6: 84px;
  --space-7: 124px;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }
em { font-style: italic; color: var(--accent); }
strong { font-weight: 600; color: var(--text); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.is-muted { color: var(--text-3); }
.is-alert { color: var(--l4); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #06232a;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible { transform: none; }

/* ---------------------------------------------------------------- gerbang akses
   Isi halaman disembunyikan selama terkunci. Ini penghalang tampilan untuk demo,
   bukan pengamanan: markup tetap ada di sumber halaman. */
html.is-locked { overflow: hidden; }
html.is-locked .site { display: none; }
html:not(.is-locked) .gate { display: none; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(760px 420px at 50% -10%, rgba(56, 217, 230, 0.14), transparent 70%),
    var(--bg);
}

.gate__card {
  width: min(400px, 100%);
  padding: var(--space-5) var(--space-4) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
  text-align: center;
}

.gate__logo { display: block; width: auto; height: 34px; margin: 0 auto var(--space-4); }
.gate__title { font-size: 25px; font-weight: 500; letter-spacing: -0.025em; }
.gate__lede { margin-top: 10px; font-size: 14.5px; color: var(--text-2); }
.gate__form { display: grid; gap: 10px; margin-top: var(--space-4); text-align: left; }

.gate__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.gate__input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 19px;
  letter-spacing: 0.4em;
  text-align: center;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.gate__input::placeholder { color: var(--text-3); letter-spacing: 0.3em; }
.gate__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.gate__submit { justify-content: center; margin-top: 2px; }
.gate__error { min-height: 20px; margin-top: 12px; font-size: 13.5px; color: var(--l4); }
.gate__note { margin-top: var(--space-3); font-size: 12.5px; color: var(--text-3); }

.gate__card.is-rejected { animation: gate-reject 0.4s var(--ease); }
.gate__card.is-rejected .gate__input { border-color: var(--l4); }

@keyframes gate-reject {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  45% { transform: translateX(7px); }
  70% { transform: translateX(-4px); }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--text-3); text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #06232a;
  font-weight: 600;
}

.btn--primary:hover { background: #5ce6f1; border-color: #5ce6f1; box-shadow: 0 0 24px var(--accent-glow); }
.btn--ghost { padding: 6px 12px; font-size: 13px; border-color: var(--line); }
.btn--lg { padding: 13px 26px; font-size: 15px; }
.btn__icon { width: 14px; height: 14px; fill: currentColor; flex: none; }

.link-demo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: var(--space-2);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent);
}

.link-demo::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  transition: box-shadow 0.25s var(--ease);
}

.link-demo:hover::before { box-shadow: 0 0 0 5px var(--accent-dim); }

/* ---------------------------------------------------------------- topbar */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-inline: max(24px, calc((100vw - var(--shell)) / 2));
  background: rgba(11, 13, 16, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.topbar.is-stuck { border-bottom-color: var(--line); background: rgba(11, 13, 16, 0.94); }

.brand { display: inline-flex; align-items: center; flex: none; }
.brand:hover { text-decoration: none; }
.brand:hover .brand__logo { opacity: 1; }
.brand__logo { display: block; width: auto; height: 26px; opacity: 0.92; transition: opacity 0.18s var(--ease); }

.nav { display: flex; gap: 2px; margin-left: auto; }

.nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.nav__link.is-current { color: var(--accent); background: var(--accent-dim); }
.nav__num { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); }
.nav__link.is-current .nav__num { color: var(--accent-2); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav__toggle span { display: block; height: 1.5px; background: var(--text); transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding: calc(var(--topbar-h) + var(--space-7)) 0 var(--space-6);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 820px;
  height: 820px;
  top: -420px;
  right: -220px;
  background: radial-gradient(circle, rgba(56, 217, 230, 0.13), transparent 62%);
}

.hero::after {
  width: 620px;
  height: 620px;
  bottom: -400px;
  left: -200px;
  background: radial-gradient(circle, rgba(255, 69, 83, 0.07), transparent 65%);
}

.hero .shell { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.hero__title {
  font-size: clamp(38px, 6.4vw, 70px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.07;
}

.hero__title em { font-weight: 500; }

.hero__lede {
  max-width: 62ch;
  margin-top: var(--space-4);
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--text-2);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: var(--space-6) 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.stat { padding: var(--space-3) var(--space-3) calc(var(--space-3) - 4px); background: var(--bg-raised); }
.stat__label { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.stat__value { margin: 6px 0 2px; font-size: 27px; font-weight: 600; letter-spacing: -0.03em; }
.stat__value span { font-size: 15px; font-weight: 400; color: var(--text-2); letter-spacing: 0; }
.stat__note { margin: 0; font-size: 12.5px; color: var(--text-3); }

.disclaimer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: var(--space-4);
  padding: 13px 18px;
  border: 1px solid rgba(245, 197, 66, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(245, 197, 66, 0.06);
  font-size: 13.5px;
  color: var(--text-2);
}

.disclaimer__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--l2);
  border: 1px solid var(--l2);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- sections */
.section { padding: var(--space-7) 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 72ch; margin-bottom: var(--space-6); }
.section__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--accent-2); }
.section__title { margin-top: var(--space-2); font-size: clamp(27px, 3.6vw, 40px); font-weight: 500; letter-spacing: -0.03em; }
.section__lede { margin-top: var(--space-3); font-size: 16.5px; color: var(--text-2); }

.subhead {
  margin: var(--space-6) 0 var(--space-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.prose { max-width: 70ch; margin-bottom: var(--space-4); color: var(--text-2); }
.note { margin-top: var(--space-2); font-size: 13.5px; color: var(--text-3); }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------------------------------------------------------------- pipeline */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.pipeline li { position: relative; display: flex; }

.pipeline li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(var(--space-2) / -1 - 1px);
  width: var(--space-2);
  height: 1px;
  background: var(--line-strong);
}

.stage {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--text-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}

.stage:hover { border-color: var(--line-strong); background: #141920; transform: translateY(-2px); }

.stage.is-active {
  border-color: var(--accent-2);
  background: linear-gradient(180deg, var(--accent-dim), rgba(20, 24, 30, 0.6));
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(56, 217, 230, 0.18), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stage__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--text-3); }
.stage.is-active .stage__num { color: var(--accent); }
.stage__name { font-size: 16px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.stage__sub { font-size: 13px; color: var(--text-3); }

.stage-detail { padding: var(--space-4); }
.stage-detail__title { font-size: 20px; font-weight: 600; }
.stage-detail__body { margin-top: var(--space-2); max-width: 74ch; color: var(--text-2); }

.stage-detail__phase {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-3);
}

.ticks { margin: var(--space-3) 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }

.ticks li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--text-2);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.8;
}

/* ---------------------------------------------------------------- cards */
.cards { display: grid; gap: var(--space-2); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.card:hover { border-color: var(--line-strong); }
.card[open] { border-color: var(--accent-2); background: #121820; }

.card__summary {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  list-style: none;
}

.card__summary::-webkit-details-marker { display: none; }

.card__summary::after {
  content: '';
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--text-3);
  border-bottom: 1.5px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease), border-color 0.2s var(--ease);
  align-self: center;
}

.card[open] .card__summary::after { transform: rotate(-135deg); border-color: var(--accent); }
.card__summary:hover::after { border-color: var(--text); }

.card__kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); }
.card__title { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.card__hint { font-size: 13.5px; color: var(--text-3); }

.card__body { padding: 0 var(--space-4) var(--space-4); max-width: 80ch; display: grid; gap: var(--space-3); }
.card__body > p { color: var(--text-2); }

/* ---------------------------------------------------------------- tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table__caption { text-align: left; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding-bottom: 8px; }
.table th, .table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.table tbody th { font-weight: 500; white-space: nowrap; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.table td { color: var(--text-2); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: currentColor; }
.lv-1 { color: var(--l1); }
.lv-2 { color: var(--l2); }
.lv-3 { color: var(--l3); }
.lv-4 { color: var(--l4); }

/* ---------------------------------------------------------------- features */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(305px, 1fr)); gap: var(--space-2); }

.feature {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.feature:hover {
  border-color: var(--accent-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature__title { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.feature p { font-size: 14.5px; color: var(--text-2); }

/* ---------------------------------------------------------------- tabs */
.tabs { display: grid; gap: var(--space-3); }

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  width: fit-content;
  max-width: 100%;
}

.tab {
  padding: 8px 20px;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.tab.is-active { background: var(--accent); color: #06232a; font-weight: 600; }

.tabs__panel {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  animation: fade-up 0.3s var(--ease);
}

.tabs__panel.is-hidden { display: none; }
.tabs__title { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.tabs__panel > p { max-width: 72ch; color: var(--text-2); }

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: var(--space-3); margin: var(--space-3) 0 0; }
.specs--wide { grid-template-columns: repeat(auto-fit, minmax(305px, 1fr)); margin-top: var(--space-4); }
.specs > div { padding-top: var(--space-2); border-top: 1px solid var(--line); }
.specs dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 5px; }
.specs dd { margin: 0; font-size: 14px; color: var(--text-2); }

/* ---------------------------------------------------------------- code */
.codeblock { overflow: hidden; }

.codeblock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 10px 14px 10px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.codeblock__name { font-size: 12.5px; color: var(--text-3); }
.codeblock__body { margin: 0; padding: var(--space-3) var(--space-4); overflow-x: auto; }
.codeblock__body code { font-family: var(--font-mono); font-size: 13px; line-height: 1.75; color: var(--text-2); white-space: pre; }

/* ---------------------------------------------------------------- checklist */
.checklist { padding: var(--space-4); }
.checklist__items { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }

.checklist__items label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  align-items: start;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.checklist__items label:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }

.checklist__items input {
  appearance: none;
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}

.checklist__items input::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #06232a;
  border-bottom: 2px solid #06232a;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.16s var(--ease);
}

.checklist__items input:checked { background: var(--accent); border-color: var(--accent); }
.checklist__items input:checked::after { transform: rotate(-45deg) scale(1); }
.checklist__items input:checked + span { color: var(--text); }

.checklist__progress {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-3);
}

.checklist__bar { flex: 1 1 160px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.checklist__bar span { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--accent); transition: width 0.3s var(--ease); }

/* ---------------------------------------------------------------- roadmap */
.roadmap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); margin: 0; padding: 0; list-style: none; }

.phase {
  position: relative;
  padding: var(--space-4) var(--space-3);
  border: 1px solid var(--line);
  border-top: 2px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.phase:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.phase--done { border-top-color: var(--accent); background: linear-gradient(180deg, var(--accent-dim), var(--bg-raised) 55%); }
.phase__tag { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.phase--done .phase__tag { color: var(--accent); }
.phase__title { margin: 10px 0; font-size: 18px; font-weight: 600; }
.phase p:last-child { font-size: 14px; color: var(--text-2); }

.cta {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(900px 300px at 15% -40%, rgba(56, 217, 230, 0.12), transparent 70%),
    var(--bg-raised);
}

.cta__title { font-size: 24px; font-weight: 500; letter-spacing: -0.025em; }
.cta p { max-width: 62ch; margin-top: var(--space-2); color: var(--text-2); }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }

/* ---------------------------------------------------------------- footer */
.footer { padding: var(--space-5) 0; border-top: 1px solid var(--line); background: var(--bg); }
.footer__inner { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; align-items: baseline; }
.footer__logo { display: block; width: auto; height: 30px; opacity: 0.75; }
.footer__note { max-width: 62ch; font-size: 13px; color: var(--text-3); }

/* ---------------------------------------------------------------- utility */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 55;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(16, 20, 26, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--accent); background: var(--accent-dim); }
.to-top svg { width: 16px; height: 16px; fill: var(--text); }

.toasts {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--accent-2);
  border-radius: 999px;
  background: #121820;
  box-shadow: var(--shadow);
  font-size: 14px;
  animation: fade-up 0.25s var(--ease);
}

.toast::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  :root { --space-7: 90px; --space-6: 64px; }
  .nav__link { padding: 7px 10px; font-size: 13.5px; }
  .nav__num { display: none; }
  .pipeline, .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline li:not(:last-child)::after { display: none; }
}

@media (max-width: 760px) {
  :root { --space-7: 68px; --space-6: 48px; --space-5: 36px; }
  .shell { width: calc(100% - 32px); }

  .topbar { padding-inline: 16px; gap: 12px; }
  .topbar__cta { display: none; }
  .nav__toggle { display: flex; margin-left: auto; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

  .topbar.is-open .nav { display: flex; }
  .nav__link { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 15px; }
  .nav__num { display: inline; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline, .roadmap, .features { grid-template-columns: minmax(0, 1fr); }
  .specs, .specs--wide { grid-template-columns: minmax(0, 1fr); }

  .card__summary { grid-template-columns: 1fr auto; row-gap: 4px; padding: var(--space-3); }
  .card__kicker { grid-column: 1 / -1; }
  .card__hint { grid-column: 1 / -1; }
  .card__body { padding: 0 var(--space-3) var(--space-3); }

  .tabs__list { width: 100%; border-radius: var(--radius); }
  .tab { flex: 1 1 auto; text-align: center; padding: 9px 12px; font-size: 13.5px; }
  .tabs__panel, .checklist, .stage-detail, .cta { padding: var(--space-3); }
  .to-top { right: 14px; bottom: 14px; }
  .table { font-size: 13px; }
  .table th, .table td { padding: 8px; }
}

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