/* ══════════════════════════════════════════════════════
   Sovereign / rtag-cf — one theme, built on rgb(0,125,255)
   Blue carries every decorative accent. Green and red stay
   reserved for state an operator scans for: running, broken.
   ══════════════════════════════════════════════════════ */

:root {
  --accent: #007dff;
  --accent-soft: #3d9bff;
  --accent-bright: #6bb4ff;
  --accent-deep: #0061c9;
  --accent-dim: rgba(0, 125, 255, .22);
  --accent-glow: rgba(0, 125, 255, .38);
  --accent-wash: rgba(0, 125, 255, .09);

  --bg: #05080f;
  --bg-soft: #080d18;
  --panel: #090e17;
  --panel-2: #0c141f;
  --panel-3: #101a28;
  --panel-sheer: rgba(130, 180, 255, .035);
  --line: rgba(130, 180, 255, .11);
  --line-2: rgba(130, 180, 255, .2);
  --line-3: rgba(0, 125, 255, .5);
  --text: #f2f7ff;
  --dim: #c3d4ea;
  --muted: #8ba0bd;
  --faint: #5c7391;

  --good: #3fd69a;
  --bad: #ff6b7a;
  --warn: #ffc24d;

  --radius: 14px;
  --radius-lg: 22px;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, ui-monospace, monospace;
  --shadow: 0 30px 80px rgba(0, 10, 30, .82);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* fixed grid + glow behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 125, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 125, 255, .055) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 78%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 58% 40% at 50% -8%, rgba(0, 125, 255, .22), transparent 70%),
    radial-gradient(ellipse 40% 30% at 92% 8%, rgba(0, 125, 255, .08), transparent 72%);
}

