@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #050807;
  --panel: rgba(17, 25, 23, .92);
  --panel-border: rgba(118, 255, 167, .15);
  --text: #f7fbf8;
  --muted: #91a29a;
  --green: #50e58b;
  --green-2: #1abf68;
  --telegram: #2aabee;
  --shadow: 0 30px 80px rgba(0, 0, 0, .58);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(46, 255, 133, .12), transparent 34%),
    #050807;
}

button,
a {
  font: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  position: relative;
  z-index: 10;
  height: 78px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 15, 17, .88);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 21px;
  font-weight: 700;
}

.brand__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--telegram);
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(42, 171, 238, .35);
}

.brand__icon svg {
  width: 23px;
  fill: #fff;
}

.download {
  padding: 11px 18px;
  color: #fff;
  background: rgba(42, 171, 238, .14);
  border: 1px solid rgba(42, 171, 238, .35);
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  transition: .25s ease;
}

.download:hover {
  transform: translateY(-2px);
  background: rgba(42, 171, 238, .22);
}

.hero {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: calc(100vh - 128px);
  display: grid;
  place-items: center;
  padding: 48px 20px;
  background-color: #030504;
  background-image:
    linear-gradient(rgba(3, 5, 4, .82), rgba(3, 5, 4, .95)),
    url("../images/pattern.svg");
  background-size: auto, 460px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .62), transparent 25%, transparent 75%, rgba(0, 0, 0, .62)),
    radial-gradient(circle at 50% 50%, transparent 0 22%, rgba(0, 0, 0, .36) 70%);
}

.hero__glow {
  position: absolute;
  z-index: -1;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .18;
  pointer-events: none;
}

.hero__glow--one {
  left: 10%;
  top: 8%;
  background: #00e86d;
}

.hero__glow--two {
  right: 8%;
  bottom: 3%;
  background: #2aabee;
}

.channel-card {
  position: relative;
  width: min(100%, 470px);
  padding: 42px 40px 30px;
  text-align: center;
  background:
    linear-gradient(155deg, rgba(28, 39, 35, .97), rgba(10, 15, 13, .98));
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(20px);
}

.channel-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(80, 229, 139, .35), transparent 35%, rgba(42, 171, 238, .2));
  opacity: .34;
}

.channel-card__badge {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  color: #89f6b2;
  background: rgba(80, 229, 139, .08);
  border: 1px solid rgba(80, 229, 139, .18);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  white-space: nowrap;
}

.avatar-wrap {
  position: relative;
  width: 118px;
  height: 118px;
  margin: 7px auto 20px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green), #116a3a 52%, var(--telegram));
  box-shadow: 0 14px 42px rgba(25, 220, 104, .22);
}

.avatar {
  width: 100%;
  height: 100%;
  display: block;
  border: 4px solid #101714;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-wrap__status {
  position: absolute;
  right: 5px;
  bottom: 9px;
  width: 21px;
  height: 21px;
  background: var(--green);
  border: 4px solid #111a16;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(80, 229, 139, .13);
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 38px);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.username {
  margin-top: 8px;
  color: #70cfff;
  font-size: 16px;
  font-weight: 600;
}

.members {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.members strong {
  color: #dce9e1;
}

.members__dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 13px rgba(80, 229, 139, .9);
}

.description {
  margin: 22px auto 20px;
  max-width: 365px;
  color: #bbc8c1;
  font-size: 14px;
  line-height: 1.65;
}

.benefits {
  margin: 0 0 24px;
  padding: 17px 18px;
  display: grid;
  gap: 11px;
  text-align: left;
  list-style: none;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
}

.benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d5dfda;
  font-size: 13px;
}

.benefits__icon {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  color: #07150d;
  background: var(--green);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.join-button {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 27px 1fr 22px;
  align-items: center;
  gap: 10px;
  color: #fff;
  background:
    linear-gradient(135deg, #27a7e7, #2aabee 50%, #148ed0);
  border: 0;
  border-radius: 16px;
  box-shadow:
    0 17px 35px rgba(42, 171, 238, .25),
    inset 0 1px 0 rgba(255, 255, 255, .28);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .025em;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.join-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.07);
  box-shadow:
    0 22px 45px rgba(42, 171, 238, .32),
    inset 0 1px 0 rgba(255, 255, 255, .3);
}

.join-button:active {
  transform: translateY(0);
}

.join-button:disabled {
  cursor: wait;
  opacity: .84;
}

.join-button__plane {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .16);
  border-radius: 50%;
}

.join-button__plane svg {
  width: 17px;
  fill: #fff;
}

.join-button__arrow {
  font-size: 22px;
}

.secure {
  margin-top: 14px;
  color: #72847a;
  font-size: 11px;
}

.secure__lock {
  margin-right: 5px;
  color: var(--green);
  font-size: 8px;
}

.floating {
  position: absolute;
  z-index: -1;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 28px;
  background: rgba(255, 255, 255, .018);
  backdrop-filter: blur(4px);
  font-weight: 900;
  letter-spacing: .08em;
  transform: rotate(-12deg);
}

.floating--left {
  left: max(5vw, 30px);
  top: 22%;
}

.floating--right {
  right: max(5vw, 30px);
  bottom: 17%;
  transform: rotate(10deg);
}

.footer {
  min-height: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #607067;
  background: #050807;
  border-top: 1px solid rgba(255, 255, 255, .04);
  font-size: 11px;
}

.footer__separator {
  color: #24342b;
}

.noscript {
  position: fixed;
  inset: auto 15px 15px;
  z-index: 100;
  padding: 12px 16px;
  color: #fff;
  background: #d94444;
  border-radius: 10px;
  text-align: center;
}

@media (max-width: 800px) {
  .floating {
    display: none;
  }
}

@media (max-width: 540px) {
  .topbar {
    height: 64px;
    padding: 0 15px;
  }

  .brand {
    font-size: 18px;
  }

  .brand__icon {
    width: 33px;
    height: 33px;
  }

  .download {
    padding: 9px 12px;
    font-size: 10px;
  }

  .hero {
    min-height: calc(100vh - 108px);
    padding: 28px 13px;
    background-size: auto, 360px;
  }

  .channel-card {
    padding: 39px 20px 24px;
    border-radius: 23px;
  }

  .avatar-wrap {
    width: 105px;
    height: 105px;
  }

  .description {
    font-size: 13px;
  }

  .benefits {
    padding: 15px;
  }

  .join-button {
    min-height: 56px;
    font-size: 12px;
  }

  .footer {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .channel-card {
    animation: cardIn .65s cubic-bezier(.2, .8, .2, 1) both;
  }

  .avatar-wrap__status {
    animation: pulse 2s infinite;
  }

  @keyframes cardIn {
    from {
      opacity: 0;
      transform: translateY(22px) scale(.98);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes pulse {
    0%, 100% {
      box-shadow: 0 0 0 3px rgba(80, 229, 139, .13);
    }
    50% {
      box-shadow: 0 0 0 8px rgba(80, 229, 139, 0);
    }
  }
}
