:root {
  --bg: #0b0914;
  --surface: #171321;
  --surface-soft: #211b2d;
  --text: #ffffff;
  --muted: #a6a0b6;
  --muted-dark: #716b80;
  --pink: #ff2e7e;
  --pink-soft: #ff6da2;
  --violet: #bd00ff;
  --orange: #ff8a00;
  --line: rgba(255, 255, 255, 0.075);
  --page-width: 510px;
  --radius: 18px;
  --font: "Segoe UI", "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  background: var(--bg);
  overflow-x: hidden;
  overscroll-behavior-x: none;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  background:
    linear-gradient(180deg, rgba(21, 12, 31, 0.82) 0, rgba(11, 9, 20, 0.96) 440px),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

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

.noise {
  position: fixed;
  z-index: 0;
  inset: 0;
  opacity: 0.022;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(6px);
}

.ambient--pink {
  top: -190px;
  right: 0;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 46, 126, 0.21), rgba(255, 46, 126, 0) 70%);
  transform: translateX(42%);
}

.ambient--purple {
  top: 700px;
  left: 0;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(127, 31, 241, 0.14), rgba(127, 31, 241, 0) 70%);
  transform: translateX(-48%);
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 38px 16px 220px;
}

.hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
}

.logo-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 46, 126, 0.28), transparent 68%);
  animation: logo-breathe 4s ease-in-out infinite;
}

.brand-logo {
  position: relative;
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(255, 46, 126, 0.22));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 7px;
  color: #d5cfdf;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 46, 126, 0.11);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.brand-title {
  margin: 0;
  font-size: clamp(28px, 7.5vw, 35px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
  background: linear-gradient(105deg, #ff4f91 6%, #ff784c 48%, #ff9b2f 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  max-width: 390px;
  margin: 10px auto 18px;
  color: #bbb5c8;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.047);
  color: #e4dfe9;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.feature-list svg {
  width: 13px;
  height: 13px;
  overflow: visible;
  fill: none;
  stroke: #ffad54;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.live-section {
  width: 100%;
  margin-top: 28px;
}

.section-heading {
  gap: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 2px 13px;
}

.section-heading > div {
  min-width: 0;
}

.section-kicker {
  margin: 0 0 3px;
  color: var(--muted-dark);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.online-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(33, 223, 123, 0.11);
  border-radius: 999px;
  background: rgba(33, 223, 123, 0.045);
  color: #a9a3b6;
  font-size: 9.5px;
  font-weight: 650;
  white-space: nowrap;
  flex-shrink: 0;
}

.online-count i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #21df7b;
  box-shadow: 0 0 8px rgba(33, 223, 123, 0.9);
}

.live-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.live-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 46, 126, 0.12), rgba(189, 0, 255, 0.05)),
    var(--surface);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.33);
  isolation: isolate;
}

.live-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.live-card video,
.live-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface);
  transition: transform 500ms cubic-bezier(0.2, 0.75, 0.22, 1);
}

.live-card .live-photo {
  animation: photo-drift 9s ease-in-out infinite alternate;
}

.live-card.has-media-error {
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 46, 126, 0.18), transparent 27%),
    linear-gradient(145deg, #251a31, #13101d 72%);
}

.live-card:hover video,
.live-card:hover img {
  transform: scale(1.035);
}

.card-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 5, 12, 0.18) 0%, transparent 28%),
    linear-gradient(0deg, rgba(6, 5, 12, 0.86) 0%, transparent 38%);
  pointer-events: none;
}

.live-badge,
.viewer-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  display: inline-flex;
  align-items: center;
  height: 23px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.live-badge {
  left: 9px;
  gap: 5px;
  padding: 0 9px;
  background: linear-gradient(100deg, #ff246f, #ff4f8d);
  box-shadow: 0 5px 16px rgba(255, 36, 111, 0.24);
}

.live-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: white;
  animation: live-pulse 1.7s ease-in-out infinite;
}

.viewer-badge {
  right: 9px;
  gap: 4px;
  padding: 0 8px;
  background: rgba(7, 6, 12, 0.55);
  color: #f7f3fa;
}

.viewer-badge svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.card-info {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.card-info strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}

.card-info span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.65);
  font-size: 8px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.install-bar {
  position: fixed;
  z-index: 50;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px 16px calc(9px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 72%, rgba(11, 9, 20, 0.96) 88%, rgba(11, 9, 20, 0));
  pointer-events: none;
}

.install-bar__inner {
  width: 100%;
  max-width: calc(var(--page-width) - 48px);
  margin: 0 auto;
  pointer-events: auto;
}