::selection { background: rgba(0, 125, 255, .34); color: #fff; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 125, 255, .3); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 125, 255, .55); }

a { color: var(--accent-soft); text-decoration: none; transition: color .16s; }
a:hover { color: var(--accent-bright); }
code {
  background: rgba(0, 125, 255, .1); padding: 2px 7px; border-radius: 6px;
  font-family: var(--mono); font-size: .88em; color: #d8e8ff;
  border: 1px solid var(--line);
}
h1, h2, h3 { letter-spacing: -.03em; }

/* ── top bar ──────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 13px max(20px, calc((100% - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 15, .74);
  backdrop-filter: blur(18px) saturate(150%);
  transition: border-color .3s, background .3s;
}
.topbar.scrolled { border-bottom-color: var(--line-2); background: rgba(5, 8, 15, .94); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--text);
  letter-spacing: -.02em; white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand-mark {
  width: 24px; height: 24px; flex: none; position: relative;
  border: 1px solid var(--accent); border-radius: 4px;
  display: grid; place-items: center;
  color: var(--accent-soft); font-size: 12px; font-weight: 800; font-family: var(--mono);
  transition: background .3s, color .3s, box-shadow .3s;
}
.brand:hover .brand-mark { background: var(--accent); color: #fff; box-shadow: 0 0 18px var(--accent-glow); }
.brand-logo {
  width: 27px; height: 27px; flex: none; object-fit: contain; display: block;
  filter: drop-shadow(0 0 12px var(--accent-dim));
  transition: filter .3s, transform .3s var(--ease);
}
.brand:hover .brand-logo { filter: drop-shadow(0 0 18px var(--accent-glow)); transform: translateY(-1px); }
.brand span { color: var(--muted); font-weight: 500; }

.topbar nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.topbar nav a {
  position: relative; color: var(--muted); font-weight: 500; font-size: 13px;
  font-family: var(--mono); padding: 7px 12px; border-radius: 7px;
  transition: color .16s, background .16s;
}
.topbar nav a:hover { color: var(--text); background: rgba(0, 125, 255, .1); }
.topbar nav a.active { color: #fff; }
.topbar nav a.active::before,
.topbar nav a.active::after { content: ""; position: absolute; top: 50%; width: 4px; height: 11px; margin-top: -5.5px; border: 1px solid var(--accent); }
.topbar nav a.active::before { left: 3px; border-right: 0; }
.topbar nav a.active::after { right: 3px; border-left: 0; }

.cta {
  background: var(--accent); color: #fff !important; padding: 8px 17px !important;
  border-radius: 8px; font-weight: 700 !important; font-size: 13px;
  box-shadow: 0 4px 20px var(--accent-dim);
  transition: transform .18s var(--ease), box-shadow .25s, background .18s;
}
.cta:hover { background: var(--accent-soft); transform: translateY(-1px); box-shadow: 0 8px 30px var(--accent-glow); }
.cta::before, .cta::after { display: none !important; }

.nav-signin {
  border: 1px solid var(--line-3); color: var(--text) !important;
  padding: 7px 16px !important; border-radius: 8px; font-weight: 650 !important;
  transition: background .18s, border-color .18s;
}
.nav-signin:hover { background: rgba(0, 125, 255, .14); border-color: var(--accent); }
.nav-signin::before, .nav-signin::after { display: none !important; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0, 125, 255, .08); padding: 5px 12px 5px 6px; border-radius: 8px;
  color: var(--text) !important; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600;
  transition: border-color .18s, background .18s;
}
.pill:hover { border-color: var(--line-3); background: rgba(0, 125, 255, .16); }
.mini-pfp { width: 23px; height: 23px; border-radius: 50%; object-fit: cover; }
.avatar-dot {
  width: 23px; height: 23px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--accent-soft), var(--accent-deep)); color: #fff; font-size: 11px; font-weight: 800;
}
.star { color: var(--accent-bright); }
.inline { display: inline; margin: 0; }

.maintenance {
  width: min(1180px, calc(100% - 32px)); margin: 14px auto 0;
  background: rgba(0, 125, 255, .1); color: var(--text);
  padding: 12px 20px; text-align: center; font-weight: 600; font-size: 14px;
  border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: var(--radius);
}
.maintenance a { color: var(--accent-bright); }

/* ── flashes ──────────────────────────────────────────── */
.flashes { max-width: 1000px; margin: 20px auto 0; padding: 0 20px; }
.flash {
  padding: 13px 17px; border-radius: 12px; margin-bottom: 10px; font-size: 14px;
  border: 1px solid var(--line-2); background: var(--bg-soft);
  animation: flashIn .4s var(--ease);
}
@keyframes flashIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.flash-error { border-color: rgba(255, 107, 122, .45); background: rgba(255, 107, 122, .09); color: #ffb9be; }
.flash-success { border-color: rgba(63, 214, 154, .45); background: rgba(63, 214, 154, .08); color: #a6ecc6; }
.flash-token { border-color: var(--line-3); background: rgba(0, 125, 255, .1); font-family: var(--mono); word-break: break-all; font-size: 13px; }

main { max-width: 1120px; margin: 0 auto; padding: 24px 20px 90px; }

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(63, 214, 154, .55); }
  70% { box-shadow: 0 0 0 7px rgba(63, 214, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 214, 154, 0); }
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* ── hero ─────────────────────────────────────────────── */
.hero {
  margin: 28px 0 0;
  padding: 52px 32px 44px;
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(0, 125, 255, .17), transparent 70%),
    rgba(0, 125, 255, .03);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.hero-emblem {
  width: 76px; height: 76px; object-fit: contain; display: block; margin: 0 auto 20px;
  filter: drop-shadow(0 6px 26px var(--accent-glow));
}
.kicker {
  font-family: var(--mono); font-size: 12px; color: var(--accent-soft);
  letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(30px, 4vw, 46px); line-height: 1.06; margin: 0 auto 18px;
  font-weight: 800; letter-spacing: -.035em; color: #fff; max-width: 18ch;
  text-shadow: 0 0 34px rgba(0, 125, 255, .4);
}
.hero h1 .outline {
  color: transparent; -webkit-text-stroke: 1.2px var(--accent-soft);
  text-shadow: none;
}
/* The name, in the blue, as the whole headline. */
.hero h1.wordmark {
  font-size: clamp(46px, 9vw, 104px); line-height: 1; max-width: none;
  letter-spacing: -.045em; color: var(--accent-soft);
  text-shadow: 0 0 18px rgba(0, 125, 255, .65), 0 0 56px rgba(0, 125, 255, .45);
}
.hero p.lede {
  color: var(--dim); font-size: 15.5px; margin: 0 auto 28px; max-width: 520px;
}
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.readout {
  display: flex; justify-content: center; gap: 0; flex-wrap: wrap;
  margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 12.5px;
}
.readout span { color: var(--muted); padding: 0 20px; border-left: 1px solid var(--line); }
.readout span:first-child { border-left: none; }
.readout b { color: var(--text); font-weight: 600; text-shadow: 0 0 16px var(--accent-glow); }

/* ── price ────────────────────────────────────────────── */
.price-panel {
  margin-top: 90px; text-align: center; padding: 58px 28px; position: relative; overflow: hidden;
  border: 1px solid rgba(0, 125, 255, .3); border-radius: 20px;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(0, 125, 255, .16), transparent 70%),
    #080d16;
}
.price-panel::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.price {
  margin: 0; line-height: 1; font-weight: 800; letter-spacing: -.04em;
  font-size: clamp(44px, 7.5vw, 80px); color: var(--accent-soft);
  text-shadow: 0 0 20px rgba(0, 125, 255, .6), 0 0 60px rgba(0, 125, 255, .4);
}
.price small { font-size: .46em; font-weight: 750; letter-spacing: -.02em; }
.price-note { margin: 18px 0 0; color: var(--dim); font-size: 15.5px; }
.price-panel { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 72px); flex-wrap: wrap; }
.price-figure, .price-contact { position: relative; }
.price-contact { text-align: center; }
.price-contact-label { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.price-contact .btn { font-family: var(--mono); font-size: 13.5px; letter-spacing: -.01em; }
@media (max-width: 700px) {
  .price-panel { gap: 32px; }
  .price-contact .btn { white-space: normal; }
}

/* ── product window ───────────────────────────────────── */
.window {
  border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden;
  background: #060b14; box-shadow: var(--shadow);
  transition: border-color .4s, transform .5s var(--ease);
}
.window:hover { border-color: var(--line-3); transform: translateY(-3px); }
.window-bar {
  display: flex; align-items: center; gap: 14px; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: rgba(0, 125, 255, .04);
}
.window-bar .tab {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  padding: 12px 14px; border-bottom: 1px solid transparent; margin-bottom: -1px;
}
.window-bar .tab.on { color: var(--text); border-bottom-color: var(--accent); }
.window-bar .grow { flex: 1; }
.window-bar .hint { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.window-body { display: grid; grid-template-columns: 190px 1fr; min-height: 320px; }
.window-body.single { grid-template-columns: 1fr; min-height: 0; }
.mock-files { border-right: 1px solid var(--line); padding: 14px 0; background: rgba(0, 125, 255, .022); }
.mock-files div {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  padding: 6px 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-left: 2px solid transparent;
}
.mock-files div.on { color: var(--text); background: rgba(0, 125, 255, .09); border-left-color: var(--accent); }
.mock-code {
  padding: 16px 20px; font-family: var(--mono); font-size: 12.5px; line-height: 1.75;
  overflow-x: auto; counter-reset: ln;
}
.mock-code .ln { display: block; white-space: pre; color: #d6e4f7; }
.mock-code .ln::before {
  counter-increment: ln; content: counter(ln);
  display: inline-block; width: 2.2em; margin-right: 18px; text-align: right; color: var(--faint);
}
.window-status {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 9px 16px; border-top: 1px solid var(--line); background: rgba(0, 125, 255, .04);
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
}
.window-status .saved { color: var(--accent-soft); }

/* verdict colours inside the example feed */
.tok-ok { color: var(--good); }
.tok-warn { color: var(--warn); }
.tok-bad { color: var(--bad); }

/* ── rail ─────────────────────────────────────────────── */
.rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rail > div { padding: 28px 26px; border-left: 1px solid var(--line); transition: background .25s; }
.rail > div:first-child { border-left: none; }
.rail > div:hover { background: rgba(0, 125, 255, .05); }
.rail .step {
  font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .12em; margin-bottom: 14px; display: block;
  transition: color .25s;
}
.rail > div:hover .step { color: var(--accent-soft); }
.rail h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 780; color: #fff;
  letter-spacing: -.015em; text-shadow: 0 0 20px rgba(0, 125, 255, .3); }
.rail p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ── stats band ───────────────────────────────────────── */
.band {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 26px 0 90px; background: rgba(0, 125, 255, .022);
}
.band > div { padding: 34px 22px; text-align: center; border-left: 1px solid var(--line); transition: background .25s; }
.band > div:first-child { border-left: none; }
.band > div:hover { background: rgba(0, 125, 255, .055); }
.band .n { font-size: 40px; font-weight: 800; letter-spacing: -.045em; color: #fff; line-height: 1.1;
  text-shadow: 0 0 26px var(--accent-glow); }
.band .l { color: var(--muted); font-size: 12.5px; margin-top: 5px; font-weight: 500; }

/* ── sections / cards ─────────────────────────────────── */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 32px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 12px; font-weight: 800; color: #fff;
  text-shadow: 0 0 26px rgba(0, 125, 255, .3); }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }
