:root {
  --sky-top: #59b8ff;
  --sky-mid: #95dcff;
  --sky-bottom: #ecfbff;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(89, 139, 210, 0.22);
  --ink: #11427a;
  --muted: #4d6f97;
  --bright: #ffffff;
  --primary: #2498ff;
  --primary-deep: #0f6ce2;
  --secondary: #84d7ff;
  --shadow: 0 28px 70px rgba(54, 120, 194, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: ui-rounded, "Trebuchet MS", "Verdana", sans-serif;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.95), transparent 22%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 46%, #cbf2ff 72%, var(--sky-bottom) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255, 229, 145, 0.8) 0 1px, transparent 2px);
  background-size: 120px 120px, 190px 190px;
  background-position: 0 0, 40px 70px;
  opacity: 0.55;
}

.sky-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb,
.cloud,
.spark {
  position: absolute;
}

.orb {
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.42;
}

.orb-a {
  width: 320px;
  height: 320px;
  top: 3%;
  left: -4%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), transparent 68%);
}

.orb-b {
  width: 380px;
  height: 380px;
  right: -10%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.72), transparent 72%);
}

.cloud {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 18px 32px rgba(105, 164, 220, 0.15);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: inherit;
}

.cloud-a {
  width: 142px;
  height: 44px;
  top: 9%;
  left: 4%;
}

.cloud-a::before {
  width: 58px;
  height: 58px;
  left: 10px;
  bottom: 9px;
}

.cloud-a::after {
  width: 62px;
  height: 62px;
  right: 16px;
  bottom: 13px;
}

.cloud-b {
  width: 110px;
  height: 36px;
  top: 16%;
  right: 18%;
}

.cloud-b::before {
  width: 46px;
  height: 46px;
  left: 8px;
  bottom: 8px;
}

.cloud-b::after {
  width: 48px;
  height: 48px;
  right: 10px;
  bottom: 10px;
}

.cloud-c {
  width: 164px;
  height: 52px;
  right: 2%;
  top: 8%;
}

.cloud-c::before {
  width: 64px;
  height: 64px;
  left: 12px;
  bottom: 10px;
}

.cloud-c::after {
  width: 70px;
  height: 70px;
  right: 17px;
  bottom: 14px;
}

.spark {
  width: 18px;
  aspect-ratio: 1;
  background: linear-gradient(180deg, rgba(255, 250, 206, 0.98), rgba(255, 208, 64, 0.95));
  clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%);
  filter: drop-shadow(0 0 16px rgba(255, 225, 126, 0.6));
}

.spark-a {
  top: 24%;
  left: 29%;
  transform: scale(1.6);
}

.spark-b {
  top: 34%;
  right: 12%;
  transform: scale(1.1);
}

.spark-c {
  bottom: 24%;
  left: 20%;
  transform: scale(0.95);
}

.page {
  position: relative;
  width: min(1120px, calc(100vw - 28px));
  margin: 18px auto 36px;
  z-index: 1;
}

.hero-shell,
.panel,
.protocol-card {
  backdrop-filter: blur(16px);
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(240px, 0.86fr);
  gap: 20px;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.48), transparent 26%),
    linear-gradient(145deg, rgba(77, 180, 255, 0.82), rgba(92, 210, 255, 0.7) 48%, rgba(222, 248, 255, 0.8));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-shell::before,
.hero-shell::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
}

.hero-shell::before {
  width: 360px;
  height: 360px;
  right: -110px;
  top: -150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.52), transparent 72%);
}

.hero-shell::after {
  width: 520px;
  height: 180px;
  left: -90px;
  bottom: -120px;
  background: radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.8), transparent 72%);
}

.hero-copy,
.hero-art {
  position: relative;
  z-index: 1;
}

.eyebrow,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--bright);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 14px 0 0;
  max-width: 12ch;
  color: var(--bright);
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 26px rgba(42, 116, 186, 0.22);
}

.lead {
  margin: 14px 0 0;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.6;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-note {
  margin-top: 16px;
  max-width: 58ch;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--bright);
  font-size: 13px;
  font-weight: 700;
}

.hero-art {
  display: grid;
  place-items: center;
  min-height: 280px;
}

.hero-glow {
  position: absolute;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(172, 237, 255, 0.18) 54%, transparent 74%);
  filter: blur(10px);
}

.hero-frame {
  position: relative;
  width: min(300px, 100%);
  border-radius: 32px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 24px 42px rgba(57, 132, 203, 0.2);
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  animation: float-logo 5.5s ease-in-out infinite;
}

.hero-badge {
  margin-top: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7dd9ff, #1c8df8);
  color: #ffffff;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 2px 0 rgba(17, 66, 122, 0.22);
  box-shadow: 0 18px 34px rgba(43, 127, 210, 0.22);
}

.guide-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.guide-card {
  position: relative;
  padding: 18px 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(238, 249, 255, 0.8));
  box-shadow: 0 18px 38px rgba(76, 136, 198, 0.12);
}

