:root {
  --bg: #eef3ff;
  --text: #172132;
  --muted: #5d6780;
  --line: rgba(71, 93, 160, 0.14);
  --surface: rgba(255, 255, 255, 0.86);
  --shadow: 0 20px 56px rgba(63, 82, 146, 0.14);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --gradient: linear-gradient(135deg, #4d9cff 0%, #9562f4 48%, #e65e92 100%);
  --gradient-soft: linear-gradient(135deg, rgba(77, 156, 255, 0.15), rgba(149, 98, 244, 0.16), rgba(230, 94, 146, 0.16));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #f8fbff, var(--bg) 55%, #edf1fb 100%);
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 10%, rgba(77, 156, 255, 0.20), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(230, 94, 146, 0.18), transparent 28%),
    radial-gradient(circle at 50% 78%, rgba(149, 98, 244, 0.12), transparent 32%);
}

.container,
.footer {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.container { padding: 38px 0 22px; }
.footer { padding-bottom: 32px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(71, 93, 160, 0.12);
  color: #46507b;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1, h2, h3, p { margin: 0; }

.hero {
  padding: 40px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -60px;
  bottom: -120px;
  border-radius: 50%;
  background: var(--gradient-soft);
}

h1 {
  margin-top: 18px;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lead {
  margin-top: 18px;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.58;
}

.actions,
.channel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.support-note {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  max-width: 760px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(71, 93, 160, 0.12);
}

.support-note p + p { margin-top: 8px; }

.support-note p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.support-note strong { color: var(--text); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 18px 36px rgba(149, 98, 244, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(71, 93, 160, 0.14);
  color: var(--text);
}

.cards-grid,
.qr-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }

.feature-card,
.section-header,
.channels-card,
.footer-inner {
  padding: 28px;
}

.feature-card {
  min-height: 188px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-card h2 {
  font-size: 28px;
  line-height: 1.12;
}

.feature-card p,
.section-header p,
.qr-card p,
.footer-inner p,
.noscript-note,
.channels-copy {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.section-header,
.channels-card {
  margin-top: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-header h2,
.channels-card h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
}

.section-header p { max-width: 430px; }

.qr-card {
  padding: 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
}

.qr-frame {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(71, 93, 160, 0.12);
}

.qr-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 14px;
  background: #fff;
}

.qr-label {
  padding: 14px 16px;
  border-top: 1px solid rgba(71, 93, 160, 0.10);
  background: rgba(244, 247, 255, 0.9);
  color: #44517d;
  font-size: 15px;
  font-weight: 700;
}

.qr-card h3 {
  margin-top: 18px;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 24px;
  line-height: 1.22;
}

.qr-card p {
  min-height: 5.2em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.qr-placeholder {
  display: flex;
  flex-direction: column;
}

.qr-placeholder-inner {
  aspect-ratio: 1 / 1;
  margin: 14px;
  border-radius: 20px;
  border: 2px dashed rgba(71, 93, 160, 0.22);
  background: linear-gradient(135deg, rgba(77, 156, 255, 0.08), rgba(149, 98, 244, 0.10), rgba(230, 94, 146, 0.08));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.qr-placeholder-inner strong {
  display: block;
  font-size: clamp(28px, 3vw, 36px);
  color: #41507b;
}

.qr-placeholder-inner span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.text-link {
  display: inline-flex;
  margin: auto auto 0;
  color: #4259c7;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease;
}

.footer-inner { border-radius: var(--radius-lg); }

.noscript-note {
  padding: 0 16px 24px;
  text-align: center;
}

@media (max-width: 1080px) {
  .qr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qr-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .cards-grid,
  .qr-grid { grid-template-columns: 1fr; }

  .qr-card:last-child { grid-column: auto; }

  .section-header,
  .channels-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .feature-card,
  .section-header,
  .qr-card,
  .channels-card,
  .footer-inner { padding: 24px; }

  .qr-card p,
  .qr-card h3 { min-height: 0; }
}

@media (max-width: 640px) {
  .container,
  .footer { width: min(100% - 20px, 1120px); }

  .container { padding-top: 20px; }

  .hero { padding: 24px; }

  h1 { font-size: clamp(32px, 12vw, 46px); }

  .lead { font-size: 18px; }

  .button { width: 100%; }
}
