* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #0f0f13;
  color: #e4e4e7;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  min-height: 100%;
}

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem 4rem;
}

.shell {
  width: 100%;
  max-width: 440px;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 14px;
  padding: 2rem 1.75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.brand h1 {
  margin: 0 0 .25rem;
  font-size: 1.5rem;
  color: #fafafa;
}

.muted { color: #a1a1aa; margin: 0; font-size: .9rem; }

.alert {
  background: #2d1a1a;
  border: 1px solid #7f1d1d;
  color: #fecaca;
  padding: .75rem 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: .92rem;
}

form {
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
  gap: .5rem;
}

label {
  font-size: .88rem;
  color: #d4d4d8;
  font-weight: 500;
}

input[type="text"] {
  background: #0f0f13;
  border: 1px solid #3f3f46;
  color: #fafafa;
  padding: .7rem .9rem;
  border-radius: 8px;
  font-size: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .02em;
  outline: none;
  transition: border-color .15s;
}

input[type="text"]:focus {
  border-color: #6366f1;
}

button[type="submit"] {
  background: #6366f1;
  color: white;
  padding: .8rem 1rem;
  border: 0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: .5rem;
  transition: background-color .15s;
}

button[type="submit"]:hover { background: #4f46e5; }

.btn-primary {
  display: block;
  background: #6366f1;
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  margin-top: 1.5rem;
  border: 0;
  transition: background-color .15s;
}

.btn-primary:hover { background: #4f46e5; }

.btn-primary.download::before {
  content: "⬇  ";
}

.telegram-cta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #27272a;
}

.telegram-cta h2 {
  font-size: 1rem;
  margin: 0 0 .5rem;
  color: #fafafa;
}

.telegram-cta p {
  color: #a1a1aa;
  font-size: .9rem;
  line-height: 1.45;
  margin: 0 0 1rem;
}

.btn-secondary {
  display: inline-block;
  background: #27272a;
  color: #fafafa;
  padding: .7rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  border: 1px solid #3f3f46;
}

.btn-secondary:hover { background: #3f3f46; }

footer {
  margin-top: 2rem;
  text-align: center;
}
