:root {
  --black: #080808;
  --near-black: #111111;
  --white: #ffffff;
  --muted: #a5a5a5;
  --line: rgba(255, 255, 255, 0.12);
  --orange: #ff7a1a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

#hero-canvas,
.page-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-overlay {
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.74) 52%, rgba(0, 0, 0, 0.9));
  z-index: 0;
}

#hero-canvas {
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 44vh;
  display: grid;
  place-items: center;
  padding: 24px 32px 0;
  text-align: center;
}

.hero-content {
  width: min(920px, 100%);
}

.section-label {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2,
p {
  margin-top: 0;
}

.hero-logo {
  display: block;
  width: min(820px, 92vw);
  height: auto;
  margin: 0 auto;
}

.description,
.telegram-section {
  min-height: 72vh;
  display: grid;
  align-items: center;
  padding: clamp(4px, 2vw, 24px) clamp(18px, 6vw, 84px);
}

.details-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

h2 {
  max-width: 760px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-size: clamp(24px, 3.8vw, 44px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow:
    0 0 14px rgba(255, 122, 26, 0.72),
    0 0 34px rgba(255, 122, 26, 0.48),
    0 0 64px rgba(255, 122, 26, 0.26);
}

.title-row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(120px, 180px);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
  justify-content: start;
  margin-bottom: 28px;
}

.title-row h2 {
  margin-bottom: 0;
}

.gg-logo {
  display: block;
  width: min(180px, 34vw);
  height: auto;
  filter:
    drop-shadow(0 0 10px rgba(255, 122, 26, 0.78))
    drop-shadow(0 0 26px rgba(255, 122, 26, 0.58))
    drop-shadow(0 0 54px rgba(255, 122, 26, 0.34));
}

.details-inner p:not(.section-label) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  line-height: 1.65;
}

.image-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: clamp(34px, 5vw, 58px) 0;
}

.image-compare figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.image-compare figcaption {
  padding: 14px 16px;
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
}

.image-compare img {
  display: block;
  width: 100%;
  height: auto;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.info-grid article {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid rgba(255, 122, 26, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 18px rgba(255, 122, 26, 0.1),
    inset 0 0 18px rgba(255, 122, 26, 0.035);
}

.info-grid article > .section-label {
  margin-bottom: 0;
}

.info-grid ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 1.55;
}

.telegram-section {
  min-height: 34vh;
  place-items: center;
  gap: 18px;
  padding-top: clamp(20px, 4vw, 54px);
}

.support-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  text-shadow:
    0 0 14px rgba(255, 122, 26, 0.58),
    0 0 34px rgba(255, 122, 26, 0.28);
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}

.telegram-button {
  display: grid;
  place-items: center;
  width: min(118px, 30vw);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 0;
  border: 1px solid rgba(255, 122, 26, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  box-shadow:
    0 0 22px rgba(255, 122, 26, 0.12),
    inset 0 0 22px rgba(255, 122, 26, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.telegram-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 26, 0.58);
  box-shadow:
    0 0 28px rgba(255, 122, 26, 0.24),
    inset 0 0 24px rgba(255, 122, 26, 0.08);
}

.telegram-button:active {
  transform: translateY(1px) scale(0.94);
}

.telegram-button.is-pressed {
  animation: button-press 240ms ease-out;
}

@keyframes button-press {
  0% {
    transform: translateY(-2px) scale(1);
  }

  45% {
    transform: translateY(2px) scale(0.9);
  }

  100% {
    transform: translateY(-2px) scale(1);
  }
}

.telegram-button img {
  display: block;
  width: 58%;
  height: auto;
  filter:
    drop-shadow(0 0 10px rgba(255, 122, 26, 0.38))
    drop-shadow(0 0 24px rgba(255, 255, 255, 0.12));
}

.message-support {
  position: relative;
  width: min(118px, 30vw);
  aspect-ratio: 1;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 122, 26, 0.32);
  border-radius: 8px;
  background: #050505;
  box-shadow:
    0 0 22px rgba(255, 122, 26, 0.12),
    inset 0 0 22px rgba(255, 122, 26, 0.04);
  transition:
    width 180ms ease,
    aspect-ratio 180ms ease,
    padding 180ms ease,
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.message-button {
  position: absolute;
  inset: 0;
  display: block;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: opacity 120ms ease;
}

.message-support.is-open,
.message-support:focus-within {
  width: min(420px, 86vw);
  aspect-ratio: auto;
  padding: 18px;
  transform: translateY(-2px);
  border-color: rgba(255, 122, 26, 0.58);
  box-shadow:
    0 0 28px rgba(255, 122, 26, 0.24),
    inset 0 0 24px rgba(255, 122, 26, 0.08);
}

.message-support.is-open .message-button,
.message-support:focus-within .message-button {
  opacity: 0;
  pointer-events: none;
}

.support-message {
  width: 100%;
  min-height: 116px;
  resize: vertical;
  border: 1px solid rgba(255, 122, 26, 0.26);
  border-radius: 8px;
  padding: 14px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease 80ms;
}

.message-support:focus-within .support-message,
.message-support.is-open .support-message,
.message-support:focus-within .message-send,
.message-support.is-open .message-send {
  opacity: 1;
  pointer-events: auto;
}

.support-message:focus {
  outline: 1px solid rgba(255, 122, 26, 0.82);
  box-shadow: 0 0 18px rgba(255, 122, 26, 0.18);
}

.message-send {
  justify-self: end;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(255, 122, 26, 0.36);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.84);
  background: #050505;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease 80ms;
}

.support-backdrop {
  position: fixed;
  inset: 0;
  z-index: 4;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.support-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 800px) {
  .description,
  .telegram-section {
    min-height: auto;
  }

  .image-compare,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .title-row {
    grid-template-columns: 1fr;
  }

  .info-grid article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 24px 16px;
  }

  .hero-logo {
    width: min(460px, 92vw);
  }

  .description,
  .telegram-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .message-support.is-open {
    position: fixed;
    z-index: 5;
    top: max(18px, env(safe-area-inset-top));
    left: 50%;
    width: min(420px, calc(100vw - 28px));
    max-height: calc(100dvh - 36px);
    aspect-ratio: auto;
    padding: 16px;
    transform: translateX(-50%);
  }

  .message-support.is-open .message-button {
    opacity: 0;
    pointer-events: none;
  }

  .message-support.is-open .support-message {
    min-height: min(34dvh, 190px);
  }
}
