:root {
  --primary: #00e5ff;
  --primary-dark: #00b8cc;
  --accent-blue: #3255ff;
  --accent-purple: #6d00f5;
  --accent-red: #ff170f;
  --accent-green: #00c853;
  --surface: #131313;
  --surface-muted: #0e0e0e;
  --card: #1b1b1b;
  --card-muted: #353535;
  --border: #4c4546;
  --border-strong: #988e90;
  --text: #e2e2e2;
  --text-muted: #cfc4c5;
  --text-hint: #988e90;
  --text-subtle: #c6c6c6;
  --warning: #facc15;
  --danger: #e11d48;
  --max-width: 1180px;
  --title-font: "Anton", Impact, sans-serif;
  --body-font: "Noto Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% 0%, rgba(27, 27, 27, 0.95), rgba(14, 14, 14, 0.98) 34%, #000 100%);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(14, 14, 14, 0.88);
  border-bottom: 1px solid rgba(76, 69, 70, 0.72);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.hero-actions,
.hero-metrics,
.match-row,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text-subtle);
  font-family: var(--title-font);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1;
  white-space: nowrap;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.main-nav {
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.main-nav a,
.nav-action {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.nav-action {
  padding: 9px 16px;
  color: #000;
  background: var(--primary);
  font-family: var(--title-font);
  font-size: 1.1rem;
  line-height: 1;
}

.nav-action:hover,
.button-primary:hover {
  background: var(--primary-dark);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  width: min(var(--max-width), calc(100% - 40px));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 82px) 0;
}

.pattern-strip {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: min(100vw, 1180px);
  height: 156px;
  transform: translateX(-50%);
  opacity: 0.14;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.34) 0 38%, transparent 39%),
    linear-gradient(90deg, var(--accent-purple) 0 16.6%, var(--accent-blue) 16.6% 33.2%, var(--primary) 33.2% 49.8%, var(--accent-red) 49.8% 66.4%, var(--accent-green) 66.4% 83%, #aaee00 83% 100%);
  border-radius: 0 0 8px 8px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  font-family: var(--title-font);
  font-weight: 400;
  line-height: 0.98;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(4rem, 9vw, 7.9rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
}

.hero-text {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
}

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

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  border: 2px solid transparent;
  font-family: var(--title-font);
  font-size: 1.45rem;
  line-height: 1;
  text-align: center;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  color: #000;
  background: var(--primary);
}

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

.button-secondary:hover {
  border-color: var(--primary);
}

.hero-metrics {
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.hero-metrics div {
  min-width: 132px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.hero-metrics dt {
  color: var(--text);
  font-family: var(--title-font);
  font-size: 2rem;
  line-height: 1;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: var(--text-hint);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
  align-self: stretch;
  min-height: 560px;
}

.hero-visual::before {
  position: absolute;
  inset: 8% 0 6%;
  z-index: -1;
  content: "";
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.16), rgba(255, 23, 15, 0.12));
  border: 1px solid rgba(76, 69, 70, 0.76);
  border-radius: 8px;
}

.app-preview {
  width: min(100%, 330px);
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.62));
}

.match-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(92%, 360px);
  padding: 18px;
  background: rgba(27, 27, 27, 0.94);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.panel-label,
