/* SwiftGibs site - dark arena theme. Palette = the game's flat team colours. */

:root {
  --bg: #0b0d10;
  --panel: #12161c;
  --panel-2: #171c24;
  --line: #232b36;
  --ink: #e8edf2;
  --muted: #8b96a3;
  --blue: #3d6bff;
  --cyan: #19e3e3;
  --red: #ff3b30;
  --orange: #ff9500;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

h1, h2, h3, .dl-plat, .kicker {
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.12;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- top bar ---- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(11, 13, 16, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand img { display: block; }

.topbar nav { display: flex; gap: clamp(0.8rem, 2.5vw, 1.6rem); }

.topbar nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.topbar nav a:hover { color: var(--ink); text-decoration: none; }

/* ---- hero ---- */

.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(1100px 480px at 75% -10%, rgba(61, 107, 255, 0.16), transparent 65%),
    radial-gradient(800px 420px at 15% 0%, rgba(255, 59, 48, 0.10), transparent 60%),
    var(--bg);
  overflow: hidden;
}

.hero-inner { max-width: 62rem; margin: 0 auto; }

.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}

.tracer {
  display: inline-block;
  width: 3.2rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan));
  position: relative;
  overflow: hidden;
}
.tracer::after {
  content: "";
  position: absolute;
  top: 0; left: -40%;
  width: 40%; height: 100%;
  background: #fff;
  opacity: 0.9;
  animation: tracer-sweep 2.6s ease-in-out infinite;
}
@keyframes tracer-sweep {
  0%   { left: -40%; }
  55%  { left: 100%; }
  100% { left: 100%; }
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.accent-red { color: var(--red); }

.hero .sub { max-width: 46rem; color: var(--ink); font-size: 1.08rem; }

.sub-compat { margin-top: 0.8rem; color: var(--muted); font-size: 0.98rem; }

/* ---- download buttons ---- */

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.dl {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 15rem;
  padding: 0.9rem 1.3rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: 8px;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.dl:hover {
  text-decoration: none;
  transform: translateY(-2px);
  background: var(--panel-2);
}

.dl-win { border-left-color: var(--cyan); }
.dl-mac { border-left-color: var(--blue); }
.dl-lin { border-left-color: var(--orange); }
.dl-win:hover { border-color: var(--cyan); }
.dl-mac:hover { border-color: var(--blue); }
.dl-lin:hover { border-color: var(--orange); }

.dl-plat {
  color: var(--ink);
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}
.dl-file { color: var(--muted); font-size: 0.85rem; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.dl-file small { font-family: inherit; }

.release-meta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.1rem;
}

.chip {
  padding: 0.15rem 0.7rem;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  color: var(--cyan);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.85rem;
}
.chip:hover { background: rgba(25, 227, 227, 0.1); text-decoration: none; }

.meta-link { color: var(--muted); font-size: 0.9rem; }

/* ---- highlights strip ---- */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.strip ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem clamp(1.2rem, 3.5vw, 2.8rem);
  justify-content: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.85rem 1rem;
}

.strip li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
}

.dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; }
.dot-blue { background: var(--blue); }
.dot-cyan { background: var(--cyan); }
.dot-red { background: var(--red); }
.dot-orange { background: var(--orange); }

/* ---- shared section chrome ---- */

section[id] { scroll-margin-top: 4.5rem; }

.section-head {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem) 0;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  text-transform: uppercase;
}

/* ---- showcase ---- */

.accent-cyan { color: var(--cyan); }
.c-blue { color: var(--blue); }
.c-cyan { color: var(--cyan); }
.c-red { color: var(--red); }
.c-orange { color: var(--orange); }

.show {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.2rem, 3.5vw, 3rem);
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(1.8rem, 4.5vw, 3rem) clamp(1rem, 4vw, 2.5rem);
}

.show:nth-of-type(even) .show-media { order: 2; }

.show h3 {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.show-cyan h3 { color: var(--cyan); }
.show-blue h3 { color: var(--blue); }
.show-red h3 { color: var(--red); }
.show-orange h3 { color: var(--orange); }

.show-text p { color: var(--muted); }
.show-text strong { font-weight: 700; }

/* media slots: placeholder tile until the real file exists on the server */

.slot {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--panel);
  background-image:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><g fill="none" stroke="%23ffffff" stroke-opacity="0.05" stroke-width="2"><circle cx="60" cy="60" r="26"/><path d="M60 18v22M60 80v22M18 60h22M80 60h22"/></g></svg>');
  background-repeat: repeat;
}
.show-cyan .slot { background-color: rgba(25, 227, 227, 0.06); }
.show-blue .slot { background-color: rgba(61, 107, 255, 0.08); }
.show-red .slot { background-color: rgba(255, 59, 48, 0.07); }
.show-orange .slot { background-color: rgba(255, 149, 0, 0.07); }

.slot-cap {
  padding: 0.3rem 0.9rem;
  border: 1px dashed var(--line);
  border-radius: 999px;
  background: rgba(11, 13, 16, 0.7);
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.slot-filled { border-color: var(--line); background-image: none; }
.slot img, .slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* reveal-on-scroll */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.revealed { opacity: 1; transform: none; }
/* JS off: .revealed never gets added, so show everything by default and only
   hide when JS has had a chance to run */
html.js .reveal:not(.revealed) { opacity: 0; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---- feature grid ---- */

.accent-orange { color: var(--orange); }

.grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.9rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.6rem clamp(1rem, 4vw, 2.5rem) 0.5rem;
}

.grid li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--muted);
  border-radius: 8px;
  padding: 1rem 1.1rem;
}
.grid li:nth-child(4n+1) { border-top-color: var(--cyan); }
.grid li:nth-child(4n+2) { border-top-color: var(--blue); }
.grid li:nth-child(4n+3) { border-top-color: var(--red); }
.grid li:nth-child(4n+4) { border-top-color: var(--orange); }

.grid h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.grid p { color: var(--muted); font-size: 0.92rem; }

/* ---- get started ---- */

.plat-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 0.9rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.6rem clamp(1rem, 4vw, 2.5rem) 0;
}

.plat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem 1.3rem;
}
.plat-win { border-top: 3px solid var(--cyan); }
.plat-mac { border-top: 3px solid var(--blue); }
.plat-lin { border-top: 3px solid var(--orange); }

.plat h3 { text-transform: uppercase; font-size: 1.05rem; margin-bottom: 0.7rem; }
.plat h3 small { color: var(--muted); font-weight: 600; text-transform: none; }

.plat ol { padding-left: 1.2rem; color: var(--muted); font-size: 0.95rem; }
.plat li + li { margin-top: 0.5rem; }

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.08em 0.35em;
  color: var(--ink);
}

.updating {
  max-width: 72rem;
  margin: 1.4rem auto 0;
  padding: 0 clamp(1rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 4rem);
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- footer ---- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.foot-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.6rem clamp(1rem, 4vw, 2.5rem);
}
.foot-inner p { color: var(--muted); font-size: 0.95rem; }
.foot-inner .sep { margin: 0 0.5rem; color: var(--line); }
.fine { margin-top: 0.5rem; font-size: 0.85rem; }

/* ---- responsive ---- */

@media (max-width: 720px) {
  .show { grid-template-columns: 1fr; }
  .show:nth-of-type(even) .show-media { order: 0; }
  .downloads { flex-direction: column; }
  .dl { min-width: 0; width: 100%; }
  .topbar { flex-wrap: wrap; gap: 0.3rem 0; }
  .topbar nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 0.1rem; }
  .topbar nav a { font-size: 0.82rem; }
  .strip li { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
