/* FlashTrack home page. Colors and type come from the brand guide (canvas "Pistes de design du site"). */

:root {
  --night: #0B0F14;
  --indigo: #1A2160;
  --ring: #3A4FB8;
  --gold: #FDCA0A;
  --gold-light: #FFE066;
  --gold-metal: linear-gradient(180deg, #FFF3B0 0%, #FDCA0A 45%, #E2A21A 72%, #9A6A1E 100%);
  --paper: #F4F1EA;
  --surface: #131A2E;
  --scene: #151C26;
  --mist: #C9CED6;
  --slate: #8B95A1;
  /* Sharp Sans is the brand face; Plus Jakarta Sans stands in until its licence is bought. */
  --sans: 'Sharp Sans', 'Sharp Sans No1', 'Plus Jakarta Sans', system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--gold); }
a:hover { color: var(--gold-light); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* 1280 px of content between 24 px gutters */
main { max-width: 1328px; margin: 0 auto; padding: 56px 24px 0; }

/* Masthead */

.masthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; }
.masthead img { width: 132px; height: 132px; object-fit: contain; flex: none; }
.masthead h1 {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(40px, 7.4vw, 92px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Pitch, video, before / after */

.intro { margin-top: 12px; }
.pitch { margin: 0; font-size: 19px; text-align: center; }
.pitch strong { color: var(--gold); font-weight: 700; }

/* Windows on the left, macOS on the right; stacked on a phone */
.downloads { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; }
.downloads .button { flex: 0 1 320px; }

/* The clip is cropped to the game, 1920 × 654 */
.video {
  margin-top: 28px;
  aspect-ratio: 1920 / 654;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--ring);
}
.video video { display: block; width: 100%; height: 100%; object-fit: cover; }

.compare { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.compare figure { margin: 0; }

/* A patch of Summoner's Rift behind each scene */
.scene {
  position: relative;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--scene) url(assets/map.webp) center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.scene.after { border-color: var(--ring); }

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(11, 15, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
}
.after .tag { background: var(--indigo); border-color: var(--ring); color: var(--gold); }

/* The in-game chat, in the game's own colors and font (Calibri, or its metric twin Carlito).
   The first line is the game's own message when a player clicks an enemy's spell on the scoreboard. */
.chat {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  font-family: 'Calibri', 'Carlito', sans-serif;
  font-size: 17px;
  line-height: 1.45;
  text-shadow: 0 1px 2px #000, 0 0 2px #000;
}
.chat p { margin: 0; }
.chat .clock { color: #EEEDEE; }
.chat .team { color: #40C3FF; }
.chat .text { color: #FFFFFF; }
.chat .enemy { color: #FF3232; }
.chat .spell-name { color: #FFAA00; }

/* The overlay as drawn in game, at twice its size: two spell cells beside the round portrait. */
.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(15, 18, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.spells { width: 40px; display: flex; flex-direction: column; gap: 8px; }
.spell {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--night);
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
/* --elapsed: the share of the cooldown already spent, as an angle */
.spell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: conic-gradient(rgba(255, 255, 255, 0.22) 0deg var(--elapsed), transparent var(--elapsed));
}
.spell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 2px solid rgba(200, 170, 110, 0.25);
  border-radius: 4px;
}
.spell span {
  position: relative;
  z-index: 2;
  font-family: 'Bahnschrift', 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: #F4F4F0;
  text-shadow: 0 1px 2px #000;
}
.portrait {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--night);
  border: 2px solid #000;
}
/* The middle 93 % of the square portrait, like the overlay */
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.075); }
.portrait::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px #7A6640; }

/* Short selling points under the video */
.perks {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 32px;
  font-size: 16px;
  font-weight: 600;
  color: var(--paper);
}
.perks li { display: flex; align-items: center; gap: 8px; }
.perks svg { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Installation guide */

.install { margin-top: 72px; }
.install h2 { margin: 0 0 28px; font-weight: 700; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.steps > li { display: flex; flex-direction: column; gap: 14px; padding: 24px 20px; border-radius: 16px; background: var(--surface); }
.steps p { margin: 0; color: var(--mist); }
.steps p + p { margin-top: 8px; }
.steps .path { margin-top: 10px; }
.steps strong { color: var(--paper); }

.step-head { display: flex; align-items: center; gap: 14px; }
.step-head h3 { margin: 0; font-size: 21px; font-weight: 700; }
.step-number {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--indigo);
  border: 1px solid var(--ring);
  color: var(--gold);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.button img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.button.primary { background: var(--gold); color: var(--night); }
.button.primary:hover { background: var(--gold-light); color: var(--night); }
.button.secondary { border: 1px solid var(--ring); color: var(--paper); font-weight: 600; }
.button.secondary:hover { border-color: var(--gold); color: var(--paper); }

/* A click path in the game or in Windows, one chip per button */
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 15px; color: var(--slate); }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--indigo);
  border: 1px solid var(--ring);
  color: var(--paper);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
}
.chip.target { background: var(--gold); border-color: var(--gold); color: var(--night); font-weight: 700; }

/* Footer */

footer { margin-top: 88px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-inner { max-width: 1328px; margin: 0 auto; padding: 32px 24px 48px; display: flex; flex-direction: column; gap: 16px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 14px; }
.footer-row a { color: var(--mist); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--paper); }
.legal { margin: 0; max-width: 760px; font-size: 13px; line-height: 1.6; color: var(--slate); }