.match-panel small {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.match-row {
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 8px;
}

.match-row strong {
  color: var(--text);
  font-family: var(--title-font);
  font-size: 1.3rem;
  font-weight: 400;
}

.match-row span {
  color: var(--text-muted);
  font-weight: 800;
  white-space: nowrap;
}

.section {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.step-card,
.feature-list article,
.ranking-board {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.step-card {
  padding: 24px;
}

.step-number {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--primary);
  font-family: var(--title-font);
  font-size: 2.3rem;
  line-height: 1;
}

.step-card p,
.feature-copy p,
.feature-list p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-weight: 600;
}

.competition {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.feature-copy {
  position: sticky;
  top: 112px;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #000;
  background: var(--primary);
  border-radius: 8px;
  font-weight: 900;
}

.leaderboard {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.ranking-board {
  overflow: hidden;
}

.ranking-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 88px;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-head {
  color: var(--text-hint);
  background: var(--card-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ranking-row strong {
  min-width: 0;
  color: var(--text);
}

.ranking-row em {
  color: var(--primary);
  font-family: var(--title-font);
  font-size: 1.7rem;
  font-style: normal;
  text-align: right;
}

.cta-section {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto clamp(42px, 6vw, 72px);
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.cta-section img {
  width: 96px;
  border-radius: 8px;
}

.cta-section h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.cta-actions .button {
  min-width: 132px;
}

.legal-card a {
  color: var(--primary);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.reset-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: min(var(--max-width), calc(100% - 40px));
  min-height: calc(100vh - 154px);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) 0;
}

.reset-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
}

.reset-panel {
  padding: clamp(20px, 4vw, 32px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.reset-form,
.form-field,
.reset-success {
  display: grid;
}

.reset-form {
  gap: 18px;
}

.form-field {
  gap: 8px;
}

.form-field label {
  color: var(--text-subtle);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.form-field input {
  width: 100%;
  min-height: 54px;
  padding: 13px 14px;
  color: var(--text);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  font: 600 1rem var(--body-font);
  outline: none;
}

.form-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14);
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.form-message[data-type="error"] {
  color: #ff8aa3;
}

.reset-submit {
  width: 100%;
}

.reset-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.reset-success {
  gap: 14px;
  justify-items: start;
}

.success-mark {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  color: #000;
  background: var(--accent-green);
  border-radius: 8px;
  font-family: var(--title-font);
  font-size: 1.5rem;
  line-height: 1;
}

.reset-success h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.reset-success p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 4vw, 56px);
  color: var(--text-hint);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 700;
}

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

.site-footer a:hover {
  color: var(--primary);
}

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

.legal-hero {
  position: relative;
  padding: clamp(58px, 8vw, 96px) 0 36px;
}

.legal-hero::before {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: min(100vw, 1180px);
  height: 156px;
  transform: translateX(-50%);
  content: "";
  opacity: 0.14;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.34) 0 38%, transparent 39%),
    linear-gradient(90deg, var(--accent-purple) 0 16.6%, var(--accent-blue) 16.6% 33.2%, var(--primary) 33.2% 49.8%, var(--accent-red) 49.8% 66.4%, var(--accent-green) 66.4% 83%, #aaee00 83% 100%);
  border-radius: 0 0 8px 8px;
}

.legal-hero h1 {
  max-width: 860px;
  margin-bottom: 18px;
}

.legal-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--text-muted);
  font-weight: 600;
}

.legal-layout {
  display: grid;
  gap: 22px;
  padding-bottom: clamp(48px, 7vw, 80px);
}

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

.legal-card h2 {
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.legal-card h3 {
  margin: 28px 0 10px;
  color: var(--text-subtle);
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

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

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

.legal-card li + li {
  margin-top: 6px;
}

.matches-section .section-heading p:not(.eyebrow) {
  max-width: 740px;
  color: var(--text-muted);
  font-weight: 600;
}

.matches-table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.matches-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.matches-table th,
.matches-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(76, 69, 70, 0.78);
  text-align: left;
  vertical-align: middle;
}

.matches-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--text-hint);
  background: var(--card-muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.matches-table tr:last-child td {
  border-bottom: 0;
}

.matches-table tbody tr:hover {
  background: rgba(0, 229, 255, 0.06);
}

.match-number,
.matches-table time,
.versus {
  color: var(--primary);
  font-weight: 900;
}

.match-number,
.versus {
  width: 1%;
  white-space: nowrap;
}

.team-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  font-weight: 800;
}

.team-cell img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  object-fit: cover;
  background: var(--text-subtle);
  border: 1px solid var(--border);
  border-radius: 50%;
}

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

  .hero,
  .competition,
  .leaderboard,
  .reset-layout {
    grid-template-columns: 1fr;
  }

  .hero,
  .reset-layout {
    min-height: auto;
  }

  .hero-visual {
    min-height: 520px;
    order: -1;
  }

  .feature-copy {
    position: static;
  }

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

  .cta-section {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .cta-section .cta-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
    padding: 14px 16px;
  }

  .brand {
    font-size: 1.28rem;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .nav-action {
    padding: 8px 12px;
    font-size: 1rem;
  }

  .hero,
  .section,
  .cta-section,
  .reset-layout,
  .legal-hero,
  .legal-layout {
    width: calc(100% - 32px);
  }

  .hero {
    gap: 26px;
    padding-top: 30px;
  }

  h1 {
    font-size: clamp(3.25rem, 17vw, 4.4rem);
  }

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

  .hero-metrics {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-metrics div {
    min-width: 0;
  }

  .hero-visual {
    min-height: 470px;
  }

  .app-preview {
    width: min(88vw, 280px);
  }

  .match-panel {
    right: 50%;
    bottom: 28px;
    transform: translateX(50%);
  }

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

  .ranking-row {
    grid-template-columns: 48px minmax(0, 1fr) 64px;
    gap: 10px;
    padding: 16px 14px;
  }

  .matches-table-wrap {
    overflow: visible;
    background: transparent;
    border: 0;
  }

  .matches-table,
  .matches-table thead,
  .matches-table tbody,
  .matches-table tr,
  .matches-table td {
    display: block;
  }

  .matches-table {
    min-width: 0;
  }

  .matches-table thead {
    display: none;
  }

  .matches-table tbody {
    display: grid;
    gap: 12px;
  }

  .matches-table tbody tr {
    display: grid;
    grid-template-areas:
      "number date hour"
      "home versus away";
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
  }

  .matches-table th,
  .matches-table td {
    padding: 0;
    border-bottom: 0;
  }

  .matches-table td:nth-child(1) {
    grid-area: number;
    justify-self: start;
  }

  .matches-table td:nth-child(2) {
    grid-area: date;
    justify-self: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 800;
  }

  .matches-table td:nth-child(3) {
    grid-area: hour;
    justify-self: end;
  }

  .matches-table td:nth-child(4) {
    grid-area: home;
  }

  .matches-table td:nth-child(5) {
    grid-area: versus;
    align-self: center;
    justify-self: center;
    padding: 0 2px;
    font-size: 0.8rem;
  }

  .matches-table td:nth-child(6) {
    grid-area: away;
  }

  .match-number {
    width: 34px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.24);
    border-radius: 6px;
    font-size: 0.85rem;
  }

  .team-cell {
    width: 100%;
    gap: 8px;
  }

  .team-cell img {
    width: 28px;
    height: 28px;
  }

  .team-cell span {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.2;
  }

  .cta-section {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .cta-section img {
    width: 82px;
  }

  .cta-actions,
  .cta-actions .button {
    width: 100%;
  }

  .reset-layout {
    padding-top: 34px;
  }

  .reset-panel {
    padding: 18px;
  }

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