:root {
  color-scheme: light;
  --bg: #eef3f7;
  --bg-top: #f7fafc;
  --bg-bottom: #edf2f7;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #102a43;
  --muted: #486581;
  --muted-soft: #7b8794;
  --brand-blue: #1274d0;
  --brand-blue-deep: #0b5fb3;
  --brand-blue-text: #0b4f88;
  --brand-pink: #ec5ea8;
  --brand-pink-soft: rgba(236, 94, 168, 0.12);
  --border: rgba(16, 42, 67, 0.08);
  --shadow: 0 20px 50px rgba(16, 42, 67, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(18, 116, 208, 0.18), transparent 30%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

a {
  color: inherit;
}

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

.page-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-lockup__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-lockup__stack {
  display: grid;
  gap: 4px;
}

.eyebrow,
.section-heading__eyebrow,
.tag {
  margin: 0;
  color: var(--brand-blue-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow--subtle {
  color: var(--muted-soft);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: var(--brand-blue-deep);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.94;
}

.wordmark__hit,
.wordmark__score {
  color: var(--brand-blue-deep);
}

.wordmark__n {
  color: var(--brand-pink);
}

.login-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  text-decoration: none;
  font-weight: 700;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.login-btn {
  background: linear-gradient(135deg, #f06bb2 0%, var(--brand-pink) 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(236, 94, 168, 0.24);
}

.secondary-btn {
  border: 1px solid rgba(236, 94, 168, 0.28);
  background: #fff;
  color: var(--brand-pink);
}

.login-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.content {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  gap: 28px;
  align-items: center;
}

.hero__copy {
  display: grid;
  align-content: center;
  gap: 16px;
  justify-items: start;
  max-width: 640px;
}

.hero h1 {
  margin: 0;
  color: var(--brand-blue-text);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero .lead,
.section-heading p,
.help-card p {
  color: var(--muted);
  line-height: 1.6;
}

.hero__sports {
  margin: 0;
  color: #1f3f69;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.hero__visual {
  position: relative;
  min-height: 420px;
}

.visual-stage {
  position: relative;
  min-height: 420px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(239, 246, 255, 0.54) 100%),
    radial-gradient(circle at top right, rgba(18, 116, 208, 0.22), transparent 38%);
  border: 1px solid rgba(18, 116, 208, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 24px 60px rgba(16, 42, 67, 0.08);
  overflow: hidden;
}

.visual-stage__lines {
  position: absolute;
  inset: 10% 8%;
  border: 1px solid rgba(18, 116, 208, 0.08);
  border-radius: 24px;
}

.visual-stage__lines::before,
.visual-stage__lines::after {
  content: "";
  position: absolute;
  background: rgba(18, 116, 208, 0.08);
}

.visual-stage__lines::before {
  top: 50%;
  left: 7%;
  right: 7%;
  height: 1px;
}

.visual-stage__lines::after {
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1px;
}

.hero__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.5;
  pointer-events: none;
}

.hero__glow--one {
  top: 6%;
  left: -2%;
  width: 180px;
  height: 180px;
  background: rgba(18, 116, 208, 0.18);
  animation: driftGlow 9s ease-in-out infinite;
}

.hero__glow--two {
  right: 6%;
  bottom: 4%;
  width: 160px;
  height: 160px;
  background: rgba(236, 94, 168, 0.14);
  animation: driftGlow 11s ease-in-out infinite reverse;
}

.floating-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--brand-blue-text);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(16, 42, 67, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

.floating-chip--squash {
  top: 11%;
  left: 8%;
  animation: floatChip 6s ease-in-out infinite;
}

.floating-chip--tennis {
  top: 18%;
  right: 10%;
  animation: floatChip 7.2s ease-in-out infinite;
}

.floating-chip--padel {
  bottom: 11%;
  left: 11%;
  animation: floatChip 6.8s ease-in-out infinite reverse;
}

.score-panel {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(11, 39, 68, 0.96) 0%, rgba(7, 27, 48, 0.96) 100%);
  color: #f5fbff;
  box-shadow:
    0 28px 54px rgba(7, 27, 48, 0.28),
    0 0 0 1px rgba(18, 116, 208, 0.08);
}

.score-panel--main {
  top: 20%;
  left: 16%;
  right: 14%;
  padding: 22px;
  transform: rotate(-5deg);
  animation: floatMainCard 7.5s ease-in-out infinite;
}

.score-panel--mini {
  width: 180px;
  padding: 16px 18px;
  background:
    linear-gradient(180deg, rgba(12, 46, 81, 0.94) 0%, rgba(7, 27, 48, 0.94) 100%);
}

.score-panel--top {
  top: 7%;
  right: 12%;
  transform: rotate(8deg);
  animation: floatTopCard 6.4s ease-in-out infinite;
}

.score-panel--bottom {
  right: 7%;
  bottom: 13%;
  transform: rotate(5deg);
  animation: floatBottomCard 8.2s ease-in-out infinite;
}

.score-panel__label {
  margin: 0 0 14px;
  color: rgba(202, 227, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-panel__matchup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.score-panel__matchup:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.score-panel__name {
  display: block;
  margin-bottom: 3px;
  color: rgba(191, 221, 255, 0.8);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.score-panel__score {
  color: #7fcbff;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.score-panel__score--accent {
  color: #ff77ba;
}

.score-panel__footer,
.mini-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.score-panel__footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(202, 227, 255, 0.74);
  font-size: 0.84rem;
}

.mini-score-row strong {
  color: #ffffff;
  font-size: 1.2rem;
}

.sport-orb {
  position: absolute;
  border-radius: 999px;
  box-shadow: inset 0 -8px 20px rgba(0, 0, 0, 0.12);
}

.sport-orb--one {
  bottom: 12%;
  left: 28%;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle at 30% 30%, #fff6a7, #ffd929 68%, #efb800 100%);
  animation: floatBall 7s ease-in-out infinite;
}

.sport-orb--two {
  top: 14%;
  right: 28%;
  width: 22px;
  height: 22px;
  background: radial-gradient(circle at 30% 30%, #ffd0ea, #ff72b7 68%, #ec5ea8 100%);
  animation: floatBall 8.4s ease-in-out infinite reverse;
}

.help-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.help-card h2,
.help-card h3 {
  margin: 0 0 10px;
  color: var(--brand-blue-deep);
}

.help-card h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.08;
}

.help-card h3 {
  font-size: 1.2rem;
}

.help-card p {
  margin: 0;
}

.beta-copy-block {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.beta-copy-block h3 {
  margin: 0;
  color: var(--brand-blue-text);
  font-size: 1.05rem;
  line-height: 1.2;
}

.beta-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

.beta-list li + li {
  margin-top: 6px;
}

.beta-access-cta {
  margin-top: 22px;
}

.landing-help-link {
  padding-top: 4px;
  text-align: center;
}

.landing-help-link a {
  border: 0;
  background: transparent;
  color: var(--brand-pink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.landing-help-link a:hover {
  text-decoration: underline;
}

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

.interest-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(18, 116, 208, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(244, 249, 255, 0.9) 100%);
  box-shadow:
    0 20px 44px rgba(16, 42, 67, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
}

.interest-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -30px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(18, 116, 208, 0.22), rgba(18, 116, 208, 0.02) 70%);
}

.interest-card__eyebrow {
  margin: 0 0 12px;
  color: var(--brand-blue-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.interest-card h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #12385f;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.12;
}

.help-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.help-card--full {
  grid-column: 1 / -1;
}

.guide-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.guide-list details {
  border: 1px solid rgba(18, 116, 208, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 16px;
}

.guide-list summary {
  cursor: pointer;
  color: var(--brand-blue-deep);
  font-weight: 700;
  list-style: none;
}

.guide-list summary::-webkit-details-marker {
  display: none;
}

.guide-list details p {
  margin: 12px 0 0;
}

.guide-list a {
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: none;
}

.guide-list a:hover {
  text-decoration: underline;
}

.feedback-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.feedback-form label {
  display: grid;
  gap: 8px;
  color: var(--brand-blue-text);
  font-weight: 700;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  border: 1px solid rgba(18, 116, 208, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  padding: 0.9rem 1rem;
  color: var(--text);
  font: inherit;
  resize: vertical;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
  color: var(--muted-soft);
}

.inline-link {
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.hero--help {
  text-align: center;
}

.hero--help .hero__copy {
  justify-items: center;
  margin: 0 auto;
}

.secondary-btn--disabled,
.secondary-btn--disabled:hover {
  cursor: not-allowed;
  transform: none;
  opacity: 0.8;
}

.help-card--accent {
  border-color: rgba(236, 94, 168, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 244, 249, 0.96) 100%);
}

@keyframes floatMainCard {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-10px) rotate(-5deg);
  }
}

@keyframes floatTopCard {
  0%,
  100% {
    transform: translateY(0) rotate(8deg);
  }
  50% {
    transform: translateY(-10px) rotate(8deg);
  }
}

@keyframes floatBottomCard {
  0%,
  100% {
    transform: translateY(0) rotate(5deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

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

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

@keyframes driftGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(8px, -10px, 0) scale(1.05);
  }
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__grid,
  .interest-grid,
  .help-page-grid {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    max-width: none;
  }

  .hero__visual,
  .visual-stage {
    min-height: 360px;
  }

  .score-panel--main {
    left: 10%;
    right: 10%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100vw - 20px, 1180px);
    padding: 12px 0 32px;
  }

  .topbar,
  .hero,
  .help-card {
    padding: 18px;
  }

  .brand-lockup {
    align-items: center;
    gap: 12px;
  }

  .brand-lockup__logo {
    width: 58px;
    height: 58px;
  }

  .wordmark {
    font-size: clamp(1.6rem, 8vw, 2.25rem);
  }

  .hero h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero {
    padding: 20px;
  }

  .score-panel--main {
    left: 6%;
    right: 6%;
    padding: 18px;
  }

  .score-panel--mini {
    width: 150px;
    padding: 14px 16px;
  }

  .floating-chip {
    min-height: 30px;
    padding: 0.35rem 0.7rem;
    font-size: 0.74rem;
  }
}
