:root {
  color-scheme: dark;
  --bg: #05070b;
  --bg-2: #0a0f17;
  --panel: rgba(10, 15, 23, 0.9);
  --panel-strong: #0e151f;
  --line: rgba(227, 238, 248, 0.16);
  --text: #f4f8fb;
  --muted: #95a5b4;
  --soft: #d8e4ec;
  --cyan: #12d9ff;
  --cyan-dark: #087080;
  --coral: #ff2748;
  --gold: #ffb21f;
  --violet: #7c3dff;
  --green: #36f28a;
  --ink: #071014;
  --danger: #ff6b6b;
  --radius: 6px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* Unreal-inspired homepage refresh: clean, media-led, and restrained. */
body.home-surface {
  background: #050505;
  color: #f5f5f5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.home-surface::before,
body.home-surface::after,
body.home-surface .neural-canvas {
  display: none;
}

body.home-surface .topbar {
  position: sticky;
  top: 0;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  padding: 16px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.97);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

body.home-surface .brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  clip-path: none;
  background: #111;
  box-shadow: none;
  color: #fff;
  font-size: 0.72rem;
}

body.home-surface .brand strong {
  font-size: 0.9rem;
  letter-spacing: 0;
}

body.home-surface .brand small {
  color: rgba(255, 255, 255, 0.58);
}

body.home-surface .topnav {
  gap: 22px;
}

body.home-surface .ghost-button,
body.home-surface .primary-button,
body.home-surface .secondary-button {
  min-height: 38px;
  border-radius: 6px;
  letter-spacing: 0;
  font-size: 0.78rem;
}

body.home-surface .topnav .ghost-button {
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
}

body.home-surface .account-actions .ghost-button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
}

body.home-surface .account-actions .primary-button {
  border-color: #fff;
  background: #fff;
  color: #050505;
  clip-path: none;
}

.ue-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 70px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #050505;
}

.ue-hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.ue-hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.54) 36%, rgba(0, 0, 0, 0.16) 67%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 38%, rgba(0, 0, 0, 0.84) 100%);
}

.ue-hero-inner {
  position: relative;
  z-index: 2;
  width: min(860px, 100%);
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 74px) clamp(220px, 24vw, 310px);
}

.ue-kicker,
.ue-section-head span,
.ue-launch-copy span,
.ue-updates span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ue-hero h1 {
  max-width: 880px;
  margin: 18px 0 20px;
  font-size: clamp(3.35rem, 7.6vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: 0 26px 80px rgba(0, 0, 0, 0.6);
}

.ue-hero p {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.7vw, 1.38rem);
  line-height: 1.55;
}

.ue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.ue-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  font-weight: 800;
  text-transform: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.ue-button-primary {
  border-color: #fff;
  background: #fff;
  color: #050505;
}

.ue-button-primary:hover {
  background: #e8e8e8;
}

.ue-button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ue-button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.14);
}

.ue-engine-panel {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: clamp(22px, 5vw, 64px);
  z-index: 3;
  width: min(420px, calc(100vw - 36px));
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(7, 7, 7, 0.72);
  backdrop-filter: blur(18px);
}

.ue-engine-panel div:first-child {
  display: grid;
  gap: 5px;
}

.ue-engine-panel span,
.ue-engine-panel strong {
  display: block;
}

.ue-engine-panel span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ue-engine-panel strong {
  font-size: 1.4rem;
}

.ue-engine-panel p {
  margin: 12px 0 16px;
  color: rgba(255, 255, 255, 0.76);
}

.ue-mode-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.ue-mode-row button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
}

.ue-mode-row button.active,
.ue-mode-row button:hover {
  border-color: #fff;
  background: #fff;
  color: #050505;
}

.ue-updates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0b0b;
}

.ue-updates article {
  min-height: 260px;
  padding: clamp(24px, 4vw, 46px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.ue-updates h2 {
  margin: 16px 0 12px;
  font-size: clamp(1.45rem, 2.6vw, 2.4rem);
  line-height: 1.04;
}

.ue-updates p,
.ue-section-head p,
.ue-media-card p,
.ue-workflow-grid p,
.ue-launch-copy p {
  color: rgba(255, 255, 255, 0.66);
}

.ue-feature-lead,
.ue-workflow,
.ue-launch {
  padding: clamp(64px, 9vw, 132px) clamp(20px, 5vw, 74px);
  background: #050505;
}

.ue-section-head {
  width: min(1120px, 100%);
  margin: 0 auto clamp(36px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: clamp(22px, 5vw, 76px);
  align-items: end;
}

.ue-section-head h2,
.ue-launch-copy h2 {
  margin: 12px 0 0;
  font-size: clamp(2.4rem, 5.5vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.ue-section-head p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
}

.ue-feature-grid {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.78fr);
  gap: 26px;
}

.ue-media-card {
  display: grid;
  gap: 16px;
}

.ue-media-card-large {
  grid-row: span 2;
}

.ue-media-frame {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 8px;
  background: #101010;
}

.ue-media-card-large .ue-media-frame {
  min-height: 640px;
}

.proof-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ue-media-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2.35rem);
  line-height: 1.04;
}

.ue-media-card p {
  margin: 0;
  line-height: 1.55;
}

.ue-workflow {
  background: #111;
}

.ue-workflow-grid {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.ue-workflow-grid article {
  min-height: 280px;
  padding: clamp(22px, 3vw, 36px);
  background: #111;
}

.ue-workflow-grid b {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.86rem;
}

.ue-workflow-grid h3 {
  margin: 42px 0 12px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.ue-launch {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 0.88fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 48%),
    #050505;
}

.ue-launch-copy {
  max-width: 720px;
}

.ue-launch-form {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #111;
}

body.home-surface .field span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

body.home-surface input,
body.home-surface textarea {
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: #050505;
  color: #fff;
}

body.home-surface input:focus,
body.home-surface textarea:focus {
  border-color: rgba(255, 255, 255, 0.52);
  box-shadow: none;
}

body.home-surface .site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #050505;
}

@media (max-width: 980px) {
  body.home-surface .topbar,
  .ue-section-head,
  .ue-feature-grid,
  .ue-launch {
    grid-template-columns: 1fr;
  }

  body.home-surface .topnav {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .ue-engine-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 0 20px 28px;
    width: auto;
  }

  .ue-updates,
  .ue-workflow-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ue-media-card-large {
    grid-row: auto;
  }

  .ue-media-card-large .ue-media-frame {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  body.home-surface .topbar {
    padding: 14px 16px;
  }

  body.home-surface .account-actions .primary-button {
    padding: 0 12px;
  }

  .ue-hero {
    min-height: auto;
  }

  .ue-hero-inner {
    padding: 74px 20px 34px;
  }

  .ue-hero h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .ue-actions,
  .ue-actions .ue-button,
  .ue-launch .form-actions,
  .ue-launch .form-actions .ue-button {
    width: 100%;
  }

  .ue-mode-row,
  .ue-updates,
  .ue-workflow-grid {
    grid-template-columns: 1fr;
  }

  .ue-feature-lead,
  .ue-workflow,
  .ue-launch {
    padding: 58px 20px;
  }

  .ue-media-frame,
  .ue-media-card-large .ue-media-frame {
    min-height: 300px;
  }
}

/* Comic30 full-screen parallax rebuild */
body.home-surface {
  background: #06101a;
  color: #f8fbff;
  overflow-x: hidden;
}

body.home-surface .topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  min-height: 66px;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  padding: 12px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 13, 22, 0.92);
  backdrop-filter: none;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
}

body.home-surface .brand-mark {
  width: 54px;
  height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

body.home-surface .brand strong {
  color: #ffffff;
  font-size: 0.95rem;
}

body.home-surface .brand small {
  color: rgba(255, 255, 255, 0.62);
}

body.home-surface .topnav {
  gap: clamp(12px, 2.5vw, 28px);
}

body.home-surface .topnav .ghost-button,
body.home-surface .account-actions .ghost-button {
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

body.home-surface .account-actions .primary-button {
  min-height: 38px;
  border: 0;
  border-radius: 2px;
  background: #ff8a2a;
  color: #130906;
  box-shadow: 0 4px 0 #8a330e;
}

body.home-surface .site-footer {
  position: relative;
  z-index: 4;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #081a27;
}

body.home-surface main {
  background: #06101a;
}

body.home-surface .topbar,
body.home-surface .live-console,
body.home-surface .portal-start-form,
body.home-surface .auth-panel {
  backdrop-filter: none;
}

body.auth-surface .neural-canvas {
  display: none;
}

.parallax-hero,
.parallax-scene {
  --scene-shift: 0;
  --scene-y: 0px;
  --scene-y-soft: 0px;
  --scene-y-deep: 0px;
  --scene-focus: 1;
  --scene-opacity: 1;
  --scene-scale: 1;
  --scene-video-scale: 1.07;
  --scene-content-opacity: 1;
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  color: #ffffff;
  opacity: var(--scene-opacity);
  transform: scale(var(--scene-scale));
  transform-origin: center center;
  will-change: transform, opacity;
  contain: paint;
}

.parallax-hero {
  min-height: 100svh;
  place-items: center;
  padding: 96px clamp(18px, 4vw, 68px) 58px;
  text-align: center;
}

.scene-video {
  position: absolute;
  inset: -6vh -6vw;
  z-index: 0;
  width: 112vw;
  height: 112vh;
  object-fit: cover;
  transform: translate3d(0, var(--scene-y-soft), 0) scale(var(--scene-video-scale));
  opacity: calc(0.72 + (var(--scene-focus) * 0.2));
  filter: saturate(1.05) contrast(1.06);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.scene-video-secondary {
  position: absolute;
  inset: auto -4vw -18vh auto;
  z-index: 1;
  width: min(72vw, 1180px);
  height: 72vh;
  object-fit: cover;
  transform: translate3d(0, var(--scene-y-deep), 0) scale(1.04);
  opacity: calc(0.18 + (var(--scene-focus) * 0.18));
  filter: saturate(1.08) contrast(1.04);
  mix-blend-mode: screen;
  pointer-events: none;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.scene-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 12, 19, 0.08) 0%, rgba(4, 12, 19, 0.36) 55%, rgba(4, 12, 19, 0.92) 100%),
    linear-gradient(90deg, rgba(3, 8, 13, 0.68) 0%, rgba(3, 8, 13, 0.08) 48%, rgba(3, 8, 13, 0.68) 100%);
}

.scene-shade-warm {
  background:
    linear-gradient(180deg, rgba(9, 6, 4, 0.12), rgba(12, 7, 5, 0.94)),
    radial-gradient(circle at 72% 36%, rgba(255, 118, 38, 0.34), transparent 36%),
    linear-gradient(90deg, rgba(4, 9, 14, 0.7), rgba(4, 9, 14, 0.12) 50%, rgba(4, 9, 14, 0.7));
}

.scene-shade-deep {
  background:
    linear-gradient(180deg, rgba(3, 6, 10, 0.2), rgba(3, 6, 10, 0.96)),
    radial-gradient(circle at 28% 42%, rgba(30, 195, 255, 0.26), transparent 38%),
    radial-gradient(circle at 78% 40%, rgba(255, 138, 42, 0.22), transparent 34%);
}

.scene-shade-start {
  background:
    linear-gradient(180deg, rgba(4, 10, 16, 0.48), rgba(4, 10, 16, 0.98)),
    radial-gradient(circle at 50% 36%, rgba(255, 138, 42, 0.24), transparent 36%);
}

.depth-layer,
.scene-art {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
}

.depth-stars {
  inset: 9% 4% auto 5%;
  height: 36%;
  transform: translate3d(0, var(--scene-y-deep), 0);
  opacity: 0.54;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 138, 42, 0.9) 0 1px, transparent 2px);
  background-size: 160px 120px, 230px 170px;
  animation: starSweep 16s linear infinite;
}

.depth-rings {
  width: min(64vw, 760px);
  aspect-ratio: 1;
  left: 50%;
  top: 12%;
  transform: translate3d(-50%, var(--scene-y), 0);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-left-color: transparent;
  border-bottom-color: rgba(255, 138, 42, 0.74);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(255, 138, 42, 0.16);
  animation: slowSpin 26s linear infinite;
}

.depth-rings::before,
.depth-rings::after {
  content: "";
  position: absolute;
  border-radius: inherit;
}

.depth-rings::before {
  inset: 9%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-right-color: transparent;
}

.depth-rings::after {
  inset: 20%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.depth-floor {
  inset: auto -10% -8% -10%;
  height: 31%;
  transform: translate3d(0, var(--scene-y-soft), 0);
  background:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 86px 48px;
  transform-origin: 50% 100%;
  rotate: x 58deg;
  opacity: 0.55;
}

.cycle-hero-mark {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  width: min(58vw, 690px);
  min-height: clamp(185px, 31vw, 340px);
  transform: translate3d(0, var(--scene-y), 0) translateY(-58px);
}

.cycle-hero-mark span {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: clamp(3.4rem, 9.2vw, 8.4rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 8px 0 rgba(0, 0, 0, 0.2), 0 32px 80px rgba(0, 0, 0, 0.66);
}

.cycle-hero-mark i {
  position: absolute;
  width: min(42vw, 470px);
  aspect-ratio: 1;
  border: 10px solid rgba(255, 255, 255, 0.86);
  border-left-color: transparent;
  border-bottom-color: rgba(255, 138, 42, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(255, 255, 255, 0.18);
}

.cycle-hero-copy {
  position: absolute;
  left: 50%;
  bottom: clamp(34px, 5vw, 62px);
  z-index: 5;
  width: min(640px, calc(100% - 32px));
  transform: translateX(-50%);
}

.cycle-hero-copy > span,
.chapter-copy > span,
.start-copy > span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cycle-hero-copy h1 {
  margin: 10px 0 10px;
  font-size: clamp(1.4rem, 2.6vw, 2.55rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.6);
}

.cycle-hero-copy p {
  width: min(590px, 100%);
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.55;
}

.cycle-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.cycle-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 2px;
  padding: 0 22px;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.cycle-button-primary {
  background: #ff8a2a;
  color: #150805;
  box-shadow: 0 5px 0 #7f2d0b, 0 20px 46px rgba(255, 99, 22, 0.28);
}

.cycle-button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(3, 10, 16, 0.52);
  color: #ffffff;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: -38px;
  width: 42px;
  height: 42px;
  border: 0;
  border-right: 2px solid rgba(255, 255, 255, 0.75);
  border-bottom: 2px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  transform: translateX(-50%) rotate(45deg);
  animation: cueDrop 1.6s ease-in-out infinite;
}

.live-console {
  position: absolute;
  z-index: 6;
  width: min(392px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(2, 8, 13, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  text-align: left;
  transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.live-console.is-changing {
  opacity: 0.68;
  transform: translate3d(0, 8px, 0) scale(0.985);
  border-color: rgba(255, 138, 42, 0.72);
}

.hero-console {
  right: clamp(18px, 4vw, 66px);
  top: clamp(86px, 10vw, 118px);
  width: min(340px, calc(100vw - 36px));
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.console-top strong {
  color: #25f5b3;
}

.live-console b {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: clamp(1.05rem, 2vw, 1.38rem);
}

.live-console p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.console-feed {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.console-feed span,
.choice-stack span,
.economy-ledger span,
.build-lane span {
  min-height: 34px;
  display: flex;
  align-items: center;
  border-left: 3px solid #ff8a2a;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 800;
  animation: feedLineIn 420ms ease both;
}

.console-feed span:nth-child(2) {
  animation-delay: 80ms;
}

.console-feed span:nth-child(3) {
  animation-delay: 160ms;
}

.console-modes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-top: 16px;
}

.console-modes button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.68rem;
  font-weight: 900;
}

.console-modes button.active {
  border-color: #ff8a2a;
  background: #ff8a2a;
  color: #150805;
}

.chapter-copy {
  position: relative;
  z-index: 5;
  width: min(540px, calc(100% - 36px));
  transform: translate3d(0, var(--scene-y), 0);
  text-shadow: 0 26px 80px rgba(0, 0, 0, 0.7);
  opacity: var(--scene-content-opacity);
  will-change: transform, opacity;
}

.chapter-copy-right {
  justify-self: end;
  margin-right: clamp(22px, 8vw, 126px);
}

.chapter-copy-left {
  justify-self: start;
  margin-left: clamp(22px, 8vw, 126px);
}

.chapter-copy h2,
.start-copy h2 {
  margin: 10px 0 14px;
  color: #ffffff;
  font-size: clamp(2.25rem, 4.1vw, 4.85rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.chapter-copy p,
.start-copy p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  line-height: 1.55;
}

.scene-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(160px, 0.26fr) 1fr;
  gap: clamp(16px, 3vw, 34px);
  padding: 18px clamp(18px, 4vw, 72px);
  background: rgba(3, 11, 18, 0.78);
  color: rgba(255, 255, 255, 0.86);
  opacity: var(--scene-content-opacity);
  will-change: opacity;
}

.scene-caption strong {
  color: #ff8a2a;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scene-caption span {
  line-height: 1.55;
}

.motion-overlay,
.rig-overlay {
  position: absolute;
  z-index: 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(3, 10, 16, 0.68);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.58);
  transform: translate3d(0, var(--scene-y-soft), 0);
  will-change: transform, opacity;
}

.motion-overlay::before,
.rig-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(255, 138, 42, 0.42);
  opacity: 0.72;
}

.motion-overlay::after,
.rig-overlay::after {
  content: "";
  position: absolute;
  inset: -45% -70%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 36%, rgba(255, 255, 255, 0.22) 48%, transparent 60%);
  animation: overlaySweep 5.5s ease-in-out infinite;
}

.motion-overlay video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.03);
}

