/* Megafort Games LLC shared styles. Palette mirrors BuzzCard's
   "Obsidian Night" tokens in lib/theme/bz_tokens.dart. */

:root {
  --ink: #0B0E14;
  --surface: #161B26;
  --surface-alt: #1E2433;
  --line: #2A3244;
  --text: #FFFFFF;
  --text-soft: #E2F1FF;
  --muted: #94A3B8;
  --gold: #FFC814;
  --gold-dark: #D49E00;
  --on-gold: #0B0E14;
  --maxw: 68rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-soft);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
        Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

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

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 20, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; display: block; }
.nav { display: flex; gap: 1.5rem; font-size: 0.95rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--gold); }

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

.hero { padding: 4.5rem 0 4rem; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 52rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: 4rem; }
  .hero-copy { order: 1; }
  .hero-logo { order: 2; }
}
.hero-logo { display: block; justify-self: center; max-width: 15rem; }
@media (min-width: 52rem) { .hero-logo { max-width: 100%; } }
.hero-logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.55));
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 1.1rem;
}
h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--text);
  font-weight: 800;
  max-width: 20ch;
}
.lede { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--muted); margin: 0; max-width: 58ch; }

/* ---------- sections ---------- */

section { padding: 4rem 0; }
section + section { border-top: 1px solid var(--line); }
h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 1.5rem;
  font-weight: 700;
}
h3 { font-size: 1.1rem; color: var(--text); margin: 0 0 0.5rem; font-weight: 650; }
p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- product card ---------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 2.25rem;
}
@media (min-width: 46rem) {
  .product { grid-template-columns: 7rem minmax(0, 1fr); gap: 2.5rem; }
}
.product-icon {
  width: 7rem;
  height: 7rem;
  border-radius: 1.4rem;
  background: linear-gradient(160deg, var(--surface-alt), var(--ink));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.product-icon img { width: 68%; height: auto; display: block; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.9rem;
}
.feature-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
@media (min-width: 46rem) { .feature-list { grid-template-columns: 1fr 1fr; gap: 1.2rem 2rem; } }
.feature-list li { padding-left: 1.4rem; position: relative; color: var(--muted); font-size: 0.97rem; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 0.5rem; height: 0.5rem;
  border-radius: 2px;
  background: var(--gold);
}

/* ---------- about / contact ---------- */

.cols { display: grid; gap: 2rem; }
@media (min-width: 46rem) { .cols { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1.6rem;
}
dl { margin: 0; }
dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 1rem; }
dt:first-child { margin-top: 0; }
dd { margin: 0.25rem 0 0; color: var(--text-soft); }

/* ---------- legal / long-form ---------- */

.legal { padding: 3.5rem 0 5rem; max-width: 46rem; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin-bottom: 0.5rem; }
.legal .effective { color: var(--muted); font-size: 0.92rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.3rem; margin: 2.5rem 0 0.9rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.legal h3 { margin-top: 1.6rem; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1.1rem; }
.legal li { margin-bottom: 0.55rem; }
.legal strong { color: var(--text); font-weight: 650; }
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
}
.callout ul { margin-bottom: 0; }

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

.site-foot {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-foot .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-foot .nav a { color: var(--muted); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

/* utility classes, kept out of inline style= so the strict CSP in _headers
   (style-src 'self') does not have to allow 'unsafe-inline' */
.cta-line { margin-top: 1.6rem; }
.callout-title { margin-top: 0; }

/* ---------- app screenshots ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: 1.5rem;
  margin: 1.8rem 0 0;
  max-width: 34rem;
}
.shots figure { margin: 0; }
.shots img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: var(--ink);
}
.shots figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
