:root {
  --ink: #05050a;
  --ink-soft: #0a0a14;
  --panel: #10101e;
  --paper: #f4f1f9;
  --muted: #a5a3b2;
  --violet: #8d72ff;
  --violet-bright: #b29cff;
  --blue: #576dff;
  --line: rgba(255,255,255,.12);
  --max: 1220px;
  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 80% 15%, rgba(73,45,155,.18), transparent 34rem),
    var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { color: inherit; font: inherit; }
:focus-visible { outline: 2px solid var(--violet-bright); outline-offset: 4px; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 200; top: 10px; left: 10px; padding: 10px 15px; color: #08070d; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { margin: 0 0 18px; color: var(--violet-bright); font-size: .71rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::before { display: inline-block; width: 24px; height: 1px; margin: 0 10px 3px 0; content: ""; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.03; letter-spacing: -.04em; }
h1 { max-width: 900px; margin-bottom: 30px; font-size: clamp(3.4rem, 8vw, 7.8rem); font-weight: 500; }
h2 { margin-bottom: 22px; font-size: clamp(2.4rem, 5vw, 5rem); font-weight: 520; }
h3 { font-size: clamp(1.45rem, 2.2vw, 2.15rem); font-weight: 600; }
.lede { max-width: 700px; color: #d2d0db; font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
.muted { color: var(--muted); }
.kicker { color: var(--violet-bright); }

/* Brand and navigation */
.site-header { position: fixed; z-index: 100; inset: 0 0 auto; transition: background .3s, border-color .3s, backdrop-filter .3s; }
.site-header.is-scrolled { border-bottom: 1px solid var(--line); background: rgba(5,5,10,.8); backdrop-filter: blur(18px); }
.nav-shell { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { position: relative; display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid rgba(178,156,255,.5); border-radius: 50%; box-shadow: 0 0 26px rgba(141,114,255,.22); }
.brand-mark::before { width: 13px; height: 13px; border: 2px solid #e9e3ff; border-radius: 50%; content: ""; box-shadow: 0 0 12px #8d72ff; }
.brand-mark::after { position: absolute; width: 55px; height: 1px; content: ""; background: linear-gradient(90deg, transparent, #8d72ff, transparent); transform: rotate(-42deg); }
.brand-copy { display: grid; line-height: 1; text-transform: uppercase; }
.brand-copy strong { font-size: .84rem; letter-spacing: .2em; }
.brand-copy small { margin-top: 6px; color: #8f8c9d; font-size: .53rem; font-weight: 700; letter-spacing: .38em; }
.nav-wrap { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.nav-links a { position: relative; padding: 32px 0 27px; color: #c9c7d2; font-size: .69rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; transition: color .25s; }
.nav-links a::after { position: absolute; right: 0; bottom: 21px; left: 0; height: 1px; content: ""; background: var(--violet-bright); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 50%; background: rgba(8,8,15,.7); }
.nav-toggle span { display: block; height: 1px; margin: 5px 0; background: #fff; transition: transform .25s, opacity .25s; }

.button { display: inline-flex; min-height: 50px; padding: 0 22px; align-items: center; justify-content: center; gap: 10px; border: 1px solid rgba(255,255,255,.18); color: #fff; background: rgba(255,255,255,.04); font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; transition: transform .25s var(--ease), border-color .25s, background .25s, box-shadow .25s; }
.button:hover { border-color: rgba(255,255,255,.5); transform: translateY(-3px); }
.button--primary { border-color: transparent; background: linear-gradient(110deg, #7659f6, #a486ff); box-shadow: 0 12px 34px rgba(92,66,210,.28); }
.button--primary:hover { border-color: transparent; box-shadow: 0 17px 44px rgba(111,82,242,.42); }
.button--small { min-height: 42px; padding: 0 16px; font-size: .61rem; }
.button .arrow { font-size: 1.05rem; transition: transform .25s; }
.button:hover .arrow { transform: translateX(4px); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: #ddd7ff; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.text-link span { transition: transform .25s; }
.text-link:hover span { transform: translateX(5px); }

/* Home hero */
.hero { position: relative; display: grid; min-height: 100svh; overflow: hidden; align-items: end; }
.hero::before { position: absolute; z-index: -2; inset: 0; content: ""; background: url("../images/black-nova-hero.webp") 50% 50% / cover no-repeat; transform: scale(1.03); animation: heroDrift 18s ease-in-out infinite alternate; }
.hero::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(2,2,7,.96) 0%, rgba(3,3,9,.76) 33%, rgba(5,4,13,.2) 68%), linear-gradient(0deg, #05050a 0%, transparent 34%, rgba(2,2,7,.2) 100%); }
.hero-content { padding-top: 170px; padding-bottom: clamp(90px, 12vh, 150px); }
.hero-content h1 span { color: transparent; background: linear-gradient(110deg, #fff 15%, #a995ff 72%); -webkit-background-clip: text; background-clip: text; }
.hero-copy { max-width: 670px; margin-bottom: 36px; color: #c7c4d0; font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-index { position: absolute; right: 4vw; bottom: 42px; display: flex; align-items: center; gap: 12px; color: #aaa4bd; font-size: .61rem; letter-spacing: .18em; text-transform: uppercase; writing-mode: vertical-rl; }
.hero-index::after { width: 1px; height: 55px; content: ""; background: linear-gradient(#8d72ff, transparent); }

/* Shared sections */
.section { padding: clamp(90px, 11vw, 150px) 0; }
.section--border { border-top: 1px solid var(--line); }
.section-heading { display: grid; margin-bottom: 62px; grid-template-columns: 1fr minmax(260px, 440px); align-items: end; gap: 60px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin-bottom: 5px; color: var(--muted); }
.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.signal-card { min-height: 310px; padding: 38px; border-right: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.03), rgba(255,255,255,.005)); transition: background .3s, transform .3s var(--ease); }
.signal-card:last-child { border: 0; }
.signal-card:hover { background: rgba(111,82,242,.08); transform: translateY(-5px); }
.signal-card .number { display: block; margin-bottom: 82px; color: #696474; font-size: .68rem; letter-spacing: .16em; }
.signal-card p { margin-bottom: 0; color: var(--muted); }

.game-feature { display: grid; overflow: hidden; border: 1px solid var(--line); grid-template-columns: minmax(0, 1.45fr) minmax(340px, .8fr); background: #0a0a12; }
.game-image { position: relative; min-height: 570px; overflow: hidden; }
.game-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.game-feature:hover .game-image img { transform: scale(1.035); }
.game-image::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, transparent 60%, #0a0a12 100%); }
.game-copy { display: flex; padding: 50px; flex-direction: column; align-items: flex-start; justify-content: center; }
.game-copy .status { margin-bottom: 28px; padding: 7px 10px; border: 1px solid rgba(148,123,255,.38); color: #b9a7ff; background: rgba(113,80,242,.12); font-size: .59rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.game-copy p { color: var(--muted); }
.game-copy .button { margin-top: 18px; }
.game-title { margin: 0 0 20px; color: #fff; font-size: clamp(2.7rem, 4vw, 4.8rem); font-weight: 540; letter-spacing: -.055em; }

.cta-band { position: relative; overflow: hidden; padding: 90px 0; border-block: 1px solid var(--line); text-align: center; }
.cta-band::before { position: absolute; inset: -50%; content: ""; background: radial-gradient(circle, rgba(111,82,242,.2), transparent 30%); pointer-events: none; }
.cta-band h2 { position: relative; max-width: 850px; margin-inline: auto; }
.cta-band p { position: relative; max-width: 600px; margin: 0 auto 32px; color: var(--muted); }
.cta-band .button { position: relative; }

/* Interior pages */
.page-hero { position: relative; display: grid; min-height: 66svh; padding: 170px 0 90px; overflow: hidden; align-items: end; border-bottom: 1px solid var(--line); }
.page-hero::before { position: absolute; z-index: -2; inset: 0; content: ""; background: url("../images/black-nova-hero.webp") 50% 52% / cover no-repeat; opacity: .62; }
.page-hero::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, #05050a 0%, rgba(5,5,10,.82) 45%, rgba(5,5,10,.25)), linear-gradient(0deg, #05050a 0%, transparent 60%); }
.page-hero h1 { max-width: 1000px; margin-bottom: 22px; font-size: clamp(3.2rem, 7vw, 7rem); }
.page-hero .lede { margin-bottom: 0; }
.split-content { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(60px, 10vw, 150px); }
.split-content h2 { position: sticky; top: 135px; align-self: start; }
.prose { color: #c9c6d1; font-size: 1.06rem; }
.prose p { margin-bottom: 28px; }
.value-list { display: grid; margin-top: 55px; gap: 0; }
.value-item { display: grid; padding: 32px 0; border-top: 1px solid var(--line); grid-template-columns: 60px 1fr; gap: 20px; }
.value-item:last-child { border-bottom: 1px solid var(--line); }
.value-item > span { color: #766d8c; font-size: .68rem; letter-spacing: .12em; }
.value-item h3 { margin-bottom: 10px; font-size: 1.45rem; }
.value-item p { margin: 0; color: var(--muted); }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.process-card { min-height: 280px; padding: 32px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.process-card > span { display: block; margin-bottom: 75px; color: var(--violet-bright); font-size: .68rem; }
.process-card h3 { font-size: 1.5rem; }
.process-card p { margin-bottom: 0; color: var(--muted); }

.games-list { display: grid; gap: 70px; }
.games-intro { max-width: 720px; }
.games-intro p { color: var(--muted); }
.gallery-strip { display: grid; margin-top: 24px; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-strip img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.fact-grid { display: grid; margin-top: 28px; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.fact { padding: 24px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact small { display: block; margin-bottom: 5px; color: #747081; font-size: .6rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.fact strong { font-size: .95rem; }

.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 9vw, 130px); }
.contact-layout h2 { font-size: clamp(2.4rem, 4vw, 4.6rem); }
.contact-panel { border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.contact-row { display: flex; min-height: 112px; padding: 26px 30px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); transition: background .25s; }
.contact-row:last-child { border: 0; }
.contact-row:hover { background: rgba(111,82,242,.08); }
.contact-row small { display: block; margin-bottom: 4px; color: #7d7889; font-size: .59rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.contact-row strong { font-size: clamp(.9rem, 1.5vw, 1.05rem); }
.contact-row > span:last-child { color: var(--violet-bright); font-size: 1.3rem; transition: transform .25s; }
.contact-row:hover > span:last-child { transform: translate(4px,-4px); }
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(3rem, 7vw, 6rem); }
.legal h2 { margin-top: 55px; font-size: 1.8rem; }
.legal p, .legal li { color: #bcb9c7; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-main { display: grid; padding-block: 62px; grid-template-columns: 1fr auto; align-items: end; gap: 50px; }
.footer-main .brand { margin-bottom: 24px; }
.footer-main p { max-width: 430px; margin: 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; }
.footer-links a { color: #aaa6b4; font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; padding-block: 20px; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); color: #666271; font-size: .62rem; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s var(--ease), transform .75s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes heroDrift { to { transform: scale(1.07) translate3d(-.6%, -.4%, 0); } }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-wrap { position: fixed; top: 0; right: 0; bottom: 0; display: flex; width: min(390px, 100%); padding: 108px 30px 34px; flex-direction: column; align-items: stretch; gap: 28px; background: rgba(5,5,11,.98); transform: translateX(100%); transition: transform .35s var(--ease); }
  .nav-wrap.is-open { transform: translateX(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 16px 2px; font-size: .9rem; }
  .nav-links a::after { display: none; }
  .nav-wrap .button { margin-top: auto; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .section-heading, .split-content, .contact-layout { grid-template-columns: 1fr; gap: 35px; }
  .split-content h2 { position: static; }
  .game-feature { grid-template-columns: 1fr; }
  .game-image { min-height: 430px; }
  .game-image::after { background: linear-gradient(0deg, #0a0a12, transparent 40%); }
  .signal-card .number { margin-bottom: 52px; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav-shell { min-height: 76px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-copy strong { font-size: .73rem; }
  .brand-copy small { font-size: .48rem; }
  .hero::after { background: linear-gradient(0deg, #05050a 0%, rgba(5,5,10,.7) 45%, rgba(2,2,7,.3) 100%); }
  .hero::before { background-position: 61% 50%; }
  .hero-content { padding-top: 145px; padding-bottom: 90px; }
  .hero-content h1 { font-size: clamp(3.05rem, 15vw, 5.4rem); }
  .hero-index { display: none; }
  .hero-actions .button { width: 100%; }
  .section { padding: 82px 0; }
  .section-heading { margin-bottom: 38px; }
  .signal-grid, .process-grid, .gallery-strip, .fact-grid { grid-template-columns: 1fr; }
  .signal-card { min-height: 230px; border-right: 0; border-bottom: 1px solid var(--line); }
  .signal-card .number, .process-card > span { margin-bottom: 40px; }
  .game-image { min-height: 300px; }
  .game-copy { padding: 34px 24px 38px; }
  .gallery-strip { gap: 9px; }
  .fact + .fact { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .page-hero { min-height: 72svh; padding: 145px 0 70px; }
  .page-hero::before { background-position: 62% 50%; }
  .value-item { grid-template-columns: 44px 1fr; }
  .contact-row { min-height: 100px; padding: 22px 20px; }
  .contact-row strong { overflow-wrap: anywhere; }
  .footer-main { grid-template-columns: 1fr; align-items: start; }
  .footer-links { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
