/* Karma Spiral Studios - karmaspiral.com
   Palette from the Mutacup brandbook (docs/BRANDBOOK.md §3): obsidian, charcoal, platinum, trophy gold. */

@font-face { font-family: "Anton"; src: url("/fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #0b0f1a;
  --bg-2: #0e1424;
  --card: #161f33;
  --card-2: #1b2640;
  --line: rgba(169, 184, 214, 0.16);
  --line-strong: rgba(169, 184, 214, 0.28);
  --text: #e8eef8;
  --muted: #a9b8d6;
  --gold: #ffb800;
  --orange: #ff5e1a;
  --violet: #9d4edd;
  --emerald: #00f59b;
  --radius: 20px;
  --wrap: 1120px;
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 560px at 6% 0%, rgba(0, 245, 155, 0.07), transparent 70%),
    radial-gradient(1000px 640px at 100% 2%, rgba(157, 78, 221, 0.14), transparent 70%),
    radial-gradient(900px 600px at 100% 44%, rgba(157, 78, 221, 0.08), transparent 70%),
    radial-gradient(900px 600px at 0% 62%, rgba(0, 245, 155, 0.06), transparent 70%),
    radial-gradient(1100px 700px at 50% 100%, rgba(255, 184, 0, 0.10), transparent 70%);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #1a1200; padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(11, 15, 26, 0.72); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--display); font-size: 25px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.brand-sub { font-size: 11px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }
.nav { display: flex; gap: 30px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--muted); transition: color 0.15s; }
.nav a:hover { color: var(--text); }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 12vh, 140px) 0 clamp(48px, 8vh, 96px); }
.hero::before {
  content: ""; position: absolute; right: -14%; top: 50%; width: min(860px, 96vw); aspect-ratio: 1; transform: translateY(-50%);
  background: url("/assets/spiral.svg") center / contain no-repeat; opacity: 0.85; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%); mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.hero .wrap { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin: 0 0 26px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(54px, 9.4vw, 128px); line-height: 0.98; letter-spacing: -0.005em; text-transform: uppercase; margin: 0; max-width: 11ch; }
h1 em { font-style: normal; color: var(--gold); }
.lead { max-width: 34ch; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--muted); margin: 28px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 14px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid var(--line-strong); transition: transform 0.15s, border-color 0.15s, background 0.15s; }
.btn:hover { transform: translateY(-2px); border-color: var(--muted); }
.btn-primary { background: linear-gradient(180deg, #ffc533, var(--gold)); color: #1a1200; border-color: transparent; box-shadow: 0 10px 30px -10px rgba(255, 184, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn-primary:hover { border-color: transparent; box-shadow: 0 14px 36px -10px rgba(255, 184, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45); }

/* sections */
section { padding: clamp(56px, 7vw, 88px) 0; position: relative; }
.label { display: flex; align-items: center; gap: 16px; margin: 0 0 40px; font-size: 12px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* game card */
.game { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--card-2), var(--card) 55%, #121a2c); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.game-art { position: relative; min-height: 100%; background: #070a12; }
.game-art img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.game-art::after { content: ""; position: absolute; inset: 0; box-shadow: inset -60px 0 60px -40px rgba(22, 31, 51, 0.9); pointer-events: none; }
.game-body { padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(0, 245, 155, 0.35); background: rgba(0, 245, 155, 0.08); color: #8ff7cf; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1; text-transform: uppercase; letter-spacing: 0.005em; margin: 18px 0 12px; }
.game-body p { margin: 0 0 20px; color: var(--muted); font-size: 17px; }
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }

/* studio */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.statement { font-size: clamp(24px, 3.2vw, 38px); line-height: 1.3; letter-spacing: -0.01em; margin: 0; }
.statement b { font-weight: 600; color: var(--gold); }
.facts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts small { font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.facts strong { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.1; text-align: right; }

/* contact */
.contact-box { position: relative; overflow: hidden; text-align: center; border: 1px solid var(--line); border-radius: 28px; padding: clamp(44px, 6vw, 80px) 24px; background: linear-gradient(180deg, rgba(27, 38, 64, 0.65), rgba(14, 20, 36, 0.85)); }
.contact-box::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 520px; aspect-ratio: 1; background: url("/assets/spiral.svg") center / contain no-repeat; opacity: 0.35; pointer-events: none; }
.contact-box > * { position: relative; }
.contact-box h2 { margin-top: 0; font-size: clamp(44px, 7vw, 88px); }
.contact-box p { color: var(--muted); max-width: 40ch; margin: 0 auto 34px; font-size: 18px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; align-items: flex-start; }
.site-footer p { margin: 0; max-width: 62ch; }
.site-footer a { color: var(--text); text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.site-footer a:hover { text-decoration-color: var(--gold); }

/* privacy page */
.doc { padding: clamp(56px, 8vw, 100px) 0 clamp(64px, 9vw, 110px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(44px, 7vw, 76px); max-width: none; margin-bottom: 10px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 48px; }
.doc h2 { font-family: var(--body); font-weight: 600; font-size: 22px; text-transform: none; letter-spacing: -0.005em; line-height: 1.3; margin: 44px 0 12px; }
.doc p, .doc li { color: #cfd9ec; }
.doc ul { padding-left: 22px; }
.doc a { text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.doc a:hover { text-decoration-color: var(--gold); }

/* small screens */
@media (max-width: 860px) {
  .game { grid-template-columns: 1fr; }
  .game-art { aspect-ratio: 16 / 9; }
  .game-art::after { box-shadow: inset 0 -50px 50px -40px rgba(22, 31, 51, 0.9); }
  .studio-grid { grid-template-columns: 1fr; }
  .hero::before { right: -52%; top: 38%; opacity: 0.4; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.2em; gap: 10px; margin-bottom: 20px; }
  .eyebrow::before { width: 22px; }
  .hero { padding: 48px 0 40px; }
  .wrap { width: min(100% - 36px, var(--wrap)); }
  .nav { gap: 18px; }
  .brand-sub { display: none; }
  .actions .btn { width: 100%; justify-content: center; }
  .specs div { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
