/* tTerm — landing page.
   Palette and mood follow the bot's own avatar: near-black, one warm amber
   accent, a single soft glow behind the fold. */

:root {
  --bg:        #0d0e11;
  --surface:   #16181c;
  --surface-2: #1d2026;
  --line:      #262a31;
  --ink:       #edeff3;
  --ink-dim:   #9aa0aa;
  --amber:     #e9a33f;
  --amber-dim: #b8802f;
  --ok:        #46b95c;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 62rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The one warm light source, sitting behind the hero like on the avatar. */
.glow {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 70vh;
  background:
    radial-gradient(45% 60% at 50% 20%, rgba(233, 163, 63, .16), transparent 70%),
    radial-gradient(35% 45% at 22% 10%, rgba(233, 120, 63, .10), transparent 70%),
    radial-gradient(30% 40% at 82% 12%, rgba(63, 96, 233, .07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main, footer { position: relative; z-index: 1; }

/* The header sits above the rest, not level with it. Its language menu drops
   down over the page, and at an equal z-index `main` — being later in the
   document — would paint on top and swallow the clicks. */
header { position: relative; z-index: 10; }

a { color: inherit; }

code {
  font-family: var(--mono);
  font-size: .92em;
  color: var(--amber);
}

/* ---------------------------------------------------------------- header */

.bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  text-decoration: none;
}

.brand img { border-radius: 8px; }

.beta {
  font-family: var(--mono);
  font-weight: 400;
  font-size: .6rem;
  letter-spacing: .04em;
  line-height: 1;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  border-radius: 999px;
  padding: .2rem .45rem;
  white-space: nowrap;
  /* No vertical nudge: the brand row is a flex box centred on its items,
     so the tag lines up on its own. Shifting it only broke the alignment. */
}

.bar-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: .95rem;
}

.bar-links a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color .15s ease;
}

.bar-links a:hover { color: var(--ink); }

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .38rem 1rem;
  color: var(--amber) !important;
}

.pill:hover {
  border-color: var(--amber-dim);
  background: rgba(233, 163, 63, .08);
}

/* Светлый вариант той же таблетки — для ссылок, которые уводят наружу.
   Янтарём выделена только поддержка: одно действие, один акцент. */
.pill-ghost {
  color: var(--ink-dim) !important;
}

.pill-ghost:hover {
  border-color: #39404a;
  background: rgba(255, 255, 255, .04);
  color: var(--ink) !important;
}

/* Выбор языка на <details>: раскрывается без единой строчки скрипта
   и работает с клавиатуры сам по себе. */
.lang {
  position: relative;
  /* Own stacking context, so the dropdown cannot be painted over by whatever
     comes later in the document. */
  isolation: isolate;
  z-index: 20;
}

.lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  transition: color .15s ease, border-color .15s ease;
}

.lang summary::-webkit-details-marker { display: none; }

.lang summary:hover,
.lang[open] summary {
  color: var(--ink);
  border-color: #39404a;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .45rem);
  min-width: 9rem;
  padding: .35rem;
  /* The gap between the summary and the menu would otherwise swallow the
     pointer on its way down. */
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  z-index: 5;
}

.lang-menu a,
.lang-menu label {
  display: block;
  width: 100%;
  padding: .55rem .75rem;
  border-radius: 7px;
  font-size: .9rem;
  color: var(--ink-dim);
  text-decoration: none;
}

.lang-menu a:hover,
.lang-menu label:hover {
  background: var(--surface-2);
  color: var(--ink);
}

/* ------------------------------------------------------------------ hero */

.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
  text-align: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.4rem;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 800;
  margin: 0 0 1.2rem;
}

.lede {
  max-width: 34rem;
  margin: 0 auto 2rem;
  color: var(--ink-dim);
  font-size: 1.06rem;
}

.cta {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.perks {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 3.2rem;
}

.perks span { color: var(--amber); }

.btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  transition: transform .12s ease, border-color .15s ease, background .15s ease;
}

.btn:hover { transform: translateY(-1px); border-color: #39404a; }

.btn-primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #1a1200;
}

.btn-primary:hover { background: #f0b055; border-color: #f0b055; }

/* --------------------------------------------------------- the chat mock */

.chat {
  max-width: 30rem;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.msg {
  border-radius: 16px;
  padding: .7rem 1rem;
  font-size: .95rem;
}

.msg-out {
  align-self: flex-end;
  background: #2c4a2f;
  color: #dff3e1;
  font-family: var(--mono);
  border-bottom-right-radius: 5px;
}

.msg-in {
  align-self: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}

.card-host { font-size: .95rem; margin-bottom: .15rem; }
.card-status { font-size: .95rem; margin-bottom: .5rem; }
.card-status .ok { color: var(--ok); }

.msg-in pre {
  margin: 0 0 .5rem;
  padding: .6rem .75rem;
  background: var(--surface-2);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: .8rem;
  line-height: 1.5;
  overflow-x: auto;
  color: #cdd3dc;
}

.card-prompt {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--amber);
}

/* ----------------------------------------------------------------- bands */

.band {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--line);
}

