/* ── Tokens ───────────────────────────────────────────── */
:root {
  --bg:        #0b0e14;
  --bg-alt:    #0f131c;
  --surface:   #141926;
  --surface-2: #1a2030;
  --line:      #232a3b;
  --text:      #e7ebf4;
  --muted:     #98a2ba;
  --accent:    #ff7a45;
  --accent-2:  #4fd1c5;
  --glow:      rgba(255,122,69,.28);

  --wrap: 1140px;
  --r:    14px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22,.8,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }
a  { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: #16110d; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9rem;
}
.muted { color: var(--muted); font-size: .9rem; }
.grad {
  background: linear-gradient(100deg, var(--accent), #ffb27a 45%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  background: var(--accent); color: #1a0f08;
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
  box-shadow: 0 6px 24px -10px var(--glow);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px var(--glow); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--line); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .5rem 1.1rem; font-size: .85rem; }

.link { color: var(--accent-2); font-weight: 600; font-size: .92rem; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11,14,20,.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark { width: 28px; height: 28px; color: var(--accent); flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; }
.brand-name.small { font-size: 1rem; }
.brand-accent { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a { font-size: .93rem; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav a.btn { color: #1a0f08; }
.nav a.btn:hover { color: #1a0f08; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 42px; height: 42px; padding: 0 10px;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────── */
.hero { position: relative; padding: 11rem 0 3.5rem; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(circle, rgba(255,122,69,.16), transparent 62%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, #000, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; max-width: 800px; }
.lede { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); max-width: 58ch; margin-top: 1.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }


/* ── Sections ─────────────────────────────────────────── */
.section { padding: 6.5rem 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 620px; margin-bottom: 3.2rem; }
.section-sub { color: var(--muted); margin-top: 1rem; }

/* ── Featured game ────────────────────────────────────── */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
}
.feature-art {
  position: relative; display: grid; place-items: center;
  background: linear-gradient(160deg, #4a5bb8, #38469a);
  padding: 2rem;
}
.feature-art img {
  width: 100%; max-width: 300px; height: auto;
  border-radius: 10px;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.7);
}
.feature-body { padding: 2.5rem 2.25rem; align-self: center; }
.feature-body h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 1rem 0 .9rem; }
.feature-body p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }

.tag {
  display: inline-block;
  font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px; white-space: nowrap;
}
.tag-soon { background: rgba(255,122,69,.14); color: var(--accent); }

/* ── Studio ───────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; list-style: none; padding: 0; }
.values li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.4rem;
}
.values h3 { margin-bottom: .45rem; }
.values p { color: var(--muted); font-size: .89rem; }

/* ── Contact ──────────────────────────────────────────── */
.contact-inner {
  text-align: center; max-width: 660px; margin-inline: auto;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 22px; padding: 3.5rem 2rem;
  position: relative; overflow: hidden;
}
.contact-inner::before {
  content: ""; position: absolute; inset: -50% 30% auto; height: 260px;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  pointer-events: none;
}
.contact-inner > * { position: relative; }
.contact-inner .section-sub { margin-inline: auto; max-width: 46ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; margin-top: 2rem; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a { font-size: .9rem; color: var(--muted); transition: color .2s; }
.footer-nav a:hover { color: var(--accent); }
.copyright { width: 100%; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .82rem; }

/* ── Reveal ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature { grid-template-columns: 1fr; }
  .feature-art { padding: 1.75rem; }
  .feature-art img { max-width: 230px; }
  .feature-body { padding: 2rem 1.5rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11,14,20,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.5rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a.btn { margin-top: 1rem; border-bottom: none; justify-content: center; }
  .hero { padding: 8.5rem 0 4.5rem; }
  .section { padding: 4.5rem 0; }
  .values { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .contact-inner { padding: 2.5rem 1.25rem; }
}
