:root {
  --app-bg: #100e0e;
  --surface: rgba(31, 26, 24, .78);
  --surface-strong: rgba(37, 30, 27, .92);
  --surface-2: rgba(47, 38, 34, .72);
  --text: #f7efe9;
  --muted: #b2a49d;
  --line: rgba(244, 216, 199, .13);
  --accent: #f06a38;
  --accent-strong: #b83f24;
  --accent-soft: rgba(240, 106, 56, .15);
  --good: #60c78c;
  --shadow: 0 22px 58px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .07);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, .24);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--app-bg);
  color-scheme: dark;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(240, 106, 56, .15), transparent 31%),
    radial-gradient(circle at 94% 18%, rgba(184, 63, 36, .12), transparent 33%),
    linear-gradient(180deg, #100e0e 0%, #0d0b0b 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: .13;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.ambient {
  position: fixed;
  z-index: -2;
  border-radius: 999px;
  filter: blur(16px);
  pointer-events: none;
}

.ambient-one {
  width: 420px;
  height: 420px;
  top: -220px;
  left: -150px;
  background: radial-gradient(circle, rgba(240, 106, 56, .18), transparent 68%);
}

.ambient-two {
  width: 520px;
  height: 520px;
  right: -250px;
  bottom: -250px;
  background: radial-gradient(circle, rgba(184, 63, 36, .15), transparent 70%);
}

.page-shell {
  width: min(980px, calc(100% - 30px));
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(20px + var(--safe-top)) 0 calc(20px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 11px;
  border-radius: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -.04em;
  background: linear-gradient(145deg, #2a211e, var(--accent));
  box-shadow: 0 10px 24px rgba(240, 106, 56, .22);
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong {
  font-size: 18px;
  letter-spacing: -.02em;
}

.brand-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.status-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 750;
}

.status-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 74px 0 54px;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: min(720px, 90vw);
  height: min(460px, 72vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 106, 56, .12), rgba(240, 106, 56, .03) 42%, transparent 70%);
  filter: blur(4px);
}

.hero-content {
  width: min(760px, 100%);
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 11px;
  border: 1px solid rgba(240, 106, 56, .22);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 10px;
  font-weight: 850;
}

h1 {
  margin: 22px 0 0;
  font-size: clamp(62px, 11vw, 118px);
  line-height: .92;
  letter-spacing: -.075em;
  font-weight: 900;
  text-shadow: 0 12px 44px rgba(0, 0, 0, .28);
}

.lead {
  margin: 20px 0 0;
  color: #e7d8d0;
  font-size: clamp(23px, 4vw, 37px);
  line-height: 1.1;
  font-weight: 720;
  letter-spacing: -.035em;
}

.dots {
  color: var(--accent);
  letter-spacing: .05em;
}

.description {
  max-width: 520px;
  margin: 17px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.social-grid {
  width: min(700px, 100%);
  margin: 35px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.social-card {
  position: relative;
  min-width: 0;
  min-height: 155px;
  padding: 16px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 12px;
  text-align: left;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(39, 32, 29, .84), rgba(25, 21, 20, .78));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.social-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -65px;
  bottom: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-glow, rgba(240,106,56,.16)), transparent 70%);
  pointer-events: none;
}

.social-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 106, 56, .24);
  background: linear-gradient(145deg, rgba(47, 38, 34, .92), rgba(28, 23, 22, .88));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255,255,255,.07);
}

.social-card:active {
  transform: translateY(0) scale(.985);
}

.telegram { --card-glow: rgba(43, 166, 226, .26); }
.vk { --card-glow: rgba(0, 119, 255, .23); }
.discord { --card-glow: rgba(88, 101, 242, .25); }

.social-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  box-shadow: 0 9px 22px rgba(240, 106, 56, .17);
}

.telegram .social-icon { background: linear-gradient(145deg, #33aee8, #178dca); }
.vk .social-icon { background: linear-gradient(145deg, #1684ff, #006bd6); }
.discord .social-icon { background: linear-gradient(145deg, #6677f4, #4856c8); }

.social-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.social-icon-text {
  font-size: 14px;
  font-weight: 950;
  letter-spacing: -.08em;
}

.social-copy {
  grid-column: 1 / -1;
  align-self: end;
  min-width: 0;
  display: grid;
}

.social-copy small {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 800;
}

.social-copy strong {
  margin-top: 5px;
  font-size: 16px;
  letter-spacing: -.02em;
}

.social-copy span {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.arrow {
  padding: 3px 2px 0 0;
  color: var(--muted);
  font-size: 18px;
  transition: transform .18s ease, color .18s ease;
}

.social-card:hover .arrow {
  color: var(--text);
  transform: translate(2px, -2px);
}

footer {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #756a65;
  font-size: 10px;
}

.footer-dot { color: var(--accent); }

@keyframes pulse {
  0%, 100% { opacity: .65; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 720px) {
  .page-shell { width: min(100% - 22px, 620px); }
  .hero { padding: 58px 0 44px; }

  .social-grid {
    grid-template-columns: 1fr;
    gap: 9px;
    max-width: 500px;
  }

  .social-card {
    min-height: 92px;
    grid-template-columns: 43px minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    align-items: center;
    padding: 12px 13px;
  }

  .social-icon { width: 43px; height: 43px; }

  .social-copy {
    grid-column: auto;
    align-self: center;
  }

  .social-copy strong {
    margin-top: 2px;
    font-size: 14px;
  }

  .social-copy span { font-size: 10px; }
}

@media (max-width: 480px) {
  .page-shell {
    width: calc(100% - 18px);
    padding-top: calc(9px + var(--safe-top));
    padding-bottom: calc(10px + var(--safe-bottom));
  }

  .brand-bar {
    padding: 8px 9px;
    border-radius: 18px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .brand-copy strong { font-size: 16px; }
  .brand-copy small { font-size: 10px; }

  .status-pill {
    min-height: 31px;
    padding: 6px 9px;
    font-size: 10px;
  }

  .hero { padding: 48px 4px 34px; }

  h1 { font-size: clamp(58px, 20vw, 86px); }

  .lead {
    margin-top: 17px;
    font-size: 24px;
  }

  .description {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.55;
  }

  .social-grid { margin-top: 28px; }
  footer { padding-bottom: 2px; }
}

@media (max-width: 380px) {
  .brand-copy small { display: none; }
  .status-pill { padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
