:root {
  --bg: #05070a;
  --bg-2: #0a0e14;
  --panel: #0d1219;
  --text: #f6f7f9;
  --muted: #a9b0bc;
  --red: #ff1621;
  --blue: #1478e4;
  --line: rgba(255,255,255,.12);
  --max: 1240px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

main, header, footer, section {
  max-width: 100%;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 1000;
  background: white; color: black; padding: .8rem 1rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 82px; padding: 0 clamp(22px, 4vw, 68px);
  background: linear-gradient(to bottom, rgba(5,7,10,.9), rgba(5,7,10,.3), transparent);
  transition: background .3s ease, height .3s ease, border-color .3s ease;
}
.site-header.scrolled {
  height: 70px;
  background: rgba(5,7,10,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { width: 106px; height: 58px; overflow: hidden; display: grid; place-items: center; }
.brand img { width: 100%; height: 100%; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.site-nav a { color: rgba(255,255,255,.8); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: color .2s ease; }
.site-nav a:hover { color: white; }
.site-nav .nav-social { color: var(--muted); font-size: .74rem; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 2px; margin: 5px 0; background: white; }

.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-art { position: absolute; inset: 0; background: url('img/wake-up-lia.png') center/cover no-repeat; transform: scale(1.03); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 72% 42%, transparent 0 18%, rgba(5,7,10,.28) 58%, rgba(5,7,10,.65) 100%); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,10,.98) 0%, rgba(5,7,10,.78) 31%, rgba(5,7,10,.14) 66%, rgba(5,7,10,.34) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 38%); }
.hero-content { position: relative; z-index: 2; width: min(760px, 89vw); margin: 0 0 clamp(80px, 10vh, 124px) max(5.5vw, 24px); }
.eyebrow, .kicker { margin: 0 0 18px; text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 800; color: #d6d9df; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow span { width: 34px; height: 2px; background: var(--red); box-shadow: 0 0 18px var(--red); }
.hero h1 { max-width: 600px; margin: 0; font-size: clamp(3.4rem, 8vw, 7.6rem); line-height: .88; letter-spacing: -.07em; text-transform: uppercase; }
.hero-content > p:not(.eyebrow):not(.release-line) { max-width: 560px; margin: 28px 0 6px; color: #d8dce2; font-size: clamp(1rem, 1.4vw, 1.25rem); }
.release-line { margin: 0 0 28px; color: white; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-width: 150px; padding: 14px 22px; border: 1px solid transparent; text-align: center; font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--red); color: white; box-shadow: 0 12px 38px rgba(255,22,33,.23); }
.button-primary:hover { background: #ff3540; }
.button-ghost { border-color: rgba(255,255,255,.38); background: rgba(5,7,10,.25); backdrop-filter: blur(6px); }
.button-ghost:hover { border-color: white; }
.scroll-cue { position: absolute; right: 5vw; bottom: 34px; z-index: 3; width: 28px; height: 46px; border: 1px solid rgba(255,255,255,.45); border-radius: 99px; }
.scroll-cue span { position: absolute; top: 9px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: white; transform: translateX(-50%); animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translate(-50%,0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,19px); } }

.section { width: min(var(--max), calc(100% - 44px)); margin-inline: auto; padding: clamp(88px, 11vw, 150px) 0; }
.section-heading { display: grid; grid-template-columns: minmax(180px, .55fr) 1.4fr; gap: 36px; align-items: start; margin-bottom: clamp(42px, 6vw, 82px); }
.section-heading .kicker { grid-column: 1; padding-top: 12px; color: var(--red); }
.section-heading h2 { grid-column: 2; margin: 0; font-size: clamp(2.7rem, 5.2vw, 5.4rem); line-height: .96; letter-spacing: -.055em; }
.section-heading > p:last-child { grid-column: 2; max-width: 590px; margin: 0; color: var(--muted); font-size: 1.05rem; }

.featured { position: relative; }
.featured::before { content: ""; position: absolute; width: 420px; height: 420px; right: -250px; top: 120px; background: radial-gradient(circle, rgba(20,120,228,.2), transparent 66%); pointer-events: none; }
.feature-card { display: grid; grid-template-columns: 1.5fr .8fr; min-height: 500px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.feature-image { min-height: 500px; overflow: hidden; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; object-position: 66% center; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.feature-card:hover .feature-image img { transform: scale(1.035); }
.feature-copy { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 5vw, 68px); background: linear-gradient(145deg, rgba(17,23,32,.96), rgba(8,11,16,.98)); }
.feature-copy::before { content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 2px; background: linear-gradient(transparent, var(--red), transparent); }
.game-type { margin: 0 0 13px; color: var(--red); font-size: .75rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.feature-copy h3 { margin: 0 0 24px; font-size: clamp(2.3rem, 4vw, 4.1rem); line-height: .94; letter-spacing: -.05em; }
.feature-copy > p:not(.game-type) { margin: 0 0 26px; color: var(--muted); }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.platforms span { padding: 7px 10px; border: 1px solid var(--line); color: #cbd0d8; font-size: .72rem; }
.text-link { align-self: flex-start; padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.35); font-weight: 800; }
.text-link span { color: var(--red); margin-left: 4px; }

.games { padding-top: 30px; }
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.game-card { position: relative; min-height: 330px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.game-card-wide { grid-column: span 1; }
.game-card a { position: absolute; inset: 0; display: block; }
.game-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s ease; }
.game-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(3,5,8,.92) 0%, rgba(3,5,8,.25) 55%, transparent 100%); transition: background .3s ease; }
.game-card:hover img { transform: scale(1.045); filter: saturate(1.08); }
.game-card:hover::after { background: linear-gradient(0deg, rgba(3,5,8,.96) 0%, rgba(3,5,8,.15) 66%, transparent 100%); }
.game-overlay { position: absolute; z-index: 2; inset: auto 0 0 0; display: flex; justify-content: space-between; align-items: end; padding: 28px; }
.game-overlay p { margin: 0 0 7px; color: #c9ced6; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.game-overlay h3 { margin: 0; font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1; letter-spacing: -.035em; }
.arrow { display: grid; place-items: center; flex: 0 0 44px; height: 44px; margin-left: 18px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; font-size: 1.2rem; transition: background .2s ease, border-color .2s ease; }
.game-card:hover .arrow { background: var(--red); border-color: var(--red); }

.platform-strip { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #080b10; }
.platform-track { display: flex; width: max-content; align-items: center; gap: 36px; padding: 27px 0; animation: ticker 26s linear infinite; }
.platform-track span { font-size: clamp(1rem, 1.8vw, 1.35rem); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; color: #d8dce2; }
.platform-track i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px var(--red); }
@keyframes ticker { to { transform: translateX(-50%); } }

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 8vw, 110px); align-items: center; }
.about-mark { min-height: 430px; display: grid; place-items: center; position: relative; }
.about-mark::before, .about-mark::after { content: ""; position: absolute; border-radius: 50%; filter: blur(3px); }
.about-mark::before { width: 74%; aspect-ratio: 1; background: radial-gradient(circle, rgba(255,22,33,.24), transparent 65%); }
.about-mark::after { width: 82%; aspect-ratio: 1; background: conic-gradient(from 45deg, transparent, rgba(20,120,228,.4), transparent 35%, rgba(255,22,33,.38), transparent 72%); mask: radial-gradient(circle, transparent 56%, black 57% 59%, transparent 60%); animation: rotate 16s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
.about-mark img { position: relative; z-index: 1; width: min(360px, 75%); }
.about-copy .kicker { color: var(--blue); }
.about-copy h2 { margin: 0 0 28px; font-size: clamp(2.8rem, 5vw, 5rem); line-height: .96; letter-spacing: -.055em; }
.about-copy p { color: var(--muted); font-size: 1.03rem; }
.about-copy .lead { color: white; font-size: clamp(1.15rem, 1.8vw, 1.45rem); }

.contact { width: 100%; max-width: none; padding-inline: max(22px, calc((100vw - var(--max))/2)); background: linear-gradient(120deg, rgba(255,22,33,.11), transparent 38%), linear-gradient(300deg, rgba(20,120,228,.12), transparent 40%), #080b10; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-inner { max-width: 900px; }
.contact .kicker { color: var(--red); }
.contact h2 { margin: 0 0 26px; font-size: clamp(3rem, 6.6vw, 7rem); line-height: .9; letter-spacing: -.065em; }
.contact p { color: var(--muted); }
.email-link { display: inline-flex; align-items: center; gap: 14px; margin-top: 24px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: clamp(1.35rem, 3vw, 2.4rem); font-weight: 800; }
.email-link span { color: var(--red); }
.social-links { display: flex; gap: 24px; margin-top: 38px; }
.social-links a { color: #d4d8de; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.social-links a:hover { color: white; }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 30px max(22px, 4vw); color: #8f97a3; font-size: .76rem; }
.footer-brand { width: 80px; height: 44px; overflow: hidden; }
.footer-brand img { width: 100%; height: 100%; object-fit: contain; }
.site-footer p { margin: 0; text-align: center; }
.site-footer > a:last-child { justify-self: end; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .menu-toggle { display: block; position: relative; z-index: 3; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    padding: 80px 24px 40px;
    background: rgba(5,7,10,.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
  }
  .site-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }
  .site-nav a { font-size: 1.15rem; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-toggle span { transition: transform .25s ease, opacity .25s ease; }
  .hero-art { background-position: 64% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,7,10,.94), rgba(5,7,10,.27)), linear-gradient(0deg, var(--bg), transparent 55%); }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .section-heading .kicker, .section-heading h2, .section-heading > p:last-child { grid-column: 1; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-image { min-height: 340px; }
  .feature-copy::before { top: 0; left: 8%; right: 8%; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, transparent, var(--red), transparent); }
  .about { grid-template-columns: 1fr; }
  .about-mark { min-height: 300px; }
}

@media (max-width: 640px) {
  .site-header { height: 68px; padding-inline: 18px; }
  .brand { width: 90px; height: 48px; }
  .hero { min-height: 820px; }
  .hero-art { background-position: 70% center; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(5,7,10,.88) 23%, rgba(5,7,10,.22) 65%, rgba(5,7,10,.25) 100%); }
  .hero-content { margin: 0 20px 72px; width: auto; }
  .hero h1 { font-size: clamp(3.5rem, 17vw, 5rem); }
  .hero-content > p:not(.eyebrow):not(.release-line) { max-width: 94%; }
  .scroll-cue { display: none; }
  .section { width: min(100% - 30px, var(--max)); padding-block: 82px; }
  .feature-image { min-height: 260px; }
  .feature-image img { object-position: 68% center; }
  .feature-copy { padding: 32px 24px 36px; }
  .game-grid { grid-template-columns: 1fr; gap: 16px; }
  .game-card { min-height: 270px; }
  .game-overlay { padding: 20px; }
  .about-mark { min-height: 240px; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand, .site-footer > a:last-child { justify-self: center; }
}

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

html.menu-open,
html.menu-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

/* Mobile layout hardening */
html,
body {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

body {
  position: relative;
}

main {
  display: block;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.site-header,
.hero,
.platform-strip,
.contact,
.site-footer {
  width: 100%;
  min-width: 0;
}

section,
article,
div,
nav {
  min-width: 0;
}

section[id] {
  scroll-margin-top: 78px;
}

@media (max-width: 900px) {
  .site-nav {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .hero,
  .featured,
  .games,
  .about,
  .contact,
  .platform-strip,
  .site-footer {
    max-width: none;
  }

  .hero {
    width: 100%;
  }

  .hero-art,
  .hero-shade {
    width: 100%;
  }

  .section {
    width: calc(100% - 30px);
    margin-left: 15px;
    margin-right: 15px;
  }

  .contact.section {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 24px;
    padding-right: 24px;
  }

  .feature-card,
  .game-grid,
  .about {
    width: 100%;
  }

  .email-link {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}
