/* CloudDeploy — a pipeline drawn like a transit line */
:root {
  --paper: #f2f5f8;
  --white: #fff;
  --ink: #0c1b2b;
  --muted: #566679;
  --rule: #d5dde6;
  --line: #0a7d6e;      /* the line colour */
  --signal: #f2a100;    /* focus + primary action */
  --fail: #b42318;
  --board: #0c1b2b;
  --board-ink: #e9f0f7;
  --r: 6px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 "Bricolage Grotesque", system-ui, sans-serif;
  overflow-x: hidden;
}
h1, h2, h3 { font-weight: 800; letter-spacing: -.025em; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.05rem; }
p { margin: 0; }
code, .board, pre, table, .stats b { font-family: "IBM Plex Mono", ui-monospace, monospace; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* top bar */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .7rem clamp(1rem, 4vw, 3rem);
  background: var(--ink); color: #fff;
}
.brand { color: #fff; font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -.02em; flex: none; }
.top nav { display: flex; gap: 1.25rem; margin-left: auto; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.top nav a { color: #b9c7d6; text-decoration: none; font-size: .95rem; font-weight: 500; }
.top nav a:hover { color: #fff; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
  max-width: 1200px; margin: 0 auto;
}
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: 1; margin-bottom: 1.2rem; }
.hero-copy p { color: var(--muted); font-size: 1.12rem; max-width: 46ch; margin-bottom: 1.8rem; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn {
  display: inline-block; padding: .65rem 1.25rem; border-radius: var(--r);
  border: 2px solid var(--ink); color: var(--ink); background: transparent;
  font-weight: 700; text-decoration: none; transition: background .15s, color .15s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-main { background: var(--signal); border-color: var(--signal); }
.btn-main:hover { background: var(--ink); border-color: var(--ink); }

/* live status board */
.board { background: var(--board); color: var(--board-ink); border-radius: 10px; padding: 1.4rem; }
.board-head { display: flex; align-items: flex-start; gap: .85rem; padding-bottom: 1.1rem; border-bottom: 1px solid #263c52; }
.board-state { font: 700 1.05rem/1.3 "Bricolage Grotesque", sans-serif; }
.board-sub { color: #8ea3b8; font-size: .82rem; margin-top: .15rem; font-family: "Bricolage Grotesque", sans-serif; }
.pulse { flex: none; width: 12px; height: 12px; margin-top: .4rem; border-radius: 50%; background: #6b7f93; }
.pulse.is-ok { background: #3ddc97; animation: breathe 2.4s ease-in-out infinite; }
.pulse.is-fail { background: #ff6b5e; }
@keyframes breathe { 0%,100% { box-shadow: 0 0 0 0 rgba(61,220,151,.5); } 50% { box-shadow: 0 0 0 8px rgba(61,220,151,0); } }
.btn-recheck {
  margin-left: auto; flex: none; background: none; color: inherit; cursor: pointer;
  border: 1px solid #4a6179; border-radius: 4px; padding: .2rem .65rem; font: 500 .78rem "IBM Plex Mono", monospace;
}
.btn-recheck:hover { border-color: #fff; }
.board-rows { margin: 1rem 0 0; font-size: .85rem; }
.board-rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed #263c52; }
.board-rows > div:last-child { border: 0; }
.board-rows dt { color: #8ea3b8; }
.board-rows dd { margin: 0; text-align: right; }

/* blocks */
.block { padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem); }
.block > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.tint { background: var(--white); border-block: 1px solid var(--rule); }
.lede { color: var(--muted); margin-top: .5rem !important; margin-bottom: 2.5rem !important; }
.demo { font: 500 .72rem "IBM Plex Mono", monospace; border: 1px solid var(--muted); color: var(--muted); border-radius: 4px; padding: .1rem .45rem; vertical-align: middle; margin-left: .4rem; letter-spacing: 0; }

/* the line map */
.line { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; margin-top: 3.5rem; }
.line::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 8px; background: var(--line); border-radius: 4px; }
.line li { position: relative; padding: 2.2rem 1rem 0 0; }
.line li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--white); border: 6px solid var(--ink);
}
.line li:last-child::before { background: var(--signal); }
.line b { display: block; font-size: 1.05rem; letter-spacing: -.01em; }
.line span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.45; margin-top: .25rem; }
.line code { font-size: .85em; }

/* specs */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 2rem; }
.specs dl { margin: 0; }
.specs h3 { padding-bottom: .6rem; border-bottom: 3px solid var(--ink); margin-bottom: .3rem; }
.specs dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font: 500 .9rem "IBM Plex Mono", monospace; text-align: right; }
.wrap { word-break: break-all; }
.ok { color: var(--line); font-weight: 500; }
.note { color: var(--muted); font-size: .85rem; margin-top: 1.8rem !important; }

/* history */
.history { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.5rem; align-items: start; }
.scroll { overflow-x: auto; background: var(--board); color: var(--board-ink); border-radius: 10px; padding: .6rem 1rem; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; white-space: nowrap; }
th { text-align: left; color: #8ea3b8; font-weight: 400; padding: .7rem .8rem; border-bottom: 1px solid #263c52; }
td { padding: .7rem .8rem; border-bottom: 1px dashed #263c52; }
tbody tr:last-child td { border: 0; }
td.ok { color: #3ddc97; }
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
.stats li { color: var(--muted); font-size: .9rem; }
.stats b { display: block; font-size: 2.4rem; line-height: 1; color: var(--ink); font-weight: 500; }

/* terminal */
.terminal { background: var(--board); border-radius: 10px; overflow: hidden; margin-top: 1.5rem; }
.terminal-bar { display: flex; align-items: center; padding: .6rem 1rem; border-bottom: 1px solid #263c52; color: #8ea3b8; font: 400 .8rem "IBM Plex Mono", monospace; }
.terminal pre { margin: 0; padding: 1.1rem 1rem; min-height: 280px; color: var(--board-ink); font-size: .82rem; line-height: 1.9; white-space: pre-wrap; }
.t-ok { color: #3ddc97; } .t-tag { color: #6b8099; }
.caret { display: inline-block; width: 8px; background: #3ddc97; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* about */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.prose { color: var(--muted); max-width: 58ch; margin-top: 1rem !important; }
.about .actions { margin-top: 1.5rem; }
.stack { list-style: none; padding: 0; margin: .8rem 0 0; }
.stack li { padding: .55rem 0; border-bottom: 1px solid var(--rule); color: var(--muted); }
.stack b { display: inline-block; min-width: 8.5rem; color: var(--ink); }

.footer { background: var(--ink); color: #9fb0c1; text-align: center; padding: 2rem 1rem; font-size: .9rem; }

/* responsive */
@media (max-width: 991.98px) {
  .hero, .history, .about { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; gap: 2rem; }
  /* line turns vertical */
  .line { grid-template-columns: 1fr; margin-top: 0; }
  .line::before { left: 11px; right: auto; top: 0; bottom: 0; width: 8px; height: auto; }
  .line li { padding: 0 0 1.8rem 3.2rem; }
  .line li:last-child { padding-bottom: 0; }
}
@media (max-width: 575.98px) {
  .top { gap: 1rem; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
  .board-head { flex-wrap: wrap; }
  .stack b { display: block; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}