:root {
  --background: #07101d;
  --background-soft: #0d1929;
  --card: rgba(17, 31, 50, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f6f8fb;
  --muted: #9dacbe;
  --accent: #6df2d0;
  --accent-strong: #28d6aa;
  --purple: #8f7bff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(83, 63, 190, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(42, 217, 174, 0.12), transparent 30%),
    var(--background);
}

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

.background-glow {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.18;
}

.glow-one {
  top: 6%;
  left: -180px;
  background: var(--purple);
}

.glow-two {
  right: -180px;
  bottom: 10%;
  background: var(--accent);
}

.site-header,
.site-footer,
.section {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-icon {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(109, 242, 208, 0.8);
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a,
.footer-links a {
  transition: color 0.2s ease;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  min-height: 40px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--card-border);
  font-size: 13px;
}

.button-primary {
  color: #04110e;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 40px rgba(40, 214, 170, 0.22);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--card-border);
}

.disabled {
  pointer-events: none;
  opacity: 0.8;
}

.section {
  padding: 90px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 64px;
  min-height: 700px;
  padding-top: 60px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.about-card h2,
.download-card h2 {
  margin: 0;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.98;
}

.hero h1 span {
  color: var(--accent);
}

.hero-copy > p {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.phone-showcase {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: 300px;
  height: 610px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 44px;
  background: #111b2a;
  box-shadow: var(--shadow), 0 0 80px rgba(109, 242, 208, 0.09);
  transform: rotate(3deg);
}

.phone-notch {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 50%;
  width: 92px;
  height: 24px;
  border-radius: 20px;
  background: #070d16;
  transform: translateX(-50%);
}

.game-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(160deg, #0d1c30, #09111d 65%);
  background-size: 34px 34px, 34px 34px, auto;
}

.score {
  position: absolute;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.flow-line {
  position: absolute;
  left: 50%;
  width: 126px;
  height: 126px;
  border: 2px solid rgba(109, 242, 208, 0.18);
  border-radius: 50%;
  transform: translateX(-50%);
}

.line-one { top: 180px; }
.line-two { top: 250px; width: 210px; height: 210px; }
.line-three { top: 340px; width: 126px; height: 126px; }

.ball {
  position: absolute;
  top: 270px;
  left: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #d7fff5, var(--accent) 42%, #1cb78f 78%);
  box-shadow: 0 0 20px rgba(109, 242, 208, 0.8), 0 0 70px rgba(109, 242, 208, 0.35);
  transform: translateX(-50%);
  animation: float 2.4s ease-in-out infinite;
}

.particle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.p1 { top: 240px; left: 72px; }
.p2 { top: 358px; right: 60px; width: 5px; height: 5px; }
.p3 { top: 438px; left: 116px; width: 4px; height: 4px; }

.tap-text {
  position: absolute;
  bottom: 54px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

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

.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-heading h2,
.about-card h2,
.download-card h2 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
}

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

.feature-card,
.about-card,
.download-card {
  border: 1px solid var(--card-border);
  background: var(--card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.feature-card {
  min-height: 250px;
  padding: 30px;
  border-radius: 24px;
}

.feature-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 34px;
  place-items: center;
  border: 1px solid rgba(109, 242, 208, 0.22);
  border-radius: 15px;
  color: var(--accent);
  background: rgba(109, 242, 208, 0.08);
  font-size: 20px;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.feature-card p,
.about-card p,
.download-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-card p {
  margin: 0;
  font-size: 15px;
}

.about-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
  padding: 56px;
  border-radius: 30px;
}

.about-card p {
  margin: 0;
  font-size: 17px;
}

.download-card {
  padding: 70px 30px;
  border-radius: 30px;
  text-align: center;
}

.download-card p {
  margin: 20px auto 28px;
}

.site-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 34px 0 44px;
  border-top: 1px solid var(--card-border);
}

.site-footer p {
  margin: 12px 0 0;
  font-size: 13px;
}

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

  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    text-align: center;
  }

  .hero-copy > p,
  .section-heading {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-meta {
    justify-content: center;
  }

  .phone-frame {
    width: 270px;
    height: 550px;
  }

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

  .about-card {
    gap: 28px;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer,
  .section {
    width: min(100% - 24px, 1120px);
  }

  .site-header .button-small {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-copy > p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-meta {
    flex-direction: column;
    gap: 8px;
  }

  .feature-grid {
    gap: 14px;
  }

  .about-card {
    padding: 34px 24px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

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