:root {
  --bg: #08090d;
  --panel: #0d0f15;
  --text: #f4efe9;
  --muted: #b8b2ae;
  --line: rgba(255,255,255,.16);
  --pink: #ff2f78;
  --violet: #d642ff;
  --blue: #27c9ff;
  --orange: #ff7a3e;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 12%, rgba(120,20,20,.18), transparent 31rem),
    linear-gradient(180deg, #07080b, #0a0b11 55%, #07080b);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.site-shell { min-height: 100vh; overflow: hidden; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--max));
  height: 98px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 54px;
}
.brand { justify-self: start; display: inline-flex; align-items: center; }
.brand-logo {
  width: 210px;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(255, 66, 126, .2));
}
.brand-logo-small { width: 148px; }
.desktop-nav { display: flex; gap: 44px; font-size: 16px; color: #f7f1ed; }
.desktop-nav a { opacity: .92; transition: opacity .2s ease, color .2s ease; }
.desktop-nav a:hover { opacity: 1; color: #fff; }
.header-cta { justify-self: end; }

.button {
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 48px;
  padding: 0 24px;
  letter-spacing: .01em;
  transition: transform .18s ease, opacity .18s ease;
}
.button-outline {
  position: relative;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 7px;
  box-shadow: -4px 0 18px rgba(255,122,62,.45), 4px 0 18px rgba(214,66,255,.45), inset 0 0 16px rgba(255,255,255,.03);
  background: linear-gradient(90deg, rgba(255,122,62,.05), rgba(214,66,255,.05));
}
.button-outline::before {
  content: "";
  position: absolute;
  inset: auto 10px -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), #fff4, var(--violet));
  opacity: .8;
  filter: blur(6px);
  z-index: -1;
}
.button:hover { transform: translateY(-1px); }
.button-large { min-height: 56px; padding: 0 30px; font-size: 16px; }
.button-filled {
  background: linear-gradient(90deg, #ff6940, #ff2f78 45%, #a347ff);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(255,47,120,.25);
}
.menu-button { display: none; border: 0; background: transparent; width: 48px; height: 48px; padding: 10px; }
.menu-button span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: .2s; }
.mobile-menu { display: none; }

.hero {
  position: relative;
  min-height: 650px;
  padding-top: 110px;
  isolation: isolate;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('assets/hero-banner.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 50%;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9,6,7,.78) 0%, rgba(9,6,7,.64) 19%, rgba(9,6,7,.38) 36%, rgba(8,8,12,.08) 58%, rgba(8,8,12,.15) 100%),
    linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,0) 44%, rgba(0,0,0,.24) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 54px 74px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1, .worlds h2, .section-heading h2, .technology h2, .about h2, .demo-dialog h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.045em;
}
.hero h1 {
  margin: 8px 0 0;
  font-size: clamp(78px, 7vw, 112px);
  line-height: .84;
  max-width: 660px;
  text-shadow: 0 2px 24px rgba(0,0,0,.42);
}
em { font-weight: 400; font-style: italic; color: #f34c80; }
.hero h1 em {
  background: linear-gradient(110deg, #f84b72, #ef397e 55%, #bd50e5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fun-underline {
  width: 310px;
  height: 10px;
  margin: 8px 0 24px 154px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--pink), #c94ee2 52%, var(--blue));
  clip-path: polygon(0 40%, 100% 0, 100% 40%, 0 100%);
  filter: drop-shadow(0 0 5px rgba(255,47,120,.25));
}
.hero-kicker { display: flex; align-items: center; gap: 20px; max-width: 490px; }
.hero-kicker p { margin: 0; text-transform: uppercase; letter-spacing: .18em; font-size: 13px; line-height: 1.75; color: #e9e2de; }
.cube-mark { flex: 0 0 56px; width: 56px; height: 56px; filter: drop-shadow(0 0 11px rgba(218,53,255,.35)); }
.cube-mark svg { width: 100%; height: 100%; }
.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 30px; }
.text-link { padding: 14px 0 8px; border-bottom: 1px solid rgba(255,255,255,.5); color: #efe9e5; }
.text-link span { margin-left: 18px; }

.trusted {
  min-height: 82px;
  padding: 12px 40px 16px;
  background: rgba(8,9,13,.96);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.trusted > p { margin: 0 0 8px; text-align: center; text-transform: uppercase; letter-spacing: .32em; font-size: 11px; color: #dad4d0; }
.logo-row { width: min(100%, 1370px); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.partner { min-height: 43px; display: flex; align-items: center; justify-content: center; gap: 18px; letter-spacing: .38em; font-size: 12px; color: #d9d6d8; border-right: 1px solid rgba(255,255,255,.2); }
.partner:last-child { border-right: 0; }
.partner-icon { font-size: 31px; line-height: 1; text-shadow: 0 0 10px currentColor; }
.partner .hex { color: #a74bff; }
.partner .tri { color: #56efc6; }
.partner .sq { color: #28d8f4; }
.partner .cone { color: #ff7b46; }
.partner .star { color: #d7d6ff; }

.section { width: min(100%, var(--max)); margin: 0 auto; padding: 78px 54px; }
.worlds {
  min-height: 350px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 50px;
}
.worlds-copy { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 54px; }
.worlds h2 { margin: 0; font-size: clamp(50px, 4.8vw, 74px); line-height: .93; }
.worlds p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.controller-art {
  min-height: 220px;
  background: url('assets/neon-controller.jpg') center/contain no-repeat;
  filter: drop-shadow(0 0 24px rgba(102,57,255,.2));
}

.cards { border-top: 1px solid var(--line); }
.section-heading { max-width: 800px; margin-bottom: 48px; }
.eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: 12px; color: #c9c2bf; }
.section-heading h2, .technology h2, .about h2 { margin: 10px 0 0; font-size: clamp(46px, 5vw, 72px); line-height: 1; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { position: relative; min-height: 270px; padding: 30px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); }
.feature-card::after { content: ""; position: absolute; inset: auto -20% -35% 20%; height: 140px; background: radial-gradient(ellipse, rgba(218,53,255,.2), transparent 67%); }
.card-number { color: #ff5c82; letter-spacing: .18em; font-size: 12px; }
.feature-card h3 { font-family: Georgia, serif; font-weight: 400; font-size: 32px; margin: 76px 0 12px; }
.feature-card p { color: var(--muted); line-height: 1.65; margin: 0; }

.technology { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; border-top: 1px solid var(--line); }
.tech-list { border-top: 1px solid var(--line); }
.tech-list div { display: grid; grid-template-columns: 70px 1fr; align-items: center; min-height: 78px; border-bottom: 1px solid var(--line); }
.tech-list strong { color: #ff5680; font-size: 12px; letter-spacing: .2em; }
.tech-list span { font-family: Georgia, serif; font-size: 28px; }
.about { border-top: 1px solid var(--line); padding-bottom: 110px; }
.about h2 { max-width: 920px; }
.about > p:not(.eyebrow) { max-width: 720px; margin: 28px 0 34px; font-size: 18px; line-height: 1.75; color: var(--muted); }
footer { width: min(100%, var(--max)); margin: 0 auto; padding: 34px 54px 48px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #9f9995; font-size: 13px; }
footer > a:last-child { justify-self: end; }
footer p a { margin: 0 4px 0 10px; color: #c9c2bd; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
footer p a:hover { color: #fff; }

.demo-dialog { width: min(92vw, 560px); border: 1px solid rgba(255,255,255,.22); border-radius: 18px; background: #101118; color: var(--text); padding: 0; box-shadow: 0 30px 100px rgba(0,0,0,.65), 0 0 80px rgba(208,42,155,.13); }
.demo-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(8px); }
.demo-form { position: relative; padding: 40px; display: grid; gap: 18px; }
.demo-form h2 { font-size: 54px; margin: -5px 0 0; }
.demo-form > p:not(.eyebrow):not(.form-note) { color: var(--muted); margin: -8px 0 2px; }
.demo-form label { display: grid; gap: 7px; font-size: 13px; color: #d5ceca; }
.demo-form input, .demo-form textarea { width: 100%; color: #fff; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.17); border-radius: 8px; padding: 12px 14px; outline: none; }
.demo-form input:focus, .demo-form textarea:focus { border-color: #d944be; box-shadow: 0 0 0 3px rgba(217,68,190,.12); }
.dialog-close { position: absolute; right: 20px; top: 16px; width: 40px; height: 40px; border: 0; background: transparent; color: #fff; font-size: 32px; cursor: pointer; }
.form-note { margin: 0; color: #77727a; font-size: 11px; line-height: 1.5; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 28px; transform: translate(-50%, 160%); background: #fff; color: #0a0a0d; border-radius: 999px; padding: 13px 20px; font-size: 13px; box-shadow: 0 10px 35px rgba(0,0,0,.35); transition: transform .3s ease; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .site-header { height: 88px; padding: 0 28px; display: flex; justify-content: space-between; }
  .desktop-nav, .header-cta { display: none; }
  .menu-button { display: block; }
  .brand-logo { width: 190px; }

  .mobile-menu {
    position: fixed;
    z-index: 19;
    top: 76px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(12,12,17,.96);
    backdrop-filter: blur(18px);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
  }
  .mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-menu a { padding: 14px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }

  .hero {
    min-height: 860px;
    height: min(980px, 100svh);
    max-height: 980px;
    padding-top: 100px;
  }
  .hero-backdrop {
    background-image: url('assets/hero-mobile.png');
    background-position: center top;
    background-size: cover;
  }
  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(11,7,7,.86) 0 20%, rgba(11,7,7,.54) 34%, rgba(11,7,7,.10) 56%, rgba(8,8,12,.18) 78%, #090a0f 100%),
      linear-gradient(90deg, rgba(14,8,8,.22), rgba(14,8,8,.10));
  }
  .hero-content { padding: 28px 34px 20px; }
  .hero h1 { font-size: clamp(72px, 16vw, 116px); }
  .fun-underline { margin-left: 108px; width: 260px; }
  .hero-kicker { max-width: 440px; }
  .hero-actions .text-link { display: none; }

  .logo-row { grid-template-columns: repeat(5, minmax(120px,1fr)); overflow-x: auto; scrollbar-width: none; justify-content: start; }
  .trusted { padding-left: 0; padding-right: 0; }
  .partner { padding: 0 22px; }
  .section { padding-left: 32px; padding-right: 32px; }
  .worlds { grid-template-columns: 1fr; }
  .worlds-copy { grid-template-columns: 1fr; gap: 28px; }
  .controller-art { min-height: 230px; background-position: left center; }
  .card-grid { grid-template-columns: 1fr; }
  .technology { grid-template-columns: 1fr; gap: 42px; }
  footer { padding-left: 32px; padding-right: 32px; grid-template-columns: 1fr auto; gap: 20px; }
  footer p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 620px) {
  .site-header { padding: 0 22px; }
  .brand-logo { width: 165px; }
  .brand-logo-small { width: 128px; }
  /* hero ends ~72% down the screen; the room (cabinet, rug) anchors to its bottom.
     Deliberately no min()/svh and no percentage background-size — iOS Safari
     mis-handles both; plain vw + transform scale render everywhere. */
  .hero {
    min-height: 560px;
    height: 155vw;
    max-height: 760px;
    padding-top: 96px;
    overflow: hidden;
  }
  /* framing is baked into the asset — no transform, no percentage positions */
  .hero-backdrop {
    background-image: url('assets/hero-mobile-crop.jpg');
    background-size: cover;
    background-position: center bottom;
  }
  .hero-content { padding: 20px 28px 8px; }
  /* sized so "The future" (Georgia, -.045em tracking) always fits one line */
  .hero h1 { font-size: clamp(48px, 18vw, 84px); line-height: .9; }
  .fun-underline { width: 205px; height: 8px; margin: 6px 0 22px 92px; }
  .hero-kicker { gap: 16px; align-items: flex-start; }
  .cube-mark { width: 58px; flex-basis: 58px; }
  .hero-kicker p { font-size: 10px; letter-spacing: .16em; line-height: 1.9; max-width: 150px; }
  .hero-actions { width: 100%; margin-top: 24px; }
  .hero-actions .button {
    min-width: 0;
    min-height: 46px;
    padding: 0 20px;
    gap: 14px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
  }

  .trusted { min-height: 104px; }
  .trusted > p { margin-bottom: 12px; }
  .logo-row { grid-template-columns: repeat(5, 1fr); overflow: visible; }
  .partner { flex-direction: column; gap: 7px; font-size: 8px; letter-spacing: .16em; min-width: 0; padding: 0 2px; border-right: 1px solid rgba(255,255,255,.16); }
  .partner-icon { font-size: 20px; }
  .section { padding: 64px 28px; }
  .worlds h2, .section-heading h2, .technology h2, .about h2 { font-size: 50px; }
  /* controller art sits beside the heading; paragraph runs full width below */
  .worlds { grid-template-columns: 1.35fr 1fr; gap: 20px 12px; align-items: center; }
  .worlds-copy { display: contents; }
  .worlds h2 { grid-column: 1; }
  .controller-art { grid-column: 2; grid-row: 1; min-height: 120px; background-position: center; }
  .worlds p { grid-column: 1 / -1; }
  .feature-card h3 { margin-top: 58px; }
  .tech-list span { font-size: 23px; }
  .demo-form { padding: 32px 24px; }
  .demo-form h2 { font-size: 45px; }
  footer { padding: 30px 28px 42px; }
  .toast { width: calc(100% - 36px); text-align: center; border-radius: 12px; }
}
@media (max-width: 360px) {
  .cube-mark { width: 44px; flex-basis: 44px; }
  .hero-kicker p { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