.motion-overlay > span {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 4;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  background: rgba(3, 10, 16, 0.78);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.world-video-panel,
.economy-video-panel {
  left: clamp(20px, 5vw, 86px);
  top: clamp(96px, 16vh, 150px);
  width: min(42vw, 680px);
  aspect-ratio: 16 / 9;
}

.world-video-panel {
  z-index: 4;
  left: clamp(18px, 5vw, 80px);
  top: clamp(92px, 13vh, 132px);
  width: min(39vw, 640px);
}

.world-secondary-panel {
  z-index: 5;
  left: clamp(168px, 20vw, 370px);
  top: clamp(292px, 43vh, 430px);
  width: min(34vw, 560px);
  aspect-ratio: 16 / 9;
  opacity: calc(0.62 + (var(--scene-focus) * 0.18));
}

.world-rig-panel {
  left: clamp(88px, 12vw, 220px);
  top: clamp(318px, 49vh, 430px);
  width: min(28vw, 420px);
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 54% 32%, rgba(255, 138, 42, 0.24), transparent 34%),
    radial-gradient(circle at 44% 62%, rgba(37, 245, 179, 0.18), transparent 30%),
    rgba(3, 10, 16, 0.9);
  transform: translate3d(0, var(--scene-y), 0);
}

.soldier-viewer {
  transform: scale(1.08);
}

.role-video-panel,
.export-video-panel {
  right: clamp(20px, 5vw, 86px);
  top: clamp(94px, 14vh, 144px);
  width: min(40vw, 650px);
  aspect-ratio: 16 / 9;
}

.role-video-panel video {
  opacity: 0.88;
  filter: contrast(1.22) saturate(1.18) brightness(0.84);
}

.economy-video-panel video,
.export-video-panel video {
  opacity: 0.9;
  filter: contrast(1.2) saturate(1.18) brightness(0.88);
}

.economy-video-panel {
  background:
    radial-gradient(circle at 28% 46%, rgba(37, 245, 179, 0.2), transparent 34%),
    rgba(3, 10, 16, 0.74);
}

.shuttle-scene-overlay {
  position: absolute;
  left: clamp(20px, 5vw, 86px);
  top: clamp(90px, 14vh, 138px);
  z-index: 5;
  width: min(48vw, 760px);
  min-height: min(44vw, 560px);
  pointer-events: none;
  transform: translate3d(0, var(--scene-y-soft), 0);
  perspective: 1100px;
}

.shuttle-scene-overlay > span {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 8;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(3, 10, 16, 0.82);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shuttle-stage {
  position: absolute;
  inset: 18px 0 0;
  transform-style: preserve-3d;
  animation: shuttleFloat 6.5s ease-in-out infinite;
}

.shuttle-model {
  position: absolute;
  left: 12%;
  top: 20%;
  width: min(590px, 82%);
  height: 230px;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-18deg) rotateY(12deg);
  filter: drop-shadow(0 38px 40px rgba(0, 0, 0, 0.52));
}

.shuttle-model i {
  position: absolute;
  display: block;
  transform-style: preserve-3d;
}

.shuttle-body {
  left: 18%;
  top: 36%;
  width: 58%;
  height: 34%;
  border-radius: 55% 45% 48% 52%;
  background:
    linear-gradient(90deg, #d9e8ef 0 18%, #6f8795 42%, #f3f7fb 58%, #2b3b48 100%);
  box-shadow:
    inset 0 18px 34px rgba(255, 255, 255, 0.28),
    inset 0 -18px 30px rgba(0, 0, 0, 0.34),
    0 0 38px rgba(55, 196, 255, 0.18);
}

.shuttle-nose {
  right: 7%;
  top: 40%;
  width: 20%;
  height: 26%;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: linear-gradient(90deg, #8ea8b8, #f7fbff);
}

.shuttle-cabin {
  left: 49%;
  top: 25%;
  width: 18%;
  height: 22%;
  border-radius: 50% 50% 30% 30%;
  background: linear-gradient(135deg, rgba(37, 245, 179, 0.72), rgba(55, 196, 255, 0.22));
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.35), 0 0 28px rgba(37, 245, 179, 0.36);
}

.shuttle-wing {
  top: 55%;
  width: 34%;
  height: 26%;
  clip-path: polygon(0 8%, 100% 0, 62% 100%, 10% 82%);
  background: linear-gradient(135deg, #ff8a2a, #9d3324 58%, #2a1512);
}

.shuttle-wing.left {
  left: 19%;
  transform: translate3d(-10px, 0, -20px) rotateZ(12deg);
}

.shuttle-wing.right {
  right: 18%;
  transform: translate3d(10px, -4px, -20px) scaleX(-1) rotateZ(12deg);
}

.shuttle-engine {
  left: 10%;
  top: 41%;
  width: 14%;
  height: 18%;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, #161d25, #8299a8);
  box-shadow: -18px 0 36px rgba(55, 196, 255, 0.38);
}

.shuttle-engine.right {
  left: 18%;
  top: 60%;
}

.shuttle-thruster {
  left: 3%;
  top: 44%;
  width: 18%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(circle at 24% 50%, rgba(37, 245, 179, 0.9), rgba(55, 196, 255, 0.5) 32%, transparent 67%);
  animation: thrusterPulse 1.6s ease-in-out infinite;
}

.shuttle-shadow {
  position: absolute;
  left: 19%;
  top: 70%;
  width: 50%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.62), transparent 70%);
  transform: rotateX(72deg);
  filter: blur(8px);
}

.shuttle-path {
  position: absolute;
  inset: 11% 2% 8% 4%;
  border: 1px solid rgba(37, 245, 179, 0.24);
  transform: rotateZ(-7deg) skewX(-12deg);
}

.shuttle-path i {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #25f5b3;
  box-shadow: 0 0 26px rgba(37, 245, 179, 0.68);
}

.shuttle-path i:nth-child(1) { left: 18%; top: 22%; }
.shuttle-path i:nth-child(2) { right: 14%; top: 34%; background: #37c4ff; }
.shuttle-path i:nth-child(3) { left: 62%; bottom: 10%; background: #ff8a2a; }

.export-video-panel {
  right: clamp(20px, 5vw, 86px);
  top: clamp(96px, 18vh, 172px);
  width: min(40vw, 660px);
}

.economy-store-hud,
.economy-device-hud,
.launch-device-stack,
.launch-audience-hud {
  position: absolute;
  z-index: 5;
  pointer-events: none;
}

.economy-store-hud {
  right: 16px;
  bottom: 18px;
  width: min(245px, calc(100% - 32px));
  display: grid;
  gap: 8px;
}

.economy-store-hud b,
.launch-device-stack strong {
  color: #25f5b3;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.economy-store-hud i {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-left: 3px solid #ff8a2a;
  background: rgba(2, 9, 14, 0.78);
  color: #fff;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.economy-device-hud {
  left: clamp(24px, 6vw, 88px);
  top: clamp(410px, 54vh, 520px);
  width: min(330px, calc(100vw - 36px));
  display: grid;
  gap: 10px;
  transform: translate3d(0, var(--scene-y), 0);
}

.economy-device-hud div,
.launch-audience-hud span {
  min-height: 46px;
  display: grid;
  align-content: center;
  padding: 8px 14px;
  border-left: 3px solid #25f5b3;
  background: rgba(2, 9, 14, 0.8);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

.economy-device-hud span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.economy-device-hud strong {
  color: #fff;
  font-size: 1rem;
}

.launch-device-stack {
  right: 18px;
  bottom: 22px;
  display: grid;
  grid-template-columns: repeat(2, 78px);
  gap: 10px;
  align-items: end;
}

.launch-device-stack b {
  min-height: 96px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(37, 245, 179, 0.14), rgba(255, 138, 42, 0.1)),
    rgba(2, 9, 14, 0.72);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.launch-device-stack svg {
  width: 34px;
  height: 38px;
  fill: currentColor;
}

.launch-device-stack .platform-android svg {
  width: 42px;
}

.launch-device-stack b span {
  display: block;
}

.launch-device-stack strong {
  grid-column: 1 / -1;
  min-height: 28px;
  display: grid;
  place-items: center;
  background: rgba(2, 9, 14, 0.78);
}

.launch-audience-hud {
  right: clamp(26px, 7vw, 124px);
  bottom: clamp(106px, 16vh, 176px);
  width: min(360px, calc(100vw - 36px));
  display: grid;
  gap: 8px;
  transform: translate3d(0, var(--scene-y-soft), 0);
}

.launch-audience-hud span {
  border-left-color: #37c4ff;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.role-rig-panel {
  right: clamp(26px, 7vw, 120px);
  bottom: clamp(54px, 9vh, 92px);
  width: min(32vw, 460px);
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 55% 34%, rgba(255, 138, 42, 0.28), transparent 32%),
    radial-gradient(circle at 45% 58%, rgba(37, 245, 179, 0.22), transparent 30%),
    rgba(3, 10, 16, 0.9);
}

.rig-viewer {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  --poster-color: transparent;
}

.rig-hud {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(2, 9, 14, 0.76);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rig-hud strong {
  color: #25f5b3;
}

.model-scene {
  position: absolute;
  z-index: 7;
  pointer-events: none;
  transform: translate3d(0, var(--scene-y-soft), 0);
  perspective: 1200px;
  overflow: visible;
  will-change: transform, opacity;
}

.model-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 48% 34%, rgba(32, 213, 255, 0.14), transparent 38%),
    radial-gradient(circle at 66% 66%, rgba(255, 138, 42, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(1, 8, 14, 0.08), rgba(1, 8, 14, 0.62));
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.46);
  opacity: 0;
}

.model-scene::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 9%;
  z-index: 1;
  height: 34%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 48px 28px;
  transform: rotateX(62deg);
  transform-origin: 50% 100%;
  opacity: 0;
  mask-image: linear-gradient(180deg, transparent, black 28%, transparent 100%);
}

.scene-model {
  position: absolute;
  z-index: 2;
  --poster-color: transparent;
  overflow: visible;
  backface-visibility: hidden;
  will-change: transform;
}

.scene-model-hud {
  position: absolute;
  z-index: 6;
  display: grid;
  gap: 8px;
  width: min(310px, calc(100% - 30px));
  pointer-events: none;
}

.scene-model-hud span {
  justify-self: start;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(3, 10, 16, 0.82);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scene-model-hud strong {
  color: #25f5b3;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scene-model-hud i {
  min-height: 34px;
  display: flex;
  align-items: center;
  border-left: 3px solid #ff8a2a;
  padding: 0 12px;
  background: rgba(2, 9, 14, 0.76);
  color: #ffffff;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.world-model-scene {
  left: clamp(18px, 4vw, 74px);
  top: clamp(70px, 10vh, 118px);
  width: min(60vw, 980px);
  height: min(70vh, 720px);
  z-index: 8;
}

.world-model-scene::before {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
}

.world-station-model {
  left: -10%;
  top: -18%;
  width: 90%;
  height: 76%;
  filter: drop-shadow(0 34px 50px rgba(0, 0, 0, 0.62));
}

.world-aircraft-model {
  left: 30%;
  top: 44%;
  width: 48%;
  height: 42%;
  filter: drop-shadow(0 24px 38px rgba(0, 0, 0, 0.68)) drop-shadow(0 0 28px rgba(32, 213, 255, 0.24));
}

.world-model-hud {
  left: 18px;
  bottom: 18px;
}

.role-model-scene {
  right: clamp(18px, 4vw, 92px);
  top: clamp(86px, 12vh, 136px);
  width: min(50vw, 900px);
  height: min(66vh, 720px);
}

.role-model-scene::after,
.economy-model-scene::after,
.export-model-scene::after {
  display: none;
}

.role-model-scene::before {
  background:
    radial-gradient(circle at 52% 42%, rgba(255, 138, 42, 0.22), transparent 34%),
    radial-gradient(circle at 70% 36%, rgba(37, 245, 179, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(1, 8, 14, 0.2), rgba(1, 8, 14, 0.68));
  opacity: 0.36;
  border: 0;
  clip-path: none;
}

.neck-mech-model {
  left: 10%;
  top: -5%;
  width: 82%;
  height: 92%;
  filter: drop-shadow(0 38px 54px rgba(0, 0, 0, 0.72));
}

.nathan-model {
  left: 2%;
  bottom: 8%;
  width: 39%;
  height: 48%;
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.64));
}

.role-model-hud {
  left: 18px;
  bottom: 18px;
}

.scene-branch-graph {
  inset: 11% 7% 18% 13%;
  z-index: 5;
}

.economy-model-scene {
  left: clamp(24px, 4vw, 96px);
  top: clamp(88px, 12vh, 140px);
  width: min(52vw, 940px);
  height: min(66vh, 720px);
}

