:root {
  color-scheme: dark;
  --bg: #07080d;
  --bg-soft: #0d0f16;
  --panel: #11131b;
  --panel-2: #171925;
  --text: #f7f7fb;
  --muted: #a7a8bc;
  --muted-2: #707286;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --coral: #ff4f72;
  --coral-2: #ff6b57;
  --gold: #f8c65c;
  --silver: #d8deea;
  --bronze: #d08851;
  --cyan: #45d6ff;
  --lime: #78f3b3;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 260px),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}

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

button,
input,
textarea {
  font: inherit;
}

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

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 8, 13, 0.82);
  backdrop-filter: blur(20px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 19, 27, 0.62);
}

.nav-menu a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 160ms ease, background 160ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, color 170ms ease;
}

.nav-cta,
.button-primary {
  background: var(--coral);
  color: white;
  box-shadow: 0 16px 48px rgba(255, 79, 114, 0.28);
}

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

.button-ghost {
  border-color: var(--line-strong);
  background: rgba(17, 19, 27, 0.72);
  color: var(--text);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 19, 27, 0.86);
  color: var(--text);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(820px, 86svh);
  padding: 118px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero-canvas,
.hero-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-canvas {
  z-index: -3;
  background: #080a10;
}

.hero-vignette {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 8, 13, 0.94) 0%, rgba(7, 8, 13, 0.72) 44%, rgba(7, 8, 13, 0.34) 100%),
    linear-gradient(180deg, rgba(7, 8, 13, 0.58), rgba(7, 8, 13, 0.72));
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-title {
  max-width: 780px;
  margin: 0;
  font-size: clamp(4.8rem, 18vw, 14rem);
  line-height: 0.78;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.hero-copy {
  max-width: 650px;
  margin: 30px 0 0;
  color: rgba(247, 247, 251, 0.86);
  font-size: clamp(1.08rem, 2.1vw, 1.45rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 10px;
  max-width: 520px;
  margin: 44px 0 0;
}

.hero-metrics div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 19, 27, 0.68);
  box-shadow: var(--shadow);
}

.hero-metrics dt {
  color: var(--text);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
}

.hero-metrics dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.section {
  padding: clamp(72px, 9vw, 120px) 0;
  border-bottom: 1px solid var(--line);
}

.section-tight {
  padding: clamp(38px, 6vw, 72px) 0;
}

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

.intro-band {
  background: #0b0d14;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}

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

.section-title {
  margin: 0;
  max-width: 900px;
  color: var(--text);
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.98;
  font-weight: 850;
}

.section-copy {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

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

.feature-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    var(--panel);
  box-shadow: var(--shadow);
}

.feature-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(69, 214, 255, 0.08), rgba(255, 255, 255, 0.012)),
    var(--panel);
}

.feature-card:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(120, 243, 179, 0.07), rgba(255, 255, 255, 0.012)),
    var(--panel);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 79, 114, 0.42);
  border-radius: 8px;
  background: rgba(255, 79, 114, 0.1);
  color: var(--coral);
  font-weight: 900;
}

.feature-card h3 {
  margin: 54px 0 10px;
  font-size: 1.45rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.demo-section {
  background: linear-gradient(180deg, #090a11, #0e1018);
}

.demo-layout,
.ranking-layout,
.cta-layout,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: rgba(247, 247, 251, 0.88);
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--coral);
  content: "";
  box-shadow: 0 0 24px rgba(255, 79, 114, 0.7);
}

.phone-stage {
  display: grid;
  place-items: center;
}

.phone {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 0.48;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  background: #05060a;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.56);
  overflow: hidden;
}

.phone::before {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 82px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-50%);
  content: "";
}

.phone-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 4px 12px;
}

.phone-top span {
  font-size: 1.35rem;
  font-weight: 900;
}

.phone-top small {
  color: var(--muted);
}

.phone-map {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(25deg, transparent 44%, rgba(255, 255, 255, 0.08) 45%, rgba(255, 255, 255, 0.08) 47%, transparent 48%),
    linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.06) 39%, rgba(255, 255, 255, 0.06) 42%, transparent 43%),
    linear-gradient(170deg, transparent 50%, rgba(255, 255, 255, 0.05) 51%, rgba(255, 255, 255, 0.05) 53%, transparent 54%),
    #090b12;
}

.phone-map::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
}

.map-line,
.zone,
.runner-dot,
.run-panel {
  position: absolute;
}

.map-line {
  z-index: 2;
  height: 7px;
  border-radius: 999px;
  transform-origin: left center;
}

.line-a {
  left: 24%;
  top: 42%;
  width: 260px;
  background: var(--cyan);
  transform: rotate(28deg);
}

.line-b {
  left: 10%;
  top: 62%;
  width: 300px;
  background: var(--coral);
  transform: rotate(-18deg);
}

.zone {
  z-index: 1;
  border: 3px solid currentColor;
  background: color-mix(in srgb, currentColor 20%, transparent);
  opacity: 0.86;
  clip-path: polygon(50% 0, 94% 28%, 78% 88%, 18% 88%, 4% 28%);
}

