:root {
  color-scheme: dark;
  --bg: #050608;
  --panel: rgba(12, 15, 19, .92);
  --panel-2: rgba(20, 24, 30, .92);
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .24);
  --text: #f5f7fb;
  --muted: #8792a3;
  --cyan: #35d7f2;
  --blue: #4f7df3;
  --amber: #f2c14e;
  --rose: #d38ca2;
  --green: #68c29a;
}

* {
  box-sizing: border-box;
}

html,
body,
.promo-shell {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "SF Pro Display", "SF Pro Text", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

.promo-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 18% 18%, rgba(53, 215, 242, .18), transparent 32%),
    radial-gradient(circle at 82% 72%, rgba(211, 140, 162, .18), transparent 30%),
    linear-gradient(135deg, #050608, #0b0f16 48%, #050608);
}

.hero-sequence {
  position: relative;
  display: grid;
  width: min(1600px, 100%);
  min-height: min(900px, calc(100vh - 40px));
  overflow: hidden;
  grid-template-columns: 1fr 720px;
  grid-template-rows: 76px minmax(0, 1fr) 126px 44px;
  gap: 0 32px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .065), transparent 21%),
    rgba(5, 6, 8, .74);
  box-shadow: 0 34px 140px rgba(0, 0, 0, .68), inset 0 1px 0 rgba(255, 255, 255, .14);
  isolation: isolate;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-position: center;
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 62% 44%, #000 0 46%, transparent 76%);
}

.light-sweep {
  position: absolute;
  inset: -22% 36% -22% 58%;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
  filter: blur(3px);
  transform: rotate(17deg);
  animation: sweep 8s ease-in-out infinite;
}

.promo-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-sigil {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(53, 215, 242, .54);
  background: linear-gradient(135deg, rgba(53, 215, 242, .2), rgba(79, 125, 243, .06));
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 0 34px rgba(53, 215, 242, .18);
}

.brand-lockup strong,
.brand-lockup span {
  display: block;
}

.brand-lockup strong {
  font-size: 21px;
  letter-spacing: 0;
}

.brand-lockup span,
.runtime-chip,
.eyebrow span,
.lead,
.feature-step em,
.feature-copy p,
.promo-footer {
  color: var(--muted);
}