.economy-model-scene::before {
  background:
    radial-gradient(circle at 40% 36%, rgba(37, 245, 179, 0.2), transparent 34%),
    radial-gradient(circle at 60% 60%, rgba(255, 138, 42, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(1, 8, 14, 0.12), rgba(1, 8, 14, 0.62));
  opacity: 0.34;
  border: 0;
  clip-path: none;
}

.shuttle-model-viewer {
  left: -1%;
  top: -3%;
  width: 82%;
  height: 84%;
  filter: drop-shadow(0 36px 50px rgba(0, 0, 0, 0.68)) drop-shadow(0 0 30px rgba(37, 245, 179, 0.2));
}

.economy-model-scene .shuttle-path {
  inset: 17% 5% 12% 5%;
  z-index: 4;
}

.export-model-scene {
  right: clamp(20px, 4vw, 96px);
  top: clamp(86px, 12vh, 140px);
  width: min(52vw, 940px);
  height: min(66vh, 720px);
}

.export-model-scene::before {
  background:
    radial-gradient(circle at 58% 42%, rgba(255, 138, 42, 0.22), transparent 36%),
    radial-gradient(circle at 38% 48%, rgba(32, 213, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(1, 8, 14, 0.16), rgba(1, 8, 14, 0.66));
  opacity: 0.34;
  border: 0;
  clip-path: none;
}

.five-wheeler-model {
  left: 5%;
  top: -3%;
  width: 78%;
  height: 90%;
  filter: drop-shadow(0 38px 56px rgba(0, 0, 0, 0.72));
}

.export-model-hud {
  left: 18px;
  bottom: 18px;
}

.export-model-scene .launch-device-stack {
  right: 16px;
  bottom: 18px;
  z-index: 7;
}

.overlay-hud-lines,
.token-stream,
.engine-node-map {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.overlay-hud-lines {
  left: 16px;
  right: 16px;
  bottom: 18px;
  display: grid;
  gap: 7px;
}

.overlay-hud-lines i {
  height: 4px;
  background: linear-gradient(90deg, #ff8a2a, rgba(255, 138, 42, 0.08));
  transform-origin: left center;
  animation: hudLinePulse 2.6s ease-in-out infinite;
}

.overlay-hud-lines i:nth-child(2) {
  width: 72%;
  background: linear-gradient(90deg, #25f5b3, rgba(37, 245, 179, 0.08));
  animation-delay: 0.35s;
}

.overlay-hud-lines i:nth-child(3) {
  width: 46%;
  background: linear-gradient(90deg, #37c4ff, rgba(55, 196, 255, 0.08));
  animation-delay: 0.7s;
}

.engine-node-map {
  left: clamp(40px, 14vw, 210px);
  bottom: clamp(78px, 14vh, 150px);
  width: min(26vw, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(55, 196, 255, 0.36);
  transform: translate3d(0, var(--scene-y), 0);
  animation: slowSpin 22s linear infinite;
}

.engine-node-map i,
.token-stream i {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff8a2a;
  box-shadow: 0 0 26px rgba(255, 138, 42, 0.7);
}

.engine-node-map i:nth-child(1) { left: 8%; top: 26%; background: #25f5b3; }
.engine-node-map i:nth-child(2) { right: 11%; top: 14%; background: #37c4ff; }
.engine-node-map i:nth-child(3) { left: 42%; bottom: -8px; }
.engine-node-map i:nth-child(4) { right: -8px; bottom: 28%; background: #25f5b3; }
.engine-node-map i:nth-child(5) { left: 48%; top: 48%; width: 26px; height: 26px; }

.token-stream {
  inset: 0;
}

.token-stream i {
  animation: tokenFall 4.4s linear infinite;
}

.token-stream i:nth-child(1) { left: 18%; top: 18%; }
.token-stream i:nth-child(2) { left: 46%; top: 34%; background: #25f5b3; animation-delay: 0.7s; }
.token-stream i:nth-child(3) { right: 14%; top: 22%; background: #37c4ff; animation-delay: 1.4s; }
.token-stream i:nth-child(4) { left: 34%; bottom: 18%; animation-delay: 2s; }
.token-stream i:nth-child(5) { right: 32%; bottom: 26%; background: #25f5b3; animation-delay: 2.6s; }

.world-art-back {
  inset: 7% auto auto 2%;
  width: min(48vw, 640px);
  aspect-ratio: 16 / 10;
  transform: translate3d(0, var(--scene-y-deep), 0);
  opacity: 0.72;
  background-image: url("/assets/theme-media/gameplay-fps-arena.jpg");
  background-size: cover;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
}

.world-art-mid {
  left: 8%;
  bottom: 11%;
  width: min(40vw, 540px);
  aspect-ratio: 16 / 9;
  transform: translate3d(0, var(--scene-y-soft), 0);
  background-image: url("/assets/theme-media/gameplay-creature-cinematic.jpg");
  background-size: cover;
  opacity: 0.88;
}

.world-art-front {
  left: clamp(18px, 6vw, 90px);
  bottom: -2%;
  width: min(34vw, 460px);
  aspect-ratio: 4 / 5;
  transform: translate3d(0, var(--scene-y), 0);
  background-image: url("/assets/theme-media/hero-character-card.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.58);
}

.role-art-back {
  right: 0;
  top: 8%;
  width: min(58vw, 820px);
  aspect-ratio: 16 / 9;
  transform: translate3d(0, var(--scene-y-deep), 0);
  background-image: url("/assets/theme-media/esports-command-center.jpg");
  background-size: cover;
  opacity: 0.62;
}

.role-art-front {
  right: clamp(12px, 6vw, 90px);
  bottom: -4%;
  width: min(50vw, 740px);
  aspect-ratio: 16 / 10;
  transform: translate3d(0, var(--scene-y), 0);
  background-image: url("/assets/theme-media/gameplay-creature-cinematic.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.58);
}

.choice-stack {
  position: absolute;
  left: clamp(22px, 4.5vw, 76px);
  bottom: clamp(34px, 6vh, 76px);
  z-index: 7;
  width: min(355px, calc(100vw - 36px));
  display: grid;
  gap: 8px;
  transform: translate3d(0, var(--scene-y-soft), 0);
}

.scene-role .chapter-copy-left {
  transform: translate3d(0, calc(var(--scene-y) - 42px), 0);
}

.choice-stack span {
  min-height: 42px;
  border-left-color: #25f5b3;
  background: rgba(2, 9, 14, 0.78);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.branch-graph {
  position: absolute;
  inset: 20% 14% 18%;
  z-index: 4;
  border: 1px solid rgba(37, 245, 179, 0.24);
  transform: skewX(-8deg);
}

.branch-graph::before,
.branch-graph::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 48%;
  height: 1px;
  background: linear-gradient(90deg, #25f5b3, rgba(37, 245, 179, 0));
  transform-origin: left center;
  animation: branchTrace 3.2s ease-in-out infinite;
}

.branch-graph::after {
  transform: rotate(-34deg);
  animation-delay: 0.55s;
}

.branch-graph i {
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #25f5b3;
  box-shadow: 0 0 30px rgba(37, 245, 179, 0.8);
  animation: nodePulse 2.4s ease-in-out infinite;
}

.branch-graph i:nth-child(1) { left: 48%; top: 48%; width: 24px; height: 24px; background: #ff8a2a; }
.branch-graph i:nth-child(2) { left: 12%; top: 18%; animation-delay: 0.3s; }
.branch-graph i:nth-child(3) { right: 13%; top: 12%; background: #37c4ff; animation-delay: 0.6s; }
.branch-graph i:nth-child(4) { left: 17%; bottom: 14%; background: #37c4ff; animation-delay: 0.9s; }
.branch-graph i:nth-child(5) { right: 16%; bottom: 18%; animation-delay: 1.2s; }

.economy-art-back {
  left: 3%;
  top: 12%;
  width: min(50vw, 720px);
  aspect-ratio: 16 / 10;
  transform: translate3d(0, var(--scene-y-deep), 0);
  background-image: url("/assets/theme-media/esports-command-center.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.54);
}

.wallet-orbit {
  position: absolute;
  left: clamp(26px, 13vw, 190px);
  bottom: clamp(76px, 12vw, 150px);
  z-index: 5;
  width: min(34vw, 430px);
  aspect-ratio: 1;
  border: 2px solid rgba(37, 245, 179, 0.45);
  border-top-color: #25f5b3;
  border-radius: 50%;
  transform: translate3d(0, var(--scene-y), 0);
  animation: slowSpin 18s linear infinite;
}

.wallet-orbit i {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff8a2a;
  box-shadow: 0 0 28px rgba(255, 138, 42, 0.64);
}

.wallet-orbit i:nth-child(1) { left: 48%; top: -10px; }
.wallet-orbit i:nth-child(2) { right: 6%; top: 23%; background: #25f5b3; }
.wallet-orbit i:nth-child(3) { left: 10%; bottom: 11%; background: #37c4ff; }
.wallet-orbit i:nth-child(4) { right: 20%; bottom: 2%; }

.economy-ledger {
  position: absolute;
  left: clamp(18px, 4vw, 70px);
  bottom: clamp(30px, 6vw, 84px);
  z-index: 6;
  width: min(420px, calc(100vw - 36px));
  display: grid;
  gap: 8px;
  transform: translate3d(0, var(--scene-y-soft), 0);
}

.economy-ledger span {
  border-left-color: #25f5b3;
}

.export-art-back {
  right: 4%;
  bottom: 9%;
  width: min(45vw, 650px);
  aspect-ratio: 16 / 10;
  transform: translate3d(0, var(--scene-y-deep), 0);
  background-image: url("/assets/theme-media/gameplay-fps-arena.jpg");
  background-size: cover;
  opacity: 0.76;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.58);
}

.build-lane {
  position: absolute;
  left: clamp(18px, 6vw, 90px);
  right: clamp(18px, 6vw, 90px);
  bottom: clamp(22px, 5vw, 66px);
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  transform: translate3d(0, var(--scene-y-soft), 0);
}

.build-lane span {
  min-height: 58px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-left-color: #37c4ff;
}

.build-lane b {
  color: #ff8a2a;
  font-size: 0.7rem;
}

.agent-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 14px;
}

.agent-command,
.agent-status {
  min-height: 620px;
}

.chat-log {
  min-height: 330px;
  max-height: 460px;
  overflow: auto;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(18, 217, 255, 0.18);
  background:
    linear-gradient(rgba(18, 217, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 217, 255, 0.05) 1px, transparent 1px),
    rgba(0, 0, 0, 0.24);
  background-size: 28px 28px;
}

.chat-message {
  width: min(720px, 92%);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 9, 14, 0.78);
}

.chat-message.user {
  justify-self: end;
  border-color: rgba(255, 138, 42, 0.34);
  background: rgba(255, 138, 42, 0.12);
}

.chat-message.assistant {
  justify-self: start;
  border-color: rgba(18, 217, 255, 0.3);
}

.chat-message span {
  display: block;
  margin-bottom: 6px;
  color: #25f5b3;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-message p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}

.agent-chat-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.agent-command-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) auto;
  gap: 10px;
  align-items: end;
}

.agent-command-row .primary-button {
  min-height: 46px;
}

.agent-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.agent-metrics div {
  min-height: 86px;
  display: grid;
  align-content: center;
  padding: 14px;
  border: 1px solid rgba(255, 39, 72, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 39, 72, 0.12), rgba(18, 217, 255, 0.07)),
    rgba(0, 0, 0, 0.2);
}

.agent-metrics strong,
.agent-metrics span {
  display: block;
}

.agent-metrics strong {
  color: #fff;
  font-size: 1.7rem;
}

.agent-metrics span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.scene-start {
  min-height: 100svh;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 520px);
  gap: clamp(26px, 5vw, 72px);
  padding: clamp(92px, 11vw, 150px) clamp(18px, 6vw, 96px) clamp(42px, 8vw, 92px);
}

.start-copy,
.portal-start-form {
  position: relative;
  z-index: 5;
  transform: translate3d(0, var(--scene-y), 0);
}

.start-copy h2 {
  font-size: clamp(3.3rem, 7vw, 7.3rem);
}

.portal-start-form {
  align-self: center;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(3, 11, 18, 0.78);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.54);
}

body.home-surface .portal-start-form .field span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

body.home-surface .portal-start-form input,
body.home-surface .portal-start-form textarea {
  border-radius: 2px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.44);
}

body.home-surface .portal-start-form input:focus,
body.home-surface .portal-start-form textarea:focus {
  border-color: #ff8a2a;
  box-shadow: 0 0 0 3px rgba(255, 138, 42, 0.2);
}

.reveal {
  opacity: 0;
  transition: opacity 720ms ease;
}

.reveal.is-visible {
  opacity: 1;
}

@keyframes slowSpin {
  to {
    rotate: 360deg;
  }
}

@keyframes starSweep {
  to {
    background-position: 320px 180px, -240px 220px;
  }
}

@keyframes cueDrop {
  0%, 100% {
    translate: 0 0;
    opacity: 0.55;
  }
  50% {
    translate: 12px 12px;
    opacity: 1;
  }
}

@keyframes feedLineIn {
  from {
    opacity: 0;
    transform: translate3d(-12px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes overlaySweep {
  0%, 100% {
    transform: translateX(-18%);
    opacity: 0;
  }
  45%, 58% {
    opacity: 1;
  }
  100% {
    transform: translateX(18%);
  }
}

@keyframes hudLinePulse {
  0%, 100% {
    transform: scaleX(0.28);
    opacity: 0.48;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes tokenFall {
  0% {
    transform: translate3d(0, -18px, 0) scale(0.74);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    transform: translate3d(26px, 90px, 0) scale(1.15);
    opacity: 0;
  }
}

@keyframes shuttleFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotateZ(0deg);
  }
  50% {
    transform: translate3d(18px, -22px, 0) rotateZ(1.4deg);
  }
}

@keyframes thrusterPulse {
  0%, 100% {
    opacity: 0.48;
    transform: scaleX(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.18);
  }
}

@keyframes branchTrace {
  0%, 100% {
    transform: rotate(28deg) scaleX(0.2);
    opacity: 0.35;
  }
  48% {
    transform: rotate(28deg) scaleX(1);
    opacity: 1;
  }
}

@keyframes nodePulse {
  0%, 100% {
    transform: scale(0.8);
    opacity: 0.64;
  }
  50% {
    transform: scale(1.14);
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  body.home-surface .topbar {
    grid-template-columns: 1fr auto;
  }

  body.home-surface .topnav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hero-console {
    top: auto;
    right: 18px;
    bottom: 22px;
  }

  .cycle-hero-copy {
    bottom: 164px;
  }

  .chapter-copy-right,
  .chapter-copy-left {
    justify-self: start;
    margin-inline: clamp(20px, 6vw, 64px);
  }

  .world-art-front,
  .role-art-front,
  .economy-art-back,
  .export-art-back {
    width: min(62vw, 620px);
    opacity: 0.66;
  }

  .world-video-panel,
  .world-secondary-panel,
  .economy-video-panel,
  .role-video-panel,
  .export-video-panel {
    width: min(46vw, 560px);
  }

  .world-model-scene,
  .role-model-scene,
  .economy-model-scene,
  .export-model-scene {
    width: min(52vw, 690px);
  }

  .world-rig-panel {
    left: clamp(58px, 9vw, 120px);
    top: clamp(310px, 50vh, 420px);
    width: min(34vw, 390px);
  }

  .role-rig-panel {
    width: min(36vw, 420px);
  }

  .scene-start {
    grid-template-columns: 1fr;
    align-content: center;
  }
}

@media (max-width: 720px) {
  body.home-surface .topbar {
    min-height: 58px;
    padding: 10px 14px;
  }

  body.home-surface .topnav {
    display: none;
  }

  body.home-surface .brand small,
  body.home-surface .account-actions .ghost-button {
    display: none;
  }

  .parallax-hero {
    padding: 84px 14px 36px;
  }

  .cycle-hero-mark {
    width: 100%;
    min-height: 210px;
  }

  .cycle-hero-mark span {
    font-size: clamp(3.4rem, 18vw, 5.4rem);
  }

  .hero-brand-logo {
    width: min(84vw, 430px);
    max-height: 26vh;
  }

  .cycle-hero-mark i {
    width: min(82vw, 360px);
    border-width: 6px;
  }

  .cycle-hero-copy {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin-top: 18px;
  }

  .hero-console {
    position: relative;
    right: auto;
    bottom: auto;
    top: auto;
    margin-top: 22px;
  }

  .console-modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chapter-copy {
    width: calc(100% - 32px);
    margin: 0 16px;
  }

  .chapter-copy h2,
  .start-copy h2 {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }

  .scene-caption {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 16px;
  }

  .world-art-back,
  .world-art-mid,
  .world-art-front,
  .role-art-back,
  .role-art-front,
  .economy-art-back,
  .export-art-back {
    inset: auto 0 10% auto;
    width: 86vw;
    opacity: 0.42;
  }

  .world-video-panel,
  .world-secondary-panel,
  .economy-video-panel,
  .role-video-panel,
  .export-video-panel,
  .world-rig-panel,
  .role-rig-panel {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 22%;
    width: auto;
    opacity: 0.5;
  }

  .world-model-scene,
  .role-model-scene,
  .economy-model-scene,
  .export-model-scene {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 20%;
    width: auto;
    height: clamp(360px, 74vw, 620px);
    min-height: 360px;
    transform: none;
  }

  .world-station-model {
    left: -18%;
    top: -8%;
    width: 100%;
    height: 64%;
  }

  .world-aircraft-model {
    left: 42%;
    top: 42%;
    width: 54%;
    height: 40%;
  }

  .neck-mech-model {
    right: -8%;
    width: 92%;
    height: 78%;
  }

  .nathan-model {
    display: none;
  }

  .shuttle-model-viewer,
  .five-wheeler-model {
    width: 104%;
    height: 82%;
  }

  .scene-model-hud {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }

  .role-rig-panel {
    display: none;
  }

  .world-rig-panel {
    display: none;
  }

  .engine-node-map {
    width: 58vw;
    left: auto;
    right: -18vw;
    bottom: 16%;
    opacity: 0.5;
  }

  .choice-stack,
  .economy-ledger,
  .economy-device-hud,
  .launch-audience-hud {
    left: 16px;
    right: 16px;
    bottom: 82px;
    width: auto;
  }

  .economy-device-hud,
  .launch-audience-hud {
    top: auto;
    bottom: 188px;
  }

  .economy-store-hud,
  .launch-device-stack {
    display: none;
  }

  .wallet-orbit {
    left: auto;
    right: -16vw;
    bottom: 18%;
    width: 68vw;
    opacity: 0.56;
  }

  .build-lane {
    grid-template-columns: 1fr;
    left: 16px;
    right: 16px;
    gap: 5px;
  }

  .build-lane span {
    min-height: 40px;
  }

  .agent-command-row {
    grid-template-columns: 1fr;
  }

  .chat-message {
    width: 100%;
  }

  .scene-start {
    padding: 86px 16px 34px;
  }

  .portal-start-form {
    padding: 16px;
  }

  .auth-cinematic {
    min-height: calc(100svh - 58px);
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 86px 16px 42px;
  }

  .auth-copy {
    justify-self: stretch;
  }

  .auth-copy h1 {
    font-size: clamp(2.6rem, 15vw, 4.35rem);
  }

  .auth-copy p {
    font-size: 1rem;
  }

  .auth-signal-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 22px;
  }

  .auth-panel-cinematic {
    justify-self: stretch;
    width: 100%;
    max-width: calc(100vw - 32px);
    padding: 16px;
  }

  .cycle-actions,
  .cycle-actions .cycle-button,
  .portal-start-form .cycle-button {
    width: 100%;
  }
}

@media (max-width: 900px) {
  body.home-surface .topbar {
    grid-template-columns: 1fr auto;
    min-height: 58px;
    padding: 10px 14px;
  }

  body.home-surface .topnav,
  body.home-surface .brand small,
  body.home-surface .account-actions .ghost-button {
    display: none;
  }

  .parallax-scene {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 86px 16px 36px;
  }

  .scene-video {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    opacity: 0.78;
    filter: saturate(1.08) contrast(1.04);
  }

  .scene-video-secondary,
  .depth-layer,
  .engine-node-map,
  .wallet-orbit {
    display: none;
  }

  .scene-shade,
  .scene-shade-warm,
  .scene-shade-deep,
  .scene-shade-start {
    background:
      linear-gradient(180deg, rgba(3, 7, 12, 0.48), rgba(3, 7, 12, 0.86) 42%, rgba(3, 7, 12, 0.98)),
      linear-gradient(90deg, rgba(3, 8, 13, 0.82), rgba(3, 8, 13, 0.38));
  }

  .chapter-copy,
  .start-copy,
  .motion-overlay,
  .shuttle-scene-overlay,
  .rig-overlay,
  .choice-stack,
  .economy-ledger,
  .economy-device-hud,
  .launch-audience-hud,
  .build-lane,
  .scene-caption,
  .portal-start-form {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    transform: none !important;
    opacity: 1;
  }

  .chapter-copy,
  .start-copy {
    order: 1;
    padding: 0;
  }

  .chapter-copy h2,
  .start-copy h2 {
    margin: 8px 0 12px;
    font-size: clamp(2.35rem, 10.5vw, 4rem);
    line-height: 0.98;
  }

  .chapter-copy p,
  .start-copy p {
    font-size: clamp(1rem, 3.6vw, 1.18rem);
    line-height: 1.48;
  }

  .motion-overlay {
    order: 2;
    aspect-ratio: 16 / 9;
    min-height: 210px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  }

  .shuttle-scene-overlay {
    order: 2;
    min-height: 330px;
    perspective: 900px;
  }

  .shuttle-stage {
    inset: 24px 0 0;
  }

  .shuttle-model {
    left: 0;
    top: 22%;
    width: 100%;
    height: 190px;
    transform: rotateX(58deg) rotateZ(-18deg) rotateY(10deg) scale(0.78);
  }

  .shuttle-scene-overlay .economy-store-hud {
    display: grid;
    left: 10px;
    right: auto;
    bottom: 12px;
    width: calc(100% - 20px);
  }

  .world-rig-panel,
  .role-rig-panel {
    display: none;
  }

  .choice-stack,
  .economy-ledger,
  .economy-device-hud,
  .launch-audience-hud,
  .build-lane {
    order: 4;
    display: grid;
    gap: 8px;
  }

  .economy-device-hud {
    grid-template-columns: 1fr 1fr;
  }

  .choice-stack span,
  .economy-ledger span,
  .build-lane span,
  .economy-device-hud div,
  .launch-audience-hud span {
    min-height: 42px;
    background: rgba(2, 9, 14, 0.82);
  }

  .economy-store-hud,
  .launch-device-stack {
    display: none;
  }

  .scene-caption {
    order: 5;
    grid-template-columns: 1fr;
    padding: 14px 0 0;
    background: transparent;
  }

  .scene-start {
    grid-template-columns: 1fr;
    padding: 86px 16px 38px;
  }

  .portal-start-form {
    order: 2;
    padding: 16px;
  }

  .portal-start-form .field-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-video,
  .depth-layer,
  .scene-art,
  .chapter-copy,
  .cycle-hero-mark,
  .choice-stack,
  .economy-ledger,
  .build-lane,
  .start-copy,
  .portal-start-form {
    transform: none !important;
    animation: none !important;
  }
}

/* Logged-in portal aligned to the cinematic landing page */
body.portal-surface {
  background: #06101a;
  color: #f8fbff;
}

body.portal-surface::before,
body.portal-surface::after,
body.portal-surface .neural-canvas {
  display: none;
}

body.portal-surface .topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  min-height: 66px;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  padding: 12px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 13, 22, 0.94);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
  backdrop-filter: none;
}

body.portal-surface .brand-mark {
  width: 54px;
  height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

body.portal-surface .brand strong {
  color: #ffffff;
  font-size: 0.95rem;
}

body.portal-surface .brand small {
  color: rgba(255, 255, 255, 0.62);
}

body.portal-surface .topnav {
  gap: clamp(12px, 2.5vw, 28px);
}

body.portal-surface .topnav .ghost-button {
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

body.portal-surface .account-actions .muted {
  color: rgba(255, 255, 255, 0.68);
}

body.portal-surface .account-actions .secondary-button {
  min-height: 38px;
  border: 0;
  border-radius: 2px;
  background: #ff8a2a;
  color: #150805;
  box-shadow: 0 5px 0 #7f2d0b, 0 20px 46px rgba(255, 99, 22, 0.18);
}

body.portal-surface .portal-shell {
  padding: 110px clamp(18px, 5vw, 72px) clamp(36px, 6vw, 72px);
  background:
    linear-gradient(180deg, rgba(3, 10, 16, 0.14), rgba(3, 10, 16, 0.96)),
    radial-gradient(circle at 70% 16%, rgba(255, 138, 42, 0.15), transparent 30%),
    radial-gradient(circle at 22% 28%, rgba(37, 245, 179, 0.12), transparent 28%),
    #06101a;
}

body.portal-surface .portal-marquee {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background:
    linear-gradient(110deg, rgba(255, 138, 42, 0.18), transparent 34%),
    rgba(3, 10, 16, 0.74);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.48);
  clip-path: none;
}

body.portal-surface .portal-marquee strong {
  font-size: clamp(2.6rem, 5.6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

body.portal-surface .portal {
  align-items: start;
}

body.portal-surface .sidebar,
body.portal-surface .workspace,
body.portal-surface .profile-card,
body.portal-surface .project-switcher,
body.portal-surface .workspace-card,
body.portal-surface .tool-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: rgba(3, 10, 16, 0.78);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.32);
  clip-path: none;
}

body.portal-surface .workspace {
  min-height: 620px;
}

body.portal-surface .tab-button,
body.portal-surface .project-choice {
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
}

body.portal-surface .tab-button.active,
body.portal-surface .project-choice.active {
  border-color: #ff8a2a;
  background: rgba(255, 138, 42, 0.16);
}

body.portal-surface .primary-button {
  border: 0;
  border-radius: 2px;
  background: #ff8a2a;
  color: #150805;
  clip-path: none;
  box-shadow: 0 5px 0 #7f2d0b;
}

body.portal-surface .secondary-button,
body.portal-surface .ghost-button {
  border-radius: 2px;
  clip-path: none;
}

body.portal-surface .site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #06101a;
}

body.portal-surface .portal-shell {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 66px);
  overflow: hidden;
  padding: 104px clamp(18px, 5vw, 72px) clamp(42px, 6vw, 82px);
  background: #030a12;
}

body.portal-surface .portal-backdrop-video,
body.portal-surface .portal-backdrop-shade {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body.portal-surface .portal-backdrop-video {
  z-index: -3;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(1.1) contrast(1.12);
}

body.portal-surface .portal-backdrop-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(3, 8, 13, 0.72), rgba(3, 8, 13, 0.9) 44%, #030a12 100%),
    radial-gradient(circle at 16% 20%, rgba(255, 138, 42, 0.18), transparent 32rem),
    radial-gradient(circle at 72% 12%, rgba(32, 213, 255, 0.14), transparent 36rem),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: auto, auto, auto, 78px 78px, 78px 78px;
}

body.portal-surface .portal-marquee,
body.portal-surface .portal,
body.portal-surface .workspace,
body.portal-surface .sidebar {
  position: relative;
  z-index: 2;
}

body.portal-surface .portal-marquee {
  width: min(1540px, 100%);
  min-height: clamp(150px, 18vw, 255px);
  margin: 0 auto clamp(18px, 3vw, 30px);
  grid-template-columns: minmax(220px, 0.5fr) minmax(0, 0.92fr) minmax(270px, 0.5fr);
  gap: clamp(18px, 4vw, 54px);
  align-items: center;
  padding: clamp(24px, 4vw, 50px) clamp(20px, 5vw, 58px);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(90deg, rgba(255, 138, 42, 0.18), rgba(5, 14, 22, 0.72) 34%, rgba(2, 8, 13, 0.3)),
    rgba(2, 8, 13, 0.62);
  box-shadow: 0 42px 130px rgba(0, 0, 0, 0.42);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%);
}

body.portal-surface .portal-marquee span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  letter-spacing: 0.07em;
}

body.portal-surface .portal-marquee strong {
  max-width: 720px;
  color: #ffffff;
  font-size: clamp(3.6rem, 6.6vw, 7.5rem);
  line-height: 0.86;
  text-shadow: 0 28px 72px rgba(0, 0, 0, 0.56);
}

body.portal-surface .portal-marquee div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  justify-content: stretch;
}

body.portal-surface .portal-marquee b {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-left: 3px solid #20d5ff;
  padding: 0 14px;
  background: rgba(1, 9, 15, 0.64);
  color: rgba(255, 255, 255, 0.82);
}

body.portal-surface .portal {
  width: min(1540px, 100%);
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
  background: transparent;
}

body.portal-surface .sidebar {
  top: 88px;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(1, 10, 16, 0.76);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.34);
}

body.portal-surface .profile-card,
body.portal-surface .project-switcher {
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  box-shadow: none;
  padding: 18px;
}

body.portal-surface .operator-label {
  border-color: rgba(255, 138, 42, 0.44);
  background: rgba(255, 138, 42, 0.12);
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.06em;
}

body.portal-surface .profile-card strong {
  color: #ffffff;
  font-size: 1.22rem;
  line-height: 1.08;
}

body.portal-surface .tab-list {
  gap: 10px;
}

body.portal-surface .tab-button {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid transparent;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  letter-spacing: 0;
}

body.portal-surface .tab-button.active,
body.portal-surface .tab-button:hover {
  border-color: rgba(255, 138, 42, 0.58);
  border-left-color: #ff8a2a;
  background:
    linear-gradient(90deg, rgba(255, 138, 42, 0.24), rgba(32, 213, 255, 0.06)),
    rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

body.portal-surface .workspace {
  min-height: 720px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid rgba(255, 138, 42, 0.62);
  background:
    linear-gradient(135deg, rgba(4, 20, 32, 0.88), rgba(10, 8, 17, 0.82)),
    rgba(2, 8, 13, 0.86);
  box-shadow: 0 42px 130px rgba(0, 0, 0, 0.42);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

body.portal-surface .workspace-header {
  min-height: 170px;
  align-items: center;
  padding: clamp(10px, 1.6vw, 20px) 0 clamp(22px, 3vw, 34px);
  border-bottom: 1px solid rgba(255, 138, 42, 0.28);
}

body.portal-surface .workspace-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffb13d;
}

body.portal-surface .workspace-header .eyebrow::before {
  content: "";
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #ff3145, #ff8a2a);
}

body.portal-surface .workspace-header h1 {
  max-width: 920px;
  margin-top: 10px;
  font-size: clamp(3.15rem, 6.4vw, 7.1rem);
  line-height: 0.86;
  color: #ffffff;
  text-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

body.portal-surface .workspace-header p {
  max-width: 680px;
  color: rgba(213, 231, 244, 0.68);
  font-size: 1.05rem;
  line-height: 1.5;
}

body.portal-surface .workspace-ribbon div,
body.portal-surface .workspace-card,
body.portal-surface .tool-panel,
body.portal-surface .stat,
body.portal-surface .pipeline-step,
body.portal-surface .tool-launch-card,
body.portal-surface .system-matrix div,
body.portal-surface .model-example-grid a {
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 138, 42, 0.08), rgba(32, 213, 255, 0.045)),
    rgba(1, 8, 14, 0.62);
  box-shadow: none;
}

body.portal-surface .tool-panel,
body.portal-surface .workspace-card {
  padding: clamp(16px, 2vw, 22px);
  border-top: 2px solid rgba(255, 138, 42, 0.46);
}

body.portal-surface .workspace-card h3,
body.portal-surface .tool-panel h3,
body.portal-surface .panel-heading h2,
body.portal-surface .panel-heading h3 {
  color: #ffffff;
  font-size: clamp(1.15rem, 1.55vw, 1.55rem);
  line-height: 1;
}

body.portal-surface .field span,
body.portal-surface .field label {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

body.portal-surface .field input,
body.portal-surface .field textarea,
body.portal-surface .field select {
  min-height: 52px;
  border-radius: 4px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(1, 8, 14, 0.78);
  color: #ffffff;
  font-size: 0.98rem;
}

body.portal-surface .field textarea {
  min-height: 138px;
}

body.portal-surface .primary-button,
body.portal-surface .account-actions .secondary-button {
  min-height: 48px;
  padding-inline: 22px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff3145, #ff8a2a);
  color: #ffffff;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 12px 50%);
  box-shadow: none;
}

body.portal-surface .secondary-button,
body.portal-surface .ghost-button,
body.portal-surface .icon-button {
  border-radius: 4px;
  border-color: rgba(32, 213, 255, 0.26);
  background: rgba(10, 35, 52, 0.62);
  color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 900px) {
  body.portal-surface .topbar {
    grid-template-columns: 1fr auto;
  }

  body.portal-surface .topnav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  body.portal-surface .portal-marquee,
  body.portal-surface .portal {
    grid-template-columns: 1fr;
  }

  body.portal-surface .portal-marquee {
    min-height: auto;
    padding: 26px 20px;
  }

  body.portal-surface .portal-marquee strong {
    font-size: clamp(3rem, 12vw, 5.2rem);
  }

  body.portal-surface .workspace-header {
    min-height: auto;
    display: grid;
  }

  body.portal-surface .workspace-header h1 {
    font-size: clamp(2.8rem, 13vw, 5.4rem);
  }

  body.portal-surface .sidebar {
    position: relative;
    top: auto;
  }
}

@media (max-width: 640px) {
  body.portal-surface .topnav,
  body.portal-surface .brand small,
  body.portal-surface .account-actions .muted {
    display: none;
  }

  body.portal-surface .portal-shell {
    padding: 86px 14px 28px;
  }

  body.portal-surface .portal-marquee {
    gap: 18px;
  }

  body.portal-surface .portal-marquee div {
    grid-template-columns: 1fr;
  }

  body.portal-surface .workspace {
    padding: 16px;
  }

  body.portal-surface .workspace-header h1 {
    font-size: clamp(2.4rem, 15vw, 4.35rem);
  }

  body.portal-surface .field-grid {
    grid-template-columns: 1fr;
  }
}

/* Grounded editor-style homepage pass. No abstract hero canvas. */
.ue-product-hero {
  min-height: calc(100svh - 70px);
  display: grid;
  grid-template-columns: minmax(320px, 0.74fr) minmax(520px, 1.12fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(44px, 7vw, 96px) clamp(20px, 5vw, 74px);
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.08), transparent 28rem),
    linear-gradient(180deg, #060606, #0b0b0b 58%, #050505);
}

.ue-product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, black 44%, black 100%);
}

.ue-product-hero .ue-hero-inner {
  width: min(680px, 100%);
  padding: 0;
}

.ue-product-hero .ue-kicker {
  color: rgba(255, 255, 255, 0.62);
}

.ue-product-hero h1 {
  max-width: 720px;
  font-size: clamp(3.2rem, 6.8vw, 6.9rem);
}

.ue-product-hero p {
  max-width: 610px;
}

.engine-shot {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #101010;
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.52);
}

.engine-shot-bar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.engine-shot-bar span,
.engine-shot-bar strong,
.engine-tree b,
.engine-inspector b {
  font-weight: 800;
}

.engine-shot-bar strong {
  color: #fff;
}

.engine-shot-body {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 220px;
  min-height: 540px;
}

.engine-tree,
.engine-inspector {
  padding: 18px;
  background: #141414;
}

.engine-tree {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.engine-tree b,
.engine-tree span {
  display: block;
}

.engine-tree b {
  margin-bottom: 16px;
  color: #fff;
}

.engine-tree span {
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.8rem;
}

.engine-viewport-art {
  position: relative;
  overflow: hidden;
  background: #050505;
}

.engine-viewport-art::before {
  content: "";
  position: absolute;
  inset: -5%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.42)),
    url("/assets/theme-media/gameplay-fps-arena.jpg") center / cover;
  animation: gameplayPan 14s ease-in-out infinite alternate;
}

.engine-viewport-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.06)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 5px);
  mix-blend-mode: screen;
  opacity: 0.55;
}

@keyframes gameplayPan {
  0% {
    transform: scale(1.04) translate3d(-1.5%, 0, 0);
  }
  100% {
    transform: scale(1.16) translate3d(2%, -1.5%, 0);
  }
}

.viewport-sky {
  position: absolute;
  inset: 0 0 42%;
  background:
    radial-gradient(circle at 70% 24%, rgba(255, 255, 255, 0.24), transparent 16rem),
    linear-gradient(135deg, rgba(84, 105, 128, 0.42), transparent 58%);
}

.engine-viewport-art .viewport-sky,
.engine-viewport-art .viewport-mountains,
.engine-viewport-art .viewport-city,
.engine-viewport-art .viewport-ground,
.engine-viewport-art .viewport-character {
  display: none;
}

.viewport-mountains {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 34%;
  height: 36%;
  background:
    linear-gradient(142deg, transparent 0 18%, rgba(33, 37, 45, 0.95) 18% 34%, transparent 34%),
    linear-gradient(36deg, transparent 0 22%, rgba(42, 46, 54, 0.96) 22% 42%, transparent 42%),
    linear-gradient(150deg, transparent 0 42%, rgba(21, 24, 31, 0.96) 42% 58%, transparent 58%);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.3));
}

.viewport-ground {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -16%;
  height: 48%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(124, 109, 84, 0.32), rgba(10, 10, 10, 0.96));
  background-size: 42px 42px, 42px 42px, auto;
  transform: perspective(620px) rotateX(62deg);
  transform-origin: top center;
}

.viewport-city {
  position: absolute;
  left: 14%;
  right: 8%;
  bottom: 31%;
  height: 38%;
}

.viewport-city i {
  position: absolute;
  bottom: 0;
  width: 9%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(220, 225, 230, 0.24), rgba(120, 125, 132, 0.1));
}