.section-title { font-size: 21px; margin: 52px 0 18px; font-weight: 700; color: var(--text); letter-spacing: -.03em; }

.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
  transition: border-color .28s, background .28s, transform .28s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 125, 255, .14), transparent 62%);
  transition: opacity .35s;
  z-index: 0;
}
/* Everything written in a card sits above that glow. */
.card > * { position: relative; z-index: 1; }
.grid .card:hover { transform: translateY(-3px); border-color: var(--line-3); background: var(--panel-2); }
.grid .card:hover::after { opacity: 1; }
.card h3 { margin: 0 0 10px; font-size: 16.5px; font-weight: 780; color: #fff;
  letter-spacing: -.015em; text-shadow: 0 0 20px rgba(0, 125, 255, .3); }
.card p { color: var(--muted); margin: 0; font-size: 14px; }
.card p strong, .rail p strong { color: var(--text); font-weight: 680; }
.card .icon {
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: 15px;
  display: grid; place-items: center; font-size: 18px;
  background: rgba(0, 125, 255, .1); border: 1px solid var(--line);
  transition: transform .35s var(--ease), background .3s;
}
.grid .card:hover .icon { transform: translateY(-2px) scale(1.06); background: rgba(0, 125, 255, .2); }

/* ── buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  padding: 12px 24px; border-radius: 10px; font-weight: 680; cursor: pointer;
  font-size: 14.5px; font-family: inherit; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .25s, background .2s, opacity .2s;
  box-shadow: 0 4px 18px var(--accent-dim);
}
.btn:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 32px var(--accent-glow); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: wait; transform: none; box-shadow: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn.secondary {
  background: var(--panel-2); color: var(--text); border-color: var(--line-2); box-shadow: none;
}
.btn.secondary:hover { background: var(--panel-3); border-color: var(--line-3); color: #fff; box-shadow: none; }
.btn.danger { background: #26151b; border-color: rgba(255, 107, 122, .4); color: #ff9ba1; box-shadow: none; }
.btn.danger:hover { background: #351a22; border-color: rgba(255, 107, 122, .6); color: #ffb9be; box-shadow: none; }
.btn.sm { padding: 7px 15px; font-size: 12.5px; }

.ghost {
  background: transparent; border: 1px solid var(--line-2); color: var(--dim);
  padding: 7px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px;
  font-family: inherit; transition: all .18s;
}
.ghost:hover { color: #fff; border-color: var(--line-3); background: rgba(0, 125, 255, .12); }
.danger { color: #ff9ba1; }

/* ── forms ────────────────────────────────────────────── */
form.stack { display: flex; flex-direction: column; gap: 15px; max-width: 430px; }
label { font-size: 12.5px; color: var(--muted); font-weight: 600; display: block; margin-bottom: 7px; }
input[type=text], input[type=password], input[type=email], input[type=file],
input[type=datetime-local], textarea, select {
  width: 100%; background: rgba(10, 20, 36, .7); border: 1px solid var(--line-2); color: var(--text);
  padding: 12px 15px; border-radius: 11px; font-size: 14.5px; font-family: inherit;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent); background: rgba(10, 24, 46, .9);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