.band h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  letter-spacing: -.02em;
  font-weight: 800;
  margin: 0 0 1.6rem;
}

.band-lede {
  max-width: 40rem;
  color: var(--ink-dim);
  margin: 0 0 1.6rem;
}

/* Numbered because the order genuinely matters: you cannot confirm a server
   you have not run the command on. */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.steps li { counter-increment: step; }

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--amber);
  margin-bottom: .6rem;
}

.steps h3, .fact h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 .4rem;
}

.steps p, .fact p {
  margin: 0;
  color: var(--ink-dim);
  font-size: .96rem;
}

.facts {
  display: grid;
  gap: 1.6rem 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

.snippet {
  font-family: var(--mono);
  font-size: .86rem;
  line-height: 1.9;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  overflow-x: auto;
  color: var(--ink-dim);
  margin: 0;
}

.snippet .c { color: var(--amber); }

/* --------------------------------------------------------------- updates */

.updates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}

.updates li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
}

.updates time {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--amber);
  white-space: nowrap;
}

.updates p { margin: 0; color: var(--ink-dim); font-size: .96rem; }

.more { color: var(--ink-dim); margin: 1.8rem 0 0; font-size: .95rem; }
.more a { color: var(--amber); }

.warn {
  color: var(--ink-dim);
  font-size: .88rem;
  margin: 0;
  max-width: 34rem;
}

/* ---------------------------------------------------------------- footer */

footer {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
}

.foot-brand img { border-radius: 6px; }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: .93rem;
}

.foot-links a {
  color: var(--ink-dim);
  text-decoration: none;
}

.foot-links a:hover { color: var(--ink); }

.foot-note {
  width: 100%;
  margin: .4rem 0 0;
  color: #6b717c;
  font-size: .84rem;
}

/* --------------------------------------------------------------- mobile */

@media (max-width: 34rem) {
  body { font-size: 16px; }
  .hero { padding-top: 2.5rem; }
  .bar-links { gap: 1rem; font-size: .9rem; }
  .bar-links a:not(.pill):not(.lang) { display: none; }
  .updates li { grid-template-columns: 1fr; gap: .3rem; }
  .band { padding: 3rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}


/* ------------------------------------------------------- support page */

.hero-narrow { padding-bottom: .5rem; }
.hero-narrow h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }

.wallets {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  margin-bottom: 2rem;
}

.wallet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.3rem;
}

.wallet-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.1rem;
}

.wallet-head svg { flex: none; }

.wallet-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.wallet-head p {
  margin: 0;
  font-size: .84rem;
  color: var(--ink-dim);
}

.wallet-body {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

/* White plate behind the code: scanners want contrast, and the quiet zone
   around a QR is part of the spec — without it half the phones give up. */
.qr {
  flex: none;
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
}

.wallet-addr {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.wallet-addr code {
  display: block;
  font-size: .78rem;
  line-height: 1.6;
  color: var(--ink);
  word-break: break-all;
  user-select: all;
}

.only {
  margin: 0;
  font-size: .78rem;
  color: var(--amber);
}

.copy {
  align-self: flex-start;
  padding: .45rem 1rem;
  font-size: .86rem;
  cursor: pointer;
  font-family: var(--sans);
}

.notice {
  border: 1px solid #4a3a1c;
  background: rgba(233, 163, 63, .06);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
}

.notice h3 {
  margin: 0 0 .4rem;
  font-size: .98rem;
  color: var(--amber);
}

.notice p {
  margin: 0;
  color: var(--ink-dim);
  font-size: .94rem;
}

@media (max-width: 34rem) {
  .wallet-body { flex-direction: column; align-items: center; }
  .wallet-addr { width: 100%; }
}


/* The donation page is short on purpose: addresses, then thanks, all on one
   screen. A visitor who came to send something should not have to scroll to
   find out the project is grateful. */

.donate .hero {
  padding: 2.2rem 1.5rem 1.4rem;
}

.donate .hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin-bottom: .8rem;
}

.donate .lede {
  margin-bottom: 0;
  font-size: 1rem;
}

.donate .band {
  padding: 2rem 1.5rem;
}

.donate .band:first-of-type {
  border-top: none;
}

.donate .wallets {
  margin-bottom: 0;
}

.donate .wallet {
  padding: 1.1rem;
}

.donate .wallet-head {
  margin-bottom: .9rem;
}

/* 128px still scans from a hand's distance; the extra 22px only pushed the
   thank-you note off the screen. */
.donate .qr {
  width: 128px;
  height: 128px;
}

.donate .band h2 {
  margin-bottom: .8rem;
}

.donate .band-lede {
  margin-bottom: 1.2rem;
}

.donate footer {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}
