/* SSHHub launching-soon page. One light look: white and soft blue, with calm navy terminals. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f4f8fe;
  --panel: #ffffff;
  --panel-2: #eef4fc;
  --line: rgba(28, 62, 122, 0.11);
  --line-strong: rgba(28, 62, 122, 0.2);
  --ink: #14264a;
  --muted: #566783;
  --dim: #8696b0;
  --brand: #3b7de9;
  --brand-deep: #2a63c7;
  --brand-ink: #ffffff;
  --brand-soft: rgba(59, 125, 233, 0.09);
  --brand-edge: rgba(59, 125, 233, 0.32);
  --sky: #7fb6f5;
  --ok: #2fa67c;
  --amber: #c98a14;
  --amber-soft: rgba(201, 138, 20, 0.1);
  --red: #e2726d;
  --term-bg: #1b2a47;
  --term-panel: #22335a;
  --term-line: rgba(255, 255, 255, 0.1);
  --term-ink: #dbe6f7;
  --term-dim: #8fa3c4;
  --term-accent: #8fc0ff;
  --term-ok: #7fdcb6;
  --sans: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1140px;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(28, 62, 122, 0.05), 0 12px 32px -16px rgba(28, 62, 122, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 10% -10%, rgba(127, 182, 245, 0.35), transparent 70%),
    radial-gradient(700px 420px at 95% 0%, rgba(190, 215, 250, 0.45), transparent 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { text-wrap: balance; line-height: 1.1; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 700; }
h1 em { font-style: normal; color: var(--brand); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 650; }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 58ch; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; z-index: 10; }
.skip:focus { left: 16px; }

.nav, main, .foot { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* nav */
.nav { display: flex; align-items: center; gap: 28px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.nav nav { display: flex; gap: 24px; margin-left: auto; color: var(--muted); font-size: 0.95rem; }
.nav nav a:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; font-size: 1rem; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent; background: var(--brand); color: var(--brand-ink); cursor: pointer; box-shadow: 0 8px 20px -10px rgba(59, 125, 233, 0.7); transition: transform 0.15s, background 0.15s, border-color 0.15s; }
.btn:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.btn-ghost { background: var(--panel); color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--panel-2); border-color: var(--brand-edge); }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }

.pill { display: inline-flex; align-items: center; gap: 9px; align-self: flex-start; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-deep); background: var(--brand-soft); border: 1px solid var(--brand-edge); padding: 6px 14px; border-radius: 999px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(59, 125, 233, 0.5); } 100% { box-shadow: 0 0 0 10px rgba(59, 125, 233, 0); } }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.dot-amber { background: var(--amber); }
.dot-blue { background: var(--sky); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-block: 48px 72px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 0.93rem; }
.meta li { display: flex; align-items: center; gap: 8px; }

.window { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 70px -36px rgba(28, 62, 122, 0.45), 0 0 0 6px rgba(255, 255, 255, 0.6); }
.titlebar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); position: relative; background: var(--panel-2); }
.titlebar i { width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.titlebar i:nth-child(2) { background: #e8b65a; }
.titlebar i:nth-child(3) { background: #6cc59f; }
.titlebar span { position: absolute; left: 0; right: 0; text-align: center; font-size: 0.8rem; color: var(--dim); pointer-events: none; }
.app { display: grid; grid-template-columns: 132px minmax(0, 1fr); min-height: 330px; }
.side { border-right: 1px solid var(--line); padding: 12px 8px; display: flex; flex-direction: column; gap: 2px; background: var(--panel); }
.side-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: 0.86rem; }
.side-item.is-on { background: var(--brand-soft); color: var(--brand-deep); }
.side-item svg, .vault svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pane { display: flex; flex-direction: column; min-width: 0; background: var(--term-bg); }
.tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--line); overflow: hidden; background: var(--panel-2); }
.tab { display: flex; align-items: center; gap: 7px; padding: 7px 14px; font-family: var(--mono); font-size: 0.78rem; color: var(--dim); border-radius: 8px 8px 0 0; white-space: nowrap; }
.tab.is-on { background: var(--term-bg); color: var(--term-ink); }
.term { flex: 1; margin: 0; padding: 16px 18px; background: var(--term-bg); font-family: var(--mono); font-size: 0.82rem; line-height: 1.75; color: var(--term-ink); white-space: pre-wrap; overflow: hidden; min-height: 236px; }
.p, .b { color: var(--term-accent); } .g { color: var(--term-ok); } .d { color: var(--term-dim); }
.caret { display: inline-block; width: 8px; height: 1.05em; vertical-align: text-bottom; background: var(--term-ink); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.statusbar { display: flex; gap: 18px; padding: 7px 14px; border-top: 1px solid var(--term-line); font-family: var(--mono); font-size: 0.7rem; color: var(--term-dim); background: var(--term-bg); }
.statusbar span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.statusbar span:last-child { margin-left: auto; }
.statusbar .dot { background: var(--term-ok); }

/* strip */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.strip div { padding: 22px 26px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.strip div:first-child { border-left: 0; }
.strip b { font-size: 1.02rem; }
.strip span { color: var(--muted); font-size: 0.93rem; }

/* blocks */
.block { padding-block: 96px 0; display: flex; flex-direction: column; gap: 40px; }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-deep); display: flex; align-items: center; gap: 12px; }
.badge { font-size: 0.68rem; letter-spacing: 0.08em; color: var(--amber); border: 1px solid rgba(201, 138, 20, 0.4); background: var(--amber-soft); padding: 2px 9px; border-radius: 999px; }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; box-shadow: var(--shadow); transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: var(--brand-edge); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: 0.95rem; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.art { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-height: 172px; font-family: var(--mono); font-size: 0.76rem; color: var(--ink); margin-bottom: 6px; overflow: hidden; }

