:root {
  /* Lakeside Games ground + surfaces (see lakesidegames.net) */
  --bg: #0a0f14;
  --bg-2: #0d141c;
  --panel: #111b26;
  --panel-2: #16222e;
  --panel-border: rgba(234, 240, 246, 0.08);
  --border-bright: rgba(234, 240, 246, 0.16);
  --text: #eaf0f6;
  --text-dim: rgba(234, 240, 246, 0.64);
  --text-faint: rgba(234, 240, 246, 0.38);
  --shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.6);
  /* MetroForge identity */
  --accent: #21c8a0;
  --green: #7ef29a;
  --blue: #54d0ff;
  --orange: #ffb63d;
  --red: #ff5d6c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.kicker {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 10px;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 15, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.brand svg { width: 28px; height: 28px; flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.nav-links a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }

/* hero */
.hero {
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0 40px;
    text-align: center;
  }
}

.hero .kicker { margin-bottom: 16px; }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.06;
  margin-bottom: 18px;
  text-wrap: balance;
}

.hero .tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 0 28px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .hero .tagline { margin-left: auto; margin-right: auto; }
}

/* hero screenshot */
.hero-shot {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-bright);
  box-shadow: var(--shadow), 0 0 0 1px rgba(33, 200, 160, 0.06);
  line-height: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.hero-shot:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow), 0 0 0 1px rgba(33, 200, 160, 0.28);
}

/* buttons */
.hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-cta.center { justify-content: center; margin-bottom: 0; }

@media (max-width: 900px) {
  .hero-cta { justify-content: center; }
}

.btn-primary {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 13px 26px;
  border-radius: 11px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--bg);
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(33, 200, 160, 0.7);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-primary.compact { padding: 12px 24px; }

.btn-primary .btn-label { font-weight: 800; font-size: 1rem; letter-spacing: 0.01em; }
.btn-primary .btn-note {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.72;
  font-variant-numeric: tabular-nums;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 11px;
  border: 1px solid var(--border-bright);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-ghost:hover { border-color: var(--accent); background: rgba(33, 200, 160, 0.06); }

/* trust row */
.trust-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .trust-row { justify-content: center; }
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-row li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

/* download section */
.download {
  padding: 8px 0 64px;
  scroll-margin-top: 80px;
}

.dl-panel {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

@media (max-width: 560px) {
  .dl-panel { padding: 24px 18px; }
}

.dl-head { text-align: center; margin-bottom: 26px; }

.dl-panel h2 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.dl-panel .sub {
  color: var(--text-dim);
  font-size: 0.98rem;
  margin: 0;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 720px) {
  .dl-grid { grid-template-columns: 1fr; }
}

.dl-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.dl-card:hover {
  border-color: var(--card-accent, var(--accent));
  transform: translateY(-3px);
}

.dl-card.recommended {
  border-color: var(--card-accent, var(--accent));
  box-shadow: 0 0 0 1px var(--card-accent, var(--accent)), 0 14px 30px -16px rgba(0, 0, 0, 0.7);
}

.reco-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--card-accent, var(--accent));
  color: var(--bg);
  white-space: nowrap;
}

.dl-card .icon {
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
}

.dl-card .platform {
  font-weight: 700;
  font-size: 1.05rem;
}

.dl-card .detail {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.dl-card.win { --card-accent: var(--blue); }
.dl-card.mac { --card-accent: var(--green); }
.dl-card.linux { --card-accent: var(--orange); }

.dl-assurance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--panel-border);
  font-size: 0.86rem;
  color: var(--text-dim);
}

.dl-assurance span { max-width: 62ch; }

.dl-assurance a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.dl-assurance a:hover { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 560px) {
  .dl-assurance { justify-content: center; text-align: center; }
}

/* install + safety */
.install {
  padding: 8px 0 64px;
  scroll-margin-top: 80px;
}

.install h2 {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.install .sub {
  text-align: center;
  color: var(--text-dim);
  margin: 0 auto 36px;
  max-width: 620px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 720px) {
  .install-grid { grid-template-columns: 1fr; }
}

.install-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 22px 20px;
}

.install-card .dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.install-card h3 { font-size: 1.05rem; margin-bottom: 8px; }

.install-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

.install-card strong { color: var(--text); font-weight: 700; }

.install-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: var(--bg-2);
  border: 1px solid var(--panel-border);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--text);
}

/* closing call to action */
.closer {
  padding: 8px 0 80px;
  text-align: center;
}

.closer h2 {
  font-size: 1.7rem;
  margin-bottom: 24px;
}

/* browser toy teaser */
.toy {
  padding: 64px 0;
  border-top: 1px solid var(--panel-border);
  text-align: center;
}

.toy h2 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.toy .sub {
  color: var(--text-dim);
  margin: 0 auto 28px;
  max-width: 560px;
  font-size: 0.98rem;
  line-height: 1.5;
}

.toy-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.toy-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 9px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.15s ease;
}

.toy-play:hover { filter: brightness(1.1); }

.toy-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 9px;
  border: 1px solid var(--border-bright);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.toy-dl:hover { border-color: var(--accent); }

/* features */
.features {
  padding: 64px 0;
  border-top: 1px solid var(--panel-border);
}

.features h2 {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature { padding: 4px; }

.feature .dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.feature h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* screenshots */
.shots h2 {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.shots .sub {
  text-align: center;
  color: var(--text-dim);
  margin: 0 0 32px;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

@media (max-width: 560px) {
  .shot-grid { grid-template-columns: 1fr; }
}

.shot {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  line-height: 0;
}

.shot img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.shot:hover img {
  transform: scale(1.04);
  opacity: 0.92;
}

.shot .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--text);
  background: linear-gradient(to top, rgba(10, 15, 20, 0.88), rgba(10, 15, 20, 0));
}

.feature p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* requirements */
.reqs {
  padding: 64px 0 88px;
  border-top: 1px solid var(--panel-border);
}

.reqs h2 {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 36px;
}

.reqs-table {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}

.reqs-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--panel-border);
  font-size: 0.9rem;
}

.reqs-row:last-child { border-bottom: none; }

.reqs-row .label {
  color: var(--text-dim);
  font-weight: 600;
}

/* changelog */
.changelog-page {
  padding: 56px 0 96px;
}

.changelog-page h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}

.changelog-page .sub {
  color: var(--text-dim);
  margin-bottom: 44px;
}

.release {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 20px;
}

.release-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.release-head .tag {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.release-head .date {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.release-body {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.release-body ul { padding-left: 20px; margin: 8px 0; }
.release-body li { margin-bottom: 4px; }

.release-links { margin-top: 14px; font-size: 0.85rem; }

.release-links a {
  color: var(--accent);
  text-decoration: none;
  margin-right: 16px;
}

.release-links a:hover { text-decoration: underline; }

.loading, .load-error {
  text-align: center;
  color: var(--text-dim);
  padding: 40px 0;
  font-size: 0.9rem;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 28px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.site-footer a {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover { color: var(--text); }

.studio-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--text-faint);
  text-decoration: none !important;
  font-size: 0.82rem;
}

.studio-credit img { width: 20px; height: 20px; display: block; }
.studio-credit:hover { color: var(--text-dim); }
