:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  --bg: #050608;
  --text: #f5f7fb;
  --muted: #aeb4c1;
  --dim: #767d89;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --glass: rgba(32, 33, 39, 0.68);
  --glass-strong: rgba(45, 46, 54, 0.78);
  --blue: #0a84ff;
  --cyan: #64d2ff;
  --green: #30d158;
  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 34px 120px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(180deg, #15161b 0%, #08090c 38%, #050608 100%);
  background-attachment: fixed;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1220px;
  min-height: 70px;
  margin: 0 auto;
  padding: 14px 22px;
  background: rgba(5, 6, 8, 0.66);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
}

.brand,
.nav nav,
.hero-actions,
.app-top {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  font-weight: 820;
}

.brand img,
.app-top img,
.final-cta img {
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav nav {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav nav a {
  transition: color 160ms ease;
}

.nav nav a:hover {
  color: var(--text);
}

.nav-cta,
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 760;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-cta,
.primary {
  background: #f5f7fb;
  color: #07080a;
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-cta:hover,
.primary:hover,
.secondary:hover {
  transform: translateY(-2px);
}

main {
  overflow: hidden;
}

.hero,
.device-section,
.feature-section,
.game-section,
.comparison,
.plans-section,
.reviews,
.seo-section,
.final-cta {
  max-width: 1220px;
  margin: 0 auto;
  padding: 96px 22px;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 70px);
  padding-top: 52px;
  text-align: center;
}

.floating-pages {
  position: absolute;
  inset: 8% 0 auto;
  height: 360px;
  pointer-events: none;
}

.floating-pages span {
  position: absolute;
  display: block;
  width: 92px;
  height: 128px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  animation: pageFloat 7s ease-in-out infinite;
}

.floating-pages span::before,
.floating-pages span::after {
  content: "";
  position: absolute;
  right: 14px;
  left: 14px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.floating-pages span::before {
  top: 24px;
}

.floating-pages span::after {
  top: 46px;
  width: 44px;
}

.floating-pages span:nth-child(1) {
  top: 30px;
  left: 4%;
  transform: rotate(-12deg);
}

.floating-pages span:nth-child(2) {
  top: 185px;
  right: 8%;
  transform: rotate(10deg);
  animation-delay: -2s;
}

.floating-pages span:nth-child(3) {
  top: 18px;
  right: 19%;
  width: 70px;
  height: 96px;
  transform: rotate(16deg);
  animation-delay: -4s;
}

.hero-kicker {
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 15px;
  font-weight: 780;
}

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

h1 {
  max-width: 1040px;
  font-size: 78px;
  font-weight: 860;
  line-height: 0.98;
}

h2 {
  max-width: 900px;
  font-size: 52px;
  font-weight: 840;
  line-height: 1.02;
}

h3 {
  font-size: 21px;
  font-weight: 780;
}

.lead {
  max-width: 760px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.52;
}

.hero-actions {
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.device-section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 46px;
  align-items: center;
}

.device-copy p,
.comparison p,
.final-cta p {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.mac-window,
.features article,
.plans article,
.review-grid figure,
.metric-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    var(--glass);
  backdrop-filter: blur(32px) saturate(155%);
  -webkit-backdrop-filter: blur(32px) saturate(155%);
  box-shadow: var(--shadow);
}

.mac-window {
  position: relative;
  min-height: 560px;
  padding: 24px;
  border-radius: 34px;
}

.traffic {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.traffic span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.traffic span:nth-child(1) { background: #ff5f57; }
.traffic span:nth-child(2) { background: #febc2e; }
.traffic span:nth-child(3) { background: #28c840; }

.app-top {
  gap: 13px;
  margin-bottom: 18px;
}

.app-top img {
  width: 52px;
  height: 52px;
}

.app-top small,
.app-stats small,
.app-row span {
  color: var(--muted);
}

.app-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.app-stats div,
.app-input,
.app-row,
.folder-title {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.055);
}

.app-stats div {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.app-input {
  margin: 16px 0;
  padding: 15px;
  color: #dce9ff;
}

.folder-title {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 9px 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 760;
}

.app-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 9px;
  padding: 15px;
}

.reader-bars {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.reader-bars span {
  position: relative;
  overflow: hidden;
  height: 58px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(100, 210, 255, 0.1), rgba(255, 255, 255, 0.06));
}

.reader-bars span::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  animation: readerSweep 3.8s ease-in-out infinite;
}

.reader-bars span:nth-child(2)::after {
  animation-delay: 0.45s;
}

.reader-bars span:nth-child(3)::after {
  animation-delay: 0.9s;
}

.feature-section h2,
.game-section h2,
.plans-section h2,
.seo-section h2,
.reviews h2 {
  margin-bottom: 30px;
}

.features,
.plans,
.review-grid {
  display: grid;
  gap: 16px;
}

.features {
  grid-template-columns: repeat(4, 1fr);
}

.features article,
.plans article,
.review-grid figure {
  border-radius: var(--radius);
  padding: 24px;
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  transition: opacity 640ms ease var(--delay, 0ms), transform 640ms ease var(--delay, 0ms), border-color 180ms ease;
}

.features article span {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--cyan);
  font-weight: 820;
}

.features p,
.plans p,
.review-grid blockquote,
.review-grid figcaption {
  color: var(--muted);
  line-height: 1.55;
}

.features p,
.plans p {
  margin-top: 12px;
}

.game-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  align-items: center;
}

.game-copy p {
  max-width: 610px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.game-board {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.rank-card,
.reward-card,
.shop-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    var(--glass);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 640ms ease var(--delay, 0ms), transform 640ms ease var(--delay, 0ms), border-color 180ms ease;
}

.visible .rank-card,
.visible .reward-card,
.visible .shop-card,
.visible article,
.visible figure {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.rank-card,
.reward-card {
  grid-column: span 3;
  min-height: 190px;
  padding: 26px;
}

.shop-card {
  grid-column: span 2;
  min-height: 150px;
  padding: 22px;
}

.rank-card.active {
  border-color: rgba(100, 210, 255, 0.5);
  background:
    radial-gradient(circle at 20% 0%, rgba(100, 210, 255, 0.28), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    var(--glass-strong);
}

.rank-card small,
.reward-card small,
.shop-card small {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 780;
}

.rank-card strong,
.reward-card strong,
.shop-card strong {
  display: block;
  margin-top: 14px;
  font-size: 28px;
  line-height: 1.05;
}

.shop-card strong {
  font-size: 22px;
}

.rank-card span,
.reward-card span,
.shop-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 28px;
  align-items: center;
}

.metric-card {
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: 34px;
  text-align: center;
}

.metric-card strong {
  color: var(--green);
  font-size: 88px;
  line-height: 0.9;
}

.metric-card span {
  max-width: 150px;
  color: var(--muted);
}

.plans {
  grid-template-columns: repeat(4, 1fr);
}

.plans article {
  min-height: 230px;
}

.plans article strong {
  display: block;
  margin-top: 18px;
  color: var(--text);
  font-size: 34px;
  line-height: 1;
}

.plans article.featured {
  border-color: rgba(100, 210, 255, 0.5);
  background:
    linear-gradient(180deg, rgba(10, 132, 255, 0.24), rgba(255, 255, 255, 0.045)),
    var(--glass-strong);
}

.review-grid {
  grid-template-columns: repeat(3, 1fr);
}

.review-grid figure {
  margin: 0;
}

.review-grid blockquote {
  margin: 0;
  color: #e8edf7;
  font-size: 18px;
}

.review-grid figcaption {
  margin-top: 18px;
  font-size: 14px;
}

.review-note {
  max-width: 700px;
  margin-top: 18px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.5;
}

.seo-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.seo-copy {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.final-cta {
  display: grid;
  justify-items: center;
  text-align: center;
}

.final-cta img {
  width: 92px;
  height: 92px;
  margin-bottom: 24px;
}

.final-cta p {
  margin-right: auto;
  margin-left: auto;
}

.final-cta .primary {
  margin-top: 28px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 760ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible,
.hero.reveal {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pageFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -18px;
  }
}

@keyframes readerSweep {
  0%, 28% {
    transform: translateX(-120%);
  }
  70%, 100% {
    transform: translateX(120%);
  }
}

@media (max-width: 980px) {
  .nav nav {
    display: none;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 40px;
  }

  .device-section,
  .game-section,
  .seo-section,
  .comparison {
    grid-template-columns: 1fr;
  }

  .features,
  .plans,
  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .rank-card,
  .reward-card,
  .shop-card {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .nav {
    padding: 12px 14px;
  }

  .brand span {
    display: none;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }

  .hero,
  .device-section,
  .feature-section,
  .game-section,
  .comparison,
  .plans-section,
  .reviews,
  .seo-section,
  .final-cta {
    padding: 66px 14px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .lead,
  .device-copy p,
  .comparison p,
  .final-cta p {
    font-size: 17px;
  }

  .hero-actions,
  .features,
  .plans,
  .review-grid,
  .game-board,
  .app-stats {
    grid-template-columns: 1fr;
  }

  .floating-pages {
    opacity: 0.45;
  }

  .hero-actions {
    display: grid;
  }

  .mac-window {
    min-height: auto;
    padding: 18px;
    border-radius: 24px;
  }
}

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