:root {
  --black: #07040b;
  --deep: #10061b;
  --purple: #7c24ff;
  --violet: #b36aff;
  --white: #f8f5ff;
  --muted: #aaa3b5;
  --line: rgba(255,255,255,.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--purple); color: white; }

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 15;
  height: 76px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 78px); border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}
.site-header.scrolled { background: rgba(7,4,11,.72); border-color: var(--line); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 11px; text-transform: uppercase; font-size: .82rem; letter-spacing: .09em; font-weight: 700; }
.brand b { color: var(--violet); font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 34px; aspect-ratio: 1; background: var(--white); color: var(--black); font: 1.2rem/1 "Anton"; transform: rotate(-8deg); }
nav { display: flex; gap: clamp(18px, 3vw, 42px); }
nav a { color: #d9d3df; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; transition: color .2s; }
nav a:hover { color: var(--violet); }

.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: 4vw; padding: 120px clamp(24px, 7vw, 110px) 80px; isolation: isolate;
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0; z-index: -3; opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 58px 58px; mask-image: linear-gradient(to bottom, black, transparent 88%);
  transform: perspective(700px) rotateX(12deg) scale(1.1); animation: gridMove 10s linear infinite;
}
@keyframes gridMove { to { background-position: 0 58px, 58px 0; } }
.orb { position: absolute; z-index: -2; border-radius: 50%; filter: blur(2px); }
.orb-one { width: 48vw; height: 48vw; right: -10vw; top: 0; background: radial-gradient(circle at 35% 35%, #c98aff, #7116e6 34%, #210037 69%, transparent 70%); opacity: .65; animation: breathe 7s ease-in-out infinite; }
.orb-two { width: 24vw; height: 24vw; left: 22%; bottom: -17vw; background: #7116e6; filter: blur(100px); opacity: .35; }
@keyframes breathe { 50% { transform: scale(1.06) translate(-1.5%, 2%); filter: hue-rotate(20deg); } }
.pixel-field { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 15% 25%, white 0 1px, transparent 2px), radial-gradient(circle at 70% 18%, white 0 1px, transparent 2px), radial-gradient(circle at 87% 72%, #b36aff 0 2px, transparent 3px), radial-gradient(circle at 44% 82%, #b36aff 0 1px, transparent 2px); background-size: 280px 230px, 390px 320px, 440px 360px, 330px 270px; opacity: .52; animation: stars 20s linear infinite; }
@keyframes stars { to { transform: translateY(80px); } }
.hero-copy { max-width: 750px; }
.eyebrow, .kicker { margin: 0 0 24px; color: var(--violet); text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 800; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow span { width: 34px; height: 2px; background: var(--violet); box-shadow: 0 0 14px var(--violet); }
h1, h2, h3 { font-family: "Anton", Impact, sans-serif; font-weight: 400; text-transform: uppercase; margin: 0; }
h1 { font-size: clamp(5.2rem, 10vw, 10rem); line-height: .78; letter-spacing: -.035em; }
h1 span { color: transparent; -webkit-text-stroke: 2px var(--white); text-shadow: 0 0 38px rgba(179,106,255,.26); }
.byline { margin: 24px 0; color: #bfb8c8; font-size: clamp(1rem, 1.6vw, 1.35rem); letter-spacing: .04em; }
.byline strong { color: white; }
.intro { max-width: 630px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 24px; border: 1px solid var(--line); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-3px); }
.button.primary { color: white; background: var(--purple); border-color: var(--purple); box-shadow: 0 12px 40px rgba(124,36,255,.28); }
.button.primary:hover { box-shadow: 0 18px 50px rgba(124,36,255,.5); }
.button.ghost { background: rgba(255,255,255,.035); backdrop-filter: blur(12px); }
.hero-emblem { display: grid; place-items: center; }
.logo-stage { position: relative; width: min(38vw, 540px); aspect-ratio: 1; display: grid; place-items: center; }
.logo-stage::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; background: rgba(10,4,15,.72); border: 1px solid rgba(255,255,255,.22); box-shadow: inset 0 0 70px rgba(124,36,255,.22), 0 0 80px rgba(124,36,255,.2); backdrop-filter: blur(14px); }
.orbit { position: absolute; inset: 4%; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.orbit::before { content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: white; box-shadow: 0 0 20px white; }
.orbit-a { animation: rotate 11s linear infinite; }
.orbit-b { inset: 0 18%; transform: rotate(64deg); border-color: rgba(179,106,255,.45); animation: rotate 8s linear infinite reverse; }
@keyframes rotate { to { transform: rotate(360deg); } }
.davinci-logo { position: relative; width: 62%; filter: grayscale(1) brightness(0) invert(1) drop-shadow(0 0 20px rgba(179,106,255,.5)); animation: logoFloat 4s ease-in-out infinite; }
@keyframes logoFloat { 50% { transform: translateY(-10px) scale(1.02); } }
.scroll-cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; color: #aaa3b5; text-transform: uppercase; font-size: .62rem; letter-spacing: .18em; }
.scroll-cue span { display: block; width: 1px; height: 28px; background: linear-gradient(var(--violet), transparent); animation: cue 1.5s ease-in-out infinite; }
@keyframes cue { 50% { transform: scaleY(.45); transform-origin: top; } }

.games-section { padding: clamp(90px, 12vw, 170px) clamp(22px, 6vw, 90px); background: radial-gradient(circle at 100% 0%, rgba(124,36,255,.12), transparent 35%); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 68px; }
.section-head .kicker { writing-mode: vertical-rl; transform: rotate(180deg); margin: 0 0 7px; }
.section-head h2 { margin-right: auto; font-size: clamp(3.5rem, 7vw, 7rem); line-height: .9; }
.section-head em { color: transparent; font-style: normal; -webkit-text-stroke: 1px var(--violet); }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.game-card { --accent: #8b37ff; position: relative; min-height: 620px; display: flex; flex-direction: column; padding: 24px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(155deg, rgba(255,255,255,.075), rgba(255,255,255,.015)); transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s; }
.game-card::before { content: ""; position: absolute; inset: auto -20% -35% 5%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); filter: blur(80px); opacity: .2; transition: opacity .35s, transform .35s; }
.game-card:hover { transform: translateY(-12px); border-color: color-mix(in srgb, var(--accent) 80%, white); box-shadow: 0 30px 80px rgba(0,0,0,.38); }
.game-card:hover::before { opacity: .36; transform: scale(1.15); }
.princess { --accent: #ef4cff; }
.neon { --accent: #1d8cff; }
.rap { --accent: #8e42ff; }
.card-number { position: absolute; top: 18px; right: 22px; color: rgba(255,255,255,.36); font: 1.2rem "Anton"; }
.icon-wrap { height: 285px; display: grid; place-items: center; position: relative; z-index: 1; }
.icon-wrap::after { content: ""; position: absolute; inset: 20%; z-index: -1; border-radius: 50%; background: var(--accent); filter: blur(45px); opacity: .22; }
.icon-wrap img { max-height: 255px; object-fit: contain; transition: transform .5s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 24px 24px rgba(0,0,0,.35)); }
.game-card:hover .icon-wrap img { transform: translateY(-10px) rotate(-3deg) scale(1.04); }
.card-copy { position: relative; z-index: 1; margin-top: auto; }
.genre { color: var(--accent); font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.card-copy h3 { margin: 10px 0 14px; font-size: clamp(2.9rem, 4.5vw, 4.6rem); line-height: .86; }
.card-copy p { min-height: 50px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.play-link { display: flex; justify-content: space-between; align-items: center; margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); color: #e9e3ef; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.play-link b { display: grid; place-items: center; width: 34px; aspect-ratio: 1; background: var(--accent); color: white; border-radius: 50%; }

.arcade-section { min-height: 100vh; display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(35px, 6vw, 90px); align-items: center; padding: clamp(100px, 12vw, 170px) clamp(22px, 6vw, 90px); background: #f7f4fb; color: #0b0610; overflow: hidden; }
.arcade-copy h2 { font-size: clamp(4.8rem, 9vw, 9rem); line-height: .78; }
.arcade-copy h2 span { color: var(--purple); }
.arcade-copy p:not(.kicker) { max-width: 510px; color: #655e6b; line-height: 1.7; }
.control-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.control-chips span { padding: 8px 11px; border: 1px solid #cfc8d6; font: 700 .68rem/1 "Inter"; letter-spacing: .1em; }
.console { width: 100%; padding: 14px; color: white; background: #100817; border: 1px solid #33233e; border-radius: 22px; box-shadow: 0 35px 80px rgba(36,10,62,.28), inset 0 0 0 1px rgba(255,255,255,.05); }
.console-top, .console-bottom { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; font-size: .65rem; font-weight: 800; letter-spacing: .12em; }
.console-top > span { color: #cfbddd; }
.console-top i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: #7dff73; border-radius: 50%; box-shadow: 0 0 12px #7dff73; }
.scoreboard { display: flex; gap: 24px; }
.scoreboard span { color: #9789a1; }
.scoreboard b { margin-left: 7px; color: white; font-size: .82rem; }
.screen-shell { position: relative; overflow: hidden; aspect-ratio: 16/9; background: black; border: 1px solid #382548; border-radius: 12px; box-shadow: inset 0 0 35px rgba(124,36,255,.22); cursor: pointer; touch-action: manipulation; }
canvas { width: 100%; height: 100%; display: block; }
.game-message { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; background: rgba(4,1,8,.35); pointer-events: none; transition: opacity .25s; }
.game-message.hidden { opacity: 0; }
.game-message strong { font: 400 clamp(2.4rem, 6vw, 5rem)/1 "Anton"; letter-spacing: .04em; text-shadow: 0 0 28px var(--purple); }
.game-message span { padding: 0 18px; color: #cbbfd4; font-size: .8rem; }
.console-bottom { min-height: 37px; color: #746a7d; }

.contact-section { position: relative; padding: clamp(100px, 12vw, 170px) clamp(22px, 6vw, 90px); overflow: hidden; border-top: 1px solid var(--line); }
.contact-marquee { position: absolute; top: 24px; left: 0; display: flex; width: max-content; color: rgba(255,255,255,.035); font: 8rem/1 "Anton"; white-space: nowrap; animation: marquee 22s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.contact-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; }
.contact-inner h2 { font-size: clamp(4rem, 8vw, 8rem); line-height: .88; }
.contact-actions { display: grid; gap: 16px; }
.mail-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); font-size: clamp(.9rem, 1.4vw, 1.2rem); overflow-wrap: anywhere; }
.mail-link span { color: var(--violet); font-size: 1.5rem; }
.store-link { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 18px; padding: 20px; background: white; color: #130b18; transition: transform .25s, box-shadow .25s; }
.store-link:hover { transform: translateY(-4px); box-shadow: 10px 10px 0 var(--purple); }
.store-link img { width: 46px; height: 46px; object-fit: contain; }
.store-link span { font-weight: 800; }
.store-link small { display: block; margin-top: 4px; color: #77707b; font-weight: 500; }
.store-link b { font-size: 1.5rem; }
footer { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 24px clamp(22px, 6vw, 90px); border-top: 1px solid var(--line); color: #847d8b; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; }
footer img { width: 130px; filter: grayscale(1) brightness(3); opacity: .55; }
footer a { color: white; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 130px; }
  .hero-emblem { position: absolute; width: 52vw; right: -10vw; top: 17%; opacity: .42; z-index: -1; }
  .logo-stage { width: 100%; }
  .hero-copy { max-width: 780px; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 390px; display: grid; grid-template-columns: 42% 1fr; align-items: center; }
  .icon-wrap { height: auto; }
  .card-copy { margin-top: 0; }
  .arcade-section { grid-template-columns: 1fr; }
  .arcade-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 35px; align-items: end; }
  .arcade-copy .kicker, .control-chips { grid-column: 1 / -1; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { height: 66px; padding: 0 18px; }
  .brand > span:last-child { display: none; }
  nav { gap: 16px; }
  nav a { font-size: .64rem; }
  nav a:last-child { display: none; }
  .hero { min-height: 920px; padding: 105px 20px 90px; align-items: start; }
  h1 { font-size: clamp(4.5rem, 24vw, 7rem); }
  .hero-emblem { position: relative; width: 90vw; right: auto; top: auto; opacity: 1; margin: -20px auto 0; }
  .section-head { align-items: flex-start; gap: 18px; margin-bottom: 42px; }
  .section-head .kicker { display: none; }
  .section-head h2 { font-size: 3.3rem; }
  .games-section, .arcade-section, .contact-section { padding-left: 18px; padding-right: 18px; }
  .game-card { min-height: 590px; display: flex; }
  .icon-wrap { height: 280px; }
  .arcade-copy { display: block; }
  .arcade-copy h2 { font-size: 5.2rem; }
  .console { padding: 8px; border-radius: 15px; }
  .scoreboard { gap: 10px; }
  .console-top { font-size: .55rem; }
  .console-top > span { display: none; }
  .screen-shell { border-radius: 8px; }
  .console-bottom { font-size: .48rem; }
  .contact-inner h2 { font-size: 4.25rem; }
  .contact-marquee { font-size: 5rem; }
  .store-link { grid-template-columns: 45px 1fr auto; padding: 16px; }
  footer { flex-direction: column; text-align: center; padding: 35px 20px; }
}

@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; }
}
