:root {
  --bg: #081014;
  --panel: #101d23;
  --panel-soft: #14262d;
  --text: #f4fbff;
  --muted: #a8bbc4;
  --line: rgba(255, 255, 255, 0.1);
  --green: #27e293;
  --cyan: #32c5ff;
  --gold: #ffd166;
  --red: #ff6b6b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(39, 226, 147, 0.18), transparent 31rem),
    radial-gradient(circle at 88% 12%, rgba(50, 197, 255, 0.16), transparent 24rem),
    linear-gradient(180deg, #081014 0%, #0c171d 48%, #071014 100%);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 16px 28px;
}

.hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(56px, 12vh, 96px);
  padding: 18px 0 34px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 72px -16px 18px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 0 0 24px 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, rgba(39, 226, 147, 0.1), rgba(50, 197, 255, 0.05) 48%, rgba(255, 209, 102, 0.08));
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow: var(--shadow);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
}

.lang-toggle {
  min-width: 76px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.lang-toggle:hover,
.primary-button:hover,
.analysis-button:hover {
  transform: translateY(-2px);
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-content {
  padding: 0 8px;
}

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

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

h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(42px, 12vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.primary-button,
.analysis-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, background 180ms ease;
}

.primary-button {
  padding: 0 22px;
  color: #04120e;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 12px 28px rgba(39, 226, 147, 0.22);
}

.primary-button:hover {
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(50, 197, 255, 0.24);
}

.matches-section,
.analysis-section,
.community-section {
  padding: 34px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2,
.community-section h2 {
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1.16;
}

.match-grid,
.analysis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.match-card,
.info-card,
.community-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.match-card {
  padding: 16px;
}

.match-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.teams {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 800;
}

.match-time {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 209, 102, 0.12);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.analysis-text {
  min-height: 48px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.poll-group {
  display: grid;
  gap: 9px;
  margin: 16px 0;
}

.poll-row {
  display: grid;
  gap: 6px;
}

.poll-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #d9e9ee;
  font-size: 13px;
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.poll-row:nth-child(2) .progress-fill {
  background: linear-gradient(90deg, var(--gold), #ff9f43);
}

.poll-row:nth-child(3) .progress-fill {
  background: linear-gradient(90deg, var(--red), #ff9f9f);
}

.analysis-button {
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.analysis-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.info-card {
  padding: 18px;
}

.info-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(39, 226, 147, 0.12);
}

.info-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.info-card p,
.community-section p,
.footer p {
  color: var(--muted);
  line-height: 1.6;
}

.community-section {
  display: grid;
  gap: 20px;
  padding: 22px;
  overflow: hidden;
  position: relative;
}

.community-section::after {
  content: "⚽";
  position: absolute;
  right: -8px;
  bottom: -28px;
  color: rgba(255, 255, 255, 0.06);
  font-size: 110px;
}

.community-button {
  width: fit-content;
  position: relative;
  z-index: 1;
}

.footer {
  padding: 18px 0 0;
  text-align: center;
  font-size: 12px;
}

@media (min-width: 720px) {
  .page-shell {
    padding-inline: 24px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding-top: 34px;
  }

  .match-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analysis-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .community-section {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 28px;
  }
}
