/* SwitchGrid site: same brand as the game (docs/marketing/CONTENT_PLAYBOOK.md in the game repo). */
@font-face { font-family: "Rajdhani"; src: url("fonts/Rajdhani-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("fonts/Rajdhani-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("fonts/Rajdhani-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Michroma"; src: url("fonts/Michroma-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --bg: #07090d;
  --panel: #0e1218;
  --line: #1c232e;
  --text: #e6eaf2;
  --dim: #8c95a6;
  --red: #ff4d5a;
  --blue: #3fa9ff;
  --green: #4de080;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font-family: "Rajdhani", system-ui, sans-serif; font-weight: 500; font-size: 19px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.caps { text-transform: uppercase; letter-spacing: 0.08em; }
.seam { display: flex; width: 220px; height: 3px; margin: 22px 0; }
.seam::before, .seam::after { content: ""; flex: 1; }
.seam::before { background: var(--red); margin-right: 3px; }
.seam::after { background: var(--blue); }
.red { color: var(--red); } .blue { color: var(--blue); }

/* top bar */
.top { position: absolute; inset: 0 0 auto 0; z-index: 3; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.top img { height: 22px; width: auto; }
.top nav a { color: var(--dim); text-decoration: none; margin-left: 26px; font-weight: 600; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; }
.top nav a:hover { color: var(--text); }

/* hero */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,9,13,.95) 0%, rgba(7,9,13,.8) 34%, rgba(7,9,13,0) 62%), linear-gradient(0deg, var(--bg) 0%, rgba(7,9,13,0) 25%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero h1 { font-weight: 700; font-size: clamp(40px, 4.6vw, 66px); line-height: 1.0; margin: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.hero p { color: var(--dim); font-size: 21px; max-width: 470px; margin: 0 0 30px; }
.facts { color: var(--dim); font-size: 14px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 22px; }

/* store buttons (swap for the official badges at launch) */
.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 200px; padding: 10px 18px;
  border: 1px solid #3a4352; border-radius: 12px; background: #0b0e13; color: var(--text); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.store:hover { border-color: var(--text); transform: translateY(-1px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; line-height: 1.2; }
.store strong { display: block; font-size: 21px; font-weight: 700; line-height: 1.1; }
.store[aria-disabled="true"] { cursor: default; }
.soon { font-size: 13px; color: var(--dim); margin-top: 10px; letter-spacing: 0.08em; text-transform: uppercase; }

/* sections */
section { padding: 84px 0; }
h2 { font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; margin: 0; text-transform: uppercase; letter-spacing: 0.05em; }
.lead { color: var(--dim); max-width: 640px; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.shots img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
@media (max-width: 860px) { .shots { grid-template-columns: repeat(2, 1fr); } }
.rule { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.rule div { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--panel); }
.rule b { display: block; font-size: 22px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.rule span { color: var(--dim); }
@media (max-width: 760px) { .rule { grid-template-columns: 1fr; } }

/* footer */
footer { border-top: 1px solid var(--line); padding: 34px 0 46px; color: var(--dim); font-size: 15px; }
footer .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
footer a { color: var(--dim); text-decoration: none; margin-right: 22px; }
footer a:hover { color: var(--text); }

/* text pages */
.doc { padding: 130px 0 70px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-weight: 700; font-size: 46px; text-transform: uppercase; letter-spacing: 0.05em; margin: 0; line-height: 1.05; }
.doc h2 { font-size: 24px; margin: 36px 0 8px; }
.doc p, .doc li { color: #c7cdd8; }
.doc .updated { color: var(--dim); font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; }

/* small screens */
html, body { overflow-x: hidden; }
@media (max-width: 560px) {
  body { font-size: 17px; }
  .store { min-width: 0; flex: 1 1 150px; padding: 9px 12px; }
  .store strong { font-size: 18px; }
  .facts { letter-spacing: 0.1em; line-height: 1.7; }
  .hero { min-height: 100svh; align-items: flex-end; padding-bottom: 48px; }
  .hero picture img { object-position: 50% 20%; }
  .hero::after { background: linear-gradient(0deg, rgba(7,9,13,.97) 0%, rgba(7,9,13,.85) 45%, rgba(7,9,13,.2) 75%, rgba(7,9,13,.5) 100%); }
  .shots { gap: 10px; }
  .shots img { border-radius: 12px; }
}