.art-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; }
.mini-col { display: grid; gap: 8px; min-width: 0; }
.mini-term { border-radius: 8px; padding: 10px 12px; line-height: 1.7; background: var(--term-bg); color: var(--term-ink); min-width: 0; overflow: hidden; white-space: nowrap; }

.art-files { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: start; }
.files { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.files-h { color: var(--dim); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f.is-sel { background: var(--brand-soft); color: var(--brand-deep); }
.ic-dir, .ic-file { width: 12px; height: 10px; border-radius: 2px; flex: none; background: var(--sky); }
.ic-file { width: 9px; height: 12px; background: var(--dim); }
.files-arrow, .keys-arrow { color: var(--brand); font-size: 1.2rem; align-self: center; }
.xfer { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; color: var(--muted); }
.xfer span { white-space: nowrap; }
.bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(28, 62, 122, 0.1); overflow: hidden; min-width: 40px; }
.bar-fill { height: 100%; width: 72%; background: var(--brand); border-radius: 3px; animation: fill 5s ease-in-out infinite; }
@keyframes fill { 0% { width: 4%; } 80%, 100% { width: 100%; } }

.art-list { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.row b { font-weight: 500; color: var(--ink); }
.row span:last-child { margin-left: auto; color: var(--muted); white-space: nowrap; }
.row .tagline { margin: 0 auto; color: var(--amber); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }

.art-mon { display: flex; flex-direction: column; gap: 12px; }
.spark { width: 100%; height: 70px; display: block; }
.spark-line { fill: none; stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark-area { fill: rgba(59, 125, 233, 0.13); stroke: none; }
.meters { display: flex; flex-direction: column; gap: 7px; }
.meter { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 8px; color: var(--muted); }
.meter b { font-weight: 500; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.bar-m { height: 100%; width: 34%; background: var(--brand); border-radius: 3px; transition: width 0.8s ease; }
.bar-m-mem { width: 61%; background: var(--sky); }
.bar-m-disk { width: 39%; background: var(--ok); }

.art-keys { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.chips { display: flex; flex-direction: column; gap: 8px; }
.chip { border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 14px; background: var(--panel); }
.vault { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; border: 1px solid var(--brand-edge); background: var(--panel); color: var(--brand-deep); border-radius: 12px; padding: 20px 18px; max-width: 170px; }
.vault svg { width: 30px; height: 30px; }

.art-snip { display: flex; flex-direction: column; gap: 8px; }
.snip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--panel); min-width: 0; }
.snip code { font: inherit; overflow-wrap: anywhere; min-width: 0; flex: 1 1 14ch; }
.run { margin-left: auto; flex: none; color: var(--brand-ink); background: var(--brand); border-radius: 6px; padding: 3px 10px; font-family: var(--sans); font-weight: 600; font-size: 0.74rem; }
.note { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--brand-edge); padding-left: 12px; color: var(--muted); font-family: var(--sans); font-size: 0.82rem; }
.note b { color: var(--ink); font-family: var(--mono); font-weight: 500; }

/* teams */
.teams-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.diagram { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; overflow-x: auto; box-shadow: var(--shadow); }
.diagram svg { display: block; width: 100%; max-width: 860px; min-width: 560px; height: auto; margin-inline: auto; }
.diagram svg.diagram-narrow { display: none; min-width: 0; max-width: 380px; }
.svg-box { fill: var(--panel-2); stroke: var(--line-strong); stroke-width: 1.2; }
.svg-box-on { fill: rgba(59, 125, 233, 0.1); stroke: var(--brand); stroke-width: 1.6; }
.svg-box-dash { fill: none; stroke-dasharray: 5 5; }
.svg-line { fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-dasharray: 4 5; }
.svg-brand-fill { fill: var(--brand); }
.svg-icon { fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linejoin: round; }
.svg-name { fill: var(--ink); font-family: var(--sans); font-weight: 600; font-size: 15px; }
.svg-body { fill: var(--muted); font-family: var(--sans); font-size: 12.5px; }
.svg-ink { fill: var(--ink); }
.svg-step { fill: var(--brand-deep); font-family: var(--mono); font-size: 11.5px; }
.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.ticks b { color: var(--ink); font-weight: 600; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fact { border-top: 2px solid var(--brand-edge); padding-top: 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.num { font-size: 3.2rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--brand); font-variant-numeric: tabular-nums; }
.num small { font-size: 1rem; letter-spacing: 0; margin-left: 4px; color: var(--muted); font-weight: 500; }
.fact p { color: var(--muted); font-size: 0.93rem; }

/* final: the launch list */
.final { margin-block: 96px 64px; padding: 56px 32px; border: 1px solid var(--brand-edge); border-radius: 24px; background: radial-gradient(640px 320px at 50% 0%, rgba(127, 182, 245, 0.35), transparent 70%), var(--panel); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.final .pill { align-self: center; }
.perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.perks li { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 16px; font-size: 0.92rem; color: var(--ink); }
.perks b { color: var(--brand-deep); }
.signup { width: 100%; max-width: 680px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; text-align: left; margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.field label span { color: var(--brand); }
.field label small { font-weight: 400; color: var(--dim); font-size: 0.82rem; }
.field input { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; width: 100%; transition: border-color 0.15s, box-shadow 0.15s; }
.field input::placeholder { color: var(--dim); }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(59, 125, 233, 0.16); }
.field input.is-bad { border-color: var(--red); box-shadow: 0 0 0 4px rgba(226, 114, 109, 0.15); }
.ts { grid-column: 1 / -1; display: flex; justify-content: center; min-height: 65px; min-width: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { color: var(--muted); font-size: 0.9rem; min-height: 1.5em; }
.fine.is-ok { color: var(--ok); font-weight: 600; }
.fine.is-err { color: #c2504b; font-weight: 600; }
.small { color: var(--dim); font-size: 0.84rem; max-width: 60ch; }

.foot { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; padding-block: 28px 40px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.88rem; }

/* entrance: content is visible without script; script only adds the motion */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 24px 56px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .span-2, .span-3 { grid-column: span 3; }
  .bento .card:last-child { grid-column: 1 / -1; }
  .art-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .nav nav { display: none; }
  .nav .btn-small { margin-left: auto; }
  .nav, main, .foot { padding-inline: 18px; }
  .strip { grid-template-columns: 1fr; }
  .ticks { grid-template-columns: 1fr; }
  .diagram svg.diagram-wide { display: none; }
  .diagram svg.diagram-narrow { display: block; }
  .diagram { padding: 14px; }
  .strip div { border-left: 0; border-top: 1px solid var(--line); }
  .strip div:first-child { border-top: 0; }
  .span-2, .span-3 { grid-column: 1 / -1; }
  .block { padding-top: 72px; }
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .term { font-size: 0.72rem; padding: 14px; }
  .statusbar span:nth-child(2) { display: none; }
  .final { padding: 44px 20px; margin-block: 72px 48px; }
  .signup { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .art-files { grid-template-columns: minmax(0, 1fr); }
  .files-arrow { justify-self: center; transform: rotate(90deg); }
  .final { padding-inline: 14px; }
  .nav, main, .foot { padding-inline: 14px; }
  .perks li { font-size: 0.86rem; padding: 5px 12px; }
  .facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse, .caret, .bar-fill { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .bar-m { transition: none; }
}
