:root {
  color-scheme: dark;
  --bg: #070709;
  --text: #f8f6ee;
  --muted: #b9b3a3;
  --line: rgba(248, 246, 238, 0.14);
  --green: #62ff95;
  --cyan: #63e8ff;
  --coral: #ff6f61;
  --violet: #b88cff;
  --panel: rgba(255, 255, 255, 0.06);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 16%, rgba(98, 255, 149, 0.22), transparent 30%),
    radial-gradient(circle at 84% 20%, rgba(255, 111, 97, 0.2), transparent 28%),
    radial-gradient(circle at 52% 86%, rgba(99, 232, 255, 0.14), transparent 34%),
    linear-gradient(135deg, #070709 0%, #101012 46%, #070709 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 85%);
}

.signal-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.82;
}

.page-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(18px, 3vw, 36px);
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand,
.topbar-link,
.telegram-button {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(98, 255, 149, 0.55);
  border-radius: 8px;
  color: #08120b;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 0 34px rgba(98, 255, 149, 0.32);
}

.brand-text {
  font-size: 15px;
  letter-spacing: 0;
  white-space: nowrap;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px);
  font-weight: 700;
}

.topbar-link svg,
.telegram-button svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(26px, 6vw, 92px);
  flex: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(54px, 8vh, 104px) 0 clamp(34px, 6vh, 74px);
}

.hero-content {
  min-width: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--green);
  font-size: clamp(13px, 1.8vw, 15px);
  font-weight: 800;
  text-transform: uppercase;
}

.status span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(98, 255, 149, 0.12), 0 0 26px var(--green);
}

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(64px, 15vw, 180px);
  line-height: 0.84;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow:
    0 0 38px rgba(99, 232, 255, 0.24),
    0 16px 80px rgba(0, 0, 0, 0.6);
}

.lead {
  width: min(650px, 100%);
  margin: clamp(24px, 4vw, 34px) 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.7vw, 26px);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: clamp(30px, 5vw, 44px);
}

.telegram-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 58px;
  max-width: 100%;
  padding: 0 24px;
  overflow: hidden;
  border: 1px solid rgba(98, 255, 149, 0.66);
  border-radius: 8px;
  color: #071009;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 22px 60px rgba(98, 255, 149, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  font-size: 17px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.telegram-button::after {
  position: absolute;
  inset: -80% auto -80% -40%;
  width: 42%;
  content: "";
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  animation: shine 3.2s ease-in-out infinite;
}

.telegram-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 74px rgba(99, 232, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.telegram-button:focus-visible,
.topbar-link:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(99, 232, 255, 0.74);
  outline-offset: 4px;
}

.microcopy {
  max-width: 260px;
  color: rgba(248, 246, 238, 0.72);
  font-size: 14px;
  line-height: 1.35;
}

.domain-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(8, 8, 10, 0.54);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.domain-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(120deg, transparent, rgba(98, 255, 149, 0.16), transparent 44%),
    radial-gradient(circle at 100% 0%, rgba(255, 111, 97, 0.24), transparent 40%);
}

.panel-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-grid > div {
  min-height: 148px;
  padding: clamp(20px, 3vw, 28px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.panel-grid > div:nth-child(2n) {
  border-right: 0;
}

.panel-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.panel-label {
  display: block;
  margin-bottom: 16px;
  color: rgba(248, 246, 238, 0.56);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(22px, 3.4vw, 35px);
  line-height: 1;
}

.footer {
  color: rgba(248, 246, 238, 0.55);
  font-size: 13px;
}

@keyframes shine {
  0%, 42% {
    transform: translateX(0) rotate(18deg);
  }

  78%, 100% {
    transform: translateX(420%) rotate(18deg);
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .domain-panel {
    width: min(560px, 100%);
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding: 16px;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-link {
    width: 42px;
    padding: 0;
    font-size: 0;
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(56px, 19vw, 96px);
  }

  .lead {
    font-size: 18px;
  }

  .telegram-button {
    width: 100%;
    padding-inline: 18px;
  }

  .microcopy {
    max-width: none;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .panel-grid > div,
  .panel-grid > div:nth-child(2n),
  .panel-grid > div:nth-last-child(-n + 2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .panel-grid > div:last-child {
    border-bottom: 0;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
