@import url("./brand.css");
:root {
  --max: 2520px;
  --gutter: clamp(24px, 5.5vw, 160px);
  --header-h: clamp(84px, 5.5vw, 116px);
  --campaign-height: clamp(720px, 100svh, 1620px);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background: #080e17;
}
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: #080e17;
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}
.hidden,
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.container {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
#launch-updates {
  scroll-margin-top: 70px;
}
body > header {
  position: relative;
  z-index: 10;
  height: var(--header-h);
}
body > header .inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid #e4ebf133;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  background: none;
}
.brand-mark {
  width: 52px;
  height: 32px;
  fill: #e5e9ef;
}
.brand strong {
  font-size: clamp(1.35rem, 1.9vw, 2rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.18em;
  line-height: 1;
}
.nav-minimal {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.5vw, 52px);
}
.nav-minimal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #e4e8ee;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}
.nav-minimal a:hover {
  color: var(--yellow);
}
.engineered-flow {
  width: 100%;
  margin: 0;
}
.campaign-stage {
  position: relative;
  isolation: isolate;
  min-height: calc(var(--campaign-height) - var(--header-h));
  display: flex;
  flex-direction: column;
}
.campaign-stage::before {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--header-h)) 0 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #050b1533, transparent 60%),
    linear-gradient(0deg, #080e17 0%, transparent 17%);
}
.section-hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(42px, 6vh, 120px);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 34px 50px;
  align-content: center;
}
.hero-message {
  grid-area: 1/1;
  min-width: 0;
}
.hero-eyebrow {
  margin: 0 0 28px;
  color: #e1e6ed;
  font-size: clamp(0.8125rem, 1.15vw, 1.2rem);
  font-style: italic;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.title {
  margin: 0;
  font-size: clamp(4rem, 6.2vw, 10.4rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.03;
  letter-spacing: -0.025em;
}
.hero-title-line {
  display: block;
  padding-inline-end: 0.06em;
}
.hero-title-line--shift {
  color: #ffea83;
}
.title:lang(fr),
.title:lang(de) {
  font-size: clamp(2.5rem, 4.15vw, 7rem);
}
.title:lang(es),
.title:lang(it),
.title:lang(pt-br) {
  font-size: clamp(3rem, 5vw, 8.5rem);
}
.title:lang(ja),
.title:lang(ko),
.title:lang(zh-cn) {
  font-size: clamp(3rem, 5.1vw, 8.5rem);
  font-style: normal;
  line-height: 1.18;
  letter-spacing: 0;
}
.hero-deck {
  margin: 28px 0 0;
  color: #b9c1cc;
  max-width: 48ch;
  font-size: clamp(1.0625rem, 1.35vw, 1.6rem);
  line-height: 1.65;
  white-space: pre-line;
  text-wrap: pretty;
}
.hero-action {
  grid-area: 2/1;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-media {
  position: absolute;
  top: calc(-1 * var(--header-h));
  left: 50%;
  z-index: -2;
  width: min(100vw, 2880px);
  height: calc(100% + var(--header-h));
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-product-render {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  color: transparent;
  font-size: 0;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  gap: 20px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.campaign-cta {
  min-width: clamp(290px, 26vw, 430px);
  min-height: 72px;
  font-size: clamp(1.125rem, 1.5vw, 1.4rem);
  justify-content: space-between;
}
.btn svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cta-arrow {
  margin-inline-start: auto;
}
.launch-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding-inline-start: 28px;
  border-inline-start: 1px solid #dde7f13d;
  color: #d8dee7;
  font-size: 0.875rem;
}
.launch-status svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.game-story {
  padding-block: 26px 36px;
  border-top: 1px solid #e2eaf04d;
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.story-chapter {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-inline: 32px;
  border-inline-start: 1px solid #e2eaf04d;
}
.story-chapter:first-child {
  padding-inline-start: 10px;
  border-inline-start: 0;
}
.story-chapter:last-child {
  padding-inline-end: 0;
}
.story-chapter > svg {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  fill: none;
  stroke: #edf1f8;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.story-chapter h3 {
  margin: 0;
  font-size: clamp(1.25rem, 1.65vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.story-chapter p {
  margin: 7px 0 0;
  color: #c2cad5;
  font-size: clamp(0.875rem, 1vw, 1.1rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.launch-signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 140px);
  padding-block: 80px;
  border-top: 1px solid #dce7f11f;
}
.signup-eyebrow {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.signup-copy h2 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 3.2rem);
  line-height: 1.13;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.signup-copy > p:last-child {
  margin: 18px 0 0;
  max-width: 42ch;
  color: #b9c1cc;
  font-size: 1rem;
  line-height: 1.65;
}
/* Native, stable capture controls with visible consent and feedback. */
.final-capture__form {
  width: 100%;
  margin: 0;
  text-align: left;
}
.final-capture__field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.final-capture__input {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 13px 16px;
  border: 1px solid #8b98a8;
  border-radius: 7px;
  background: #20262e;
  color: var(--text);
  font-size: 1rem;
}
.final-capture__input::placeholder {
  color: #b0b6be;
}
.final-capture__input:focus {
  border-color: #e7f0ff;
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px #87a7ff14;
}
.final-capture__input.is-invalid {
  border-color: #ff9ca9;
}
.btn--final {
  min-width: 135px;
}
.final-capture__consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 6px 10px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.final-capture__consent-checkbox {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}
.final-capture__legal-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.final-capture__consent-link {
  color: #c5d6ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.final-capture__status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.final-capture__status.is-error {
  color: #ff9ca9;
}
.final-capture__status.is-success {
  color: #79dc9c;
}
.final-capture__success {
  margin-top: 18px;
}
.final-capture__success-title {
  margin: 0;
  font-size: 1.1rem;
}

.site-footer {
  padding: 14px 0 20px;
  border-top: 1px solid var(--line-soft);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-copyright {
  color: var(--muted);
  font-size: 0.8125rem;
}
.footer-copyright a:hover {
  color: var(--text);
}
.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
}
.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Studio motion is decorative; content and the form do not depend on it. */
.hero-media {
  overflow: hidden;
}
.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
}
.studio-effects,
.studio-entrance {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.studio-effects {
  opacity: 0;
}
.motion-ready .studio-effects {
  opacity: 1;
}
.studio-light {
  --texture-step: clamp(680px, 70vw, 1800px);
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.58;
  mix-blend-mode: screen;
  mask-image: url("../img/cubrix-studio-mask-desktop.svg");
  mask-size: cover;
  mask-position: center;
  mask-repeat: no-repeat;
}
.studio-texture {
  position: absolute;
  inset: 0 calc(-1 * var(--texture-step)) 0 0;
  background: url("../img/studio-light-texture.svg") 0 0 / var(--texture-step) 100% repeat-x;
  animation: studio-texture-scroll 20s linear infinite;
  animation-play-state: paused !important;
}
.motion-live .studio-texture {
  animation-play-state: running !important;
  will-change: transform;
}
.studio-entrance {
  opacity: 0;
  mix-blend-mode: screen;
  background: linear-gradient(
    112deg,
    transparent 38%,
    #d8efff2e 49%,
    #73baff14 53%,
    transparent 63%
  );
  mask-image: radial-gradient(ellipse at 68% 36%, #000 5%, transparent 75%);
}
.motion-intro .hero-product-render {
  animation: scene-arrive 1.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.motion-intro .studio-entrance {
  animation: studio-switch-on 1.35s ease-out both;
}
.motion-intro .hero-eyebrow {
  animation: copy-arrive 0.7s 0.1s both;
}
.motion-intro .hero-title-line {
  animation: headline-arrive 0.85s 0.16s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.motion-intro .hero-title-line--shift {
  animation-delay: 0.28s;
}
.motion-intro .hero-deck {
  animation: copy-arrive 0.7s 0.42s both;
}
.motion-intro .hero-action {
  animation: copy-arrive 0.65s 0.65s both;
}
.motion-intro .story-chapter {
  animation: copy-arrive 0.55s 0.75s both;
}
.motion-intro .story-chapter:nth-child(2) {
  animation-delay: 0.82s;
}
.motion-intro .story-chapter:nth-child(3) {
  animation-delay: 0.89s;
}
@keyframes scene-arrive {
  from {
    opacity: 0.15;
    transform: scale(1.045) translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes studio-switch-on {
  0% {
    opacity: 0;
    transform: translateX(-24%);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(20%);
  }
}
@keyframes headline-arrive {
  from {
    opacity: 0;
    transform: translate3d(-28px, 10px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes copy-arrive {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes studio-texture-scroll {
  to {
    transform: translate3d(calc(-1 * var(--texture-step)), 0, 0);
  }
}
@media (max-width: 1099px) {
  .studio-light {
    --texture-step: 760px;
    mask-image: url("../img/cubrix-studio-mask-mobile.svg");
  }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .studio-light {
    mask-size: contain;
  }
}
@media (max-width: 699px) {
  .studio-light {
    mask-position: center 52%;
  }
}
@media (max-width: 699px) {
  .hero-meta {
    justify-content: center;
  }
  .footer-inner {
    gap: 12px;
  }
}
@media (min-width: 2000px) {
  html {
    font-size: 20px;
  }
  .title {
    font-size: 166px;
  }
  .title:lang(fr),
  .title:lang(de) {
    font-size: 112px;
  }
  .title:lang(es),
  .title:lang(it),
  .title:lang(pt-br),
  .title:lang(ja),
  .title:lang(ko),
  .title:lang(zh-cn) {
    font-size: 136px;
  }
  .campaign-cta {
    min-height: 82px;
  }
}
@media (min-width: 2881px) {
  .hero-media {
    mask-image: linear-gradient(
      90deg,
      transparent,
      #000 5%,
      #000 95%,
      transparent
    );
  }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .hero-meta {
    margin-top: 20px;
  }
  .hero-meta .launch-status {
    margin-top: 0;
  }
  :root {
    --gutter: 32px;
  }
  .campaign-stage {
    min-height: 0;
  }
  .campaign-stage::before {
    display: none;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 28px 24px;
  }
  .hero-media {
    position: relative;
    grid-area: 1/2/3/3;
    inset: auto;
    width: 100%;
    height: 500px;
    transform: none;
    z-index: 0;
    align-self: center;
    mask-image: linear-gradient(
      0deg,
      transparent,
      #000 12%,
      #000 90%,
      transparent
    );
  }
  .hero-product-render {
    object-fit: contain;
  }
  .title {
    font-size: clamp(3rem, 6.6vw, 4.8rem);
  }
  .title:lang(fr),
  .title:lang(de) {
    font-size: clamp(2rem, 4.3vw, 3.1rem);
  }
  .title:lang(es),
  .title:lang(it),
  .title:lang(pt-br),
  .title:lang(ja),
  .title:lang(ko),
  .title:lang(zh-cn) {
    font-size: clamp(2rem, 4.8vw, 3.6rem);
  }
  .hero-deck {
    font-size: 1rem;
    white-space: normal;
  }
  .hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.13em;
  }
  .hero-action {
    display: block;
  }
  .campaign-cta {
    min-width: 0;
    width: 100%;
    min-height: 64px;
    font-size: 1rem;
    gap: 12px;
    padding-inline: 16px;
  }
  .launch-status {
    padding: 0;
    margin-top: 20px;
    border: 0;
    font-size: 0.8125rem;
  }
  .story-chapter {
    padding-inline: 20px;
    gap: 14px;
    align-items: flex-start;
  }
  .story-chapter > svg {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }
  .nav-minimal {
    gap: 18px;
  }
  .nav-minimal a {
    font-size: 0.75rem;
  }
  .nav-home {
    display: none !important;
  }
  .brand-mark {
    width: 38px;
  }
  .brand strong {
    font-size: 1.25rem;
  }
}
@media (max-width: 699px) {
  body > header .inner {
    gap: 14px;
  }
  .brand {
    flex-shrink: 0;
  }
  .nav-minimal {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0;
    min-width: 0;
  }
  .nav-minimal a {
    min-height: 32px;
  }
  #cta-header {
    max-width: 132px;
    line-height: 1.3;
    text-align: end;
  }
  :root {
    --gutter: 22px;
    --header-h: 78px;
  }
  .brand {
    gap: 10px;
  }
  .brand-mark {
    width: 32px;
    height: 24px;
  }
  .brand strong {
    font-size: 1.2rem;
    letter-spacing: 0.13em;
  }
  .nav-minimal {
    gap: 18px;
  }
  .nav-minimal a {
    font-size: 0.6875rem;
    letter-spacing: 0;
  }
  .nav-home,
  .nav-contact {
    display: none !important;
  }
  .campaign-stage {
    min-height: 0;
  }
  .campaign-stage::before {
    display: none;
  }
  .section-hero {
    display: block;
    padding: 34px 0 28px;
  }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .hero-message {
    grid-area: 1/1;
  }
  .hero-eyebrow {
    margin-bottom: 18px;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
  }
  .title {
    font-size: clamp(2.5rem, 11.5vw, 4.8rem);
  }
  .title:lang(fr),
  .title:lang(de) {
    font-size: clamp(1.7rem, 7.8vw, 3.4rem);
  }
  .title:lang(es),
  .title:lang(it),
  .title:lang(pt-br),
  .title:lang(ja),
  .title:lang(ko),
  .title:lang(zh-cn) {
    font-size: clamp(1.8rem, 9vw, 3.9rem);
  }
  .hero-deck {
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.65;
    white-space: normal;
  }
  .hero-media {
    position: relative;
    grid-area: 2/1;
    inset: auto;
    width: 100%;
    height: clamp(280px, 90vw, 430px);
    margin-block: 8px 4px;
    transform: none;
    z-index: 0;
    mask-image: linear-gradient(
      180deg,
      transparent,
      #000 9%,
      #000 91%,
      transparent
    );
  }
  .hero-product-render {
    object-fit: cover;
    object-position: center 52%;
  }
  .hero-action {
    grid-area: 3/1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .campaign-cta {
    width: 100%;
    min-width: 0;
    min-height: 64px;
    padding-inline: 20px;
    font-size: 1.0625rem;
  }
  .launch-status {
    justify-content: center;
    padding: 0;
    border: 0;
    font-size: 0.8125rem;
  }
  .launch-status svg {
    width: 22px;
    height: 22px;
  }
  .game-story {
    padding-block: 0 16px;
  }
  .story-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .story-chapter,
  .story-chapter:first-child,
  .story-chapter:last-child {
    padding: 22px 0;
    border-inline-start: 0;
    gap: 20px;
  }
  .story-chapter + .story-chapter {
    border-top: 1px solid #e2eaf021;
  }
  .story-chapter > svg {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }
  .story-chapter h3 {
    font-size: 1.375rem;
  }
  .story-chapter p {
    font-size: 0.9375rem;
  }
  .launch-signup {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-block: 42px 46px;
  }
  .signup-copy h2 {
    font-size: 2rem;
  }
  .final-capture__field-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .site-footer {
    padding-block: 24px 30px;
  }
}
@media (max-width: 360px) {
  #cta-header {
    max-width: 120px;
  }
  :root {
    --gutter: 20px;
  }
  .brand-mark {
    display: none;
  }
  .brand strong {
    font-size: 1.1rem;
  }
  .nav-minimal {
    gap: 14px;
  }
  .campaign-cta {
    font-size: 0.9375rem;
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