.zone-one {
  left: 18%;
  top: 18%;
  width: 116px;
  height: 104px;
  color: var(--lime);
}

.zone-two {
  right: 12%;
  top: 36%;
  width: 132px;
  height: 118px;
  color: var(--gold);
}

.zone-three {
  left: 22%;
  bottom: 22%;
  width: 148px;
  height: 132px;
  color: var(--cyan);
}

.runner-dot {
  z-index: 3;
  left: 56%;
  top: 54%;
  width: 18px;
  height: 18px;
  border: 4px solid white;
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 0 0 9px rgba(255, 79, 114, 0.18), 0 0 36px rgba(255, 79, 114, 0.7);
  animation: runnerPulse 1.8s ease-in-out infinite;
}

.run-panel {
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(5, 6, 10, 0.82);
  backdrop-filter: blur(18px);
}

.run-panel span,
.run-panel strong {
  display: block;
}

.run-panel span {
  color: var(--cyan);
  font-size: 1.35rem;
  font-weight: 900;
}

.run-panel strong {
  color: var(--text);
  font-size: 0.86rem;
}

.run-panel button {
  grid-column: 1 / -1;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--coral);
  color: white;
  font-weight: 900;
}

.leaderboard {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--panel);
  box-shadow: var(--shadow);
}

.leaderboard-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.leaderboard-tabs button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.leaderboard-tabs button.is-active {
  border-color: rgba(255, 79, 114, 0.45);
  background: var(--coral);
  color: white;
}

.podium {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 10px;
  align-items: end;
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
}

.podium li {
  display: grid;
  justify-items: center;
  align-content: end;
  min-height: 178px;
  padding: 18px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c0e15;
  text-align: center;
}

.podium li.winner {
  min-height: 224px;
  border-color: rgba(248, 198, 92, 0.55);
  box-shadow: 0 0 0 1px rgba(248, 198, 92, 0.1), 0 24px 80px rgba(248, 198, 92, 0.08);
}

.medal {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 999px;
  color: #101116;
  font-weight: 950;
}

.gold {
  background: var(--gold);
}

.silver {
  background: var(--silver);
}

.bronze {
  background: var(--bronze);
}

.podium strong {
  font-size: 0.95rem;
}

.podium small {
  margin-top: 6px;
  color: var(--muted);
}

.rank-list {
  display: grid;
  gap: 8px;
}

.rank-row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.rank-row span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 79, 114, 0.12);
  color: var(--coral);
  font-weight: 900;
}

.rank-row small {
  color: var(--muted);
  text-align: right;
}

.cta-section {
  background: #0d0f16;
}

.cta-layout {
  grid-template-columns: 1fr auto;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 79, 114, 0.12), transparent 48%),
    #10121a;
}

.faq-layout {
  align-items: start;
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-item button span {
  position: relative;
  flex: 0 0 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.faq-item button span::before,
.faq-item button span::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transform: translate(-50%, -50%);
  content: "";
}

.faq-item button span::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity 160ms ease;
}

.faq-item.is-open button span::after {
  opacity: 0;
}

.faq-item p {
  max-height: 0;
  margin: 0;
  padding: 0 18px;
  overflow: hidden;
  color: var(--muted);
  transition: max-height 220ms ease, padding 220ms ease;
}

.faq-item.is-open p {
  max-height: 240px;
  padding: 0 18px 18px;
}

.site-footer {
  padding: 34px 0;
  background: #07080d;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.footer-inner p {
  margin: 0;
}

.legal-main {
  padding: 118px 0 72px;
}

.legal-wrap {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
}

.legal-card {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1;
}

.legal-card h2 {
  margin: 34px 0 10px;
  font-size: 1.28rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card a {
  color: var(--coral);
  font-weight: 800;
}

.legal-card ul {
  padding-left: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes runnerPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}

@media (max-width: 940px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu,
  .nav-cta {
    display: none;
  }

  .nav-menu.is-open {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 4px;
    padding: 10px;
    background: rgba(17, 19, 27, 0.96);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open a {
    padding: 13px;
  }

  .intro-grid,
  .demo-layout,
  .ranking-layout,
  .cta-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

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

  .feature-card {
    min-height: 210px;
  }

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

@media (max-width: 640px) {
  .nav {
    width: min(100% - 24px, var(--max));
    height: 64px;
  }

  .hero {
    min-height: 86svh;
    padding-top: 106px;
  }

  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(7, 8, 13, 0.8), rgba(7, 8, 13, 0.9)),
      linear-gradient(90deg, rgba(7, 8, 13, 0.92), rgba(7, 8, 13, 0.48));
  }

  .hero-title {
    font-size: clamp(4.1rem, 24vw, 6rem);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .button {
    width: 100%;
  }

  .section-inner {
    width: min(100% - 24px, var(--max));
  }

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

  .podium li,
  .podium li.winner {
    min-height: 132px;
  }

  .rank-row {
    grid-template-columns: 34px 1fr;
  }

  .rank-row small {
    grid-column: 2;
    text-align: left;
  }

  .phone {
    border-radius: 20px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
