:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0d0e19;
  color: #f5f2fc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 6% 12%, #55406d70, transparent 56%),
    radial-gradient(ellipse at 95% 82%, #1e315e70, transparent 58%),
    linear-gradient(155deg, #171422 0%, #0d0e19 56%, #131c30 100%);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  padding: max(30px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) 0 max(28px, env(safe-area-inset-left));
}

.wordmark {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.wordmark span { color: #c0a8ef; }

main {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(120px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(80px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}

.landing {
  width: 100%;
  max-width: 740px;
  text-align: center;
}

h1 {
  margin: 0 0 40px;
  font-size: clamp(2.5rem, 7.2vw, 5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}

h1 span { color: #cfc1ed; }

.telegram-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  min-height: 64px;
  padding: 18px 24px;
  border: 1px solid #ffffff80;
  border-radius: 18px;
  background: #eee8fa;
  color: #241b35;
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 40px #b39bd412;
  touch-action: manipulation;
  -webkit-tap-highlight-color: #ffffff24;
  transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.telegram-button svg { width: 22px; height: 22px; flex-shrink: 0; }
.telegram-button:focus-visible { outline: 3px solid #d4baff; outline-offset: 6px; }
.telegram-button:active { background: #dbcfef; transform: scale(0.985); }
.continuation { margin: 18px 0 0; color: #b0a9bf; font-size: 0.8125rem; line-height: 1.5; }

@media (hover: hover) {
  .telegram-button:hover { background: #ffffff; transform: translateY(-2px); box-shadow: 0 12px 44px #b39bd420; }
}

@media (min-width: 768px) {
  .site-header { padding: max(36px, env(safe-area-inset-top)) 48px 0; }
  h1 { margin-bottom: 48px; }
}

@media (max-height: 500px) {
  main { padding-top: 100px; padding-bottom: max(36px, env(safe-area-inset-bottom)); }
  h1 { margin-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .telegram-button { transition: none; }
}