.viewport-city i:nth-child(1) { left: 4%; height: 42%; }
.viewport-city i:nth-child(2) { left: 24%; height: 72%; }
.viewport-city i:nth-child(3) { left: 45%; height: 55%; }
.viewport-city i:nth-child(4) { left: 64%; height: 88%; }
.viewport-city i:nth-child(5) { left: 82%; height: 62%; }

.viewport-character {
  position: absolute;
  left: 51%;
  bottom: 20%;
  width: 34px;
  height: 126px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 9%, #030303 0 14px, transparent 15px),
    linear-gradient(90deg, transparent 0 35%, #030303 35% 65%, transparent 65%);
  filter: drop-shadow(0 24px 20px rgba(0, 0, 0, 0.7));
}

.viewport-character::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 46px;
  width: 96px;
  height: 3px;
  background: rgba(211, 164, 95, 0.82);
  transform: rotate(-24deg);
  transform-origin: left center;
}

.viewport-objective {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  padding: 9px 11px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.62);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
  font-weight: 800;
}

.engine-inspector {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.engine-inspector b {
  display: block;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.05;
}

.engine-inspector p {
  margin: 12px 0 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
}

.engine-meter {
  display: grid;
  gap: 7px;
  margin-top: 15px;
}

.engine-meter span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
}

