* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0f1923;
  --surface: #1a2730;
  --border: #2a3a45;
  --text: #e8edf0;
  --text-muted: #8a9ba8;
  --accent: #2ea6ff;
  --accent-hover: #5bbbff;
  --telegram: #2AABEE;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ---- Landing page ---- */

.landing {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
}

.landing h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.landing .subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.features {
  display: grid;
  gap: 16px;
  margin-bottom: 48px;
  text-align: left;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature .icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

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

/* ---- Telegram Login area ---- */

.login-section {
  margin-top: 16px;
}

.login-section p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

/* ---- Logged-in state ---- */

.welcome {
  display: none;
  max-width: 500px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.welcome.visible {
  display: block;
}

.welcome h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.welcome p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--accent-hover);
}

/* ---- Utility ---- */

.hidden {
  display: none;
}
