/* SteelBrawl test page. No external fonts or scripts: everything is in this folder. */

:root {
  --bg: #0d1014;
  --panel: #151a21;
  --line: #29313b;
  --steel: #dfe5ec;
  --dim: #93a0ae;
  --orange: #ff7a1a;
  --blue: #45a8ff;
  --wide: 1120px;
  --display: Bahnschrift, "DIN Alternate", "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--steel);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

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

a { color: inherit; }

h1, h2, h3, .mark, .badge, .numbers b, dt {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(to bottom, rgba(13, 16, 20, 0.55) 0%, rgba(13, 16, 20, 0) 30%, rgba(13, 16, 20, 0.35) 60%, var(--bg) 100%),
    url("img/battle.jpg") center / cover no-repeat;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 22px 24px;
}

.mark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--steel);
}
.mark span, h1 span { color: var(--orange); }

.links { display: flex; gap: 26px; }
.links a {
  font-size: 15px;
  text-decoration: none;
  color: var(--steel);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.links a:hover, .links a:focus-visible { color: var(--orange); }

.hero-text {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  border: 1px solid var(--orange);
  color: var(--orange);
  background: rgba(13, 16, 20, 0.6);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(54px, 12vw, 148px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.75);
}

.tagline {
  max-width: 560px;
  margin: 20px 0 10px;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.45;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
}

.platform {
  margin: 0;
  color: var(--dim);
  font-size: 15px;
  letter-spacing: 0.06em;
}

/* ---------- Numbers ---------- */

.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}
.numbers div {
  padding: 30px 0;
  text-align: center;
  border-left: 1px solid var(--line);
}
.numbers div:first-child { border-left: 0; }
.numbers b {
  display: block;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
}
.numbers span {
  color: var(--dim);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ---------- Sections ---------- */

main section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 84px 24px 0;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1.05;
}
h2::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  margin-bottom: 18px;
  background: var(--orange);
}

.lead {
  max-width: 640px;
  margin: 0 0 28px;
  color: var(--dim);
  font-size: 19px;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.split img, .arena img {
  width: 100%;
  border: 1px solid var(--line);
}

dl { margin: 0; }
dt {
  margin-top: 20px;
  font-size: 19px;
  font-weight: 700;
  color: var(--blue);
}
dd { margin: 4px 0 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.cards article {
  padding: 24px 22px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
}
.cards article:nth-child(even) { border-top-color: var(--blue); }
h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}
.cards p { margin: 0; color: var(--dim); font-size: 16px; }

.garage { padding-bottom: 20px; }

/* ---------- Footer ---------- */

footer {
  margin-top: 84px;
  padding: 40px 24px 48px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--dim);
  font-size: 15px;
}
footer p { margin: 0; }
.mark.small { margin-bottom: 8px; font-size: 18px; }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .links { display: none; }
  .hero { min-height: 80vh; background-position: 78% center; }
  .hero-text { padding-bottom: 40px; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .numbers div:nth-child(3) { border-left: 0; }
  .numbers div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
  main section { padding-top: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