.engine-meter i {
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #fff var(--value), rgba(255, 255, 255, 0.14) var(--value));
}

.engine-shot-modes {
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c0c0c;
}

.feature-world {
  background:
    linear-gradient(180deg, rgba(15, 20, 27, 0.04), rgba(4, 4, 4, 0.78)),
    url("/assets/theme-media/gameplay-fps-arena.jpg") center / cover;
  animation: featureImageDrift 16s ease-in-out infinite alternate;
}

.feature-editor {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(4, 4, 4, 0.84)),
    url("/assets/theme-media/esports-command-center.jpg") center / cover;
}

.feature-character {
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.04), rgba(0, 0, 0, 0.72)),
    url("/assets/theme-media/gameplay-creature-cinematic.jpg") center / cover;
  animation: featureImageDrift 18s ease-in-out infinite alternate-reverse;
}

.feature-economy {
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.12), rgba(3, 3, 3, 0.88)),
    url("/assets/theme-media/moba-gameplay-grid-b.jpg") center / cover;
  animation: featureImageDrift 13s ease-in-out infinite alternate;
}

@keyframes featureImageDrift {
  from {
    background-size: auto, 104%;
    background-position: center center;
  }
  to {
    background-size: auto, 118%;
    background-position: 54% 46%;
  }
}

.ue-media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 15%, transparent 80%, rgba(255, 255, 255, 0.06)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.026) 1px, transparent 1px, transparent 5px);
  opacity: 0.5;
  mix-blend-mode: screen;
}

.feature-shot-ui,
.feature-console-lines,
.character-lineup,
.economy-ledger-shot {
  position: absolute;
  inset: auto 22px 22px;
  z-index: 2;
}

.feature-shot-ui {
  width: min(340px, calc(100% - 44px));
  padding: 18px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.66);
}

.feature-shot-ui span,
.feature-shot-ui strong {
  display: block;
}

.feature-shot-ui span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
}

.feature-shot-ui strong {
  margin-top: 4px;
  color: #fff;
  font-size: 1.4rem;
}

.feature-console-lines {
  inset: 28px;
  display: grid;
  align-content: center;
  gap: 16px;
}

.feature-console-lines i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.feature-console-lines i:nth-child(1) { width: 74%; }
.feature-console-lines i:nth-child(2) { width: 46%; }
.feature-console-lines i:nth-child(3) { width: 88%; }
.feature-console-lines i:nth-child(4) { width: 58%; }
.feature-console-lines i:nth-child(5) { width: 66%; }

.character-lineup {
  inset: auto 16% 18%;
  height: 58%;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.character-lineup i {
  width: 26%;
  height: 74%;
  border-radius: 999px 999px 12px 12px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.character-lineup i:nth-child(2) {
  height: 100%;
}

.economy-ledger-shot {
  display: grid;
  gap: 10px;
  width: min(420px, calc(100% - 44px));
}

.economy-ledger-shot span {
  display: block;
  padding: 13px 14px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.68);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .ue-product-hero {
    grid-template-columns: 1fr;
  }

  .ue-product-hero .ue-hero-inner {
    width: min(760px, 100%);
  }
}

@media (max-width: 780px) {
  .engine-shot-body {
    grid-template-columns: 1fr;
  }

  .engine-tree,
  .engine-inspector {
    display: none;
  }

  .engine-viewport-art {
    min-height: 430px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 70% 12%, rgba(124, 61, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 18% 0%, rgba(255, 39, 72, 0.14), transparent 28rem),
    linear-gradient(180deg, rgba(5, 7, 11, 0.88), var(--bg) 760px),
    var(--bg);
  color: var(--text);
  font-family: "Arial Narrow", "Roboto Condensed", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(18, 217, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 217, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, black, transparent 75%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 4px);
  opacity: 0.35;
}

.neural-canvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.38;
  mix-blend-mode: screen;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 18px rgba(18, 217, 255, 0.1), inset 0 0 24px rgba(18, 217, 255, 0.05);
  }
  50% {
    box-shadow: 0 0 42px rgba(255, 39, 72, 0.24), inset 0 0 48px rgba(18, 217, 255, 0.12);
  }
}

@keyframes floatDeck {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -12px, 0) rotate(-0.7deg);
  }
}

@keyframes scanLine {
  0% {
    transform: translateY(-120%);
    opacity: 0;
  }
  20%, 80% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(520%);
    opacity: 0;
  }
}

@keyframes marqueeDrift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 180px 0;
  }
}

@keyframes orbitRotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes counterPulse {
  0%, 100% {
    transform: scale(1);
    color: #fff;
  }
  50% {
    transform: scale(1.08);
    color: var(--cyan);
  }
}

@keyframes terminalBlink {
  0%, 44% {
    opacity: 1;
  }
  45%, 100% {
    opacity: 0.35;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(255, 39, 72, 0.34);
  background:
    linear-gradient(90deg, rgba(255, 39, 72, 0.08), transparent 34%, rgba(18, 217, 255, 0.08)),
    rgba(3, 5, 9, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
}

.topbar > *,
.portal > *,
.sidebar,
.workspace,
.profile-card,
.project-switcher,
.workspace-card,
.tool-panel,
.launch-panel {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(18, 217, 255, 0.62);
  background:
    linear-gradient(135deg, rgba(255, 39, 72, 0.2), rgba(18, 217, 255, 0.12)),
    #070d13;
  color: var(--cyan);
  font-weight: 800;
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% 74%, 78% 100%, 0 100%);
  box-shadow: inset 0 0 22px rgba(18, 217, 255, 0.18), 0 0 22px rgba(18, 217, 255, 0.1);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.topnav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.account-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ghost-button,
.primary-button,
.secondary-button,
.danger-button,
.icon-button {
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0 15px;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.ghost-button {
  color: var(--soft);
  background: transparent;
}

.ghost-button:hover,
.ghost-button.active {
  border-color: rgba(255, 39, 72, 0.45);
  background: rgba(255, 39, 72, 0.08);
  color: #fff;
}

.primary-button {
  position: relative;
  background: linear-gradient(135deg, var(--coral), #ff6a22);
  color: #fff;
  box-shadow: 0 14px 32px rgba(255, 39, 72, 0.24);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 10px 50%);
}

.primary-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 36%, rgba(255, 255, 255, 0.36) 48%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 500ms ease;
}

.primary-button:hover::after {
  transform: translateX(120%);
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.secondary-button {
  border-color: rgba(18, 217, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(18, 217, 255, 0.1), rgba(124, 61, 255, 0.1)),
    rgba(255, 255, 255, 0.06);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.danger-button {
  background: rgba(255, 107, 107, 0.13);
  border-color: rgba(255, 107, 107, 0.35);
  color: #ffd1d1;
}

.icon-button {
  width: 42px;
  padding: 0;
  background: rgba(255, 39, 72, 0.14);
  color: #fff;
  border-color: rgba(255, 39, 72, 0.42);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  background: #02050a;
  border-bottom: 1px solid rgba(255, 39, 72, 0.26);
  overflow: hidden;
}

.cinematic-reel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cinematic-vignette {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 5, 10, 0.94) 0%, rgba(2, 5, 10, 0.72) 36%, rgba(2, 5, 10, 0.16) 72%),
    linear-gradient(180deg, rgba(2, 5, 10, 0.18), rgba(2, 5, 10, 0.9) 92%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, transparent 0 50%, rgba(255, 39, 72, 0.18) 50% 50.4%, transparent 50.4%),
    linear-gradient(98deg, transparent 0 67%, rgba(18, 217, 255, 0.14) 67% 67.4%, transparent 67.4%);
  animation: marqueeDrift 12s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--cyan), var(--violet));
  box-shadow: 0 0 28px rgba(255, 39, 72, 0.45);
}

.engine-theater {
  min-height: calc(100svh - 72px);
  padding: clamp(24px, 4vw, 54px);
  align-items: stretch;
  background: #02050a;
}

.theater-canvas {
  cursor: crosshair;
}

.theater-shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 5, 10, 0.96), rgba(2, 5, 10, 0.68) 35%, rgba(2, 5, 10, 0.16) 72%),
    radial-gradient(circle at 72% 28%, rgba(18, 217, 255, 0.1), transparent 26rem),
    linear-gradient(180deg, rgba(2, 5, 10, 0.08), rgba(2, 5, 10, 0.92) 95%);
}

.theater-grid {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  min-height: calc(100svh - 170px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.theater-copy {
  max-width: 840px;
  padding-block: clamp(28px, 7vw, 96px);
}

.engine-theater h1 {
  max-width: 900px;
  margin: 14px 0 18px;
  font-size: clamp(3.8rem, 9.4vw, 8.8rem);
  line-height: 0.86;
  text-transform: uppercase;
  text-shadow: 0 0 44px rgba(18, 217, 255, 0.22), 0 14px 0 rgba(255, 39, 72, 0.12);
}

.engine-theater h1 small {
  max-width: 760px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 248, 251, 0.8);
  text-shadow: none;
}

.theater-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(720px, 100%);
  margin-top: clamp(26px, 4vw, 44px);
}

.theater-stats div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(18, 217, 255, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 39, 72, 0.12), rgba(18, 217, 255, 0.06)),
    rgba(0, 0, 0, 0.42);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.theater-stats strong,
.theater-stats span {
  display: block;
}

.theater-stats strong {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
  color: #fff;
}

.theater-stats span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.engine-dock {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(18, 217, 255, 0.32);
  background:
    linear-gradient(145deg, rgba(255, 39, 72, 0.16), rgba(18, 217, 255, 0.08)),
    rgba(2, 6, 12, 0.78);
  box-shadow: var(--shadow), inset 0 0 70px rgba(18, 217, 255, 0.08);
  backdrop-filter: blur(18px);
  clip-path: polygon(9% 0, 100% 0, 100% calc(100% - 38px), calc(100% - 38px) 100%, 0 100%, 0 9%);
}