input[type=file] { padding: 10px 13px; font-size: 13px; color: var(--dim); }
input[type=file]::file-selector-button {
  background: rgba(0, 125, 255, .16); border: 1px solid var(--line-2); color: var(--text);
  padding: 6px 13px; border-radius: 8px; margin-right: 12px; cursor: pointer; font-family: inherit; font-size: 12.5px;
}
input[type=file]::file-selector-button:hover { background: rgba(0, 125, 255, .26); }
input[type=checkbox] { accent-color: var(--accent); width: auto; }
summary { cursor: pointer; }

.auth-wrap { max-width: 430px; margin: 60px auto; }
.auth-wrap .card { padding: 34px; }
.auth-wrap h1 { margin: 0 0 6px; font-size: 27px; font-weight: 750; }
.auth-logo { width: 54px; height: 54px; object-fit: contain; display: block; margin: 0 auto 18px;
  filter: drop-shadow(0 4px 20px var(--accent-glow)); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ── tables ───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
tbody tr { transition: background .16s; }
tbody tr:hover { background: rgba(0, 125, 255, .055); }
tbody tr:last-child td { border-bottom: none; }
th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }

/* ── status tags ──────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; border: 1px solid var(--line-2);
  background: rgba(0, 125, 255, .07); color: var(--dim); white-space: nowrap;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.tag.running { color: var(--good); border-color: rgba(63, 214, 154, .32); background: rgba(63, 214, 154, .1); }
.tag.running::before { animation: ping 2s ease-out infinite; }
.tag.deploying { color: var(--accent-soft); border-color: var(--line-3); }
.tag.deploying::before { border-radius: 0; width: 7px; height: 7px; background: transparent; border: 1.5px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tag.stopped { color: var(--muted); }
.tag.error { color: var(--bad); border-color: rgba(255, 107, 122, .32); background: rgba(255, 107, 122, .1); }
.tag.owner { color: #fff; border-color: var(--accent); background: rgba(0, 125, 255, .22); }
.tag.admin { color: var(--accent-soft); }
.tag.user { color: var(--muted); }
.tag.premium { color: #fff; background: var(--accent); border-color: var(--accent); }
.tag.premium::before { background: #fff; }

/* ── stack badges ─────────────────────────────────────── */
.stack-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--dim);
  transition: transform .2s var(--ease), border-color .2s, background .2s, color .2s;
}
.stack-badge:hover { transform: translateY(-2px); border-color: var(--line-3); background: var(--panel-3); color: #fff; }
.stack-badge em { font-style: normal; color: var(--faint); font-size: 11px; font-family: var(--mono); }
.stack-badge.lang.primary { color: #fff; border-color: var(--line-3); background: var(--panel-3); }
.stack-badge.mini { padding: 3px 10px; font-size: 11.5px; }

/* ── stats (dashboard) ────────────────────────────────── */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.stat:hover { border-color: var(--line-3); background: var(--panel-2); transform: translateY(-2px); }
.stat .n { font-size: 31px; font-weight: 800; letter-spacing: -.04em; color: #fff; line-height: 1.15;
  text-shadow: 0 0 24px var(--accent-glow); }
.stat .l { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; margin-top: 4px; font-weight: 600; }

.progress { height: 5px; background: rgba(0, 125, 255, .12); border-radius: 999px; overflow: hidden; margin-top: 13px; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-deep), var(--accent-soft)); border-radius: 999px; transition: width .8s var(--ease); }

