:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #151b2e;
  --muted: #64708b;
  --line: #e4e8f1;
  --navy: #081026;
  --navy-2: #0e2050;
  --blue: #1f7aff;
  --cyan: #20d5f2;
  --violet: #4f6cff;
  --teal: #14ccb0;
  --amber: #ffb648;
  --danger: #ff5470;
  --radius: 8px;
  --shadow-sm: 0 8px 24px rgba(20, 27, 53, 0.08);
  --shadow-lg: 0 24px 70px rgba(12, 18, 43, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.icon-button:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-1px);
}

.icon-button svg,
.btn-download svg,
.btn-ghost svg,
.brand-icon,
.coming-soon svg,
.review-footnote svg,
.modal-placeholder-note svg,
.toast svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(11, 16, 38, 0.08);
  backdrop-filter: blur(14px);
}

.site-header.scrolled {
  box-shadow: 0 10px 32px rgba(17, 26, 61, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(47, 107, 255, 0.26);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}

.brand-name span {
  color: var(--blue);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  opacity: 0;
  transform: scaleX(0.5);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

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

.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 13px 22px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--blue), var(--violet));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(72, 82, 255, 0.28);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(72, 82, 255, 0.36);
}

.btn-download strong,
.btn-download small {
  display: block;
  line-height: 1.3;
  text-align: left;
}

.btn-download small {
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.82;
}

.btn-download--nav {
  min-height: 42px;
  padding: 9px 16px;
  font-size: 0.9rem;
  border-radius: var(--radius);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 52%, #1a3a8f 100%);
  background-size:
    44px 44px,
    44px 44px,
    auto;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 16, 38, 0.38), transparent 46%, rgba(55, 39, 110, 0.28));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 72px;
  min-height: 740px;
  padding-top: 56px;
  padding-bottom: 72px;
}

.hero-copy {
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 600;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(22, 200, 164, 0.18);
}