.engine-dock::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, black, transparent 92%);
}

.dock-topline,
.mode-brief,
.live-feed,
.engine-dock .build-queue,
.theater-modes {
  position: relative;
  z-index: 1;
}

.dock-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dock-topline strong {
  color: var(--green);
}

.mode-brief {
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.38);
}

.mode-brief span,
.mode-brief strong {
  display: block;
  text-transform: uppercase;
}

.mode-brief span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.mode-brief strong {
  margin-top: 8px;
  color: var(--cyan);
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 0.92;
}

.mode-brief p {
  margin: 14px 0 0;
  color: var(--soft);
}

.live-feed {
  display: grid;
  gap: 8px;
}

.live-feed span {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-left: 2px solid var(--coral);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
}

.live-feed span::before {
  content: ">";
  margin-right: 8px;
  color: var(--gold);
}

.engine-dock .engine-mode-controls,
.theater-modes {
  position: static;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.engine-dock .engine-mode-controls button {
  min-height: 46px;
  padding: 0 8px;
  font-size: 0.68rem;
}

.engine-dock .build-queue {
  padding: 0;
  grid-template-columns: 1fr;
}

.theater-timeline {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: -28px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(18, 217, 255, 0.22);
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(14px);
}

.theater-timeline span {
  color: var(--soft);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.theater-timeline i {
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--cyan));
  box-shadow: 0 0 14px rgba(18, 217, 255, 0.42);
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.hero-stage {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  min-height: calc(100svh - 180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.68fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: center;
}

.hero-copy {
  max-width: 780px;
  padding: clamp(18px, 3vw, 34px);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.44), transparent);
  border-left: 1px solid rgba(255, 39, 72, 0.28);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-shadow: 0 0 18px rgba(255, 178, 31, 0.25);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--gold));
}

.hero h1 {
  max-width: 850px;
  margin: 14px 0 16px;
  font-size: clamp(4rem, 10vw, 9.2rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 38px rgba(18, 217, 255, 0.18), 0 12px 0 rgba(255, 39, 72, 0.1);
}

.hero h1 span,
.hero h1 small {
  display: block;
}

.hero h1 small {
  margin-top: 8px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.82);
  font-size: clamp(1.7rem, 4vw, 3.5rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.hero-lede {
  max-width: 690px;
  color: var(--soft);
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  border-left: 3px solid var(--coral);
  padding-left: 18px;
  background: linear-gradient(90deg, rgba(255, 39, 72, 0.12), transparent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button.mega {
  min-height: 54px;
  padding-inline: 28px;
  font-size: 0.95rem;
}

.arena-card {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(18, 217, 255, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 39, 72, 0.16), rgba(18, 217, 255, 0.08)),
    rgba(5, 8, 13, 0.74);
  box-shadow: var(--shadow), inset 0 0 80px rgba(18, 217, 255, 0.07);
  clip-path: polygon(9% 0, 100% 0, 100% 88%, 89% 100%, 0 100%, 0 12%);
  overflow: hidden;
  animation: floatDeck 7s ease-in-out infinite, pulseGlow 4.8s ease-in-out infinite;
}

.arena-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 42%, rgba(18, 217, 255, 0.22), transparent 24%),
    linear-gradient(90deg, transparent 49%, rgba(18, 217, 255, 0.18) 50%, transparent 51%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 38px 38px, 38px 38px;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 82% 100%, 0 100%);
}

.arena-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 64px;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(18, 217, 255, 0.18), transparent);
  animation: scanLine 3.8s linear infinite;
}

.arena-card-top,
.arena-screen,
.build-queue {
  position: relative;
  z-index: 1;
}

.arena-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 900;
}

.arena-card-top strong {
  color: var(--cyan);
}

.arena-screen {
  height: 372px;
  display: block;
  padding: 16px 24px;
}

.engine-viewport {
  position: absolute;
  inset: 16px 24px;
  width: calc(100% - 48px);
  height: calc(100% - 32px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 50% 45%, rgba(18, 217, 255, 0.1), transparent 54%),
    rgba(0, 0, 0, 0.28);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 82% 100%, 0 100%);
}

.viewport-hud {
  position: absolute;
  left: 42px;
  top: 34px;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid rgba(18, 217, 255, 0.2);
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}

.viewport-hud span,
.viewport-hud strong {
  text-transform: uppercase;
}

.viewport-hud span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.viewport-hud strong {
  color: var(--cyan);
  font-size: 1rem;
}

.engine-mode-controls {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 34px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.engine-mode-controls button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--soft);
  background: rgba(0, 0, 0, 0.42);
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.engine-mode-controls button.active,
.engine-mode-controls button:hover {
  color: #fff;
  border-color: rgba(255, 39, 72, 0.56);
  background: linear-gradient(135deg, rgba(255, 39, 72, 0.42), rgba(18, 217, 255, 0.18));
}

.build-queue {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 24px 24px;
}

.build-queue div {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.build-queue span,
.build-queue strong {
  display: block;
}

.build-queue span {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.build-queue strong {
  color: #fff;
}

.sponsor-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 39, 72, 0.28);
  border-bottom: 1px solid rgba(18, 217, 255, 0.2);
  background: #05070b;
  background-image: linear-gradient(90deg, rgba(255, 39, 72, 0.08), transparent 28%, rgba(18, 217, 255, 0.08) 60%, transparent);
  background-size: 180px 100%;
  animation: marqueeDrift 9s linear infinite;
}

.sponsor-strip span {
  min-height: 74px;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 248, 251, 0.62);
  font-size: clamp(0.78rem, 1.3vw, 1rem);
  font-weight: 900;
  text-transform: uppercase;
}

.motion-lab {
  padding: clamp(54px, 8vw, 112px) clamp(16px, 4vw, 44px);
  background:
    radial-gradient(circle at 24% 14%, rgba(18, 217, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 80% 54%, rgba(255, 39, 72, 0.12), transparent 25rem),
    #05070b;
  border-bottom: 1px solid rgba(18, 217, 255, 0.18);
}

.motion-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 16px;
}

.motion-panel {
  display: grid;
  gap: 14px;
  min-height: 420px;
}

.motion-panel-wide {
  grid-row: span 2;
  min-height: 760px;
}

.motion-stage {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(18, 217, 255, 0.24);
  background: #02050a;
  box-shadow: inset 0 0 80px rgba(18, 217, 255, 0.08), 0 24px 70px rgba(0, 0, 0, 0.34);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
}

.motion-panel-wide .motion-stage {
  min-height: 620px;
}

.proof-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.motion-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 14%, transparent 78%, rgba(0, 0, 0, 0.48)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.028) 1px, transparent 1px, transparent 5px);
  mix-blend-mode: screen;
  opacity: 0.62;
}

.shot-tag {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255, 178, 31, 0.42);
  background: rgba(0, 0, 0, 0.58);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.motion-panel h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.9rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.motion-panel p {
  margin: 0;
  color: var(--muted);
}

.creator-console {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 0.98fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: stretch;
  padding: clamp(44px, 6vw, 76px) clamp(16px, 4vw, 44px);
  background:
    linear-gradient(115deg, rgba(255, 39, 72, 0.14), transparent 42%),
    #070a10;
  border-bottom: 1px solid rgba(18, 217, 255, 0.16);
}

.console-copy {
  display: grid;
  align-content: center;
  max-width: 560px;
  justify-self: end;
}

.console-copy h2,
.economy-copy h2,
.studio-preview-grid h2 {
  margin: 10px 0 12px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.console-copy p,
.economy-copy p,
.studio-preview-grid p {
  color: var(--muted);
  font-size: 1.04rem;
}

.media-proof {
  padding: clamp(54px, 8vw, 110px) clamp(16px, 4vw, 44px);
  background:
    radial-gradient(circle at 28% 12%, rgba(18, 217, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 86% 45%, rgba(255, 39, 72, 0.1), transparent 24rem),
    #05070b;
  border-bottom: 1px solid rgba(18, 217, 255, 0.18);
}

.media-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(300px, 0.64fr);
  gap: 16px;
}

.media-tile {
  display: grid;
  gap: 14px;
  min-height: 360px;
}

.media-tile-large {
  grid-row: span 2;
  min-height: 720px;
}

.media-tile h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.media-tile p {
  margin: 0;
  color: var(--muted);
}

.media-visual {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(18, 217, 255, 0.2);
  background:
    radial-gradient(circle at 70% 32%, rgba(18, 217, 255, 0.2), transparent 28%),
    linear-gradient(145deg, rgba(255, 39, 72, 0.22), transparent 36%),
    #070b12;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
}

.media-tile-large .media-visual {
  min-height: 590px;
}

.media-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(600px) rotateX(58deg) translateY(36%);
  transform-origin: center bottom;
  animation: marqueeDrift 7s linear infinite;
}

.media-visual::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 80px rgba(18, 217, 255, 0.08);
}

.media-visual i {
  position: absolute;
  display: block;
  background: linear-gradient(180deg, rgba(18, 217, 255, 0.7), rgba(255, 39, 72, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: floatDeck 5s ease-in-out infinite;
}

.world-shot i:nth-of-type(1) {
  left: 18%;
  bottom: 20%;
  width: 18%;
  height: 32%;
}

.world-shot i:nth-of-type(2) {
  left: 44%;
  bottom: 26%;
  width: 24%;
  height: 46%;
  animation-delay: -1s;
}

.world-shot i:nth-of-type(3) {
  right: 13%;
  bottom: 18%;
  width: 15%;
  height: 38%;
  animation-delay: -2s;
}

.character-shot i:nth-of-type(1),
.character-shot i:nth-of-type(2),
.character-shot i:nth-of-type(3) {
  width: 54px;
  height: 156px;
  bottom: 18%;
  border-radius: 999px 999px 18px 18px;
}

.character-shot i:nth-of-type(1) {
  left: 28%;
}

.character-shot i:nth-of-type(2) {
  left: 48%;
  height: 190px;
  animation-delay: -1.4s;
}

.character-shot i:nth-of-type(3) {
  left: 68%;
  animation-delay: -2.2s;
}

.economy-shot i {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 178, 31, 0.95), rgba(255, 39, 72, 0.22));
}

.economy-shot i:nth-of-type(1) {
  left: 25%;
  top: 24%;
}

.economy-shot i:nth-of-type(2) {
  left: 54%;
  top: 42%;
  animation-delay: -1.2s;
}

.economy-shot i:nth-of-type(3) {
  right: 16%;
  bottom: 22%;
  animation-delay: -2.1s;
}

.shot-tag {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  padding: 8px 10px;
  border: 1px solid rgba(18, 217, 255, 0.26);
  background: rgba(0, 0, 0, 0.42);
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin-top: 34px;
}

.metric {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(18, 217, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(18, 217, 255, 0.08), rgba(255, 39, 72, 0.06)),
    rgba(4, 8, 13, 0.72);
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% 76%, 88% 100%, 0 100%);
}

.metric strong {
  display: block;
  font-size: 1.28rem;
  color: var(--text);
  text-transform: uppercase;
}

.metric span {
  color: var(--muted);
  font-size: 0.86rem;
}

.launch-panel,
.tool-panel,
.auth-panel,
.project-card,
.stat,
.workspace-card {
  border: 1px solid rgba(18, 217, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(18, 217, 255, 0.08), rgba(255, 39, 72, 0.045)),
    var(--panel);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.launch-panel {
  position: relative;
  padding: 24px;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}

.launch-panel::before,
.tool-panel::before,
.workspace-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 2px solid rgba(255, 39, 72, 0.55);
  opacity: 0.55;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.panel-heading h2,
.panel-heading h3 {
  margin: 0;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.panel-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(18, 217, 255, 0.38);
  background: rgba(18, 217, 255, 0.11);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  text-transform: uppercase;
}

.badge.gold {
  border-color: rgba(242, 184, 75, 0.35);
  color: var(--gold);
  background: rgba(242, 184, 75, 0.1);
}

.badge.coral {
  border-color: rgba(241, 95, 74, 0.35);
  color: #ffb2bd;
  background: rgba(255, 39, 72, 0.12);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--soft);
  font-size: 0.84rem;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(227, 238, 248, 0.17);
  border-radius: var(--radius);
  padding: 11px 12px;
  outline: none;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(18, 217, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(18, 217, 255, 0.12);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.section-band {
  padding: clamp(44px, 7vw, 88px) clamp(16px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(255, 39, 72, 0.045), transparent 36%, rgba(18, 217, 255, 0.04)),
    transparent;
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-title {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.42fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 20px;
  border: 1px solid rgba(18, 217, 255, 0.16);
  border-top: 3px solid var(--cyan);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 42%),
    var(--panel-strong);
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.feature::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-right: 2px solid rgba(255, 255, 255, 0.16);
  border-bottom: 2px solid rgba(255, 255, 255, 0.16);
}

.feature:nth-child(2) {
  border-top-color: var(--coral);
}

.feature:nth-child(3) {
  border-top-color: var(--gold);
}

.feature:nth-child(4) {
  border-top-color: var(--green);
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.feature p {
  color: var(--muted);
  margin: 0;
}

.engine-showcase {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, minmax(0, 0.76fr));
  grid-auto-rows: minmax(220px, auto);
  gap: 14px;
}

.engine-card {
  position: relative;
  min-height: 250px;
  padding: 22px;
  display: grid;
  align-content: end;
  border: 1px solid rgba(18, 217, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(18, 217, 255, 0.09), transparent 35%),
    linear-gradient(315deg, rgba(255, 39, 72, 0.11), transparent 40%),
    rgba(9, 14, 21, 0.96);
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
  overflow: hidden;
}

.engine-card:hover {
  transform: translateY(-6px);
  border-color: rgba(18, 217, 255, 0.42);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38), 0 0 34px rgba(18, 217, 255, 0.1);
}

.engine-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.7;
}

.engine-card > * {
  position: relative;
  z-index: 1;
}

.engine-card-large {
  grid-row: span 2;
  min-height: 520px;
  background:
    linear-gradient(145deg, rgba(255, 39, 72, 0.2), transparent 42%),
    linear-gradient(315deg, rgba(18, 217, 255, 0.15), transparent 48%),
    rgba(9, 14, 21, 0.96);
}

.engine-card h3 {
  max-width: 520px;
  margin: 16px 0 10px;
  font-size: clamp(1.55rem, 3vw, 3.2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.engine-card:not(.engine-card-large) h3 {
  font-size: clamp(1.25rem, 2vw, 1.85rem);
}

.engine-card p {
  margin: 0;
  color: var(--muted);
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--soft);
  background: rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 900;
}

.quality-lab {
  padding: clamp(54px, 8vw, 110px) clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(18, 217, 255, 0.16);
  background:
    radial-gradient(circle at 82% 22%, rgba(124, 61, 255, 0.2), transparent 28rem),
    linear-gradient(135deg, rgba(18, 217, 255, 0.08), transparent 44%, rgba(255, 39, 72, 0.08)),
    #060910;
}

.quality-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(320px, 0.52fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: start;
}

.quality-copy h2 {
  margin: 10px 0 14px;
  font-size: clamp(2.3rem, 5.5vw, 5.6rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.quality-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}

.quality-board {
  position: relative;
  min-height: 360px;
  padding: 22px;
  border: 1px solid rgba(18, 217, 255, 0.24);
  background:
    linear-gradient(145deg, rgba(18, 217, 255, 0.12), rgba(255, 39, 72, 0.1)),
    rgba(4, 7, 12, 0.9);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
  animation: pulseGlow 5s ease-in-out infinite;
}

.quality-score {
  display: grid;
  place-items: center;
  min-height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle, rgba(54, 242, 138, 0.18), transparent 58%),
    rgba(0, 0, 0, 0.24);
}

.quality-score span,
.quality-score strong {
  display: block;
  text-transform: uppercase;
}

.quality-score span {
  color: var(--muted);
  font-weight: 900;
}

.quality-score strong {
  color: #fff;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.85;
  animation: counterPulse 2.6s ease-in-out infinite;
}

.quality-bars {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.quality-bars div {
  display: grid;
  gap: 7px;
}

.quality-bars span {
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quality-bars i {
  position: relative;
  height: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.quality-bars i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--level);
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--cyan));
  animation: qualityFill 2.4s ease-in-out infinite alternate;
}