.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { margin: 0 0 8px; font-size: 15.5px; font-weight: 650; color: var(--text); }
.faq-item p { color: var(--muted); margin: 0; font-size: 14px; }
.faq-item ul { color: var(--muted); margin: 10px 0 0; padding-left: 20px; font-size: 14px; }
.faq-item li { margin-bottom: 7px; }
.faq-item strong { color: var(--text); }

footer {
  border-top: 1px solid var(--line); padding: 34px 20px; display: flex; justify-content: space-between;
  color: var(--faint); font-size: 12.5px; flex-wrap: wrap; gap: 12px; max-width: 1180px; margin: 0 auto;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--accent-bright); }

/* ══════════════════════════════════════════════════════
   CODE EDITOR — one continuous surface, grows with code
   ══════════════════════════════════════════════════════ */
#editor-card { padding: 0; overflow: visible; }

.editor-top {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  background: rgba(0, 125, 255, .045); border-radius: var(--radius) var(--radius) 0 0;
}
.editor-file {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; color: var(--text); min-width: 0;
}
.editor-file .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor-lang {
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 7px; flex: none;
}
.editor-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; display: none; }
.editor-dot.on { display: block; }
.editor-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.editor-actions label { margin: 0; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 12.5px; }

.editor-frame {
  display: flex; align-items: stretch;
  background: #060b14; font-family: var(--mono); font-size: 13.5px; line-height: 1.62;
  border-top: none; overflow: hidden;
}
.editor-gutter {
  padding: 18px 12px 18px 18px; text-align: right; color: var(--faint); user-select: none;
  white-space: pre; background: rgba(0, 125, 255, .03); border-right: 1px solid var(--line);
  font-family: inherit; font-size: inherit; line-height: inherit; flex: none; min-width: 56px;
}
.editor-scroller { position: relative; flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; }
.editor-hl, .editor-input {
  margin: 0; padding: 18px 20px; font-family: inherit; font-size: inherit; line-height: inherit;
  white-space: pre; tab-size: 4; border: 0; min-height: 100%;
}
.editor-hl { display: block; color: #dce8f8; min-width: max-content; pointer-events: none; }
.editor-hl code { display: block; background: none; border: 0; padding: 0; font: inherit; color: inherit; }
.editor-input {
  position: absolute; inset: 0; width: 100%; height: 100%; resize: none; outline: none;
  background: transparent; color: transparent; caret-color: var(--accent-soft); overflow: hidden; display: block;
}
.editor-input::selection { background: rgba(0, 125, 255, .3); }
.editor-frame:focus-within .editor-gutter { color: var(--muted); }

.editor-status {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 9px 16px; border-top: 1px solid var(--line); background: rgba(0, 125, 255, .045);
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  border-radius: 0 0 var(--radius) var(--radius);
}
.editor-status .ok { color: var(--good); }
.editor-status .err { color: var(--bad); }

#editor-card.fullscreen {
  position: fixed; inset: 0; z-index: 200; border-radius: 0; margin: 0;
  display: flex; flex-direction: column; background: #060b14;
}
#editor-card.fullscreen .editor-top, #editor-card.fullscreen .editor-status { border-radius: 0; }
/* the editor mounts inside #code-editor, so that wrapper is the flex child that
   has to scroll. min-height:0 is required or it grows to the full content height
   and the end of a long file becomes unreachable. */