.runtime-chip {
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.copy-track {
  align-self: center;
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.eyebrow span {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(40px, 4.6vw, 76px);
  line-height: 1.06;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h1 span + span {
  margin-top: 8px;
  color: var(--text);
  font-size: 1em;
  font-weight: 820;
}

.lead {
  max-width: 610px;
  margin: 24px 0 0;
  font-size: 16px;
  line-height: 1.72;
}

.lead span {
  display: block;
}

.lead span + span {
  margin-top: 8px;
  color: color-mix(in srgb, var(--muted) 72%, var(--cyan));
}

.promo-login-card {
  position: absolute;
  right: 28px;
  top: 28px;
  bottom: auto;
  z-index: 20;
  display: grid;
  width: min(430px, calc(100vw - 36px));
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(53, 215, 242, .36);
  background: linear-gradient(135deg, rgba(10, 14, 18, .9), rgba(53, 215, 242, .12));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.promo-login-card label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.promo-login-card label span,
.promo-login-card button span {
  margin-left: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.promo-login-card input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 0;
  padding: 0 14px;
  outline: 0;
  background: rgba(0, 0, 0, .36);
  color: var(--text);
  font: inherit;
}

.promo-login-card input:focus {
  border-color: rgba(53, 215, 242, .72);
  box-shadow: 0 0 0 3px rgba(53, 215, 242, .12);
}

.promo-login-card button {
  height: 44px;
  min-width: 156px;
  border: 1px solid rgba(53, 215, 242, .72);
  border-radius: 0;
  background: linear-gradient(135deg, var(--cyan), #69f0ff);
  color: #061018;
  font-weight: 900;
  cursor: pointer;
}

.promo-login-card button span {
  display: block;
  margin: 2px 0 0;
  color: rgba(6, 16, 24, .62);
}

.promo-login-card p {
  min-height: 0;
  grid-column: 1 / -1;
  margin: 0;
  color: var(--amber);
  font-size: 12px;
}

.promo-login-card p:empty {
  display: none;
}

.feature-rail {
  align-self: end;
  display: grid;
  width: min(650px, 100%);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.feature-step {
  position: relative;
  min-height: 88px;
  padding: 12px 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}

.feature-step::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}

.feature-step.active {
  border-color: rgba(53, 215, 242, .62);
  background: rgba(53, 215, 242, .13);
  transform: translateY(-4px);
}

.feature-step.active::after {
  transform: scaleX(1);
  animation: progress 4.2s linear infinite;
}

.feature-step span,
.feature-step b,
.feature-step em {
  display: block;
}

.feature-step span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.feature-step b {
  margin-top: 8px;
  font-size: 14px;
}

.feature-step em {
  margin-top: 4px;
  font-size: 10px;
  font-style: normal;
  text-transform: uppercase;
}

.cinema-stage {
  grid-row: 2 / 4;
  grid-column: 2;
  display: grid;
  min-height: 610px;
  place-items: center;
  perspective: 1300px;
}

.stage-perspective {
  position: relative;
  width: 690px;
  height: 520px;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(calc(var(--tilt-y, 0deg) - 6deg));
  transform-style: preserve-3d;
  animation: orbit 9s ease-in-out infinite;
}

.workspace-card {
  position: absolute;
  inset: 50px 40px 40px;
  display: grid;
  grid-template-rows: 38px minmax(0, 1fr) 68px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(180deg, rgba(14, 18, 24, .96), rgba(6, 8, 10, .96));
  box-shadow: 0 44px 110px rgba(0, 0, 0, .62), 0 0 0 1px rgba(53, 215, 242, .08);
  transform: rotateX(58deg) rotateZ(-13deg) translateZ(0);
  transform-style: preserve-3d;
}

.workspace-topbar,
.shot-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
}

.workspace-topbar span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.workspace-topbar span:first-child {
  border-color: rgba(53, 215, 242, .5);
  color: var(--cyan);
  background: rgba(53, 215, 242, .1);
}

.workspace-layout {
  display: grid;
  min-height: 0;
  grid-template-columns: 112px minmax(0, 1fr) 112px;
}

.mini-panel {
  padding: 10px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
}

.inspector-panel {
  border-right: 0;
  border-left: 1px solid var(--line);
}

.mini-panel b,
.mini-panel small {
  display: block;
}

.mini-panel b {
  color: var(--cyan);
  font-size: 10px;
}

.mini-panel small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.asset-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 10px 0;
}

.asset-tabs span,
.asset-grid i,
.lens-row span,
.export-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
}

.asset-tabs span {
  height: 16px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.asset-grid i {
  height: 42px;
}

.asset-grid i:nth-child(2n) {
  background: rgba(53, 215, 242, .08);
}

.mini-viewport {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .13), transparent 36%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    #06080a;
  background-size: auto, 22px 22px, 22px 22px, auto;
}

.safe-line {
  position: absolute;
  inset: 44px 38px;
  border: 1px dashed rgba(53, 215, 242, .45);
}

.safe-line.title {
  inset: 66px 62px;
  border-color: rgba(242, 193, 78, .38);
}

.floor-grid {
  position: absolute;
  inset: 42% -18% -28%;
  background:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 26px 26px;
  transform: perspective(260px) rotateX(64deg);
  transform-origin: top;
}

.character {
  position: absolute;
  left: 50%;
  bottom: 82px;
  width: 48px;
  height: 118px;
  transform: translateX(-50%);
}

.character span {
  position: absolute;
  left: 50%;
  background: linear-gradient(135deg, #d9ddd8, #7f8782);
  clip-path: polygon(50% 0, 100% 28%, 84% 100%, 16% 100%, 0 28%);
  transform: translateX(-50%);
  box-shadow: inset -8px -6px 0 rgba(0, 0, 0, .16);
}

.character span:nth-child(1) {
  top: 0;
  width: 24px;
  height: 28px;
}

.character span:nth-child(2) {
  top: 30px;
  width: 42px;
  height: 48px;
}

.character span:nth-child(3) {
  top: 74px;
  left: 35%;
  width: 15px;
  height: 44px;
}

.character span:nth-child(4) {
  top: 74px;
  left: 65%;
  width: 15px;
  height: 44px;
}

.hero-character span {
  background: linear-gradient(135deg, #35d7f2, #256d86);
}

.ghost {
  opacity: .46;
  transform: translateX(-50%) scale(.68);
}

.ghost.c1 {
  left: 28%;
  bottom: 96px;
}

.ghost.c2 {
  left: 73%;
  bottom: 118px;
}

.camera-rig {
  position: absolute;
  left: 50%;
  bottom: 44px;
  width: 54px;
  height: 28px;
  border: 1px solid rgba(242, 193, 78, .7);
  transform: translateX(-50%);
}

.camera-rig::before,
.camera-rig::after {
  content: "";
  position: absolute;
  background: rgba(242, 193, 78, .62);
}

.camera-rig::before {
  inset: 8px -28px auto auto;
  width: 28px;
  height: 1px;
}

.camera-rig::after {
  left: 26px;
  top: -18px;
  width: 1px;
  height: 64px;
}

.lens-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 12px;
}

.lens-row span {
  display: grid;
  height: 24px;
  place-items: center;
  color: var(--muted);
  font-size: 9px;
}

.lens-row .hot {
  border-color: rgba(53, 215, 242, .65);
  color: var(--cyan);
  background: rgba(53, 215, 242, .12);
}

.slider {
  height: 4px;
  margin: 18px 0 0;
  background: rgba(255, 255, 255, .16);
}

.slider i {
  display: block;
  width: 64%;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

.slider.short i {
  width: 42%;
}

.toggle {
  width: 34px;
  height: 18px;
  margin-top: 16px;
  border: 1px solid rgba(53, 215, 242, .48);
  background: rgba(53, 215, 242, .12);
}

.toggle::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 3px 3px 3px auto;
  background: var(--cyan);
}

.export-button {
  display: grid;
  height: 30px;
  margin-top: 18px;
  place-items: center;
  color: var(--cyan);
  font-size: 10px;
}

.shot-strip {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.shot-strip span {
  width: 68px;
  height: 42px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
}

.shot-strip .active {
  border-color: rgba(53, 215, 242, .7);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.floating-piece {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 178px;
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(9, 12, 16, .88);
  box-shadow: 0 22px 52px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .12);
  transform: translate3d(var(--x), var(--y), var(--z)) rotateZ(var(--r));
  animation: piece-float 4.8s ease-in-out infinite;
}

.floating-piece b,
.floating-piece span {
  display: block;
}

.floating-piece b {
  color: var(--text);
  font-size: 17px;
}

.floating-piece span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.piece-camera {
  border-color: rgba(242, 193, 78, .42);
}

.piece-camera b {
  color: var(--amber);
}

.piece-focus {
  border-color: rgba(104, 194, 154, .42);
}

.piece-focus b {
  color: var(--green);
}

.piece-export {
  border-color: rgba(211, 140, 162, .42);
}

.piece-export b {
  color: var(--rose);
}

.hero-sequence[data-feature="assets"] .piece-assets,
.hero-sequence[data-feature="preview"] .workspace-card,
.hero-sequence[data-feature="lens"] .piece-camera,
.hero-sequence[data-feature="controls"] .piece-focus,
.hero-sequence[data-feature="export"] .piece-export {
  border-color: rgba(53, 215, 242, .82);
  box-shadow: 0 28px 72px rgba(53, 215, 242, .2), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.hero-sequence[data-feature="preview"] .safe-line,
.hero-sequence[data-feature="export"] .safe-line {
  animation: pulse-line 1.35s ease-in-out infinite;
}

.hero-sequence[data-feature="lens"] .lens-row .hot,
.hero-sequence[data-feature="controls"] .camera-rig {
  animation: glow-pop 1.25s ease-in-out infinite;
}

.feature-copy {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 78px minmax(0, 680px);
  gap: 20px;
  align-items: center;
  align-self: end;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.feature-index {
  color: var(--cyan);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.feature-copy h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0;
}

.feature-copy p {
  max-width: 670px;
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.8;
}

.promo-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 18px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

@keyframes orbit {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@keyframes piece-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@keyframes sweep {
  0%,
  100% {
    opacity: .12;
    transform: translateX(-20%) rotate(17deg);
  }
  50% {
    opacity: .42;
    transform: translateX(16%) rotate(17deg);
  }
}

@keyframes progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes pulse-line {
  0%,
  100% {
    opacity: .48;
  }
  50% {
    opacity: 1;
  }
}

@keyframes glow-pop {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(53, 215, 242, 0);
  }
  50% {
    box-shadow: 0 0 28px rgba(53, 215, 242, .42);
  }
}

@media (max-width: 1180px) {
  .hero-sequence {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto auto;
    min-height: auto;
  }

  .copy-track {
    grid-row: 2;
    margin-top: 42px;
  }

  .cinema-stage {
    grid-column: 1;
    grid-row: 3;
    min-height: 560px;
    margin-top: 24px;
  }

  .feature-rail {
    grid-row: 4;
  }

  .feature-copy {
    grid-row: 5;
  }

  .promo-footer {
    grid-row: 6;
  }
}

@media (max-width: 760px) {
  .promo-shell {
    padding: 0;
  }

  .hero-sequence {
    padding: 18px;
  }

  .promo-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .promo-header {
    gap: 14px;
  }

  h1 {
    font-size: 42px;
  }

  .feature-rail {
    grid-template-columns: 1fr;
  }

  .cinema-stage {
    min-height: 420px;
    overflow: hidden;
  }

  .stage-perspective {
    scale: .68;
  }

  .feature-copy {
    grid-template-columns: 1fr;
  }

  .promo-login-card {
    grid-template-columns: minmax(0, 1fr) auto;
    right: 18px;
    top: 18px;
    bottom: auto;
    width: min(360px, calc(100vw - 28px));
  }

  .promo-login-card button {
    width: auto;
  }
}

@media (max-width: 480px) {
  .promo-login-card {
    grid-template-columns: 1fr;
    top: 18px;
  }

  .promo-login-card button {
    width: 100%;
  }
}

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