:root {
  --bg-black: #0a0a0a;
  --bg-panel: #17181a;
  --bg-panel-alt: #1e2023;
  --border: #2a2c2f;
  --text-primary: #f5f5f5;
  --text-secondary: #9a9ba0;
  --text-muted: #6c6d72;
  --accent: #2f9fe8;
  --accent-hover: #2489cc;
  --positive: #4fce8a;
  --negative: #e8615a;
  --max-width: 1100px;
  --max-width-wide: 1180px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-black);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Nav */

.nav {
  background-color: var(--bg-black);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav__inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  text-decoration: none;
}

.nav__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text-primary);
}

/* Hero */

.hero {
  background-color: var(--bg-black);
  padding: 96px 0 88px;
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: 110px;
  height: auto;
  margin-bottom: 28px;
}

.hero__title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}

.hero__subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0 0 40px;
  max-width: 480px;
}

.signup {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 420px;
}

.signup__input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  font-size: 15px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease;
}

.signup__input::placeholder {
  color: var(--text-muted);
}

.signup__input:focus {
  border-color: var(--accent);
}

.signup__button {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background-color: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.signup__button:hover {
  background-color: var(--accent-hover);
}

.signup__button:active {
  transform: scale(0.98);
}

.signup__message {
  min-height: 20px;
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.signup__message.is-error {
  color: #e8615a;
}

.signup__message.is-success {
  color: #4fce8a;
}

/* Features */

.features {
  background-color: var(--bg-panel-alt);
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.feature-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.feature-card__icon svg {
  width: 26px;
  height: 26px;
}

.feature-card__title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
}

.feature-card__text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

/* Why */

.why {
  background-color: var(--bg-black);
  padding: 88px 0;
}

.why__inner {
  max-width: 720px;
}

.why__title {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 20px;
}

.why__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.why__text b,
.why__text strong {
  color: var(--text-primary);
}

/* Footer */

.footer {
  background-color: var(--bg-panel-alt);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__icon {
  display: flex;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.footer__icon:hover {
  color: var(--text-primary);
}

.footer__icon svg {
  width: 20px;
  height: 20px;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Buttons */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background-color: var(--accent);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Features page: hero */

.fx-hero {
  padding: 80px 0 64px;
  text-align: center;
}

.fx-hero__title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.fx-hero__subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* Features page: alternating feature rows */

.fx-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.fx-feature--reverse .fx-feature__panel {
  order: -1;
}

.fx-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.fx-eyebrow-row .fx-eyebrow {
  margin: 0;
}

.fx-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.fx-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  color: var(--positive);
  background-color: rgba(79, 206, 138, 0.12);
  border: 1px solid rgba(79, 206, 138, 0.3);
}

.fx-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--positive);
  flex-shrink: 0;
}

.fx-feature__title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.fx-feature__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.fx-panel {
  background-color: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

/* Real app screenshots */

.fx-shots {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.fx-shot {
  width: 210px;
}

.fx-shot__frame {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--bg-panel);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

.fx-shot__frame img {
  width: 100%;
  display: block;
}

.fx-shot__caption {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 12px 0 0;
}

/* Mockup: stats table */

.fx-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.fx-chip {
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  background-color: var(--bg-panel-alt);
  white-space: nowrap;
}

.fx-table-wrap {
  overflow-x: auto;
}

.fx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.fx-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.fx-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.fx-table tr:last-child td {
  border-bottom: none;
}

.fx-table td:first-child,
.fx-table th:first-child {
  padding-left: 4px;
}

/* Mockup: notifications */

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background-color: var(--bg-panel-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(47, 159, 232, 0.14);
  color: var(--accent);
  flex-shrink: 0;
}

.notif-icon svg {
  width: 16px;
  height: 16px;
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.notif-time {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mockup: live match */

.live-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--negative);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--negative);
}

@media (prefers-reduced-motion: no-preference) {
  .live-dot {
    animation: live-pulse 1.6s ease-in-out infinite;
  }
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.live-minute {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.live-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 26px;
}

.live-team {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  width: 110px;
}

.live-score {
  font-size: 32px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.live-stat {
  margin-bottom: 16px;
}

.live-stat:last-child {
  margin-bottom: 0;
}

.live-stat__label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.live-stat__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-stat__value {
  font-size: 12px;
  font-weight: 700;
  width: 30px;
  font-variant-numeric: tabular-nums;
}

.live-stat__value--right {
  text-align: right;
}

.live-stat__track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background-color: var(--border);
  overflow: hidden;
  display: flex;
}

.live-stat__fill--a {
  background-color: var(--accent);
  height: 100%;
}

.live-stat__fill--b {
  background-color: var(--text-muted);
  height: 100%;
}

/* Mockup: form grid */

.formgrid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.formgrid__player {
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formgrid__matches {
  display: flex;
  gap: 6px;
}

.formgrid__chip {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #0a0a0a;
  flex-shrink: 0;
}

.formgrid__chip--w {
  background-color: var(--positive);
}

.formgrid__chip--d {
  background-color: var(--text-muted);
}

.formgrid__chip--l {
  background-color: var(--negative);
}

.formgrid__rating {
  font-size: 13px;
  font-weight: 700;
  width: 34px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Features page: other features */

.fx-other {
  padding: 80px 0;
  background-color: var(--bg-panel-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.fx-other__head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

.fx-other__title {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 12px;
}

.fx-other__subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

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

/* Features page: FAQ */

.fx-faq {
  padding: 80px 0;
}

.fx-faq__title {
  font-size: 30px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 40px;
}

.fx-faq__list {
  max-width: 720px;
  margin: 0 auto;
}

.fx-faq-item {
  border-bottom: 1px solid var(--border);
}

.fx-faq-item:first-child {
  border-top: 1px solid var(--border);
}

.fx-faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-size: 15px;
  font-weight: 600;
}

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

.fx-faq-item summary::after {
  content: "+";
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.fx-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.fx-faq-item p {
  margin: 0 4px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Features page: bottom CTA */

.fx-cta {
  padding: 72px 0;
  text-align: center;
  background-color: var(--bg-panel-alt);
  border-top: 1px solid var(--border);
}

.fx-cta__title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 12px;
}

.fx-cta__subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 28px;
}

/* Responsive */

@media (max-width: 900px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fx-feature {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0;
  }

  .fx-feature--reverse .fx-feature__panel {
    order: 0;
  }

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

@media (max-width: 640px) {
  .hero {
    padding: 64px 0 56px;
  }

  .hero__logo {
    width: 88px;
    margin-bottom: 22px;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .signup {
    flex-direction: column;
  }

  .signup__button {
    width: 100%;
  }

  .features {
    padding: 40px 0;
  }

  .features__grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .feature-card {
    padding: 22px 14px;
  }

  .why {
    padding: 56px 0;
  }

  .why__title {
    font-size: 24px;
  }

  .why__text {
    font-size: 15px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .fx-hero {
    padding: 56px 0 48px;
  }

  .fx-hero__title {
    font-size: 30px;
  }

  .fx-hero__subtitle {
    font-size: 15px;
  }

  .fx-feature__title {
    font-size: 22px;
  }

  .fx-panel {
    padding: 18px;
  }

  .fx-shots {
    gap: 14px;
  }

  .fx-shot {
    width: 42vw;
    max-width: 180px;
  }

  .live-team {
    width: 84px;
    font-size: 12px;
  }

  .live-score {
    font-size: 26px;
  }

  .fx-other {
    padding: 48px 0;
  }

  .fx-other__title,
  .fx-faq__title,
  .fx-cta__title {
    font-size: 24px;
  }

  .fx-other__grid {
    grid-template-columns: 1fr;
  }

  .fx-faq {
    padding: 48px 0;
  }

  .fx-cta {
    padding: 48px 0;
  }
}

@media (max-width: 400px) {
  .features__grid {
    grid-template-columns: 1fr;
  }
}
