:root {
  --bg: #0d0f12;
  --panel: #151920;
  --line: #262c36;
  --text: #e8eaee;
  --muted: #9aa3b2;
  --accent: #c9a24a;          /* Industries: brass/gold */
  --studios: #e0574f;         /* Studios: red */
  --systems: #3fa7d6;         /* Systems: blue */
  --radius: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body.studios { --accent: var(--studios); }
body.systems { --accent: var(--systems); }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Header / nav */
header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(13,15,18,.92); backdrop-filter: blur(8px); z-index: 10; }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; font-size: 15px; }
.brand b { color: var(--accent); }
nav { display: flex; gap: 6px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 8px; font-size: 14px; }
nav a:hover { color: var(--text); background: var(--panel); }
nav a[aria-current="page"] { color: var(--text); background: var(--panel); box-shadow: inset 0 -2px 0 var(--accent); }

/* Hero */
.hero { padding: 96px 0 64px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: 13px; font-weight: 700; margin: 0 0 12px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.01em; }
.hero p { color: var(--muted); font-size: 19px; max-width: 640px; margin: 0; }

section { padding: 32px 0 56px; }
section h2 { font-size: 22px; margin: 0 0 20px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; transition: border-color .15s, transform .15s; position: relative; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { margin: 8px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .go { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 14px; }
.card.disabled { opacity: .6; }

.division { border-top: 3px solid var(--c); }
.division .tag { color: var(--c); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; }
.division.studios { --c: var(--studios); }
.division.systems { --c: var(--systems); }
.division:hover { border-color: var(--c) !important; border-top-color: var(--c); }

.badge { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--line); color: var(--muted); }
.badge.live { background: rgba(63,185,120,.15); color: #5fd39a; }
.badge.beta { background: rgba(201,162,74,.15); color: #d9b45c; }
.badge.internal { background: rgba(63,167,214,.15); color: #6cc0e6; }

footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); text-decoration: none; margin-left: 16px; }
footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  header .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-direction: column; align-items: flex-start; }
  .hero { padding: 56px 0 40px; }
}
