:root {
  color-scheme: dark;
  --bg: #0e1316;
  --panel: #151c20;
  --line: #243037;
  --text: #e7eef1;
  --muted: #93a4ac;
  --accent: #35bdb1;
  --warn: #e0a33e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(53, 189, 177, 0.16), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.page {
  width: min(760px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
}

.wordmark .dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(53, 189, 177, 0.15);
}

.wordmark .web {
  color: var(--muted);
  font-weight: 500;
}

.badge {
  border: 1px solid var(--line);
  background: rgba(224, 163, 62, 0.1);
  color: var(--warn);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.intro {
  margin: 3.5rem 0 2.5rem;
}

h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
  margin-bottom: 1.2rem;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

h2 {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.capabilities,
.roadmap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.capabilities li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.65rem;
  align-items: start;
}

.capabilities .mark {
  width: 0.62rem;
  height: 0.62rem;
  margin-top: 0.42rem;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.capabilities li[data-ready="true"] .mark {
  background: var(--accent);
  border-color: var(--accent);
}

.capabilities li[data-ready="false"] .mark {
  background: transparent;
}

.capabilities .label {
  font-weight: 550;
}

.capabilities .detail {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.roadmap {
  counter-reset: step;
  padding-left: 0;
}

.roadmap li {
  counter-increment: step;
  position: relative;
  padding-left: 2.1rem;
  color: var(--text);
}

.roadmap li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  display: grid;
  place-items: center;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.panel .muted {
  margin: 0.95rem 0 0;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 2rem;
}

.foot a {
  color: var(--accent);
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}

.action {
  margin-top: 1rem;
  border: 1px solid rgba(53, 189, 177, 0.5);
  background: rgba(53, 189, 177, 0.12);
  color: var(--accent);
  border-radius: 10px;
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.action:hover:not(:disabled) {
  background: rgba(53, 189, 177, 0.2);
}

.action:disabled {
  opacity: 0.55;
  cursor: progress;
}

.result {
  margin: 1.1rem 0 0;
  display: grid;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.02);
}

.result div {
  display: grid;
  gap: 0.15rem;
}

.result dt {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.result dd {
  margin: 0;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  color: var(--text);
}

/* ---- MelloGram brand layer: same tokens, type and buttons as mellogram.foulfoxhacks.dev ---- */
:root {
  --bg: #10101a;
  --panel: #1b1b2d;
  --line: rgba(169, 157, 255, 0.18);
  --text: #f4f2ff;
  --muted: #aaa8c3;
  --accent: #a08cff;
  --accent-2: #79baff;
}
body {
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(ellipse 65% 38% at 50% 0%, rgba(104, 87, 219, 0.18), transparent 72%), var(--bg);
}
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.12; }
h1 { font-weight: 850; letter-spacing: -0.05em; }
a { color: #b5a6ff; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
button, .button {
  border: 0; border-radius: 11px; padding: 11px 20px; font: inherit; font-weight: 750; color: #fff; cursor: pointer;
  background: linear-gradient(110deg, #8068f5, #5b8ef0); box-shadow: 0 8px 26px rgba(104, 91, 235, 0.25);
}
button:hover, .button:hover { filter: brightness(1.1); }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 5px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: -0.025em; }
.wordmark .logo { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(145, 119, 255, 0.28)); }
.wordmark .web { color: var(--accent); }
.capabilities li.muted { display: block; }

/* ---- Telegram Web-style layout: centered logo, title and sign-in card ---- */
.tg-login { width: min(480px, calc(100% - 2rem)); padding-top: 3.5rem; }
.tg-login-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.4rem; margin-bottom: 1.6rem; }
.tg-login-logo { width: 128px; height: 128px; object-fit: contain; filter: drop-shadow(0 10px 36px rgba(128, 104, 245, 0.45)); margin-bottom: 0.8rem; }
.tg-login-head h1 { font-size: 2rem; margin: 0; }
.tg-login-head .lede { color: var(--muted); max-width: 36ch; margin: 0.2rem 0 0.6rem; }
.tg-login-card { display: grid; gap: 0.7rem; padding: 1.4rem; margin-bottom: 1.4rem; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.tg-btn { width: 100%; min-height: 54px; border-radius: 12px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.tg-btn-ghost { background: transparent; box-shadow: none; border: 1px solid var(--line); color: var(--accent); }
.tg-btn:disabled { opacity: 0.55; cursor: not-allowed; filter: none; }
.tg-login .panel { border-radius: 16px; background: var(--panel); border-color: var(--line); }
.tg-foot { text-align: center; padding: 1.6rem 0 2.4rem; border-top: 1px solid var(--line); margin-top: 1.6rem; }
.tg-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.2rem; margin-bottom: 0.6rem; }
.tg-foot a { color: var(--muted); text-decoration: none; font-weight: 600; }
.tg-foot a:hover { color: var(--text); }
.small { font-size: 0.86rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
