:root {
  color-scheme: dark;
  --bg: #101418;
  --text: #f8fafc;
  --muted: #c7d2da;
  --accent: #20a0e1;
  --accent-strong: #1685c5;
  --line: rgba(255, 255, 255, 0.18);
  --shadow: rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 86px),
    linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 92px),
    linear-gradient(120deg, rgba(32, 160, 225, 0.18) 0%, rgba(32, 160, 225, 0.03) 34%, transparent 58%),
    linear-gradient(180deg, #17191d 0%, #090a0c 56%, #050607 100%);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: clamp(24px, 6vw, 72px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.76) 0%, rgba(5, 6, 7, 0.48) 52%, rgba(5, 6, 7, 0.72) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 34%);
  pointer-events: none;
}

.hero-content {
  width: min(100%, 720px);
  padding-block: 12px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: #8dd7ff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 12ch;
  margin-inline: auto;
  font-size: clamp(3.6rem, 8vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  width: min(100%, 620px);
  margin: 18px auto 0;
  color: var(--text);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.notice {
  display: inline-flex;
  max-width: 100%;
  margin: 24px 0 0;
  padding: 9px 13px;
  border: 1px solid rgba(246, 163, 59, 0.45);
  border-radius: 8px;
  background: rgba(246, 163, 59, 0.12);
  color: #ffd99f;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
}

.instruction-copy {
  width: min(100%, 600px);
  margin: 12px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.5;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 650px);
  margin: 18px auto 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 60px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.steps span {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(141, 215, 255, 0.16);
  color: #8dd7ff;
  font-size: 0.9rem;
  font-weight: 900;
}

.steps strong {
  min-width: 0;
  color: #eef7fb;
  font-size: 0.94rem;
  line-height: 1.2;
}

.telegram-button {
  display: inline-flex;
  min-height: 72px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  padding: 0 34px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 18px 40px var(--shadow);
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.telegram-button:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
  border-color: rgba(255, 255, 255, 0.36);
}

.telegram-button.is-copied {
  background: #22b978;
}

.telegram-button:focus-visible {
  outline: 3px solid rgba(141, 215, 255, 0.85);
  outline-offset: 4px;
}

.copy-status {
  min-height: 24px;
  margin: 10px auto 0;
  color: #dceaf1;
  font-size: 0.98rem;
  line-height: 1.35;
}

.clipboard-fallback {
  position: fixed;
  top: -1000px;
  left: -1000px;
}

.button-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.button-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

@media (max-width: 720px) {
  .page-shell {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 74px),
      linear-gradient(120deg, rgba(32, 160, 225, 0.16) 0%, rgba(32, 160, 225, 0.02) 46%, transparent 70%),
      linear-gradient(180deg, #17191d 0%, #08090b 62%, #050607 100%);
  }

  .hero {
    min-height: 100svh;
    align-items: center;
    padding: 16px;
  }

  .hero-content {
    padding-block: 0;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(2.65rem, 14vw, 4.1rem);
  }

  h2 {
    margin-top: 14px;
    font-size: clamp(1.22rem, 6vw, 1.55rem);
    line-height: 1.12;
  }

  .notice {
    margin-top: 18px;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .instruction-copy {
    margin-top: 10px;
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 14px;
  }

  .steps li {
    min-height: 64px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    padding: 8px 6px;
    text-align: center;
  }

  .steps span {
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }

  .steps strong {
    font-size: 0.74rem;
  }

  .telegram-button {
    width: 100%;
    min-height: 58px;
    margin-top: 16px;
    padding-inline: 16px;
    font-size: 0.96rem;
  }

  .button-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .copy-status {
    margin-top: 8px;
    font-size: 0.84rem;
  }
}
