:root {
  color-scheme: dark;
  --bg: #030a13;
  --panel: rgba(5, 17, 31, 0.92);
  --line: #183650;
  --blue: #159cff;
  --cyan: #34bcff;
  --text: #f7f9fc;
  --muted: #9eb0c5;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 18%, rgba(16, 102, 212, 0.22), transparent 32rem),
    linear-gradient(135deg, #020911 0%, #061425 52%, #061d3d 100%);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

a { color: inherit; }

.site-shell {
  width: min(100% - 40px, 1780px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.brand-bar {
  min-height: 84px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(75, 126, 170, 0.25);
}

.brand-bar img { width: 124px; height: auto; display: block; }

.home-main {
  flex: 1;
  display: grid;
  align-items: center;
  padding: 32px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  padding: clamp(42px, 6vw, 92px);
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(540px, 1.1fr);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(3, 11, 21, 0.98) 0%, rgba(3, 12, 23, 0.88) 40%, rgba(3, 12, 23, 0.22) 75%),
    url("/assets/images/bracketr-esports-crowd-hero.png") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(2, 8, 16, 0.58));
}

.hero-copy { position: relative; z-index: 2; max-width: 760px; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3.8rem, 6.4vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
}

h1 span { display: block; color: var(--blue); }

.hero-copy > p:last-child {
  max-width: 690px;
  margin: 28px 0 0;
  color: #dce8f4;
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  line-height: 1.65;
}

.bracket-art {
  position: relative;
  z-index: 2;
  min-height: 390px;
  opacity: 0.95;
}

.match {
  position: absolute;
  width: 205px;
  padding: 16px;
  border: 1px solid #28547a;
  border-radius: 7px;
  background: rgba(2, 12, 24, 0.88);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.match div { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }
.match div + div { margin-top: 14px; }
.match strong { color: white; }
.match-a { left: 3%; top: 20px; }
.match-b { left: 3%; bottom: 20px; }
.match-c { left: 39%; top: 145px; }
.match-d { right: 0; top: 145px; }

.connector {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, #1474b9, var(--cyan));
  box-shadow: 0 0 14px rgba(52, 188, 255, 0.5);
}

.connector.one { left: 30%; top: 92px; width: 10%; transform: rotate(25deg); }
.connector.two { left: 30%; bottom: 92px; width: 10%; transform: rotate(-25deg); }
.connector.three { left: 66%; top: 194px; width: 10%; }

.footer {
  padding: 24px 0 30px;
  text-align: center;
  border-top: 1px solid rgba(75, 126, 170, 0.25);
}

.footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.footer a {
  color: #c1d2e4;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
}

.footer a:hover, .footer a:focus-visible { color: var(--cyan); }
.footer p { margin: 15px 0 0; color: #71849a; font-size: 0.75rem; }

.legal-main {
  width: min(100%, 1040px);
  flex: 1;
  margin: 0 auto;
  padding: 54px 0;
}

.legal-header, .legal-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.legal-header { padding: 44px; margin-bottom: 18px; }
.legal-header h1 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 0.96; }
.legal-header p:last-child { margin-bottom: 0; }
.legal-card { padding: 30px 36px; margin-top: 14px; }
.legal-card h2 { margin: 0 0 14px; color: var(--cyan); font-size: 1.25rem; }
.legal-card h3 { margin: 24px 0 8px; font-size: 1rem; }
.legal-card p, .legal-card li, .legal-header p {
  color: #bac9d9;
  line-height: 1.7;
}
.legal-card a { color: #54c7ff; }
.legal-card li + li { margin-top: 7px; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; min-height: 640px; }
  .bracket-art { display: none; }
}

@media (max-width: 640px) {
  .site-shell { width: min(100% - 24px, 1780px); }
  .brand-bar { min-height: 70px; }
  .brand-bar img { width: 110px; }
  .hero { min-height: 540px; padding: 38px 24px; }
  h1 { font-size: clamp(3.4rem, 18vw, 5rem); }
  .legal-main { padding: 22px 0; }
  .legal-header, .legal-card { padding: 25px 22px; }
}