.guide-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(123, 220, 255, 0.95), rgba(52, 157, 242, 0.92));
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.guide-card h3 {
  margin: 14px 0 0;
  font-size: 24px;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.guide-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 22px;
}

.panel {
  position: relative;
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 251, 255, 0.86));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -8%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132, 215, 255, 0.22), transparent 72%);
  pointer-events: none;
}

.panel-subscription,
.panel-happ,
.panel-telegram {
  grid-column: 1 / -1;
}

.panel-subscription::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -54px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 214, 255, 0.16), transparent 72%);
  pointer-events: none;
}

.panel-subscription {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
  padding: 24px;
}

.panel-happ,
.panel-telegram {
  padding: 24px;
}

.panel-copy,
.qr-card,
.panel-happ,
.panel-telegram {
  position: relative;
  z-index: 1;
}

.panel-copy h2,
.panel h2 {
  margin: 16px 0 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.panel-text,
.section-note,
.protocol-note,
.url,
.site-footer {
  color: var(--muted);
}

.panel-text {
  margin: 14px 0 0;
  max-width: 56ch;
  line-height: 1.7;
}

.qr-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.qr-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

.qr-shell {
  padding: 16px;
  border-radius: 28px;
  background: var(--panel-strong);
  border: 1px solid rgba(105, 164, 220, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.qr-shell img {
  display: block;
  width: 100%;
  height: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.actions.stacked {
  flex-direction: column;
}

.panel-happ .actions {
  align-items: stretch;
}

.btn {
  appearance: none;
  border: 0;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 18px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: 0 16px 28px rgba(39, 126, 221, 0.22);
}

.secondary {
  background: linear-gradient(180deg, #b5efff, #69cfff);
  color: #0f4b86;
  box-shadow: 0 16px 26px rgba(70, 174, 233, 0.16);
}

.ghost {
  background: rgba(36, 152, 255, 0.08);
  color: var(--ink);
  border: 1px solid rgba(57, 145, 220, 0.14);
}

.url {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(57, 145, 220, 0.14);
  background: rgba(255, 255, 255, 0.66);
  overflow: auto;
  white-space: nowrap;
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.fact-pill {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(86, 183, 255, 0.09);
  border: 1px solid rgba(57, 145, 220, 0.14);
  color: #2268ab;
  font-size: 13px;
  font-weight: 800;
}

.help-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.help-list span {
  display: block;
  padding: 11px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(57, 145, 220, 0.12);
  color: #245b93;
  line-height: 1.55;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section-note {
  margin: 0;
  max-width: 28ch;
  text-align: right;
  line-height: 1.6;
}

.protocol-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.protocol-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(66, 154, 228, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(234, 248, 255, 0.78));
  box-shadow: 0 16px 34px rgba(83, 142, 196, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.protocol-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px rgba(83, 142, 196, 0.16);
}

.protocol-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.protocol-head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
}

.protocol-sub {
  margin: 8px 0 0;
  color: #3d83c1;
  font-weight: 800;
}

.protocol-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.protocol-badge,
.protocol-hint {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.protocol-badge {
  background: linear-gradient(180deg, rgba(121, 219, 255, 0.98), rgba(64, 164, 244, 0.94));
  color: #ffffff;
}

.protocol-hint {
  background: rgba(36, 152, 255, 0.08);
  border: 1px solid rgba(57, 145, 220, 0.14);
  color: #2d6ea9;
}

.protocol-dot {
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, #7fe3ff, #2192ff);
  box-shadow: 0 0 0 6px rgba(127, 227, 255, 0.14);
  flex: 0 0 auto;
}

.protocol-note {
  margin: 14px 0 0;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 8px 0;
  font-size: 14px;
}

body.ui-ready .hero-shell,
body.ui-ready .panel,
body.ui-ready .protocol-card {
  animation: rise-in 0.65s ease both;
}

body.ui-ready .panel-subscription {
  animation-delay: 0.08s;
}

body.ui-ready .panel-happ {
  animation-delay: 0.14s;
}

body.ui-ready .panel-telegram {
  animation-delay: 0.2s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-logo {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 980px) {
  .hero-shell,
  .panel-subscription,
  .bento {
    grid-template-columns: 1fr;
  }

  .guide-strip {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }

  .hero-art {
    min-height: auto;
  }

  .qr-card {
    max-width: 280px;
  }

  .section-head,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-note {
    text-align: left;
  }

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

@media (max-width: 720px) {
  .page {
    width: min(100vw - 18px, 100%);
    margin: 14px auto 28px;
  }

  .hero-shell,
  .panel-subscription,
  .panel-happ,
  .panel-telegram {
    padding: 18px;
    border-radius: 24px;
  }

  .hero-copy h1,
  .panel-copy h2,
  .panel h2 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .lead,
  .panel-text {
    font-size: 16px;
  }

  .hero-note {
    font-size: 15px;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-badge {
    width: 100%;
    text-align: center;
  }

  .url {
    white-space: normal;
    word-break: break-word;
  }
}