#editor-card.fullscreen #code-editor { flex: 1; min-height: 0; overflow-y: auto; }
#editor-card.fullscreen .editor-frame { min-height: 100%; }
body.editor-open { overflow: hidden; }

/* syntax highlighting, in the one hue */
.tok-comment { color: #4e6b8c; font-style: italic; }
.tok-string { color: #8fd0ff; }
.tok-number { color: #c5b4ff; }
.tok-keyword { color: #4ea6ff; font-weight: 700; }

/* ── file list ────────────────────────────────────────── */
.file-row td:first-child { font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.file-row:hover td:first-child { color: var(--accent-bright); }

/* ── scroll reveal ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  /* iteration-count is the important half: a near-zero duration on an `infinite`
     animation doesn't stop it, it restarts it thousands of times a second. */
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 940px) {
  .hero { padding: 44px 20px 36px; }
  .band { grid-template-columns: repeat(2, 1fr); }
  .band > div:nth-child(3) { border-left: none; }
  .band > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rail { grid-template-columns: 1fr; }
  .rail > div { border-left: none; border-top: 1px solid var(--line); }
  .rail > div:first-child { border-top: none; }
  .window-body { grid-template-columns: 1fr; }
  .mock-files { display: flex; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); padding: 0; }
  .mock-files div { border-left: none; border-bottom: 2px solid transparent; padding: 10px 14px; }
  .mock-files div.on { border-left-color: transparent; border-bottom-color: var(--accent); }
}
@media (max-width: 720px) {
  .topbar { padding: 10px 15px; }
  .topbar nav { gap: 0; }
  .topbar nav a { padding: 6px 9px; font-size: 12px; }
  main { padding: 28px 15px 80px; }
  .hero h1 { font-size: 34px; max-width: none; }
  .hero-emblem { width: 62px; height: 62px; }
  .readout span { padding: 0 12px; font-size: 11.5px; }
  .band, .band > div { border-left: none; border-top: 1px solid var(--line); }
  .band > div:first-child { border-top: none; }
  .editor-gutter { min-width: 42px; padding-left: 12px; }
  .mock-code { font-size: 11.5px; }
}