@keyframes qualityFill {
  from {
    transform: scaleX(0.78);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.ai-tool-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ai-tool-grid article {
  position: relative;
  min-height: 220px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(145deg, rgba(18, 217, 255, 0.08), transparent 48%),
    rgba(10, 15, 23, 0.9);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 84% 100%, 0 100%);
  transition: transform 180ms ease, border-color 180ms ease;
}

.ai-tool-grid article:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 39, 72, 0.42);
}

.ai-tool-grid b {
  color: var(--coral);
  font-size: 0.78rem;
}

.ai-tool-grid h3 {
  margin: 52px 0 10px;
  text-transform: uppercase;
}

.ai-tool-grid p {
  margin: 0;
  color: var(--muted);
}

.economy-arena {
  padding: clamp(54px, 8vw, 110px) clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(255, 39, 72, 0.2);
  background:
    radial-gradient(circle at 55% 48%, rgba(18, 217, 255, 0.13), transparent 28rem),
    radial-gradient(circle at 78% 42%, rgba(255, 39, 72, 0.13), transparent 24rem),
    #05070b;
}

.economy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 0.78fr) minmax(280px, 0.58fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: center;
}

.economy-orbit {
  position: relative;
  aspect-ratio: 1;
  min-height: 360px;
  border: 1px solid rgba(18, 217, 255, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 39, 72, 0.18), transparent 23%),
    radial-gradient(circle, transparent 42%, rgba(18, 217, 255, 0.1) 43%, transparent 45%);
}

.economy-orbit::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px dashed rgba(18, 217, 255, 0.36);
  border-radius: 50%;
  animation: orbitRotate 18s linear infinite;
}

.economy-orbit::after {
  content: "";
  position: absolute;
  inset: 21%;
  border: 1px dashed rgba(255, 39, 72, 0.32);
  border-radius: 50%;
  animation: orbitRotate 13s linear infinite reverse;
}

.orbit-core {
  position: absolute;
  inset: 35%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 178, 31, 0.5);
  border-radius: 50%;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 44px rgba(255, 178, 31, 0.15);
  animation: pulseGlow 4s ease-in-out infinite;
}

.orbit-item {
  position: absolute;
  width: 132px;
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 11, 17, 0.88);
  color: var(--soft);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 86% 100%, 0 100%);
  animation: counterPulse 5s ease-in-out infinite;
}

.orbit-item.one {
  top: 10%;
  left: 8%;
}

.orbit-item.two {
  top: 12%;
  right: 4%;
}

.orbit-item.three {
  bottom: 10%;
  right: 8%;
}

.orbit-item.four {
  bottom: 12%;
  left: 4%;
}

.ledger-board {
  display: grid;
  gap: 10px;
}

.ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(18, 217, 255, 0.1), rgba(255, 39, 72, 0.06)),
    rgba(10, 15, 23, 0.88);
  transition: transform 180ms ease, border-color 180ms ease;
}

.ledger-row:hover {
  transform: translateX(8px);
  border-color: rgba(255, 39, 72, 0.36);
}

.ledger-row span {
  color: var(--muted);
}

.ledger-row strong {
  color: #fff;
  text-transform: uppercase;
}

.studio-preview-band {
  padding: clamp(54px, 8vw, 110px) clamp(16px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(255, 39, 72, 0.1), transparent 42%, rgba(18, 217, 255, 0.09)),
    #080b11;
}

.studio-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 0.9fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: center;
}

.portal-preview {
  min-height: 440px;
  padding: 20px;
  border: 1px solid rgba(18, 217, 255, 0.2);
  background:
    linear-gradient(145deg, rgba(18, 217, 255, 0.1), rgba(255, 39, 72, 0.09)),
    rgba(5, 8, 13, 0.9);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 88% 100%, 0 100%);
}

.preview-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.preview-topline strong {
  color: var(--cyan);
}

.preview-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.preview-panels div {
  min-height: 104px;
  display: grid;
  align-content: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
}

.preview-panels strong,
.preview-panels span {
  display: block;
}

.preview-panels strong {
  color: #fff;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.preview-panels span {
  color: var(--muted);
}

.preview-terminal {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: #030507;
  border: 1px solid rgba(54, 242, 138, 0.2);
  color: var(--green);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.86rem;
}

.preview-terminal span::before {
  content: "> ";
  animation: terminalBlink 1.1s steps(2, end) infinite;
}

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

  .neural-canvas {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.portal-shell {
  padding: clamp(18px, 3vw, 34px);
}

.portal-marquee {
  width: min(1320px, 100%);
  min-height: 116px;
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 24px;
  border: 1px solid rgba(255, 39, 72, 0.24);
  background:
    linear-gradient(90deg, rgba(255, 39, 72, 0.18), transparent 40%, rgba(18, 217, 255, 0.12)),
    rgba(5, 8, 13, 0.9);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

.portal-marquee span,
.portal-marquee b {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-marquee strong {
  color: #fff;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.portal-marquee div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.portal-marquee b {
  padding: 8px 10px;
  border: 1px solid rgba(18, 217, 255, 0.2);
  background: rgba(0, 0, 0, 0.24);
}

.portal {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 0;
  background:
    radial-gradient(circle at 78% 4%, rgba(18, 217, 255, 0.08), transparent 30rem),
    transparent;
}

.sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 14px;
}

.profile-card,
.project-switcher,
.workspace {
  border: 1px solid rgba(18, 217, 255, 0.17);
  background:
    linear-gradient(145deg, rgba(18, 217, 255, 0.06), rgba(255, 39, 72, 0.04)),
    rgba(7, 11, 17, 0.9);
  border-radius: var(--radius);
}

.profile-card,
.project-switcher {
  padding: 16px;
}

.operator-label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 39, 72, 0.32);
  color: var(--gold);
  background: rgba(255, 39, 72, 0.08);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-card strong {
  display: block;
  font-size: 1.1rem;
}

.profile-card span,
.project-meta,
.muted {
  color: var(--muted);
}

.profile-card span,
.project-choice span,
.workspace-header p,
.list-item p {
  overflow-wrap: anywhere;
}

.tab-list {
  display: grid;
  gap: 8px;
}

.tab-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 45px;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  color: var(--soft);
  padding: 0 12px;
  text-align: left;
  font-weight: 900;
  text-transform: uppercase;
}

.tab-button.active,
.tab-button:hover {
  border-color: rgba(255, 39, 72, 0.38);
  background:
    linear-gradient(90deg, rgba(255, 39, 72, 0.16), rgba(18, 217, 255, 0.08));
}

.workspace {
  min-height: 680px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
}

.workspace-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.workspace-ribbon div {
  padding: 12px;
  border: 1px solid rgba(18, 217, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(18, 217, 255, 0.1), rgba(255, 39, 72, 0.07)),
    rgba(0, 0, 0, 0.22);
}

.workspace-ribbon span,
.workspace-ribbon strong {
  display: block;
  overflow-wrap: anywhere;
}

.workspace-ribbon span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-ribbon strong {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 39, 72, 0.24);
}

.workspace-header h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.creator-progress {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.creator-progress button {
  min-height: 66px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid rgba(227, 238, 248, 0.14);
  border-left: 3px solid rgba(255, 138, 42, 0.75);
  border-radius: var(--radius);
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(255, 138, 42, 0.12), rgba(18, 217, 255, 0.05)),
    rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
}

.creator-progress button.done {
  border-left-color: #25f5b3;
}

.creator-progress b,
.pipeline-step-top b {
  color: #ff8a2a;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.creator-progress span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pipeline-board,
.tool-launch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.pipeline-step,
.tool-launch-card {
  position: relative;
  min-height: 270px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(227, 238, 248, 0.13);
  border-left: 3px solid #ff8a2a;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 138, 42, 0.12), rgba(18, 217, 255, 0.06)),
    rgba(7, 11, 17, 0.9);
}

.pipeline-step.complete {
  border-left-color: #25f5b3;
}

.pipeline-step h3,
.tool-launch-card h3 {
  margin: 0;
}

.pipeline-step p,
.tool-launch-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.pipeline-step > span {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 900;
}

.pipeline-step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.system-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.system-matrix.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.system-matrix div {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(18, 217, 255, 0.17);
  border-left: 3px solid #37c4ff;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.system-matrix strong {
  color: #fff;
  font-size: 1.25rem;
}

.system-matrix span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.model-example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.model-example-grid a {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(18, 217, 255, 0.18);
  border-left: 3px solid #ff8a2a;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 75% 16%, rgba(37, 245, 179, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.04);
  color: inherit;
  text-decoration: none;
}

.model-example-grid a:hover {
  border-color: rgba(37, 245, 179, 0.46);
  background:
    radial-gradient(circle at 75% 16%, rgba(37, 245, 179, 0.22), transparent 42%),
    rgba(18, 217, 255, 0.08);
}

.model-example-grid strong {
  color: #fff;
  text-transform: uppercase;
}

.model-example-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.deploy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 14px;
}

.deploy-hero {
  min-height: 620px;
}

.readiness-meter {
  height: 16px;
  overflow: hidden;
  border: 1px solid rgba(227, 238, 248, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  margin: 6px 0 18px;
}

.readiness-meter span {
  display: block;
  width: var(--ready);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8a2a, #25f5b3);
  box-shadow: 0 0 28px rgba(37, 245, 179, 0.35);
}

.stat {
  position: relative;
  padding: 16px;
  box-shadow: none;
  border-color: rgba(255, 39, 72, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 39, 72, 0.12), rgba(18, 217, 255, 0.06)),
    rgba(7, 11, 17, 0.9);
}

.stat strong {
  display: block;
  font-size: 1.7rem;
  color: #fff;
}

.stat span {
  color: var(--muted);
  font-size: 0.86rem;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.workspace-card,
.tool-panel,
.auth-panel,
.project-card {
  position: relative;
  padding: 18px;
  box-shadow: none;
  overflow: hidden;
}

.workspace-card h3,
.tool-panel h3,
.auth-panel h3,
.project-card h3 {
  margin: 0 0 10px;
  text-transform: uppercase;
}

.list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-item {
  border: 1px solid rgba(227, 238, 248, 0.13);
  border-radius: var(--radius);
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(18, 217, 255, 0.06), transparent),
    rgba(255, 255, 255, 0.035);
}

.list-item strong {
  display: block;
}

.list-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.project-list {
  display: grid;
  gap: 9px;
  max-height: 340px;
  overflow: auto;
  padding-right: 3px;
}

.project-choice {
  width: 100%;
  border: 1px solid rgba(227, 238, 248, 0.13);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: var(--radius);
  padding: 12px;
  text-align: left;
}

.project-choice.active,
.project-choice:hover {
  border-color: rgba(18, 217, 255, 0.55);
  background:
    linear-gradient(90deg, rgba(18, 217, 255, 0.14), rgba(255, 39, 72, 0.08));
}

.project-choice strong,
.project-choice span {
  display: block;
}

.project-choice span {
  color: var(--muted);
  font-size: 0.83rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.62fr);
  gap: 14px;
}

