@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #0a1513;
  --bg-2: #0f201c;
  --surface: #111f1c;
  --surface-2: #152622;
  --accent: #f1ff5d;
  --accent-2: #24e2b2;
  --ink: #f6faf5;
  --muted: #c7d7d0;
  --stroke: rgba(245, 247, 242, 0.18);
  --shadow: rgba(5, 10, 9, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #1a2f29 0%, #0a1513 55%, #080f0d 100%);
  min-height: 100vh;
}

.court-bg {
  position: relative;
  overflow: hidden;
}

.court-bg::before,
.court-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  z-index: 0;
}

.court-bg::before {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(36, 226, 178, 0.35), transparent 70%);
  top: -220px;
  left: -160px;
}

.court-bg::after {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(241, 255, 93, 0.3), transparent 70%);
  bottom: -220px;
  right: -180px;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 64px 14px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(10, 20, 18, 0.7);
  border-radius: 10px;
}

.brand-name {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 1px;
  font-size: 26px;
}

.brand-tag {
  font-size: 12px;
  color: var(--muted);
}

.links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

button {
  font-family: "Space Grotesk", sans-serif;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
}

button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1512;
  box-shadow: 0 18px 32px rgba(36, 226, 178, 0.35);
}

button.ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 44px;
  padding: 44px 64px 66px;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(44px, 6.5vw, 90px);
  line-height: 0.94;
  margin-bottom: 18px;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 26px 0 18px;
}

.hero-gets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 14px;
}

.get-item {
  display: grid;
  gap: 6px;
}

.get-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.get-value {
  font-weight: 600;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.metric-value {
  font-size: 20px;
  font-weight: 700;
}

.metric-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.scoreboard {
  background: linear-gradient(180deg, rgba(16, 30, 27, 0.95), rgba(8, 16, 14, 0.95));
  border-radius: 24px;
  padding: 26px;
  border: 1px solid var(--stroke);
  box-shadow: 0 18px 40px var(--shadow);
  display: grid;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.score-title {
  font-size: 18px;
  font-weight: 600;
}

.score-sub {
  font-size: 13px;
  color: var(--muted);
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.player-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--stroke);
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  align-items: center;
}

.player-photo {
  width: 90px;
  height: 90px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1b3a34, #12221f);
  display: grid;
  place-items: center;
  position: relative;
}

.player-ring {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px dashed rgba(241, 255, 93, 0.6);
}

.ball {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff, #f1ff5d 60%);
  position: absolute;
}

.player-name {
  font-size: 22px;
  font-weight: 600;
}

.player-tour {
  color: var(--accent-2);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.player-rank {
  margin-top: 12px;
  display: grid;
  gap: 4px;
}

.rank-label {
  font-size: 12px;
  color: var(--muted);
}

.rank-value {
  font-size: 28px;
  font-weight: 700;
}

.trend {
  background: rgba(36, 226, 178, 0.15);
  color: var(--accent-2);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trend.down {
  background: rgba(255, 148, 148, 0.18);
  color: #ff9f9f;
}

.score-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.6s ease;
}

.score-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.mono {
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.court-lines {
  position: absolute;
  inset: -30px;
  border: 2px solid rgba(241, 255, 93, 0.2);
  border-radius: 30px;
  z-index: 1;
  pointer-events: none;
}

.court-lines::before,
.court-lines::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(36, 226, 178, 0.15);
  border-radius: 26px;
}

.court-lines::after {
  inset: 60px;
  border-color: rgba(36, 226, 178, 0.22);
}

.quickstart,
.dev {
  background: rgba(10, 18, 16, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.quick-grid,
.dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.quick-card,
.dev-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--stroke);
  display: grid;
  gap: 12px;
}

.quick-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.mini {
  font-size: 13px;
  color: var(--muted);
}

.ticker {
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 32px;
  animation: scroll 24s linear infinite;
  font-weight: 600;
}

.ticker span {
  color: var(--muted);
  white-space: nowrap;
}

.section {
  padding: 70px 64px;
  display: grid;
  gap: 30px;
}

.section-title h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(32px, 4vw, 54px);
  margin-bottom: 8px;
}

.section-title p {
  color: var(--muted);
  max-width: 520px;
}

.steps,
.endpoint-grid,
.use-grid,
.pricing-grid,
.faq-grid,
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.step,
.endpoint,
.use-card,
.price-card,
.faq-item,
.value-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 22px;
  border: 1px solid var(--stroke);
}

.step-number {
  font-weight: 700;
  margin-bottom: 12px;
}

.endpoints {
  position: relative;
  background: rgba(9, 18, 16, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.endpoints::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
      90deg,
      rgba(241, 255, 93, 0.08),
      rgba(241, 255, 93, 0.08) 1px,
      transparent 1px,
      transparent 120px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(36, 226, 178, 0.08),
      rgba(36, 226, 178, 0.08) 1px,
      transparent 1px,
      transparent 80px
    );
  opacity: 0.35;
  pointer-events: none;
}

.endpoints > * {
  position: relative;
  z-index: 1;
}

.endpoint {
  background: var(--surface-2);
}

.endpoint-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.code {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.code pre {
  white-space: pre-wrap;
  font-size: 12px;
  color: #d4ffed;
}

.sample {
  margin-top: 26px;
  background: rgba(10, 18, 16, 0.85);
  border-radius: 18px;
  border: 1px solid var(--stroke);
  padding: 22px;
  display: grid;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.sample::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  opacity: 0.3;
  transform: translateX(-120%);
  animation: shimmer 6s ease-in-out infinite;
}

.sample-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.sample-title {
  font-size: 18px;
  font-weight: 600;
}

.sample-sub {
  font-size: 13px;
  color: var(--muted);
}

.sample-code {
  position: relative;
  z-index: 1;
}

.sample-code pre {
  white-space: pre-wrap;
  font-size: 12px;
  color: #d4ffed;
}

.price-card {
  text-align: center;
  display: grid;
  gap: 12px;
}

.price-card.featured {
  background: linear-gradient(160deg, rgba(241, 255, 93, 0.12), rgba(36, 226, 178, 0.1));
  border: 1px solid rgba(241, 255, 93, 0.4);
  transform: translateY(-8px);
}

.price {
  font-size: 24px;
  font-weight: 700;
}

.tier-note {
  color: var(--muted);
  font-size: 13px;
}

.footer {
  border-top: 1px solid var(--stroke);
  padding: 40px 64px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.12s;
}

.delay-2 {
  animation-delay: 0.24s;
}

.delay-3 {
  animation-delay: 0.36s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-120%);
  }
  50% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@media (max-width: 980px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .links {
    flex-wrap: wrap;
  }

  .hero {
    padding: 32px 24px 54px;
  }

  .section {
    padding: 60px 24px;
  }

  .footer {
    padding: 32px 24px 50px;
  }
}

@media (max-width: 720px) {
  .hero-actions {
    flex-direction: column;
  }

  .player-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

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