/* Squad Rush site: one stylesheet for the home page and the privacy policy. */

@font-face { font-family: "Inter Display"; font-weight: 900; font-display: swap; src: url("fonts/display-black.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-semibold.woff2") format("woff2"); }

:root {
  --night: #0e1433;      /* page */
  --night-2: #151c45;    /* raised */
  --night-3: #1f2960;
  --gold: #ffc534;       /* the crown, the logo, the captions */
  --squad: #3b7bff;      /* your soldiers */
  --horde: #e8402f;      /* the horde */
  --green: #3ddc97;      /* +1 recruits */
  --purple: #b07cff;
  --asphalt: #2a3048;
  --text: #f1f4ff;
  --muted: #a9b2d8;
  --line: rgba(255, 255, 255, 0.1);
  --display: "Inter Display", "Arial Black", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--display); font-weight: 900; margin: 0; }
h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.02; letter-spacing: -0.01em; }
h3 { font-size: 21px; line-height: 1.15; }
.sub { color: var(--muted); max-width: 60ch; margin: 14px 0 0; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; }
.hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 1795 / 876;
  max-height: 78vh;
  object-fit: cover;
  object-position: 0 40%;      /* the logo sits at the left: never crop it */
}
.hero::after {                  /* the road runs on into the page */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(to bottom, rgba(14, 20, 51, 0), var(--night));
  pointer-events: none;
}

.intro {
  position: relative;
  z-index: 1;
  margin-top: -96px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}
.intro .icon {
  width: 148px; height: 148px;
  border-radius: 34px;
  box-shadow: 0 0 0 4px rgba(255, 197, 52, 0.9), 0 18px 40px rgba(0, 0, 0, 0.5);
}
.intro h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -0.015em; }
.intro .pitch { font-size: 19px; color: #dfe4fb; max-width: 56ch; margin: 10px 0 18px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.badge img { height: 64px; width: auto; margin: -8px -8px; }
.play-trailer {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 16px/1 var(--body);
  color: var(--text);
  text-decoration: none;
  padding: 13px 20px 13px 16px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
}
.play-trailer:hover { border-color: var(--gold); }
.play-trailer svg { flex: none; }

section { padding: 96px 0 0; }

/* ------------------------------------------------------------ trailer + how to play */
.play {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 64px;
  align-items: center;
}
.phone {
  border-radius: 40px;
  padding: 10px;
  background: #050817;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px rgba(0, 0, 0, 0.55);
}
.phone video { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 31px; background: #050817; }
.legend { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.legend li { display: grid; grid-template-columns: 14px 1fr; gap: 16px; align-items: baseline; font-size: 18px; }
.legend li::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--c); transform: translateY(1px); }
.legend b { font-weight: 600; }

/* ------------------------------------------------------------ screenshots */
.shots {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 24px;
  padding: 34px 24px 22px;
  margin: 0 -24px;
  scrollbar-color: var(--night-3) transparent;
}
.shots img {
  flex: none;
  width: 236px;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  scroll-snap-align: start;
  box-shadow: 0 0 0 1px var(--line), 0 16px 34px rgba(0, 0, 0, 0.45);
}

/* ------------------------------------------------------------ bosses: lined up on the road */
.bosses {
  margin-top: 96px;
  padding: 88px 0 72px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(232, 64, 47, 0.32), rgba(232, 64, 47, 0) 70%),
    linear-gradient(to bottom, #2a0f22, var(--night) 92%);
}
.bosses .sub { color: #e6c9cf; }
.lineup {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px 24px;
  overflow: hidden;            /* the road strips run past the edges */
}
.boss { position: relative; text-align: center; }
.boss .stage { position: relative; padding-bottom: 26px; }
.boss .stage::before {         /* this boss's stretch of road; neighbours join up into one */
  content: "";
  position: absolute;
  left: -12px; right: -12px; bottom: 0;
  height: 54px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0 50%, transparent 0) 0 50% / 44px 4px repeat-x,
    linear-gradient(to bottom, #3a4160, var(--asphalt) 30%, #1d2236);
  border-top: 2px solid rgba(255, 255, 255, 0.18);
  animation: march 1.6s linear infinite;
}
@keyframes march { to { background-position: -44px 50%, 0 0; } }
@media (prefers-reduced-motion: reduce) { .boss .stage::before { animation: none; } }
.boss img {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin: 0 auto -6px;
  aspect-ratio: 1;
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.45));
}
.boss h3 { margin-top: 16px; font-size: 19px; }
.boss p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: #d6dbf5; }

/* ------------------------------------------------------------ lands */
.lands {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}
.lands li { font-size: 15px; }
.lands img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.lands b { display: block; margin-top: 10px; font-weight: 600; font-size: 16px; }
.lands span { color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------ what else */
.more {
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 56px;
}
.more div { border-left: 3px solid var(--gold); padding-left: 18px; }
.more dt { font: 900 20px/1.2 var(--display); }
.more dd { margin: 6px 0 0; color: var(--muted); }

/* ------------------------------------------------------------ call to action + footer */
.cta { padding: 120px 0 96px; text-align: center; }
.cta img.icon { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 24px; }
.cta .badge { display: inline-block; margin-top: 26px; }
.cta .badge img { height: 76px; margin: 0; }

footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
footer a { color: var(--muted); }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer small { display: block; width: 100%; font-size: 13px; opacity: 0.8; }

/* ------------------------------------------------------------ privacy policy */
.doc-head { padding: 22px 0; border-bottom: 1px solid var(--line); }
.doc-head a { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font: 900 21px/1 var(--display); }
.doc-head img { width: 44px; height: 44px; border-radius: 11px; }
.doc { max-width: 760px; padding: 48px 24px 40px; line-height: 1.7; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); line-height: 1.1; }
.doc h2 { font-family: var(--body); font-weight: 600; font-size: 21px; letter-spacing: 0; margin: 34px 0 8px; }
.doc .date { color: var(--muted); margin: 8px 0 28px; }
.doc .summary { background: var(--night-2); border-left: 4px solid var(--gold); border-radius: 12px; padding: 16px 20px; margin: 0 0 30px; }
.doc p, .doc li { color: #dfe4fb; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }

/* ------------------------------------------------------------ narrower screens */
@media (max-width: 980px) {
  .lineup { grid-template-columns: repeat(3, 1fr); }
  .lands { grid-template-columns: repeat(4, 1fr); }
  .play { gap: 40px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero img { aspect-ratio: 3 / 2; object-position: 0 50%; }   /* keep the logo and the ogre king */
  section { padding-top: 72px; }
  .intro { grid-template-columns: 1fr; text-align: center; margin-top: -40px; gap: 14px; }
  .intro .icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto; }
  .intro .pitch { font-size: 17px; margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  .play { grid-template-columns: 1fr; }
  .phone { width: min(320px, 82vw); margin: 0 auto; }
  .legend li { font-size: 16px; }
  .shots img { width: 200px; }
  .bosses { margin-top: 72px; padding: 64px 0 56px; }
  .lineup { grid-template-columns: repeat(2, 1fr); gap: 34px 16px; }
  .boss .stage::before { left: -8px; right: -8px; }
  .boss p { font-size: 14px; }
  .lands { grid-template-columns: repeat(7, 168px); overflow-x: auto; margin: 30px -24px 0; padding: 0 24px 10px; }
  .more { grid-template-columns: 1fr; gap: 24px; }
  .cta { padding: 88px 0 72px; }
}
