:root {
  --ink: #070516;
  --ink-2: #100a2b;
  --paper: #f8f5ff;
  --muted: #aaa4c7;
  --pink: #ff2ebd;
  --cyan: #19e6ff;
  --yellow: #ffd84a;
  --violet: #7b38ff;
  --pixel: "Press Start 2P", monospace;
  --body: "Space Grotesk", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); overflow-x: hidden; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--yellow); color: var(--ink); padding: 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.scanlines { position: fixed; inset: 0; z-index: 99; pointer-events: none; opacity: .1; background: repeating-linear-gradient(0deg, transparent 0 3px, #000 4px); }

.site-header { height: 86px; position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1.25rem, 5vw, 5rem); border-bottom: 1px solid rgba(255,255,255,.13); }
.logo { display: flex; align-items: center; gap: .65rem; font-family: var(--pixel); font-size: clamp(.8rem, 1.5vw, 1.05rem); text-decoration: none; letter-spacing: -.08em; }
.logo em { color: var(--pink); font-style: normal; text-shadow: 2px 2px 0 #68105e; }
.logo-spark { color: var(--cyan); font-size: 1.35rem; animation: flicker 2.5s steps(2) infinite; }
nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.75rem); }
nav a { text-decoration: none; text-transform: uppercase; font-size: .74rem; letter-spacing: .13em; font-weight: 700; transition: color .2s; }
nav a:hover { color: var(--cyan); }
.nav-cta { border: 1px solid var(--pink); padding: .8rem 1rem; box-shadow: 3px 3px 0 var(--pink); }
.menu-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; padding: 8px; }
.menu-toggle span { display: block; height: 2px; background: white; margin: 6px 0; }

