/* Dark Games Studios - shared stylesheet (no external dependencies) */
:root {
  --bg: #0a0708;
  --bg-2: #120c0d;
  --surface: #171012;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3ecea;
  --muted: #a99b98;
  --red: #ff3b30;
  --orange: #ff9a1f;
  --grad: linear-gradient(135deg, #ff3b30 0%, #ff7a1a 60%, #ffb02e 100%);
  --radius: 16px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Skip link */
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(10, 7, 8, 0.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: 0.14em; font-size: 0.9rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); padding: 8px 14px; border-radius: 999px; font-size: 0.92rem; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.06); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 700;
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #1a0a06; box-shadow: 0 8px 30px rgba(255, 70, 30, 0.35); }
.btn-primary:hover { box-shadow: 0 12px 40px rgba(255, 90, 30, 0.5); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* Hero */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 0 80px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 59, 48, 0.28), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 70%, rgba(255, 154, 31, 0.16), transparent 70%),
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; inset: -50% -10% auto; height: 200%; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(600px) rotateX(60deg);
  -webkit-mask-image: linear-gradient(to bottom, transparent 30%, #000 60%, transparent 90%);
  mask-image: linear-gradient(to bottom, transparent 30%, #000 60%, transparent 90%);
  animation: grid-move 14s linear infinite;
}
@keyframes grid-move { to { background-position: 0 56px; } }
.glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(90px); opacity: .35; z-index: -1; animation: float 9s ease-in-out infinite; }
.glow.a { background: var(--red); left: -120px; top: 20%; }
.glow.b { background: var(--orange); right: -140px; bottom: 5%; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-30px); } }

.eyebrow { display: inline-block; font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--orange); border: 1px solid rgba(255, 154, 31, 0.35); padding: 6px 16px; border-radius: 999px; background: rgba(255, 154, 31, 0.07); }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: 1.02; margin: 24px 0 18px; letter-spacing: -0.02em; font-weight: 900; }
.hero p.lead { max-width: 620px; margin: 0 auto 34px; color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.3rem); }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .container > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero .container > *:nth-child(2) { animation-delay: .1s; }
.hero .container > *:nth-child(3) { animation-delay: .2s; }
.hero .container > *:nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Sections */
section { padding: 100px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 14px; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.015em; }
.section-head p { color: var(--muted); margin: 0; }

/* AXIOM */
.axiom { background: linear-gradient(180deg, var(--bg), var(--bg-2)); border-block: 1px solid var(--line); }
.axiom-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.axiom-grid p { color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; padding: 6px 14px; border-radius: 999px; background: rgba(255, 59, 48, 0.12); color: #ff8a80; border: 1px solid rgba(255, 59, 48, 0.3); margin-top: 8px; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .6); } 50% { box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); } }
.spec { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.spec li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.spec li:last-child { border-bottom: 0; }
.spec span:first-child { color: var(--muted); }
.spec span:last-child { font-weight: 600; text-align: right; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s, border-color .3s, box-shadow .3s; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad); opacity: 0; transition: opacity .3s; }
.card:hover { transform: translateY(-6px); border-color: rgba(255, 122, 26, 0.4); box-shadow: 0 20px 50px rgba(255, 60, 20, 0.12); }
.card:hover::before { opacity: 1; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 90, 30, 0.12); margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; stroke: var(--orange); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* Studio */
.studio { background: var(--bg-2); border-block: 1px solid var(--line); }
.studio .narrow { max-width: 760px; }
.studio p { color: var(--muted); font-size: 1.08rem; }

/* CTA */
.cta { text-align: center; }
.cta-box { padding: 64px 28px; border-radius: 24px; border: 1px solid rgba(255, 122, 26, 0.3); background: radial-gradient(ellipse at 50% 0%, rgba(255, 70, 30, 0.22), transparent 70%), var(--surface); }
.cta-box p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* Legal / prose pages */
.page-head { padding: 150px 0 50px; text-align: left; background: radial-gradient(ellipse 60% 100% at 20% 0%, rgba(255, 59, 48, 0.18), transparent 70%); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 14px 0 8px; line-height: 1.05; }
.page-head p { color: var(--muted); margin: 0; }
.prose { max-width: 780px; padding: 60px 0 100px; }
.prose h2 { font-size: 1.5rem; margin: 44px 0 12px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #cfc4c1; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.notice { border-left: 3px solid var(--orange); background: var(--surface); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 0 0 32px; }
.notice p { margin: 0; color: var(--text); }
.placeholder { background: rgba(255, 154, 31, 0.12); color: var(--orange); padding: 2px 8px; border-radius: 6px; font-weight: 600; }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 100px 0; }
.notfound .code { font-size: clamp(6rem, 22vw, 12rem); font-weight: 900; line-height: 1; }

/* Scroll reveal (CSS only) */
@supports (animation-timeline: view()) {
  .reveal { animation: rise both linear; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}

/* Responsive */
@media (max-width: 820px) {
  section { padding: 70px 0; }
  .axiom-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-links a { padding: 8px 10px; font-size: 0.85rem; }
  .brand span { font-size: 0.78rem; }
}
@media (max-width: 460px) {
  .nav-links li:nth-child(n+3) { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Tables & inline code (legal pages) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 520px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: #cfc4c1; }
th { background: var(--surface); color: var(--text); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
code { background: rgba(255, 255, 255, 0.07); padding: 1px 6px; border-radius: 5px; font-size: 0.88em; color: var(--orange); }
