:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: #06110e;
  color: #f3fff8;
  --panel: rgba(10, 28, 22, .92);
  --panel-soft: rgba(18, 54, 40, .62);
  --line: rgba(108, 216, 158, .28);
  --line-strong: rgba(108, 216, 158, .52);
  --text: #f3fff8;
  --muted: #b7d0c2;
  --subtle: #86a996;
  --green: #58dc98;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -8%, rgba(54, 169, 108, .30), transparent 43%),
    radial-gradient(circle at 12% 100%, rgba(20, 102, 67, .18), transparent 36%),
    linear-gradient(145deg, #06110e 0%, #081a14 52%, #04100c 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image: linear-gradient(rgba(107, 213, 153, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 213, 153, .035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.shell {
  position: relative;
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 44px 0 24px;
}

.card {
  padding: clamp(28px, 7vw, 64px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(13, 39, 29, .94), var(--panel));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(164, 255, 202, .08);
  text-align: center;
}

.logo {
  display: block;
  width: min(300px, 72%);
  height: auto;
  margin: 0 auto 34px;
  filter: drop-shadow(0 8px 24px rgba(50, 207, 126, .22));
}

.eyebrow { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .18em; }

h1 {
  margin: 14px auto;
  max-width: 620px;
  font-size: clamp(32px, 7vw, 58px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.lead { color: var(--muted); font-size: clamp(17px, 3vw, 21px); line-height: 1.55; }

.facts { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 28px 0; }

.facts span {
  padding: 9px 14px;
  border-radius: 99px;
  color: #ddffeb;
  background: rgba(57, 173, 111, .16);
  border: 1px solid rgba(108, 216, 158, .30);
  font-size: 14px;
}

button, .telegram { border: 0; border-radius: 14px; padding: 16px 22px; font: inherit; font-weight: 800; cursor: pointer; }

.primary {
  width: 100%;
  color: #04130b;
  background: linear-gradient(135deg, #42d887, #8af0b4);
  box-shadow: 0 14px 34px rgba(31, 184, 104, .24);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 17px 38px rgba(31, 184, 104, .32); }
.primary:disabled { opacity: .65; cursor: wait; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 3px solid rgba(138, 240, 180, .72); outline-offset: 3px; }
.status { min-height: 24px; color: var(--muted); }

.result { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel-soft); text-align: left; }
label { display: block; margin-bottom: 8px; color: #c6e5d2; font-size: 13px; font-weight: 700; }

textarea {
  display: block;
  width: 100%;
  min-height: 118px;
  resize: vertical;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: #eafff1;
  background: #04100b;
  font: 13px/1.45 ui-monospace, monospace;
}

.secondary { margin-top: 12px; color: #dfffea; background: #164b35; }
.telegram { display: block; margin-top: 14px; color: #03140b; background: #5fe29a; text-align: center; text-decoration: none; }
.note, footer { color: var(--subtle); font-size: 12px; line-height: 1.5; }
footer { padding: 20px; text-align: center; }

@media (max-width: 560px) {
  .shell { width: min(100% - 20px, 760px); padding-top: 20px; }
  .card { border-radius: 22px; padding: 28px 20px 24px; }
  .logo { width: min(250px, 82%); margin-bottom: 28px; }
  h1 { font-size: clamp(31px, 11vw, 46px); }
  .lead { font-size: 16px; }
  .facts { margin: 22px 0; }
  .facts span { padding: 8px 11px; font-size: 13px; }
  button, .telegram { padding: 14px 16px; }
}