.hero { min-height: 780px; height: min(100vh, 980px); position: relative; display: grid; align-items: center; overflow: hidden; }
.hero-art { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,3,20,.92) 0%, rgba(5,3,20,.63) 38%, rgba(5,3,20,.08) 70%), url("assets/ka-bewm-hero.png") center/cover; transform: scale(1.015); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 66%, var(--ink) 100%); }
.hero-glow { position: absolute; width: 38vw; height: 38vw; max-width: 600px; max-height: 600px; left: 3%; top: 22%; background: #5520d7; filter: blur(120px); opacity: .2; border-radius: 50%; }
.hero-content { position: relative; z-index: 2; width: min(760px, 90%); margin-left: clamp(1.25rem, 8vw, 8.5rem); padding-top: 5rem; }
.eyebrow, .section-kicker { font-family: var(--pixel); text-transform: uppercase; color: var(--cyan); font-size: .64rem; line-height: 1.8; letter-spacing: .08em; }
.eyebrow span { background: rgba(10,7,28,.72); padding: .65rem .8rem; border-left: 4px solid var(--cyan); }
h1 { font-family: var(--pixel); text-transform: uppercase; font-size: clamp(2.45rem, 6.4vw, 6.8rem); line-height: 1.08; letter-spacing: -.055em; margin: 1.65rem 0 1.5rem; text-shadow: 5px 6px 0 rgba(65,22,124,.6); }
h1 span { color: var(--pink); }
.hero-copy { max-width: 620px; color: #d9d4ea; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 2rem; margin-top: 2.2rem; }
.button { display: inline-flex; align-items: center; gap: 1.4rem; padding: 1rem 1.25rem; text-decoration: none; text-transform: uppercase; font-family: var(--pixel); font-size: .64rem; letter-spacing: .04em; position: relative; }
.button-primary { background: var(--pink); color: white; box-shadow: 6px 6px 0 #7b176b; }
.button-primary:hover { transform: translate(3px,3px); box-shadow: 3px 3px 0 #7b176b; }
.button b { font-size: 1rem; }
.text-link { color: white; text-transform: uppercase; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-decoration-color: var(--cyan); text-underline-offset: 5px; }
.text-link span { color: var(--cyan); margin-left: .5rem; }
.scroll-cue { position: absolute; z-index: 3; right: clamp(1.25rem, 4vw, 4rem); bottom: 4.5rem; display: flex; align-items: center; gap: .8rem; transform: rotate(90deg); transform-origin: right bottom; font-size: .56rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
.scroll-cue i { width: 45px; height: 1px; background: var(--cyan); }

.manifesto, .about, .games, .contact { padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 8vw, 8.5rem); }
.manifesto { text-align: center; position: relative; background: radial-gradient(circle at 50% 20%, #171044 0, var(--ink) 48%); }
.manifesto h2, .about h2, .games h2, .contact h2 { font-family: var(--pixel); text-transform: uppercase; font-size: clamp(1.75rem, 4vw, 4.2rem); line-height: 1.35; letter-spacing: -.045em; margin: 1.3rem 0; }
.manifesto h2 span, .about h2 span, .games h2 span { color: var(--pink); }
.manifesto > p { max-width: 650px; margin: 1.5rem auto 3.5rem; color: var(--muted); font-size: 1.1rem; line-height: 1.65; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1180px; margin: auto; text-align: left; border: 1px solid rgba(255,255,255,.11); }
.value-card { position: relative; min-height: 340px; padding: 2.4rem; background: rgba(13,8,36,.75); border-right: 1px solid rgba(255,255,255,.11); transition: transform .25s, background .25s; }
.value-card:last-child { border-right: 0; }
.value-card:hover { transform: translateY(-8px); background: #171044; }
.card-num { position: absolute; right: 1.5rem; top: 1.5rem; font-family: var(--pixel); font-size: .55rem; color: #655f80; }
.value-card h3 { font-family: var(--pixel); font-size: .8rem; line-height: 1.6; text-transform: uppercase; margin-top: 2rem; }
.value-card p { color: var(--muted); line-height: 1.65; }
.pixel-icon { height: 70px; width: 70px; display: grid; place-items: center; font-size: 2.8rem; font-family: var(--pixel); filter: drop-shadow(4px 4px 0 rgba(0,0,0,.4)); }
.cyan .pixel-icon { color: var(--cyan); } .pink .pixel-icon { color: var(--pink); } .yellow .pixel-icon { color: var(--yellow); }
.smile { border: 6px solid currentColor; position: relative; }
.smile i { width: 7px; height: 9px; background: currentColor; position: absolute; top: 16px; left: 14px; }
.smile i:nth-child(2) { left: auto; right: 14px; }
.smile b { width: 25px; height: 7px; border-left: 7px solid currentColor; border-bottom: 7px solid currentColor; border-right: 7px solid currentColor; position: absolute; bottom: 12px; }

.about { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(420px, .95fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; background: #0b071f; }
.about-visual { border: 4px solid #372775; box-shadow: 12px 12px 0 #201657; transform: rotate(-1deg); }
.window-bar { height: 38px; display: flex; align-items: center; gap: .45rem; padding: 0 .75rem; background: #281c62; border-bottom: 3px solid #372775; }
.window-bar i { width: 8px; height: 8px; background: var(--pink); } .window-bar i:nth-child(2) { background: var(--yellow); } .window-bar i:nth-child(3) { background: var(--cyan); }
.window-bar span { margin-left: auto; font-family: var(--pixel); font-size: .43rem; color: #aaa3d2; }
.desk-scene { height: 390px; position: relative; overflow: hidden; background: linear-gradient(#0e0b31 0 60%, #21145b 60%); }
.moon { position: absolute; width: 80px; height: 80px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 45px var(--pink); left: 11%; top: 11%; }
.stars { position: absolute; right: 9%; top: 12%; color: var(--cyan); font-size: 1.3rem; letter-spacing: 1rem; }
.desk { position: absolute; height: 22px; background: #4d2d91; bottom: 61px; left: 3%; right: 3%; box-shadow: 0 12px 0 #130a37; }
.monitor { position: absolute; width: 190px; height: 145px; background: #171038; border: 12px solid #36246b; left: 50%; top: 37%; transform: translateX(-50%); z-index: 2; box-shadow: 7px 7px 0 #09051b; }
.monitor::after { content: ""; position: absolute; width: 55px; height: 45px; background: #36246b; left: 56px; bottom: -55px; }
.monitor div { height: 100%; display: grid; place-content: center; text-align: center; background: #08051b; font-family: var(--pixel); color: var(--cyan); text-shadow: 3px 3px var(--violet); font-size: 1.1rem; line-height: 1.65; }
.monitor b { color: var(--pink); }
.keyboard { position: absolute; z-index: 3; width: 155px; height: 29px; left: 50%; bottom: 66px; transform: translateX(-50%) skew(-15deg); background: repeating-linear-gradient(90deg,#6a4eb0 0 8px,#251858 9px 12px); border: 5px solid #34236e; }
.mug { position: absolute; left: 14%; bottom: 83px; z-index: 2; font-size: 2rem; }
.plant { position: absolute; right: 12%; bottom: 84px; z-index: 2; color: var(--cyan); font-size: 3.5rem; text-shadow: 5px 5px var(--violet); }
.status-bar { display: flex; justify-content: space-between; background: var(--cyan); color: var(--ink); padding: .65rem .8rem; font-family: var(--pixel); font-size: .42rem; }
.about-copy .lead { font-size: 1.22rem; color: white; font-weight: 600; line-height: 1.6; }
.about-copy > p:not(.lead) { color: var(--muted); line-height: 1.7; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2.5rem; border-top: 1px solid #33265f; padding-top: 2rem; }
.about-stats div { display: grid; gap: .5rem; }
.about-stats strong { font-family: var(--pixel); color: var(--cyan); font-size: 1.3rem; }
.about-stats span { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }

.games { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(3rem, 8vw, 8rem); background: linear-gradient(135deg,#130b39,var(--ink)); }
.games-copy p { max-width: 480px; color: var(--muted); line-height: 1.7; font-size: 1.05rem; }
.game-teaser { min-height: 430px; position: relative; padding: 2rem; display: flex; flex-direction: column; justify-content: flex-end; border: 2px solid #352778; overflow: hidden; background: radial-gradient(circle at 50% 43%, rgba(25,230,255,.2), transparent 12%), repeating-linear-gradient(90deg,transparent 0 39px,rgba(67,42,139,.14) 40px), repeating-linear-gradient(0deg,transparent 0 39px,rgba(67,42,139,.14) 40px),#09061e; box-shadow: 10px 10px 0 #231755; }
.teaser-noise { position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, transparent 0 16%, rgba(255,46,189,.06) 17% 18%, transparent 19% 25%,rgba(25,230,255,.06) 26% 27%,transparent 28%); }
.dev-badge { position: absolute; top: 1.5rem; left: 1.5rem; background: var(--yellow); color: var(--ink); padding: .65rem .8rem; font-family: var(--pixel); font-size: .5rem; text-transform: uppercase; }
.mystery-mark { position: absolute; inset: 45px 0 auto; text-align: center; color: var(--pink); font-family: var(--pixel); font-size: 11rem; text-shadow: 10px 10px 0 #531282, 0 0 30px var(--pink); animation: hover 2.7s ease-in-out infinite; }
.loading-label { position: relative; display: flex; justify-content: space-between; text-transform: uppercase; font-family: var(--pixel); font-size: .55rem; margin-bottom: .8rem; }
.loading-track { position: relative; height: 16px; border: 3px solid #5542a0; padding: 2px; }
.loading-track i { display: block; width: 73%; height: 100%; background: repeating-linear-gradient(90deg,var(--cyan) 0 13px,transparent 14px 17px); }
.game-teaser p { position: relative; margin: .9rem 0 0; color: #746c98; font-family: var(--pixel); font-size: .42rem; letter-spacing: .05em; }

.contact { text-align: center; background: var(--violet); position: relative; overflow: hidden; }
.contact::before, .contact::after { content: ""; position: absolute; width: 250px; height: 250px; border: 2px solid rgba(255,255,255,.12); transform: rotate(45deg); }
.contact::before { left: -150px; top: -120px; } .contact::after { right: -150px; bottom: -120px; }
.contact .section-kicker { color: var(--yellow); }
.contact p { max-width: 570px; margin: 1rem auto 2rem; color: #e6ddff; font-size: 1.1rem; line-height: 1.65; }
.contact small { display: block; margin-top: 1.5rem; color: #c8b8ff; }
.pixel-burst { font-size: 3rem; color: var(--yellow); animation: flicker 1.8s steps(2) infinite; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.25rem clamp(1.25rem,5vw,5rem); background: #05030f; color: #77708f; font-size: .72rem; }
.footer-tag { font-family: var(--pixel); font-size: .45rem; color: var(--cyan); }

@keyframes hover { 50% { transform: translateY(-10px); } }
@keyframes flicker { 0%,90%,100%{opacity:1} 92%{opacity:.25} 96%{opacity:.65} }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation: none !important; transition: none !important; } }

@media (max-width: 900px) {
  .site-header { height: 72px; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 2rem; background: #0b071f; border-bottom: 2px solid var(--pink); flex-direction: column; align-items: flex-start; }
  nav.open { display: flex; }
  .hero { min-height: 720px; }
  .hero-art { background: linear-gradient(90deg,rgba(5,3,20,.9),rgba(5,3,20,.4)), url("assets/ka-bewm-hero.png") 62% center/cover; }
  .hero-content { margin-left: 1.5rem; }
  .value-grid { grid-template-columns: 1fr; }
  .value-card { min-height: 270px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.11); }
  .about, .games { grid-template-columns: 1fr; }
  .about-visual { order: 2; }
}

@media (max-width: 560px) {
  .scanlines { opacity: .06; }
  h1 { font-size: clamp(2rem, 11vw, 3.2rem); }
  .hero-content { width: calc(100% - 2.5rem); margin: 0 1.25rem; }
  .hero-copy { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.4rem; }
  .scroll-cue { display: none; }
  .manifesto, .about, .games, .contact { padding-left: 1.25rem; padding-right: 1.25rem; }
  .value-card { padding: 1.7rem; }
  .about { grid-template-columns: minmax(0,1fr); }
  .desk-scene { height: 310px; }
  .monitor { top: 31%; transform: translateX(-50%) scale(.78); }
  .keyboard { bottom: 57px; }
  .about-stats { gap: 1rem; }
  .about-stats strong { font-size: 1rem; }
  .about-stats span { font-size: .6rem; }
  .game-teaser { min-height: 380px; }
  .mystery-mark { font-size: 8rem; top: 80px; }
  footer { flex-direction: column; text-align: center; }
}