.hero h1 {
  margin: 0;
  font-size: 6.2rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(100deg, #ffffff 20%, #bfe7ff 62%, #a6c4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  margin: 18px 0 0;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.4;
}

.hero-description {
  max-width: 560px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}

.btn-download--primary {
  min-height: 66px;
  padding: 16px 26px;
  font-size: 1.05rem;
}

.btn-download--primary svg {
  width: 24px;
  height: 24px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 42px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-meta div {
  min-width: 0;
}

.hero-meta dt {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.hero-meta dd {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 620px;
}

.phone-shell {
  position: relative;
  width: min(330px, 78vw);
  aspect-ratio: 9 / 18.6;
  padding: 11px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 42px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background: #0b1026;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  width: 34%;
  height: 18px;
  border-radius: 999px;
  background: rgba(10, 14, 30, 0.9);
  transform: translateX(-50%);
}

.screen-status {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(8, 13, 32, 0.58);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.screen-status span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.screen-status svg {
  width: 15px;
  height: 15px;
  color: var(--cyan);
}

.floating-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(12, 18, 43, 0.78);
  color: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.floating-chip svg {
  width: 22px;
  height: 22px;
  color: var(--cyan);
}

.floating-chip strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.25;
}

.floating-chip span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.chip-games {
  top: 74px;
  right: -2px;
  animation: float 4.6s ease-in-out infinite;
}

.chip-speed {
  bottom: 92px;
  left: -8px;
  animation: float 5.4s ease-in-out 0.8s infinite;
}

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

.features {
  padding: 112px 0;
  background: var(--surface);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 58px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.section-heading h2 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 800;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.feature-item {
  grid-column: span 2;
  min-width: 0;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.feature-item:nth-child(n + 4) {
  grid-column: span 3;
}

.feature-item:hover {
  transform: translateY(-5px);
  border-color: rgba(47, 107, 255, 0.36);
  box-shadow: 0 22px 46px rgba(20, 27, 53, 0.13);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.12), rgba(25, 200, 232, 0.14));
  color: var(--blue);
}

.feature-icon svg {
  width: 25px;
  height: 25px;
}

.feature-item h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.feature-item p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.preview {
  position: relative;
  padding: 112px 0 96px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(150deg, #0a1230, #101f4d 55%, #1c2f7a);
  background-size:
    44px 44px,
    44px 44px,
    auto;
  color: #fff;
}

.section-heading--light .eyebrow {
  color: var(--cyan);
}

.section-heading--light p {
  color: rgba(255, 255, 255, 0.66);
}

.preview-scroller {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  scroll-snap-type: x mandatory;
}

.preview-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  aspect-ratio: 9 / 16;
  scroll-snap-align: start;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.preview-item:hover img {
  transform: scale(1.06);
}

.preview-item figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 34px 18px 16px;
  background: linear-gradient(transparent, rgba(7, 11, 28, 0.92));
  color: #fff;
}

.preview-item figcaption strong {
  font-size: 1.02rem;
}

.preview-item figcaption span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

.preview-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.preview-controls .icon-button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.preview-controls .icon-button:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.reviews {
  padding: 112px 0;
  background: var(--bg);
}

.reviews-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  margin-bottom: 46px;
  text-align: left;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(47, 107, 255, 0.22);
  border-radius: 999px;
  background: rgba(47, 107, 255, 0.08);
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 700;
}

.coming-soon svg {
  width: 17px;
  height: 17px;
}

.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  color: var(--muted);
}

.rating-summary strong {
  color: var(--ink);
  font-size: 2.6rem;
  line-height: 1;
}

.stars {
  display: inline-flex;
  gap: 4px;
  color: var(--amber);
}

.stars svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.stars--small svg {
  width: 17px;
  height: 17px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.review-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

.avatar--blue {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.avatar--violet {
  background: linear-gradient(135deg, var(--violet), #c15bff);
}

.avatar--cyan {
  background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.review-top h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.3;
}

.review-top div > span {
  color: var(--muted);
  font-size: 0.78rem;
}

.review-badge {
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(25, 200, 232, 0.12);
  color: #0d94b1;
  font-size: 0.74rem;
  font-weight: 700;
}

.review-card > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.review-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.review-footnote svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
}

.faq {
  padding: 112px 0;
  background: var(--surface);
}

.faq-wrap {
  max-width: 860px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(47, 107, 255, 0.34);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  list-style: none;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: var(--blue);
  transition: transform 0.25s ease;
}

.faq-item[open] summary svg {
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta {
  padding: 0 0 112px;
  background: var(--surface);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 56px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(120deg, var(--navy), #0f245e 55%, #1f2f86);
  background-size:
    36px 36px,
    36px 36px,
    auto;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-copy h2 {
  margin: 0;
  font-size: 2.1rem;
  line-height: 1.2;
}

.cta-copy p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.eyebrow--light {
  color: var(--cyan);
}

.btn-download--light {
  flex: 0 0 auto;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.btn-download--light:hover {
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
}

.site-footer {
  padding: 64px 0 34px;
  background: #0a0e22;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-brand p {
  max-width: 320px;
  margin: 16px 0 0;
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-links h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 26px;
  font-size: 0.86rem;
}

.footer-bottom a {
  color: var(--cyan);
}

.footer-note {
  color: rgba(255, 255, 255, 0.42);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 24, 0.66);
  backdrop-filter: blur(5px);
}

.modal-panel {
  position: relative;
  width: min(540px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  padding: 38px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
  animation: modal-in 0.25s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.modal-panel h2 {
  margin: 0 0 16px;
  font-size: 1.7rem;
}

.modal-panel p {
  margin: 0 0 14px;
  color: var(--muted);
}

.modal-placeholder-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(246, 180, 58, 0.12);
  color: #8a6411;
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 400;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 40px);
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 0.92rem;
  box-shadow: 0 18px 46px rgba(8, 13, 32, 0.34);
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

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

.toast svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr 0.82fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: 5rem;
  }

  .hero-tagline {
    font-size: 1.4rem;
  }

  .hero-visual {
    min-height: 560px;
  }

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

  .feature-item,
  .feature-item:nth-child(n + 4) {
    grid-column: span 1;
  }

  .preview-scroller {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
    border-radius: var(--radius);
  }

  .nav-links a:hover {
    background: var(--bg);
  }

  .nav-links a::after {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .btn-download--nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 48px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero h1 {
    font-size: 4.6rem;
  }

  .hero-visual {
    min-height: 520px;
  }

  .reviews-heading {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 34px;
    padding-bottom: 54px;
  }

  .hero h1 {
    font-size: 3.8rem;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  .hero-description {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-download,
  .hero-actions .btn-ghost {
    width: 100%;
  }

  .hero-meta {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 18px;
  }

  .hero-visual {
    min-height: 470px;
  }

  .phone-shell {
    width: min(300px, 76vw);
  }

  .chip-games {
    top: 52px;
    right: 0;
  }

  .chip-speed {
    bottom: 66px;
    left: 0;
  }

  .features,
  .preview,
  .reviews,
  .faq {
    padding: 78px 0;
  }

  .cta {
    padding-bottom: 78px;
  }

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

  .section-heading h2 {
    font-size: 1.9rem;
  }

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

  .preview-scroller {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .preview-scroller::-webkit-scrollbar {
    display: none;
  }

  .preview-item {
    flex: 0 0 68%;
    aspect-ratio: 9 / 16;
  }

  .preview-controls {
    justify-content: center;
  }

  .rating-summary {
    flex-wrap: wrap;
    gap: 12px;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 28px;
  }

  .cta-copy h2 {
    font-size: 1.75rem;
  }

  .btn-download--light {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 22px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-panel {
    padding: 30px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.error-hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding-top: 72px;
  padding-bottom: 96px;
}

.error-hero .container {
  text-align: center;
}

.error-copy {
  max-width: 720px;
  margin: 0 auto;
}

.error-code {
  font-size: 8rem !important;
  margin: 0;
  letter-spacing: 0.04em;
}

.error-actions {
  justify-content: center;
}

@media (max-width: 640px) {
  .error-hero {
    min-height: calc(100vh - 56px);
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .error-code {
    font-size: 5.6rem !important;
  }
}