.soft-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.auth-wrap {
  min-height: calc(100svh - 142px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-cinematic {
  min-height: calc(100svh - 64px);
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 520px);
  place-items: center stretch;
  gap: clamp(28px, 5vw, 86px);
  padding: clamp(98px, 11vw, 150px) clamp(18px, 6vw, 88px) 72px;
  background: #06101a;
}

.auth-cinematic .scene-video,
.auth-cinematic .scene-video-secondary,
.auth-cinematic .scene-shade {
  position: absolute;
}

.auth-cinematic .scene-video {
  opacity: 0.86;
}

.auth-cinematic .scene-video-secondary {
  right: -18vw;
  bottom: -20vh;
  width: min(76vw, 1180px);
  opacity: 0.24;
}

.auth-copy,
.auth-panel-cinematic {
  position: relative;
  z-index: 4;
}

.auth-copy {
  width: min(760px, 100%);
  justify-self: end;
}

.auth-copy > span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-copy h1 {
  margin: 14px 0 16px;
  color: #ffffff;
  font-size: clamp(3.2rem, 7.4vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 28px 70px rgba(0, 0, 0, 0.58);
}

.auth-copy p {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  line-height: 1.56;
}

.auth-signal-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: min(680px, 100%);
  margin-top: 34px;
}

.auth-signal-row i {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-left: 3px solid #20d5ff;
  padding: 0 12px;
  background: rgba(3, 12, 20, 0.66);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-panel {
  width: min(460px, 100%);
}

.auth-panel-cinematic {
  width: min(520px, 100%);
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(32, 213, 255, 0.24);
  border-bottom-color: rgba(255, 138, 42, 0.42);
  background:
    linear-gradient(135deg, rgba(8, 23, 36, 0.92), rgba(15, 10, 21, 0.88)),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 42px 42px;
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.56);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.auth-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-toggle button {
  flex: 1;
}

.auth-panel-cinematic .panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.auth-panel-cinematic .panel-heading h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(1.28rem, 2vw, 1.85rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.auth-panel-cinematic .panel-heading p {
  margin: 0;
  color: rgba(213, 231, 244, 0.7);
  line-height: 1.45;
}

.auth-panel-cinematic .field-grid {
  grid-template-columns: 1fr;
}

.auth-panel-cinematic .field input {
  min-height: 54px;
  border-radius: 4px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(1, 8, 14, 0.74);
  color: #ffffff;
}

.auth-panel-cinematic .primary-button {
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff3145, #ff8a2a);
  color: #ffffff;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 12px 50%);
  box-shadow: none;
}

.auth-panel-cinematic .secondary-button {
  border-color: rgba(32, 213, 255, 0.34);
  background: rgba(15, 40, 58, 0.74);
  color: #ffffff;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 420px;
  border: 1px dashed rgba(213, 231, 244, 0.22);
  border-radius: var(--radius);
  text-align: center;
  padding: 28px;
}

.empty-state h2 {
  margin: 0 0 10px;
}

.empty-state p {
  color: var(--muted);
  max-width: 560px;
}

.preview-stage {
  min-height: 360px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(18, 217, 255, 0.36);
  background:
    linear-gradient(145deg, rgba(18, 217, 255, 0.14), rgba(255, 39, 72, 0.13)),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #070d14;
  background-size: auto, 34px 34px, auto;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.preview-stage h3,
.preview-stage p {
  margin: 0;
}

.choice-row {
  display: grid;
  gap: 9px;
}

.choice-button {
  width: 100%;
  min-height: 44px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(227, 238, 248, 0.16);
  border-radius: var(--radius);
  text-align: left;
  padding: 10px 12px;
  font-weight: 800;
}

.choice-button:hover {
  border-color: var(--cyan);
  background: rgba(18, 217, 255, 0.12);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: min(360px, calc(100vw - 36px));
  min-height: 46px;
  display: none;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(22, 198, 212, 0.38);
  background: #101b24;
  color: var(--text);
  box-shadow: var(--shadow);
}

.toast.show {
  display: flex;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(16px, 4vw, 44px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #0a0e13;
}

.mobile-only {
  display: none;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topnav {
    display: none;
  }

  .hero-grid,
  .hero-stage,
  .theater-grid,
  .creator-console,
  .motion-grid,
  .media-proof-grid,
  .economy-grid,
  .quality-grid,
  .studio-preview-grid,
  .section-title,
  .portal,
  .portal-marquee,
  .agent-layout,
  .split,
  .deploy-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: auto;
  }

  .theater-grid {
    min-height: auto;
  }

  .hero-copy,
  .console-copy {
    justify-self: stretch;
  }

  .theater-timeline {
    margin-top: 12px;
  }

  .arena-card {
    min-height: 430px;
  }

  .sponsor-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .engine-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-tile-large {
    grid-row: auto;
    min-height: 520px;
  }

  .motion-panel-wide {
    grid-row: auto;
    min-height: 560px;
  }

  .media-tile-large .media-visual {
    min-height: 390px;
  }

  .motion-panel-wide .motion-stage {
    min-height: 430px;
  }

  .ai-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .engine-card-large {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 360px;
  }

  .sidebar {
    position: static;
  }

  .feature-grid,
  .stats-grid,
  .pipeline-board,
  .tool-launch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .creator-progress {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .portal-marquee div {
    justify-content: flex-start;
  }

  .workspace-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-example-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 12px 14px;
    gap: 8px;
  }

  .portal {
    padding: 14px;
  }

  .portal-shell {
    padding: 14px;
  }

  .portal {
    padding: 0;
  }

  .portal-marquee {
    min-height: auto;
    padding: 16px;
  }

  .creator-progress,
  .pipeline-board,
  .tool-launch-grid,
  .system-matrix,
  .system-matrix.compact {
    grid-template-columns: 1fr;
  }

  .portal-marquee strong {
    font-size: clamp(1.8rem, 11vw, 3rem);
  }

  .workspace-ribbon {
    grid-template-columns: 1fr;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 0.8rem;
  }

  .brand strong {
    font-size: 0.82rem;
  }

  .account-actions {
    gap: 6px;
  }

  .account-actions .muted,
  .brand small {
    display: none;
  }

  .account-actions .ghost-button {
    display: none;
  }

  .account-actions .primary-button,
  .account-actions .secondary-button {
    min-height: 40px;
    padding: 0 11px;
    font-size: 0.76rem;
  }

  .hero {
    padding: 26px 16px;
    background: #02050a;
  }

  .engine-theater {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(3rem, 18vw, 4.4rem);
  }

  .hero h1 small {
    font-size: clamp(1.15rem, 8vw, 2rem);
  }

  .theater-stats,
  .engine-dock .engine-mode-controls,
  .theater-modes {
    grid-template-columns: 1fr;
  }

  .mode-brief {
    min-height: auto;
  }

  .theater-timeline {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .theater-timeline i {
    height: 1px;
  }

  .arena-card {
    min-height: 380px;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 88% 100%, 0 100%);
  }

  .arena-screen {
    height: 430px;
    padding: 10px 18px;
  }

  .engine-viewport {
    inset: 10px 18px;
    width: calc(100% - 36px);
    height: calc(100% - 20px);
  }

  .viewport-hud {
    left: 28px;
    top: 22px;
  }

  .engine-mode-controls {
    left: 28px;
    right: 28px;
    bottom: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .build-queue {
    grid-template-columns: 1fr;
    padding: 0 18px 18px;
  }

  .sponsor-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sponsor-strip span {
    min-height: 56px;
  }

  .engine-showcase,
  .ai-tool-grid,
  .motion-grid,
  .media-proof-grid,
  .preview-panels {
    grid-template-columns: 1fr;
  }

  .media-tile,
  .media-tile-large {
    min-height: auto;
  }

  .media-visual,
  .motion-stage,
  .media-tile-large .media-visual {
    min-height: 280px;
  }

  .motion-panel,
  .motion-panel-wide {
    min-height: auto;
  }

  .motion-panel-wide .motion-stage {
    min-height: 340px;
  }

  .engine-card,
  .engine-card-large {
    min-height: 260px;
  }

  .economy-orbit {
    min-height: 300px;
  }

  .orbit-item {
    width: 112px;
    font-size: 0.66rem;
  }

  .field-grid,
  .feature-grid,
  .stats-grid,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .workspace-header,
  .site-footer {
    flex-direction: column;
  }

  .workspace {
    padding: 16px;
  }

  .hero-actions,
  .form-actions,
  .toolbar {
    align-items: stretch;
  }

  .hero-actions button,
  .form-actions button,
  .toolbar button {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .auth-cinematic {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }

  .auth-copy,
  .auth-panel-cinematic {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }
}

/* Final Comic30 portal skin: keep the creator app visually tied to the landing page. */
body.portal-surface {
  background: #03070c;
  color: #f8fbff;
  font-family: "Arial Narrow", "Roboto Condensed", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.portal-surface .portal-shell {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 66px);
  overflow: hidden;
  padding: 108px clamp(18px, 5vw, 76px) clamp(44px, 6vw, 84px);
  background: #03070c;
}

body.portal-surface .portal-backdrop-video {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0.46;
  filter: saturate(1.15) contrast(1.08) brightness(0.62);
  pointer-events: none;
}

body.portal-surface .portal-backdrop-shade {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(3, 7, 12, 0.74), rgba(3, 7, 12, 0.92) 50%, #03070c 100%),
    radial-gradient(circle at 18% 20%, rgba(255, 138, 42, 0.2), transparent 34rem),
    radial-gradient(circle at 76% 16%, rgba(32, 213, 255, 0.16), transparent 38rem),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: auto, auto, auto, 78px 78px, 78px 78px;
  pointer-events: none;
}

body.portal-surface .portal-marquee,
body.portal-surface .portal {
  width: min(1560px, 100%);
  margin-inline: auto;
}

body.portal-surface .portal-marquee {
  min-height: clamp(150px, 17vw, 246px);
  margin-bottom: clamp(18px, 3vw, 32px);
  display: grid;
  grid-template-columns: minmax(220px, 0.48fr) minmax(0, 0.88fr) minmax(270px, 0.48fr);
  gap: clamp(18px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 4vw, 52px) clamp(20px, 5vw, 60px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom-color: rgba(255, 138, 42, 0.34);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255, 138, 42, 0.18), rgba(5, 14, 22, 0.74) 34%, rgba(2, 8, 13, 0.4)),
    rgba(2, 8, 13, 0.7);
  box-shadow: 0 42px 130px rgba(0, 0, 0, 0.42);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%);
}

body.portal-surface .portal-marquee span,
body.portal-surface .portal-marquee b,
body.portal-surface .workspace-ribbon span,
body.portal-surface .operator-label,
body.portal-surface .eyebrow {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body.portal-surface .portal-marquee strong {
  max-width: 760px;
  color: #fff;
  font-size: clamp(3.4rem, 6.4vw, 7.2rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-shadow: 0 28px 72px rgba(0, 0, 0, 0.56);
}

body.portal-surface .portal-marquee div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  justify-content: stretch;
}

body.portal-surface .portal-marquee b {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(32, 213, 255, 0.18);
  border-left: 3px solid #20d5ff;
  background: rgba(1, 9, 15, 0.7);
}

body.portal-surface .portal {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
  padding: 0;
  background: transparent;
}

body.portal-surface .sidebar,
body.portal-surface .workspace,
body.portal-surface .profile-card,
body.portal-surface .project-switcher,
body.portal-surface .workspace-card,
body.portal-surface .tool-panel,
body.portal-surface .stat,
body.portal-surface .pipeline-step,
body.portal-surface .tool-launch-card,
body.portal-surface .system-matrix div,
body.portal-surface .model-example-grid a {
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 138, 42, 0.08), rgba(32, 213, 255, 0.045)),
    rgba(1, 8, 14, 0.7);
  box-shadow: none;
}

body.portal-surface .sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(1, 10, 16, 0.78);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.34);
}

body.portal-surface .profile-card,
body.portal-surface .project-switcher {
  padding: 18px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
}

body.portal-surface .operator-label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 138, 42, 0.42);
  background: rgba(255, 138, 42, 0.12);
}

body.portal-surface .profile-card strong,
body.portal-surface .project-switcher h3,
body.portal-surface .workspace-card h3,
body.portal-surface .tool-panel h3,
body.portal-surface .panel-heading h2,
body.portal-surface .panel-heading h3 {
  color: #fff;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

body.portal-surface .tab-list {
  gap: 10px;
}

body.portal-surface .tab-button,
body.portal-surface .project-choice {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid transparent;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.portal-surface .tab-button.active,
body.portal-surface .tab-button:hover,
body.portal-surface .project-choice.active,
body.portal-surface .project-choice:hover {
  border-color: rgba(255, 138, 42, 0.58);
  border-left-color: #ff8a2a;
  background:
    linear-gradient(90deg, rgba(255, 138, 42, 0.24), rgba(32, 213, 255, 0.06)),
    rgba(255, 255, 255, 0.04);
  color: #fff;
}

body.portal-surface .workspace {
  min-height: 720px;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid rgba(255, 138, 42, 0.68);
  background:
    linear-gradient(135deg, rgba(4, 20, 32, 0.9), rgba(10, 8, 17, 0.84)),
    rgba(2, 8, 13, 0.88);
  box-shadow: 0 42px 130px rgba(0, 0, 0, 0.42);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

body.portal-surface .workspace-header {
  min-height: 160px;
  align-items: center;
  padding: clamp(10px, 1.6vw, 20px) 0 clamp(22px, 3vw, 34px);
  border-bottom: 1px solid rgba(255, 138, 42, 0.28);
}

body.portal-surface .workspace-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffb13d;
}

body.portal-surface .workspace-header .eyebrow::before {
  content: "";
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #ff3145, #ff8a2a);
}

body.portal-surface .workspace-header h1 {
  max-width: 920px;
  margin-top: 10px;
  color: #fff;
  font-size: clamp(3.1rem, 6vw, 6.8rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0;
  text-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

body.portal-surface .workspace-header p,
body.portal-surface .profile-card span,
body.portal-surface .project-meta,
body.portal-surface .muted,
body.portal-surface .list-item p {
  color: rgba(213, 231, 244, 0.68);
}

body.portal-surface .workspace-ribbon div,
body.portal-surface .workspace-card,
body.portal-surface .tool-panel,
body.portal-surface .stat,
body.portal-surface .pipeline-step,
body.portal-surface .tool-launch-card {
  padding: clamp(14px, 2vw, 20px);
  border-top: 2px solid rgba(255, 138, 42, 0.42);
}

body.portal-surface .field span,
body.portal-surface .field label {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 900;
}

body.portal-surface .field input,
body.portal-surface .field textarea,
body.portal-surface .field select {
  min-height: 52px;
  border-radius: 4px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(1, 8, 14, 0.78);
  color: #fff;
  font-size: 0.98rem;
}

body.portal-surface .field textarea {
  min-height: 138px;
}

body.portal-surface .primary-button,
body.portal-surface .account-actions .secondary-button {
  min-height: 48px;
  padding-inline: 24px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff3145, #ff8a2a);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 12px 50%);
  box-shadow: 0 10px 0 rgba(117, 38, 5, 0.52);
}

body.portal-surface .secondary-button,
body.portal-surface .ghost-button,
body.portal-surface .icon-button {
  border-radius: 4px;
  border-color: rgba(32, 213, 255, 0.26);
  background: rgba(10, 35, 52, 0.62);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 900;
  text-transform: uppercase;
}

body.portal-surface .site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #03070c;
}

@media (max-width: 900px) {
  body.portal-surface .portal-marquee,
  body.portal-surface .portal {
    grid-template-columns: 1fr;
  }

  body.portal-surface .portal-marquee {
    min-height: auto;
    padding: 26px 20px;
  }

  body.portal-surface .portal-marquee strong {
    font-size: clamp(3rem, 12vw, 5.2rem);
  }

  body.portal-surface .sidebar {
    position: relative;
    top: auto;
  }

  body.portal-surface .workspace-header {
    min-height: auto;
    display: grid;
  }
}

@media (max-width: 640px) {
  body.portal-surface .portal-shell {
    padding: 86px 14px 28px;
  }

  body.portal-surface .portal-marquee div,
  body.portal-surface .field-grid {
    grid-template-columns: 1fr;
  }

  body.portal-surface .workspace {
    padding: 16px;
  }

  body.portal-surface .workspace-header h1 {
    font-size: clamp(2.4rem, 15vw, 4.35rem);
  }
}

/* Portal polish pass: denser command-center proportions and landing-page controls. */
body.portal-surface .topbar {
  min-height: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(1, 10, 16, 0.98), rgba(4, 12, 20, 0.94)),
    rgba(1, 8, 14, 0.96);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
}

body.portal-surface .brand strong,
body.portal-surface .topnav .ghost-button,
body.portal-surface .account-actions button {
  font-family: "Arial Narrow", "Roboto Condensed", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

body.portal-surface .brand-mark {
  width: 56px;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

body.portal-surface .topnav .ghost-button {
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
}

body.portal-surface .topnav .ghost-button:hover {
  color: #fff;
  transform: translateY(-1px);
}

body.portal-surface .portal-marquee {
  min-height: clamp(132px, 14vw, 202px);
  grid-template-columns: minmax(210px, 0.55fr) minmax(0, 0.82fr) minmax(250px, 0.52fr);
}

body.portal-surface .portal-marquee strong {
  font-size: clamp(3rem, 5.1vw, 5.9rem);
}

body.portal-surface .workspace-header {
  min-height: 136px;
}

body.portal-surface .workspace-header h1 {
  font-size: clamp(2.9rem, 5.2vw, 5.9rem);
}

body.portal-surface .workspace-ribbon {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

body.portal-surface .workspace-ribbon div {
  min-height: 76px;
  display: grid;
  align-content: center;
  border-top-color: rgba(32, 213, 255, 0.7);
}

body.portal-surface .workspace-ribbon strong,
body.portal-surface .stat strong {
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

body.portal-surface .stats-grid,
body.portal-surface .workspace-grid {
  gap: 14px;
}

body.portal-surface .creator-progress {
  gap: 10px;
  margin: 20px 0 22px;
}

body.portal-surface .creator-progress button {
  min-height: 76px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid rgba(255, 138, 42, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 138, 42, 0.12), rgba(32, 213, 255, 0.06)),
    rgba(1, 8, 14, 0.74);
  color: rgba(255, 255, 255, 0.86);
  font-family: "Arial Narrow", "Roboto Condensed", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

body.portal-surface .creator-progress button.done {
  border-left-color: #22ffc8;
  background:
    linear-gradient(135deg, rgba(34, 255, 200, 0.16), rgba(255, 138, 42, 0.08)),
    rgba(1, 8, 14, 0.78);
}

body.portal-surface .workspace-card,
body.portal-surface .tool-panel,
body.portal-surface .pipeline-step,
body.portal-surface .stat {
  position: relative;
  overflow: hidden;
}

body.portal-surface .workspace-card::before,
body.portal-surface .tool-panel::before,
body.portal-surface .pipeline-step::before,
body.portal-surface .stat::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #22ffc8, #20d5ff, #ff8a2a);
  opacity: 0.8;
}

body.portal-surface .panel-heading {
  align-items: start;
}

body.portal-surface .badge {
  border-radius: 0;
  border: 1px solid rgba(32, 213, 255, 0.28);
  background: rgba(1, 16, 24, 0.72);
  color: #22ffc8;
  font-weight: 900;
  text-transform: uppercase;
}

body.portal-surface .list {
  gap: 10px;
}

body.portal-surface .list-item,
body.portal-surface .ledger-row {
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(1, 8, 14, 0.62);
}

body.portal-surface .list-item strong,
body.portal-surface .pipeline-step h3 {
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

body.portal-surface .preview-stage {
  border-radius: 0;
  border: 1px solid rgba(32, 213, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(32, 213, 255, 0.1), rgba(255, 138, 42, 0.08)),
    rgba(1, 8, 14, 0.76);
}

body.portal-surface .choice-button {
  border-radius: 0;
  border-color: rgba(255, 138, 42, 0.34);
  background: rgba(255, 138, 42, 0.12);
  color: #fff;
  font-weight: 900;
}

@media (max-width: 1100px) {
  body.portal-surface .portal-marquee {
    grid-template-columns: 1fr;
  }

  body.portal-surface .workspace-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.portal-surface .workspace-ribbon {
    grid-template-columns: 1fr;
  }

  body.portal-surface .portal-marquee strong,
  body.portal-surface .workspace-header h1 {
    line-height: 0.92;
  }
}