.download-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: linear-gradient(100deg, #ff2e79 0%, #f4117d 45%, #b700ff 100%);
  box-shadow:
    0 8px 30px rgba(255, 31, 124, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 180ms ease, box-shadow 180ms ease;
  animation: button-glow 3.2s ease-in-out infinite;
}

.download-button::before {
  position: absolute;
  top: -30%;
  left: -50%;
  width: 35%;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  content: "";
  transform: rotate(18deg);
  animation: button-shine 4.5s ease-in-out infinite;
}

.download-button:active {
  transform: scale(0.975);
  box-shadow: 0 4px 18px rgba(255, 31, 124, 0.28);
}

.download-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-button .button-arrow {
  position: absolute;
  right: 20px;
  width: 17px;
  height: 17px;
  opacity: 0.82;
}

.install-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.install-trust div {
  min-width: 0;
  text-align: center;
}

.install-trust div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.install-trust strong,
.install-trust span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.install-trust strong {
  color: #ff5b95;
  font-size: 9.5px;
  font-weight: 700;
}

.install-trust span {
  margin-top: 1px;
  color: #746e83;
  font-size: 7.5px;
  font-weight: 600;
}

.install-bar p {
  margin: 5px 0 0;
  color: #746e83;
  font-size: 8.5px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.02em;
}

.install-bar p span {
  display: inline-block;
  margin-right: 4px;
  padding: 1px 4px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 4px;
  color: #aaa3b6;
  font-size: 7.5px;
  font-weight: 700;
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 112px;
  display: flex;
  align-items: center;
  gap: 11px;
  width: calc(100% - 48px);
  max-width: 360px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background: rgba(28, 23, 38, 0.94);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
  backdrop-filter: blur(16px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.toast-icon {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(33, 223, 123, 0.12);
  color: #32e68a;
}

.toast-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast strong,
.toast small {
  display: block;
}

.toast strong {
  margin-bottom: 2px;
  font-size: 11.5px;
  font-weight: 700;
}

.toast small {
  color: #a8a2b6;
  font-size: 9.5px;
}

@keyframes logo-breathe {
  0%, 100% { opacity: 0.62; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes live-pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

@keyframes button-glow {
  0%, 100% { box-shadow: 0 8px 30px rgba(255, 31, 124, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
  50% { box-shadow: 0 10px 38px rgba(255, 31, 124, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
}

@keyframes button-shine {
  0%, 25% { left: -55%; }
  55%, 100% { left: 125%; }
}

@keyframes photo-drift {
  0% { transform: scale(1.01) translate3d(0, 0, 0); }
  100% { transform: scale(1.075) translate3d(-0.5%, -1%, 0); }
}

@media (max-width: 480px) {
  .page {
    padding: 22px 12px 194px;
  }

  .logo-wrap {
    width: 82px;
    height: 82px;
    margin-bottom: 10px;
  }

  .logo-glow {
    inset: -15px;
  }

  .brand-logo {
    width: 72px;
    height: 72px;
  }

  .eyebrow {
    margin-bottom: 6px;
    font-size: 9px;
    letter-spacing: 0.13em;
  }

  .brand-title {
    font-size: clamp(31px, 9.2vw, 37px);
    letter-spacing: -0.035em;
  }

  .tagline {
    width: min(100%, 330px);
    margin: 8px auto 15px;
    font-size: 12.5px;
    line-height: 1.55;
  }

  .feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 342px);
    margin-inline: auto;
    gap: 7px;
  }

  .feature-list li {
    justify-content: center;
    width: 100%;
    min-height: 34px;
    padding: 7px 8px;
    font-size: 10px;
  }

  .feature-list svg {
    width: 14px;
    height: 14px;
  }

  .live-section {
    margin-top: 22px;
  }

  .section-heading {
    margin-bottom: 11px;
  }

  .section-heading h2 {
    font-size: 19px;
  }

  .section-kicker {
    font-size: 8.5px;
  }

  .online-count {
    gap: 5px;
    padding: 4px 7px;
    font-size: 9px;
  }

  .live-grid {
    gap: 8px;
  }

  .live-card {
    border-radius: 15px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  }

  .live-badge,
  .viewer-badge {
    top: 7px;
    height: 22px;
    font-size: 8.5px;
  }

  .live-badge {
    left: 7px;
    padding-inline: 8px;
  }

  .viewer-badge {
    right: 7px;
    padding-inline: 7px;
  }

  .card-info {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .card-info strong {
    font-size: 13px;
  }

  .card-info span {
    display: none;
  }

  .install-bar {
    padding: 20px 12px calc(8px + env(safe-area-inset-bottom));
  }

  .install-bar__inner {
    max-width: 100%;
  }

  .download-button {
    min-height: 52px;
    font-size: 14px;
  }

  .download-button .button-arrow {
    right: 17px;
  }

  .install-trust {
    margin-top: 6px;
    padding-top: 6px;
  }

  .install-trust strong {
    font-size: 9px;
  }

  .install-trust span {
    font-size: 7px;
  }

  .toast {
    bottom: 108px;
  }
}

@media (max-width: 380px) {
  .page {
    padding: 18px 10px 188px;
  }

  .brand-logo {
    width: 66px;
    height: 66px;
  }

  .logo-wrap {
    width: 74px;
    height: 74px;
    margin-bottom: 8px;
  }

  .tagline {
    margin-bottom: 13px;
    font-size: 12px;
  }

  .feature-list {
    gap: 6px;
  }

  .feature-list li {
    min-height: 32px;
    padding-right: 7px;
    padding-left: 7px;
    font-size: 9.25px;
  }

  .live-grid {
    gap: 7px;
  }

  .live-badge,
  .viewer-badge {
    top: 6px;
  }

  .live-badge {
    left: 6px;
  }

  .viewer-badge {
    right: 6px;
  }

  .card-info {
    right: 7px;
    bottom: 7px;
    left: 7px;
  }

  .card-info strong {
    font-size: 12px;
  }

  .download-button {
    min-height: 50px;
    font-size: 13px;
  }

  .download-button .button-arrow {
    display: none;
  }

  .install-bar {
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (min-width: 520px) {
  .page {
    padding-top: 48px;
  }

  .live-grid {
    gap: 14px;
  }

  .live-card {
    border-radius: 20px;
  }

  .download-button {
    min-height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
