:root {
  --ink: #030306;
  --panel: #090912;
  --panel-2: #10101d;
  --text: #f7f5ff;
  --muted: #9694a8;
  --line: rgba(255,255,255,.1);
  --violet: #9d68ff;
  --blue: #62d9ff;
  --lime: #c8ff55;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--ink);
  font-family: "Manrope", sans-serif;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 75% 12%, rgba(157,104,255,.13), transparent 30rem),
    radial-gradient(circle at 10% 50%, rgba(98,217,255,.06), transparent 30rem),
    linear-gradient(180deg, #05050a, #020204);
}
body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: .035;
  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)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button, input, textarea { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
#void-field { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 135px 0; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--lime);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow::before { width: 22px; height: 1px; content: ""; background: currentColor; box-shadow: 0 0 12px currentColor; }
.gradient-text {
  color: transparent;
  background: linear-gradient(100deg, #fff 5%, var(--blue) 50%, var(--violet));
  background-clip: text;
  -webkit-background-clip: text;
}
.nav-shell { position: fixed; top: 18px; right: 0; left: 0; z-index: 50; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 12px 0 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  transition: .35s ease;
}
.nav.scrolled {
  border-color: var(--line);
  background: rgba(5,5,10,.76);
  box-shadow: 0 18px 60px rgba(0,0,0,.3);
  backdrop-filter: blur(20px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 11px;
  background: black;
  box-shadow: 0 0 30px rgba(157,104,255,.12);
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-family: "Space Grotesk", sans-serif; font-size: .88rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: #b6b4c4; font-size: .75rem; font-weight: 700; letter-spacing: .06em; transition: .25s ease; }
.nav-links a:hover { color: white; }
.nav-cta {
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.045);
}
.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: center;
  padding: 145px 0 80px;
  isolation: isolate;
}
.hero::before {
  position: absolute;
  top: 5%;
  right: -15%;
  z-index: -1;
  width: 55vw;
  aspect-ratio: 1;
  border: 1px solid rgba(157,104,255,.12);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 80px rgba(157,104,255,.018), 0 0 0 160px rgba(98,217,255,.01);
}
.hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(40px,6vw,90px); }
.hero-grid > * { min-width: 0; }
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.hero h1 {
  max-width: 700px;
  margin: 0 0 24px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 600;
  letter-spacing: -.08em;
  line-height: .84;
}
.hero h1 small {
  display: block;
  margin-bottom: 13px;
  color: #77748b;
  font-size: .19em;
  font-weight: 600;
  letter-spacing: .3em;
  line-height: 1;
  text-transform: uppercase;
}
.hero-copy > p:not(.eyebrow) { max-width: 560px; margin: 0 0 32px; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .07em;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.button:hover { transform: translateY(-3px); }
.button-primary {
  border-color: transparent;
  color: #08080d;
  background: linear-gradient(115deg, var(--lime), #fff);
  box-shadow: 0 18px 45px rgba(200,255,85,.12);
}
.button-ghost { background: rgba(255,255,255,.035); }
.hero-stats { display: flex; gap: 22px; margin-top: 48px; }
.hero-stat { padding-right: 22px; border-right: 1px solid var(--line); color: #787589; font-size: .58rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-stat:last-child { border: 0; }
.hero-stat strong { display: block; margin-bottom: 3px; color: white; font-family: "Space Grotesk"; font-size: 1.55rem; letter-spacing: -.04em; }

.hero-universe { position: relative; min-height: 640px; perspective: 1200px; transform-style: preserve-3d; }
.orbit {
  position: absolute;
  top: 9%;
  left: 8%;
  width: 82%;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  transform: rotateX(67deg) rotateZ(-12deg);
  box-shadow: 0 0 100px rgba(157,104,255,.05);
  animation: orbit-spin 25s linear infinite;
}
.orbit::before, .orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}
.orbit::before { inset: 15%; border: 1px dashed rgba(98,217,255,.16); }
.orbit::after { inset: 34%; border: 1px solid rgba(200,255,85,.14); }
.hero-frame {
  position: absolute;
  top: 11%;
  left: 16%;
  z-index: 3;
  overflow: hidden;
  width: 68%;
  min-height: 465px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  background: #10101b;
  box-shadow: 45px 55px 100px rgba(0,0,0,.52), 0 0 80px rgba(157,104,255,.08);
  transform: rotateX(5deg) rotateY(-13deg) rotateZ(3deg) translateZ(60px);
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
  animation: frame-drift 7s ease-in-out infinite;
}
.hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after { position: absolute; inset: 0; content: ""; background: linear-gradient(to top, rgba(3,3,8,.86), transparent 58%); }
.frame-copy { position: absolute; right: 26px; bottom: 24px; left: 26px; z-index: 2; }
.frame-copy span { color: var(--lime); font-size: .58rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.frame-copy strong { display: block; margin-top: 6px; font-family: "Space Grotesk"; font-size: 1.55rem; letter-spacing: -.04em; }
.app-orb {
  position: absolute;
  z-index: 5;
  overflow: hidden;
  width: 82px;
  aspect-ratio: 1;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 22px;
  background: rgba(12,12,22,.78);
  box-shadow: 0 18px 45px rgba(0,0,0,.36);
  backdrop-filter: blur(14px);
  animation: float 5s ease-in-out infinite;
}
.app-orb img { width: 100%; height: 100%; border-radius: 17px; object-fit: cover; }
.orb-one { top: 7%; right: 5%; }
.orb-two { bottom: 12%; right: 3%; animation-delay: -1.7s; }
.orb-three { bottom: 5%; left: 3%; animation-delay: -3.2s; }
.floating-label {
  position: absolute;
  z-index: 6;
  padding: 10px 13px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  color: #cbc8db;
  background: rgba(8,8,14,.72);
  backdrop-filter: blur(15px);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.label-one { top: 32%; left: 0; }
.label-two { right: 3%; bottom: 36%; }

.marquee { overflow: hidden; padding: 18px 0; border-block: 1px solid var(--line); background: rgba(255,255,255,.016); transform: rotate(-1deg) scale(1.02); }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.marquee span { color: #898698; font-family: "Space Grotesk"; font-size: .73rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.marquee b { color: var(--lime); font-weight: 500; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 48px; }
.section h2 {
  max-width: 800px;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 5.4vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -.075em;
  line-height: .94;
}
.section-intro { max-width: 400px; margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.8; }
.games-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 18px; }
.game-card {
  position: relative;
  grid-column: span 6;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform .2s ease, border-color .3s ease, box-shadow .3s ease;
}
.game-card:nth-child(1), .game-card:nth-child(4) { grid-column: span 7; }
.game-card:nth-child(2), .game-card:nth-child(3) { grid-column: span 5; }
.game-card::after { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(to top, rgba(3,3,8,.98) 6%, rgba(3,3,8,.32) 68%, transparent); }
.game-card:hover { border-color: rgba(157,104,255,.35); box-shadow: 0 35px 90px rgba(0,0,0,.32), 0 0 60px rgba(157,104,255,.06); }
.game-card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16,1,.3,1), filter .8s ease; }
.game-card:hover > img { transform: scale(1.05); filter: saturate(1.08); }
.game-top { position: absolute; top: 18px; right: 18px; left: 20px; display: flex; align-items: center; justify-content: space-between; }
.game-index { color: rgba(255,255,255,.62); font-family: "Space Grotesk"; font-size: .68rem; letter-spacing: .14em; }
.game-arrow { display: grid; width: 44px; aspect-ratio: 1; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(0,0,0,.25); backdrop-filter: blur(10px); transition: .3s ease; }
.game-card:hover .game-arrow { color: #08080d; background: var(--lime); transform: rotate(45deg); }
.game-copy { position: absolute; right: 26px; bottom: 26px; left: 26px; transform: translateZ(30px); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.tags span { padding: 7px 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #cbc9d7; background: rgba(0,0,0,.35); backdrop-filter: blur(10px); font-size: .55rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.game-copy h3 { max-width: 540px; margin: 0 0 8px; font-family: "Space Grotesk"; font-size: clamp(1.7rem,3vw,2.75rem); letter-spacing: -.055em; line-height: 1; }
.game-copy p { margin: 0; color: #adabbb; font-size: .75rem; line-height: 1.6; }

.capability-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capability {
  position: relative;
  min-height: 300px;
  padding: 28px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.012);
  transition: background .3s ease;
}
.capability:hover { background: rgba(157,104,255,.055); }
.capability-num { color: var(--lime); font-family: "Space Grotesk"; font-size: .66rem; letter-spacing: .13em; }
.capability h3 { margin: 100px 0 10px; font-family: "Space Grotesk"; font-size: 1.35rem; letter-spacing: -.04em; }
.capability p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.75; }
.capability::after { position: absolute; top: -65px; right: -65px; width: 150px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; box-shadow: 0 0 0 22px rgba(255,255,255,.012), 0 0 0 44px rgba(255,255,255,.008); }

.network { display: grid; grid-template-columns: .92fr 1.08fr; gap: 60px; align-items: start; }
.network-copy { position: sticky; top: 140px; }
.network-copy p:not(.eyebrow) { max-width: 480px; color: var(--muted); font-size: .88rem; line-height: 1.8; }
.portfolio-list { border-top: 1px solid var(--line); }
.portfolio-link { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); transition: padding .25s ease; }
.portfolio-link:hover { padding-left: 8px; }
.portfolio-link img { width: 54px; aspect-ratio: 1; border-radius: 14px; object-fit: cover; }
.portfolio-link span { display: block; color: var(--violet); font-size: .58rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.portfolio-link strong { display: block; margin-top: 4px; font-family: "Space Grotesk"; font-size: 1.05rem; }
.portfolio-link b { color: #817e91; font-size: 1.1rem; transition: .25s ease; }
.portfolio-link:hover b { color: var(--lime); transform: rotate(45deg); }

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(36px,6vw,80px);
  border: 1px solid rgba(157,104,255,.2);
  border-radius: 28px;
  background: radial-gradient(circle at 85% 20%, rgba(157,104,255,.18), transparent 30%), linear-gradient(145deg,#10101b,#06060b 70%);
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 45px 100px rgba(0,0,0,.25);
}
.contact-panel::before { position: absolute; top: -50%; right: -9%; width: 45%; aspect-ratio: 1; border: 1px solid rgba(200,255,85,.14); border-radius: 50%; content: ""; box-shadow: 0 0 0 40px rgba(200,255,85,.015),0 0 0 80px rgba(200,255,85,.008); }
.contact-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(35px,7vw,90px); align-items: start; }
.contact-copy h2 { margin-bottom: 18px; font-size: clamp(2.8rem,5vw,5rem); }
.contact-copy p:not(.eyebrow) { max-width: 430px; margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.8; }
.contact-form { display: grid; gap: 14px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: rgba(3,3,8,.65); backdrop-filter: blur(16px); }
.field { display: grid; gap: 8px; }
.field label { color: #c8c5d4; font-size: .59rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.field input, .field textarea { width: 100%; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; outline: 0; background: rgba(255,255,255,.035); font-size: .82rem; transition: .25s ease; }
.field input { height: 49px; padding: 0 14px; }
.field textarea { min-height: 135px; padding: 14px; resize: vertical; }
.field input:focus,.field textarea:focus { border-color: rgba(157,104,255,.55); box-shadow: 0 0 0 3px rgba(157,104,255,.08); }
.field input::placeholder,.field textarea::placeholder { color: #626071; }
.contact-form .button { border: 0; cursor: pointer; }
.contact-form .button:disabled { cursor: wait; opacity: .65; transform: none; }
.form-status { min-height: 1.3em; margin: 0; color: var(--muted); font-size: .69rem; }
.form-status.success { color: #98ebbd; }
.form-status.error { color: #ff9d9d; }

.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; padding: 34px 0 42px; color: #706d80; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { display: flex; justify-content: flex-end; gap: 22px; }
.footer a:hover { color: white; }
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: none; }

@keyframes orbit-spin { to { transform: rotateX(67deg) rotateZ(348deg); } }
@keyframes float { 50% { transform: translateY(-11px) rotate(2deg); } }
@keyframes frame-drift {
  0%,100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 1000px) {
  .nav-links { position: absolute; top: 75px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgba(5,5,10,.95); backdrop-filter: blur(20px); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; }
  .menu-button { display: grid; place-items: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy p,.hero h1 { margin-inline: auto; }
  .hero-copy .eyebrow,.button-row,.hero-stats { justify-content: center; }
  .hero-universe { min-height: 620px; }
  .hero-frame { left: 22%; width: 56%; }
  .games-grid { gap: 14px; }
  .game-card,.game-card:nth-child(n) { grid-column: span 12; }
  .capability-grid { grid-template-columns: repeat(2,1fr); }
  .network { grid-template-columns: 1fr; }
  .network-copy { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 24px),var(--max)); }
  .nav-shell { top: 10px; }
  .brand-name { font-size: .72rem; }
  .hero { padding-top: 130px; padding-bottom: 40px; }
  .hero-grid,.hero-copy { width: 100%; min-width: 0; }
  .hero h1 { font-size: clamp(3.8rem,20vw,5.6rem); }
  .hero h1 .gradient-text { display: block; }
  .hero-copy > p:not(.eyebrow) { width: 100%; max-width: 100%; font-size: .82rem; }
  .hero-copy .eyebrow { max-width: 100%; font-size: .55rem; letter-spacing: .12em; white-space: normal; }
  .button-row { display: grid; width: 100%; grid-template-columns: minmax(0,1fr); }
  .button { width: 100%; }
  .hero-stats { display: grid; width: 100%; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
  .hero-stat { padding: 0 5px; border: 0; font-size: .43rem; }
  .hero-stat strong { font-size: .95rem; }
  .hero-universe { min-height: 440px; }
  .hero-frame { top: 7%; left: 12%; width: 76%; min-height: 330px; }
  .hero-frame { animation: mobile-frame-drift 6s ease-in-out infinite; }
  .app-orb { width: 60px; border-radius: 17px; }
  .app-orb img { border-radius: 12px; }
  .orb-one { right: 0; }
  .orb-two { right: 0; bottom: 12%; }
  .orb-three { left: 0; bottom: 7%; }
  .floating-label { display: none; }
  .section { padding: 90px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .game-card,.game-card:nth-child(n) { min-height: 445px; }
  .game-copy { right: 20px; bottom: 20px; left: 20px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability { min-height: 240px; }
  .capability h3 { margin-top: 60px; }
  .portfolio-link { grid-template-columns: 52px 1fr auto; gap: 12px; }
  .portfolio-link img { width: 48px; }
  .contact-panel { padding: 27px 16px 16px; }
  .contact-form { padding: 18px; }
  .footer { grid-template-columns: 1fr; align-items: start; }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; }
}

@keyframes mobile-frame-drift {
  0%,100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -8px; rotate: .8deg; }
}

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