:root {
  --bg: #0b0f14;
  --bg-2: #10151d;
  --panel: #111722;
  --panel-2: #171d29;
  --panel-3: #21172d;
  --text: #e6edf3;
  --muted: #9ca8b7;
  --muted-2: #687381;
  --berry: #b04cff;
  --berry-2: #ff6ad5;
  --green: #3fb950;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.08);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 4%, rgba(255, 106, 213, 0.16), transparent 30%),
    radial-gradient(circle at 16% 8%, rgba(176, 76, 255, 0.14), transparent 34%),
    linear-gradient(135deg, #08070d 0%, var(--bg) 58%, #05070c 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 72px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section-grid {
  position: relative;
  display: block;
}

.hero {
  width: 100%;
  min-height: 100vh;
  padding: 42px 0 82px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 660px);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--berry-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 22px;
  font-size: 4.8rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary {
  min-width: 220px;
  color: #fff;
  background: linear-gradient(135deg, var(--berry), var(--berry-2));
  box-shadow: 0 18px 44px rgba(255, 79, 163, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 22px 54px rgba(255, 79, 163, 0.38);
}

.btn-download {
  min-width: 150px;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 3px;
  padding: 8px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(176, 76, 255, 0.26);
}

.btn-download span {
  font-size: 0.96rem;
}

.btn-download small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.btn-download.is-available {
  background: rgba(176, 76, 255, 0.14);
  border-color: rgba(176, 76, 255, 0.48);
}

.btn-download[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.68;
}

.hero-status-row {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 4;
  display: flex;
  margin: 0;
}

.online-card {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(63, 185, 80, 0.22);
  border-radius: 999px;
  background: rgba(63, 185, 80, 0.08);
}

.online-card strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.15;
}

.online-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(63, 185, 80, 0.14);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.start-transition {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 106, 213, 0.26), transparent 30%),
    radial-gradient(circle at 50% 48%, rgba(176, 76, 255, 0.18), transparent 48%),
    rgba(5, 7, 12, 0.9);
  backdrop-filter: blur(0);
  transition: opacity 0.28s ease, backdrop-filter 0.36s ease;
}

.transition-mark {
  position: relative;
  display: grid;
  width: min(76vw, 360px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  transform: scale(0.78);
}

.transition-mark::before,
.transition-mark::after {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(255, 106, 213, 0.4);
  border-radius: 50%;
  opacity: 0;
}

.transition-mark span {
  position: relative;
  color: #fff;
  font-size: clamp(2.2rem, 8vw, 5.8rem);
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 22px 70px rgba(255, 106, 213, 0.5);
  transform: translateY(8px);
  opacity: 0;
}

body.is-launching {
  overflow: hidden;
}

body.is-launching .hero-copy {
  opacity: 0;
  transform: scale(0.95) translateY(-18px);
  filter: blur(6px);
  transition: opacity 0.32s ease, transform 0.42s cubic-bezier(.2,.9,.2,1), filter 0.32s ease;
}

body.is-launching .hero-status-row {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

body.is-launching .start-transition {
  opacity: 1;
  backdrop-filter: blur(12px);
}

body.is-launching .transition-mark {
  animation: launchMark 0.76s cubic-bezier(.2,.9,.2,1) forwards;
}

body.is-launching .transition-mark::before {
  animation: launchRing 0.76s ease forwards;
}

body.is-launching .transition-mark::after {
  animation: launchRing 0.76s 0.08s ease forwards;
}

body.is-launching .transition-mark span {
  animation: launchText 0.58s 0.08s cubic-bezier(.2,.9,.2,1) forwards;
}

@keyframes launchMark {
  0% { transform: scale(0.78); }
  54% { transform: scale(1); }
  100% { transform: scale(1.26); }
}

@keyframes launchRing {
  0% { opacity: 0; transform: scale(0.62); }
  36% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.95); }
}

@keyframes launchText {
  0% { opacity: 0; transform: translateY(12px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1024px) {
  .hero-page {
    display: block;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  h1 {
    font-size: 4rem;
  }

  .hero {
    min-height: auto;
    padding: 28px 0 42px;
  }

}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, var(--max));
  }

  .hero-copy {
    width: min(100%, 430px);
    margin-inline: auto;
  }

  .hero {
    padding: 22px 0 28px;
  }

  h1 {
    font-size: 2.75rem;
    line-height: 1.06;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: min(100%, 430px);
    margin-inline: auto;
  }

  .btn-primary {
    min-width: min(260px, 100%);
    flex: 0 0 auto;
  }

  .btn-download {
    min-width: 142px;
    flex: 0 1 150px;
  }

  .online-card {
    border-radius: 999px;
  }

  .hero-status-row {
    bottom: 12px;
    right: 12px;
  }

}

@media (max-width: 420px) {
  .page-shell {
    width: min(100% - 16px, var(--max));
  }

  h1 {
    font-size: 2.35rem;
  }

  .hero-actions {
    width: min(100%, 350px);
  }

  .btn-primary {
    min-width: 230px;
  }

  .btn-download {
    min-width: 0;
    flex-basis: calc(50% - 5px);
  }

}
