/* The server's own pages: the landing page, sign-in, terminal sign-in, allowing an MCP client.
   The same dark palette as the web app (app.css); every colour is a token. */

:root {
  color-scheme: dark;
  --page: #0d1117;
  --bar: #010409;
  --surface: #151b23;
  --surface-2: #212830;
  --hover: #262c36;
  --line: #3d444d;
  --line-soft: #2a313c;
  --text: #f0f6fc;
  --muted: #9198a1;
  --link: #4493f8;
  --focus: #1f6feb;
  --primary: #238636;
  --primary-hover: #29903b;
  --primary-line: #2ea043;
  --danger: #f85149;
  --avatar: #1b7c83;
  --cyan: #22d3ee;
  --indigo: #6366f1;
  --violet: #ab7df8;
  --radius: 6px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); font: 14px/1.5 var(--font); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 13px var(--mono); background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }

.button { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; padding: 8px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; }
.button:hover { background: var(--hover); text-decoration: none; }
.button.primary { background: var(--primary); border-color: var(--primary-line); color: #fff; }
.button.primary:hover { background: var(--primary-hover); }
.button.large { padding: 12px 24px; font-size: 16px; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------------------------------------------------------------- the top bar */
.site-bar { display: flex; align-items: center; gap: 24px; padding: 16px 32px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.site-bar nav { display: flex; gap: 20px; flex: 1; }
.site-bar nav a { color: var(--muted); font-weight: 500; }
.site-bar nav a:hover { color: var(--text); text-decoration: none; }

/* ---------------------------------------------------------------- the landing page */
.hero { position: relative; overflow: hidden; padding: 72px 32px 96px; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 720px; pointer-events: none;
  background: radial-gradient(closest-side, #6366f155, transparent 70%) 70% 30% / 60% 100% no-repeat,
              radial-gradient(closest-side, #22d3ee33, transparent 70%) 20% 60% / 50% 90% no-repeat; }
.hero-inner { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 20px; padding: 4px 14px; font-size: 13px; margin-bottom: 24px; }
.eyebrow b { color: var(--cyan); font-weight: 600; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.08; letter-spacing: -1.5px; margin: 0 0 20px; }
.gradient { background: linear-gradient(90deg, var(--cyan), var(--indigo) 55%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; margin-bottom: 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.scene { position: relative; min-height: 380px; }
.scene svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 18px #22d3ee40); }
.float { position: absolute; display: flex; gap: 10px; align-items: center; background: #151b23e6; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13px; box-shadow: 0 12px 32px #01040999; backdrop-filter: blur(6px); }
.float .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.float small { display: block; color: var(--muted); font-size: 12px; }
.float.one { top: 4%; left: -4%; } .float.one .dot { background: var(--cyan); }
.float.two { top: 42%; right: -2%; } .float.two .dot { background: var(--primary-line); }
.float.three { bottom: -2%; right: 6%; } .float.three .dot { background: var(--violet); }

.section { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 72px 0; }
.section h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.8px; margin: 0 0 12px; }
.section > p { color: var(--muted); font-size: 17px; max-width: 680px; margin-bottom: 40px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; padding: 24px; }
.feature:hover { border-color: var(--line); }
.feature svg { width: 28px; height: 28px; fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.feature:nth-child(2) svg { stroke: var(--primary-line); }
.feature:nth-child(3) svg { stroke: var(--violet); }
.feature:nth-child(4) svg { stroke: #f0883e; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { color: var(--muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; counter-reset: step; }
.step { border-top: 2px solid var(--line); padding-top: 18px; }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--cyan); font-weight: 700; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { color: var(--muted); margin: 0; }

.closing { text-align: center; }
.closing h2 { margin-bottom: 20px; }
.closing .cta { justify-content: center; }
.site-foot { border-top: 1px solid var(--line-soft); color: var(--muted); padding: 24px 32px; display: flex; gap: 12px; align-items: center; justify-content: center; font-size: 13px; }
.site-foot img { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .scene { min-height: 0; }
  .float { position: static; margin-top: 8px; }
  .site-bar nav { display: none; }
}

/* ---------------------------------------------------------------- sign-in and confirmation pages */
.auth { min-height: 100vh; display: grid; place-items: start center; padding: 56px 16px; background: radial-gradient(closest-side, #6366f122, transparent) 50% 0 / 900px 500px no-repeat, var(--page); }
.auth-box { width: min(420px, 100%); text-align: center; }
.auth-logo img { width: 52px; height: 52px; }
.auth h1 { font-size: 24px; font-weight: 400; letter-spacing: -0.4px; margin: 16px 0 20px; }
.auth .card { text-align: left; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px; padding: 20px; }
.auth .card p { color: var(--muted); }
.auth-foot { color: var(--muted); font-size: 13px; margin-top: 16px; border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px; }
.who-am-i { color: var(--muted); font-size: 13px; margin-top: 16px; }

.users { display: grid; gap: 8px; }
.user { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--text); background: var(--page); border: 1px solid var(--line-soft); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.user:hover { border-color: var(--line); background: var(--surface-2); }
.user .avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--avatar); color: #fff; font-size: 13px; font-weight: 600; flex: none; }
.user .who { flex: 1; display: grid; }
.user small { color: var(--muted); font-size: 12px; }
.user .go { color: var(--muted); }
.user:hover .go { color: var(--text); }

label.password { display: grid; gap: 6px; font-weight: 600; margin-bottom: 12px; }
label.field { display: grid; gap: 6px; font-weight: 600; margin-bottom: 12px; }
.button.wide { width: 100%; justify-content: center; }
.auth .card + .card { margin-top: 12px; }
.auth .hint { font-size: 13px; margin: 10px 0 0; }
input { font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--page); color: var(--text); width: 100%; }
input.code { font: 20px/1.4 var(--mono); letter-spacing: 4px; text-align: center; text-transform: uppercase; }
.form-row { display: grid; gap: 10px; }
.buttons { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.message { margin-top: 12px; color: var(--text); }
.message.failed { color: var(--danger); }
