@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../public/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

:root {
  --bg: #020202;
  --panel: #101010;
  --panel-2: #18181b;
  --text: #f5f4f0;
  --muted: #848484;
  --soft: #a0a0a0;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --glow: rgba(244, 243, 240, 0.18);
  --max: 1500px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 34rem),
    linear-gradient(180deg, #020202 0%, #050505 48%, #020202 100%);
  font-family: Inter, "Inter Fallback", "Noto Sans SC", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
  color: #acacac;
  transition: background 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(2, 2, 2, 0.7);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
}

.brand,
.nav-actions,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 30px;
  font-weight: 500;
  justify-self: start;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.brand img[src$="XSTAR-TV.svg"] {
  width: 106px;
  height: 50px;
  border-radius: 0;
  object-fit: contain;
}

.brand img[src$="XSTAR-TV.svg"] + span {
  display: none;
}

.nav-links {
  gap: 12px;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.nav-links a,
.lang-button {
  border: 0;
  border-radius: 999px;
  padding: 7px 16px;
  color: var(--soft);
  background: transparent;
  font-size: 14px;
  font-weight: 300;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.lang-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  justify-self: end;
  gap: 8px;
}

.lang-button {
  cursor: pointer;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 65px;
  padding: 6px 12px;
  line-height: 21px;
}

.lang-button::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #020202;
  background: #f4f3f0;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 14px 35px rgba(244, 243, 240, 0.12);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.14), 0 18px 46px rgba(244, 243, 240, 0.2);
}

.button-small {
  min-height: 28px;
  min-width: 80px;
  padding: 0 12px;
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
}

.section-pad {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 112px 40px;
}

.hero {
  min-height: 1340px;
  display: grid;
  align-content: start;
  gap: 80px;
  padding-top: 150px;
}

.hero-copy {
  max-width: 900px;
}

.hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 450;
  line-height: 1.06;
}

.hero p,
.feature-copy p {
  max-width: 620px;
  margin: 24px 0 30px;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 300;
}

.hero-stage {
  position: relative;
  width: min(980px, 90vw);
  height: 620px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 36%, rgba(255,255,255,0.12), transparent 22rem),
    #070707;
  background-size: 52px 52px, 52px 52px, auto, auto;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../public/assets/landing-bg.webp") center / cover no-repeat;
  opacity: 0.1;
}

.canvas-toolbar {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  gap: 7px;
}

.canvas-toolbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
}

.node,
.prompt-card {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 18, 20, 0.88);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
}

.node span,
.prompt-card span {
  display: block;
  padding: 10px 12px;
  color: #cfcfcf;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.node img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.node-ref {
  left: 84px;
  top: 150px;
  width: 250px;
  height: 176px;
  animation: floatNode 8s ease-in-out infinite;
}

.node-image {
  right: 110px;
  top: 92px;
  width: 330px;
  height: 226px;
  animation: floatNode 9s ease-in-out 900ms infinite;
}

.node-video {
  right: 190px;
  bottom: 64px;
  width: 380px;
  height: 270px;
  animation: floatNode 10s ease-in-out 1600ms infinite;
}

.prompt-card {
  left: 205px;
  bottom: 178px;
  width: 300px;
}

.prompt-card p {
  margin: 0;
  padding: 14px;
  color: #d8d8d8;
  font-size: 14px;
  line-height: 1.55;
}

.connector {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform-origin: left center;
}

.connector-a {
  left: 332px;
  top: 260px;
  width: 280px;
  transform: rotate(-11deg);
}

.connector-b {
  left: 480px;
  top: 410px;
  width: 210px;
  transform: rotate(18deg);
}

.trust-strip {
  width: 100%;
  margin-top: -28px;
  overflow: hidden;
  padding: 0 0 120px;
  text-align: center;
}

.trust-strip p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.15em;
}

.logo-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.logo-marquee::before,
.logo-marquee::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 14vw;
  pointer-events: none;
}

.logo-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.logo-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.logo-track img {
  height: 56px;
  max-width: 202px;
  opacity: 0.75;
  filter: grayscale(1);
}

.section-kicker {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 92px;
  color: var(--text);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 400;
}

.section-kicker span {
  color: var(--soft);
}

.split-layout,
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(44px, 8vw, 120px);
}

.feature-row + .feature-row {
  margin-top: 220px;
}

.feature-row-reverse {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
}

.feature-row-reverse .feature-copy {
  order: 2;
}

.feature-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 420;
  line-height: 1.2;
}

.agent-board,
.lens-console,
.camera-control,
.lighting-console,
.replace-console,
.model-board,
.community-wall {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 70% 15%, rgba(255,255,255,0.12), transparent 16rem),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
    #0a0a0a;
  box-shadow: 0 32px 90px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.07);
}

.agent-board {
  min-height: 520px;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.13), transparent 18rem);
  background-size: 44px 44px, 44px 44px, auto;
}

.agent-orb {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 86px;
  height: 86px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 60px var(--glow);
}

.agent-orb img {
  width: 100%;
  height: 100%;
}

.agent-node {
  position: absolute;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.agent-node-a {
  top: 72px;
  right: 92px;
  width: 220px;
}

.agent-node-b {
  left: 82px;
  bottom: 96px;
  width: 260px;
}

.agent-input {
  position: absolute;
  left: 50%;
  bottom: 36px;
  width: min(520px, calc(100% - 52px));
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #6f6f6f;
  background: rgba(24, 24, 27, 0.9);
  transform: translateX(-50%);
  font-size: 14px;
}

.lens-console {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  padding: 28px;
}

.preview-card {
  overflow: hidden;
  align-self: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #111;
}

.preview-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.equipment-stack {
  display: grid;
  align-content: center;
  gap: 14px;
}

.equipment-stack > span {
  color: var(--muted);
  font-size: 13px;
}

.equipment {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #dcdcdc;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
}

.equipment.active {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.09);
}

.equipment img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.camera-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
  padding: 30px;
}

.cube-wrap {
  display: grid;
  place-items: center;
  position: relative;
}

.cube {
  position: relative;
  width: 210px;
  height: 210px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), transparent),
    radial-gradient(circle at 30% 20%, #595959, #1a1a1a 70%);
  transform: rotateX(23deg) rotateY(-30deg);
  transform-style: preserve-3d;
  transition: transform 140ms ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 28px 60px rgba(0,0,0,0.55);
}

.cube span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: rgba(255,255,255,0.62);
  background: rgba(255,255,255,0.05);
  font-size: 13px;
}

.cube span:nth-child(1) { left: 76px; top: 20px; }
.cube span:nth-child(2) { left: 24px; top: 80px; }
.cube span:nth-child(3) { right: 24px; top: 80px; }
.cube span:nth-child(4) { left: 76px; bottom: 20px; }
.cube span:nth-child(5) { left: 76px; top: 80px; color: #fff; }

.cube-wrap button,
.replace-console button {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border: 0;
  color: rgba(255,255,255,0.38);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.control-panel {
  display: grid;
  align-content: center;
  gap: 24px;
}

.control-panel label {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.control-panel output {
  float: right;
  color: var(--text);
  margin-left: 10px;
}

input[type="range"] {
  width: 100%;
  accent-color: #f4f3f0;
}

.lighting-console {
  min-height: 520px;
}

.lighting-console > img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  filter: brightness(0.8);
}

.lighting-panel {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: min(340px, calc(100% - 56px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 13, 13, 0.74);
  backdrop-filter: blur(20px);
}

.segmented,
.light-grid {
  display: grid;
  gap: 4px;
}

.segmented {
  grid-template-columns: 1fr 1fr;
}

.segmented button,
.light-grid button {
  border: 0;
  border-radius: 8px;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.05);
  padding: 7px 10px;
  cursor: pointer;
}

.segmented button.active,
.light-grid button.active {
  color: #fff;
  background: rgba(255,255,255,0.16);
}

.meter {
  display: flex;
  justify-content: space-between;
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px;
}

.meter strong {
  color: #fff;
  font-weight: 500;
}

.light-grid {
  grid-template-columns: repeat(3, 1fr);
}

.replace-console {
  min-height: 460px;
  padding: 28px;
}

.replace-main {
  width: 78%;
  height: 340px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.replace-card {
  position: absolute;
  right: 28px;
  width: 170px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  opacity: 0.72;
  transition: transform 240ms ease, opacity 240ms ease;
}

.replace-card.active {
  opacity: 1;
  transform: translateY(-8px);
}

.replace-card:nth-of-type(1) {
  top: 72px;
}

.replace-card:nth-of-type(2) {
  bottom: 72px;
}

.replace-card img {
  width: 100%;
  height: 112px;
  object-fit: cover;
}

.replace-card span {
  display: block;
  padding: 8px 10px;
  color: #d7d7d7;
  font-size: 12px;
}

.replace-console button {
  left: auto;
  right: 30px;
  bottom: 28px;
  width: 68px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  background: radial-gradient(94.74% 157.5% at 50% 21.25%, #111 0%, #656766 100%);
}

.models {
  padding-top: 180px;
}

.model-board {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
}

.model-preview {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
}

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

.model-grid img {
  width: 100%;
  height: 58px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
  object-fit: contain;
}

.community-wall {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: repeat(3, 132px);
  gap: 12px;
  padding: 24px;
}

.community-wall img {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  object-fit: cover;
}

.community-main {
  grid-row: 1 / -1;
}

.community-wall button {
  position: absolute;
  top: 38px;
  right: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 0 16px;
  color: #fff;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);
}

.final-cta {
  display: flex;
  width: 100%;
  max-width: none;
  height: 238px;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  padding: 48px 0;
  text-align: center;
}

.final-cta h2 {
  margin: 0;
  font-size: 56px;
  line-height: 70px;
  font-weight: 500;
}

.final-cta .button {
  width: 96px;
  min-height: 40px;
  padding: 0 16px;
  line-height: 24px;
}

.site-footer {
  position: relative;
  width: 100%;
  min-height: 400px;
}

.site-footer-main {
  display: flex;
  width: min(1420px, calc(100vw - 120px));
  margin: 0 auto 48px;
  padding-top: 144px;
  align-items: flex-end;
  justify-content: space-between;
}

.site-footer-left {
  display: flex;
  align-items: flex-end;
  gap: 74px;
}

.footer-logo {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 61px;
  color: #fff;
  font-size: 47px;
  line-height: 58px;
  font-weight: 700;
  transform: translateY(5px);
}

.footer-logo img {
  width: 61px;
  height: 61px;
}

.footer-logo img[src$="XSTAR-TV.svg"] {
  width: 220px;
  height: 104px;
  object-fit: contain;
}

.footer-logo img[src$="XSTAR-TV.svg"] + span {
  display: none;
}

.footer-socials {
  display: flex;
  gap: 8px;
  padding-bottom: 4px;
}

.footer-socials span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #3f3f46;
  font-size: 12px;
  font-weight: 700;
}

.footer-socials svg {
  width: 16px;
  height: 16px;
}

.back-top {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-right: 24px;
  color: #fff;
  font-size: 22px;
  line-height: 27.5px;
  font-weight: 500;
}

.back-top span {
  position: absolute;
  left: 100%;
  bottom: 1px;
  display: grid;
  width: 22px;
  height: 22px;
  margin-left: 4px;
  place-items: center;
  border-radius: 50%;
  color: #d8d8d8;
  background: #3f3f46;
  font-size: 13px;
  line-height: 1;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 4px;
  color: #7d7c7b;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  white-space: nowrap;
}

.cookie-bar {
  position: fixed;
  z-index: 60;
  left: 16px;
  right: auto;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 420px;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ccc;
  background: rgba(38, 38, 38, 0.95);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cookie-bar.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}

.cookie-bar p {
  margin: 0;
  flex: 1;
  color: #7a7a7a;
  font-size: 14px;
  line-height: 20px;
}

.cookie-bar button {
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #020202;
  background: #f4f3f0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  cursor: pointer;
}

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

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

@keyframes floatNode {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Pixel-pass overrides for the live XSTAR-TV hero and Agent sections. */
.site-header {
  padding: 0 max(33px, calc((100vw - 1500px) / 2 + 33px));
}

.brand {
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.hero {
  width: min(1500px, 100%);
  min-height: 1389px;
  margin: 0 auto;
  padding: 160px 40px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hero-copy {
  max-width: 896px;
}

.hero h1 {
  max-width: 896px;
  font-size: 52px;
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.hero p {
  max-width: 620px;
  margin: 27px 0 31px;
  color: #a0a0a0;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 300;
}

.hero-stage {
  position: relative;
  width: calc(100% + 16px);
  height: 768px;
  margin-top: 102px;
  margin-left: -8px;
  overflow: visible;
  border: 0;
  border-radius: 16px;
  background: url("../public/assets/landing-bg.webp") center / cover no-repeat;
  box-shadow: none;
}

.hero-stage::before {
  display: none;
}

.hero-canvas {
  position: absolute;
  top: 42px;
  left: 50%;
  width: min(1280px, calc(100% - 220px));
  aspect-ratio: 16 / 9;
  transform: translateX(-50%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background-color: #020202;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 12px 12px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
}

.hero-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-lines path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 1.4;
}

.node,
.prompt-card {
  position: absolute;
  z-index: 2;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.node span,
.prompt-card span {
  position: absolute;
  left: 0;
  top: -22px;
  display: block;
  padding: 0;
  color: rgba(245, 244, 240, 0.72);
  border: 0;
  font-size: 10px;
  line-height: 16px;
}

.node img {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  object-fit: cover;
}

.node-ref {
  left: 95px;
  top: 194px;
  width: 240px;
  height: 137px;
  animation: none;
}

.node-image {
  left: 550px;
  top: 99px;
  width: 320px;
  height: 181px;
  animation: none;
}

.node-video {
  left: 399px;
  top: 365px;
  width: 380px;
  height: 238px;
  animation: none;
}

.prompt-card {
  left: 930px;
  top: 386px;
  width: 198px;
  min-height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(18, 18, 20, 0.92);
}

.prompt-card p {
  margin: 0;
  padding: 13px 15px;
  color: rgba(245, 244, 240, 0.88);
  font-size: 13px;
  line-height: 1.55;
}

.side-tools {
  position: absolute;
  left: 11px;
  top: 205px;
  z-index: 3;
  display: flex;
  width: 30px;
  padding: 5px 0;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.54);
  background: rgba(39, 39, 42, 0.78);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  font-size: 12px;
}

.side-tools span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
}

.side-tools .tool-plus {
  width: 26px;
  height: 26px;
  color: #111;
  border-radius: 50%;
  background: #f4f3f0;
  font-size: 20px;
  font-weight: 500;
}

.side-tools .tool-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fb7d8d;
}

.canvas-refresh {
  position: absolute;
  left: 14px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.48);
  background: rgba(24, 24, 27, 0.72);
}

.canvas-agent-mark {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(24, 24, 27, 0.8);
}

.canvas-agent-mark img {
  width: 26px;
  height: 26px;
}

.trust-strip {
  margin-top: -84px;
  padding: 0 0 118px;
}

.trust-strip p {
  margin-bottom: 27px;
  color: #848484;
  font-size: 12px;
  letter-spacing: 0.15em;
}

.logo-track {
  gap: 56px;
  animation-duration: 30s;
}

.logo-track img {
  height: 56px;
  opacity: 1;
  filter: grayscale(1);
}

.agent {
  width: 100%;
  padding-top: 48px;
  background: #020202;
}

.agent-sticky {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  background: #020202;
}

.section-kicker.agent-title {
  width: 100%;
  margin: 0 0 25px;
  gap: 8px;
  color: #f5f4f0;
  font-size: 40px;
  line-height: 60px;
  font-weight: 400;
}

.agent-title span,
.agent-title strong {
  color: #f5f4f0;
  font-weight: 400;
}

.agent-title img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.agent-shell {
  display: grid;
  width: min(1340px, calc(100vw - 120px));
  min-height: 637px;
  grid-template-columns: 40fr 60fr;
  align-items: center;
  gap: 56px;
  padding: 48px 56px;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.agent-shell .feature-copy {
  width: 468px;
}

.agent-shell .feature-copy h2 {
  font-size: 33px;
  line-height: 49.5px;
  font-weight: 400;
}

.agent-shell .feature-copy p {
  max-width: 448px;
  margin: 33px 0 36px;
  color: #848484;
  font-size: 16px;
  line-height: 1.65;
}

.agent-compose {
  position: relative;
  width: 468px;
  height: 134px;
  margin: 0 auto;
  transform: translateY(-16px);
  overflow: hidden;
  border-radius: 12px;
  background: #1f1f1f;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.agent-thumb {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.agent-compose p {
  margin: 0;
  padding: 55px 12px 0;
  color: rgba(255, 255, 255, 0.25);
  font-size: 14px;
  line-height: 20px;
}

.agent-compose-actions {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  display: flex;
  height: 28px;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
}

.agent-compose-actions span:first-child {
  margin-left: 2px;
}

.agent-compose-actions span:nth-child(2) {
  margin-left: auto;
  margin-right: 8px;
  opacity: 0.75;
}

.agent-compose-actions button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #020202;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    padding: 0 16px;
  }

  .brand span,
  .nav-links {
    display: none;
  }

  .section-pad {
    padding: 86px 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
    gap: 48px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero p,
  .feature-copy p {
    font-size: 15px;
  }

  .hero-stage {
    width: 100%;
    height: 520px;
  }

  .node-ref {
    left: 18px;
    top: 86px;
    width: 190px;
    height: 142px;
  }

  .node-image {
    right: 18px;
    top: 180px;
    width: 220px;
    height: 162px;
  }

  .node-video {
    right: 24px;
    bottom: 42px;
    width: 245px;
    height: 188px;
  }

  .prompt-card {
    left: 22px;
    bottom: 168px;
    width: 220px;
  }

  .trust-strip {
    padding-bottom: 72px;
  }

  .split-layout,
  .feature-row,
  .feature-row-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-row-reverse .feature-copy {
    order: 0;
  }

  .section-kicker {
    justify-content: flex-start;
    margin-bottom: 44px;
    font-size: 30px;
  }

  .agent-board,
  .lens-console,
  .camera-control,
  .lighting-console,
  .replace-console,
  .model-board,
  .community-wall {
    min-height: 360px;
    border-radius: 14px;
  }

  .agent-node-a {
    right: 18px;
    width: 180px;
  }

  .agent-node-b {
    left: 18px;
    width: 200px;
  }

  .lens-console,
  .camera-control,
  .model-board {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .lighting-console > img {
    min-height: 380px;
  }

  .replace-main {
    width: 100%;
    height: 250px;
  }

  .replace-card {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    display: inline-block;
    width: calc(50% - 8px);
    margin-top: 12px;
  }

  .model-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .community-wall {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px repeat(3, 100px);
  }

  .community-main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .feature-row + .feature-row {
    margin-top: 120px;
  }

  .cookie-bar {
    align-items: flex-start;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 0 16px;
  }

  .brand {
    font-size: 0;
  }

  .hero {
    width: 100%;
    min-height: auto;
    padding: 112px 16px 0;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.12;
  }

  .hero p {
    max-width: 340px;
    margin: 16px 0 24px;
    font-size: 15px;
  }

  .hero-stage {
    height: 520px;
    margin-top: 60px;
  }

  .hero-canvas {
    top: 32px;
    width: calc(100% - 28px);
    min-height: 430px;
    aspect-ratio: auto;
  }

  .node-ref {
    left: 42px;
    top: 82px;
    width: 160px;
    height: 91px;
  }

  .node-image {
    left: 128px;
    top: 188px;
    width: 190px;
    height: 108px;
  }

  .node-video {
    left: 70px;
    top: 286px;
    width: 220px;
    height: 138px;
  }

  .prompt-card {
    left: 42px;
    top: 198px;
    width: 150px;
  }

  .prompt-card p {
    padding: 10px;
    font-size: 11px;
  }

  .side-tools {
    left: 8px;
    top: 126px;
    transform: scale(0.82);
    transform-origin: top left;
  }

  .canvas-agent-mark {
    right: 10px;
    bottom: 10px;
  }

  .trust-strip {
    margin-top: 16px;
    padding-bottom: 76px;
  }

  .agent {
    padding-top: 40px;
  }

  .section-kicker.agent-title {
    justify-content: center;
    margin-bottom: 18px;
    font-size: 30px;
    line-height: 42px;
  }

  .agent-title img {
    width: 28px;
    height: 28px;
  }

  .agent-shell {
    width: calc(100% - 32px);
    min-height: 560px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 36px;
    padding: 38px 28px;
  }

  .agent-shell .feature-copy {
    width: 100%;
  }

  .agent-shell .feature-copy h2 {
    font-size: 24px;
    line-height: 1.35;
  }

  .agent-shell .feature-copy p {
    margin: 18px 0 28px;
    font-size: 14px;
  }

  .agent-compose {
    width: 100%;
    max-width: 468px;
  }
}

/* Scroll-driven story pass */
.scroll-story {
  position: relative;
  width: 100%;
}

.agent.scroll-story {
  height: 360vh;
  padding: 0;
}

.creator-scroll.scroll-story {
  height: 1120vh;
  padding: 0;
}

.scroll-sticky {
  position: sticky;
  top: 10vh;
  min-height: 0;
}

.scroll-scene {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(22px) scale(0.985);
  transition: none;
  will-change: opacity, transform;
}

.scroll-scene.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.agent .scroll-sticky {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0;
  background: #020202;
}

.agent-shell {
  position: relative;
  width: min(1340px, calc(100vw - 120px));
  min-height: 637px;
  grid-template-columns: 40fr 60fr;
  gap: 56px;
  padding: 48px 56px;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.agent-visual {
  position: relative;
  min-height: 541px;
  overflow: hidden;
  border-radius: 16px;
}

.agent-visual .scroll-scene {
  position: absolute;
  inset: 0;
}

.agent-prompt-scene {
  display: grid;
  place-items: center;
}

.agent-thinking-scene {
  overflow: hidden;
}

.agent-thinking-scene .dot-field {
  display: none;
}

.agent-thinking-bubble {
  position: absolute;
  right: 87px;
  top: 56px;
  z-index: 2;
  display: flex;
  width: 218px;
  gap: 9px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  color: rgba(245, 244, 240, 0.82);
  background: #202020;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  font-size: 12px;
  line-height: 1.35;
}

.agent-thinking-bubble img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.agent-thinking-status {
  position: absolute;
  left: 88px;
  top: 147px;
  z-index: 2;
  display: grid;
  width: 316px;
  gap: 8px;
  color: rgba(245, 244, 240, 0.52);
  font-size: 12px;
}

.agent-thinking-status strong {
  color: rgba(245, 244, 240, 0.76);
  font-size: 13px;
  font-weight: 500;
}

.agent-thinking-status span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-thinking-status table {
  width: 100%;
  border-collapse: collapse;
  color: rgba(245, 244, 240, 0.64);
  font-size: 11px;
}

.agent-thinking-status th,
.agent-thinking-status td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 9px;
  text-align: left;
}

.agent-thinking-status th {
  color: rgba(245, 244, 240, 0.45);
  font-weight: 500;
}

.agent-result-tags {
  display: flex;
  gap: 6px;
}

.agent-result-tags span {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 4px;
  color: rgba(245, 244, 240, 0.72);
  background: rgba(255, 255, 255, 0.1);
  font-size: 10px;
}

.agent-result-tags img {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  object-fit: cover;
}

.agent-result-actions {
  display: flex;
  gap: 10px;
  color: rgba(245, 244, 240, 0.24);
  font-size: 14px;
}

.agent-board-scene {
  overflow: hidden;
}

.dot-field,
.dot-surface::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0.8px, transparent 1.2px);
  background-size: 23px 23px;
  opacity: 0.72;
}

.storyboard-list {
  position: absolute;
  left: 56px;
  top: 32px;
  z-index: 1;
  display: grid;
  width: 200px;
  gap: 10px;
}

.story-group > span {
  display: block;
  margin-bottom: 6px;
  color: rgba(245, 244, 240, 0.7);
  font-size: 12px;
  font-weight: 600;
}

.story-group > div {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
}

.story-group img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display: block;
}

.story-window {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
  width: 408px;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #1b1b1b;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.story-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 27px;
  padding: 0 8px;
  color: #f5f4f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.story-window-bar span {
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 6px;
}

.story-bubble {
  position: absolute;
  top: 39px;
  right: 16px;
  display: flex;
  width: 133px;
  gap: 7px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  line-height: 1.35;
}

.story-bubble img {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  object-fit: cover;
}

.thinking {
  margin: 76px 18px 8px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  opacity: 0.5;
}

.story-copy {
  margin: 0 18px 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.story-window table {
  width: 258px;
  margin: 0 18px 12px;
  border-collapse: collapse;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.story-window th,
.story-window td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 10px;
  text-align: left;
}

.story-window th {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.story-tags {
  display: flex;
  gap: 6px;
  padding-left: 18px;
}

.story-tags span {
  padding: 3px 6px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.11);
  font-size: 10px;
}

.story-input {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 70px;
  padding: 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.34);
  background: #242424;
  font-size: 12px;
}

.story-input b {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #111;
  background: #fff;
}

.creator-scroll {
  background: #020202;
  padding-top: 274px;
}

.creator-step {
  position: relative;
}

.creator-lens-step {
  height: 150vh;
}

.creator-angle-step {
  height: 200vh;
  --angle-card-grow: 0;
}

.creator-lighting-step {
  height: 250vh;
  --light-panel-grow: 0;
  --light-beam-rotation: 0deg;
  --light-brightness-progress: 0;
  --light-temp-progress: 0;
}

.creator-replace-step {
  height: 458vh;
}

.creator-angle-step,
.creator-lighting-step,
.creator-replace-step {
  margin-top: 80px;
}

.creator-step-sticky {
  position: sticky;
  top: 15vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0;
}

.creator-lens-step .creator-step-sticky {
  top: 10vh;
  padding-bottom: 77px;
}

.creator-lighting-step .creator-step-sticky {
  padding-bottom: 0;
}

.creator-step:not(.creator-lens-step) .creator-shell {
  margin-top: 0;
}

.creator-scroll-title {
  height: 60px;
  margin: 0 0 26px;
  color: #f5f4f0;
  font-size: 40px;
  line-height: 60px;
  font-weight: 400;
  opacity: 1;
  overflow: hidden;
  transform: none;
  transition: none;
}

.creator-shell {
  position: relative;
  width: min(1420px, calc(100vw - 80px));
  height: 674px;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.creator-scene {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 40fr 60fr;
  align-items: center;
  gap: 56px;
  padding: 48px 56px;
}

.creator-scene-reverse {
  grid-template-columns: 60fr 40fr;
}

.creator-scene .feature-copy h2 {
  font-size: 33px;
  line-height: 1.5;
  font-weight: 400;
}

.creator-scene .feature-copy p {
  max-width: 448px;
  margin: 34px 0 34px;
  color: #848484;
  font-size: 16px;
  line-height: 1.75;
}

.creator-angle-step .feature-copy,
.creator-lighting-step .feature-copy {
  transform: translateY(-4px);
}

.dot-surface {
  position: relative;
  min-height: 560px;
  overflow: visible;
}

.angle-story-visual,
.lighting-story-visual {
  min-height: 0;
  aspect-ratio: 520 / 400;
}

.lens-main-shot {
  position: absolute;
  left: 86px;
  top: 38px;
  width: 452px;
  height: 253px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  object-fit: cover;
}

.lens-combo-board {
  position: absolute;
  left: 190px;
  top: 268px;
  width: 568px;
  height: 245px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #111;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.lens-combo-board > strong,
.angle-control-card > strong,
.replace-story-card > strong {
  color: #f5f4f0;
  font-size: 14px;
}

.combo-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 180px;
  margin-top: 15px;
  gap: 16px;
}

.combo-column {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.combo-column:last-child {
  border-right: 0;
}

.combo-viewport {
  position: relative;
  width: 74px;
  height: 151px;
  overflow: hidden;
  border-radius: 16px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
}

.combo-reel {
  display: flex;
  width: 74px;
  flex-direction: column;
  align-items: center;
  transition: transform 680ms cubic-bezier(0.22, 0.8, 0.24, 1);
  transform: translateY(-331px);
}

.combo-reel-lens {
  transform: translateY(-331px);
}

.combo-reel-focal {
  transform: translateY(-553px);
}

.combo-reel-aperture {
  transform: translateY(-109px);
}

.combo-reel > img,
.combo-choice {
  display: grid;
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  place-items: center;
}

.combo-reel > img,
.combo-choice img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  opacity: 0.5;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.12));
}

.combo-choice.combo-active img {
  width: 59px;
  height: 59px;
  opacity: 1;
  filter: drop-shadow(0 0 26px rgba(255, 255, 255, 0.28));
}

.combo-reel > img.combo-active-img {
  width: 59px;
  height: 59px;
  opacity: 1;
  filter: drop-shadow(0 0 26px rgba(255, 255, 255, 0.28));
}

.combo-choice {
  position: relative;
}

.combo-choice span {
  position: absolute;
  left: 50%;
  bottom: 0;
  padding: 1px 8px 0;
  border-radius: 4px 4px 0 0;
  color: rgba(122, 122, 122, 0.8);
  background: rgba(2, 2, 2, 0.8);
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  transform: translateX(-50%);
}

.combo-reel-focal span {
  display: grid;
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  place-items: center;
  color: #7a7a7a;
  font-size: 14px;
  font-weight: 600;
}

.combo-reel-focal .combo-active-text {
  color: #fafafa;
  font-size: 18px;
}

.combo-column > b {
  display: block;
  max-width: 120px;
  margin-top: 12px;
  overflow: hidden;
  color: #fafafa;
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-toolbar {
  position: absolute;
  left: 372px;
  top: -18px;
  z-index: 5;
  height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(35, 35, 35, 0.9);
  box-shadow: 0 18px 50px rgba(0,0,0,0.3);
  font-size: 13px;
  letter-spacing: 6px;
  white-space: nowrap;
}

.angle-main-shot {
  position: absolute;
  left: 225px;
  top: 46px;
  width: 526px;
  height: 301px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 9px;
  object-fit: cover;
}

.angle-control-card {
  position: absolute;
  left: 8px;
  top: calc(242px - 24px * var(--angle-card-grow, 0));
  width: calc(552px + 48px * var(--angle-card-grow, 0));
  height: calc(278px + 24px * var(--angle-card-grow, 0));
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  background: #111;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transition: none;
}

.angle-control-card > strong {
  display: flex;
  height: 44px;
  align-items: center;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
}

.angle-card-grid {
  display: flex;
  gap: 16px;
  height: calc(234px + 22px * var(--angle-card-grow, 0));
  padding: 0 16px 16px;
}

.angle-control-card .cube-wrap {
  position: relative;
  display: flex;
  width: calc(220px + 20px * var(--angle-card-grow, 0));
  height: calc(220px + 20px * var(--angle-card-grow, 0));
  min-height: 0;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  perspective: 560px;
}

.angle-control-card .cube {
  position: relative;
  width: 60px;
  height: 60px;
  cursor: grab;
  transform-style: preserve-3d;
  will-change: transform;
}

.angle-control-card .cube span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: rgba(255,255,255,0.3);
  background: #222;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.cube-face-front {
  background: #444 !important;
  border-color: rgba(255,255,255,0.2) !important;
  transform: translateZ(30px);
}

.cube-face-front::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(255,255,255,0.58);
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  transform: translate(-50%, -50%);
}

.cube-face-front::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 5px;
  border-left: 1px solid rgba(255,255,255,0.45);
  border-bottom: 1px solid rgba(255,255,255,0.45);
  transform: translate(-50%, -32%) rotate(-35deg);
}

.cube-face-back {
  transform: rotateY(180deg) translateZ(30px);
}

.cube-face-left {
  transform: rotateY(-90deg) translateZ(30px);
}

.cube-face-right {
  transform: rotateY(90deg) translateZ(30px);
}

.cube-face-top {
  transform: rotateX(90deg) translateZ(30px);
}

.cube-face-bottom {
  transform: rotateX(-90deg) translateZ(30px);
}

.cube-wrap > button {
  position: absolute;
  left: 14px;
  bottom: 12px;
  border: 0;
  color: rgba(255,255,255,0.38);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.angle-control-card .control-panel {
  position: relative;
  display: flex;
  height: calc(220px + 20px * var(--angle-card-grow, 0));
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
}

.angle-control-card .control-panel label:not(.switch-line) {
  display: grid;
  grid-template-columns: 62px 1fr 42px;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  font-weight: 600;
}

.angle-control-card .control-panel output {
  justify-self: end;
  margin-left: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.angle-control-card input[type="range"] {
  height: 2px;
  background: transparent;
  accent-color: #f4f3f0;
  cursor: pointer;
  -webkit-appearance: none;
}

.angle-control-card input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
}

.angle-control-card input[type="range"]::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px rgba(255,255,255,0.55);
  -webkit-appearance: none;
}

.switch-line {
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.42);
  font-size: 12px;
  font-weight: 600;
}

.switch-line i {
  display: block;
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.13);
}

.switch-line i::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #070707;
}

.angle-status-pill {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  height: 30px;
  min-width: 74px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 5px 4px 9px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: #ccc;
  background: rgba(255,255,255,0.08);
  font-size: 12px;
  line-height: 1;
}

.angle-status-pill span {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}

.angle-status-pill b {
  min-width: 16px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.angle-status-pill em {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  color: #000;
  background: #fff;
  font-style: normal;
  font-weight: 700;
}

.lighting-story-visual .mini-toolbar {
  left: 140px;
  top: -24px;
}

.lighting-story-visual {
  transform: none;
}

.light-big {
  position: absolute;
  left: 30px;
  top: -23px;
  width: 452px;
  height: 289px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  object-fit: cover;
}

.light-small {
  position: absolute;
  right: 16px;
  top: 12px;
  width: 261px;
  height: 200px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  object-fit: cover;
}

.lighting-story-panel {
  position: absolute;
  left: calc(99px - 24px * var(--light-panel-grow, 0));
  top: calc(236px - 27px * var(--light-panel-grow, 0));
  display: grid;
  width: calc(554px + 48px * var(--light-panel-grow, 0));
  height: calc(313px + 27px * var(--light-panel-grow, 0));
  grid-template-columns: 58fr 42fr;
  gap: 16px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  background: rgba(19,19,19,0.98);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transition: none;
}

.light-preview {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 86%, rgba(255,255,255,0.08), transparent 34%),
    linear-gradient(135deg, #3b3b3b 0%, #303030 48%, #1b1b1b 100%);
}

.light-preview::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 56%;
  width: calc(190px + 20px * var(--light-panel-grow, 0));
  height: calc(190px + 20px * var(--light-panel-grow, 0));
  border-radius: 50%;
  background:
    radial-gradient(circle at 58% 45%, rgba(255,255,255,0.32) 0 2px, transparent 4px),
    radial-gradient(circle at 52% 52%, #555 0%, #464646 42%, #343434 74%, #292929 100%);
  box-shadow: inset 0 1px 20px rgba(255,255,255,0.08), 0 10px 38px rgba(0,0,0,0.45);
  transform: translate(-50%, -50%);
}

.light-orbit {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 56%;
  width: calc(190px + 20px * var(--light-panel-grow, 0));
  height: calc(190px + 20px * var(--light-panel-grow, 0));
  transform: translate(-50%, -50%);
}

.light-orbit img {
  position: absolute;
  left: 52%;
  top: 47%;
  z-index: 3;
  width: 52px;
  height: 38px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
  transform: translate(-50%, -50%) rotate(18deg) skewY(-8deg);
}

.light-source {
  position: absolute;
  left: 4%;
  top: 66%;
  z-index: 5;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  background: #020202;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), 0 0 18px rgba(255,255,255,0.22);
}

.light-beam {
  position: absolute;
  left: 9%;
  top: 62%;
  z-index: 2;
  width: 132px;
  height: 54px;
  clip-path: polygon(0 52%, 95% 0, 78% 100%);
  background: linear-gradient(90deg, rgba(255,255,255,0.86), rgba(255,255,255,0.3) 48%, rgba(255,255,255,0.03));
  filter: blur(0.2px);
  opacity: calc(0.72 + 0.2 * var(--light-brightness-progress, 0));
  transform: translateY(-50%) rotate(var(--light-beam-rotation, 0deg));
  transform-origin: left center;
}

.light-beam::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,207,136,0.9), rgba(255,207,136,0.22) 48%, rgba(255,207,136,0));
  opacity: var(--light-temp-progress, 0);
}

.light-target {
  position: absolute;
  left: 78%;
  top: 34%;
  z-index: 5;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 7px rgba(255,255,255,0.9);
}

.light-target::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 86px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  transform: rotate(130deg);
  transform-origin: left center;
}

.light-view-tabs {
  position: absolute;
  left: 50%;
  top: 9px;
  z-index: 3;
  display: flex;
  gap: 3px;
  transform: translateX(-50%);
}

.light-view-tabs span {
  display: grid;
  height: 18px;
  min-width: 30px;
  place-items: center;
  border-radius: 4px;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.12);
  font-size: 10px;
  font-weight: 600;
}

.light-view-tabs span:first-child {
  background: rgba(255,255,255,0.18);
  box-shadow: -2px 1px 6px rgba(0,0,0,0.12);
}

.light-reset {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 4;
  border: 0;
  color: rgba(255,255,255,0.4);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.light-mode-pill {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 4;
  min-width: 52px;
  height: 22px;
  padding: 3px 12px;
  border-radius: 12px 12px 0 0;
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.1);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  transform: translateX(-50%);
}

.light-settings {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 8px 0 0;
  color: #8a8a8a;
  font-size: 13px;
}

.light-settings strong {
  display: block;
  margin: 0 0 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.light-settings label {
  display: grid;
  grid-template-columns: 42px 1fr 72px;
  align-items: center;
  gap: 12px;
  margin: 5px 0 12px;
  color: #aaa;
  font-size: 12px;
  font-weight: 600;
}

.light-settings label::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #a67935 calc(30% + 40% * var(--light-brightness-progress, 0)), #5e7074 0);
}

.light-settings label span {
  grid-column: 3;
  display: grid;
  height: 25px;
  min-width: 72px;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  background: rgba(255,255,255,0.07);
  font-size: 12px;
  font-weight: 700;
}

.light-slider-temp::after {
  background: linear-gradient(90deg, #a67935 calc(34% - 20% * var(--light-temp-progress, 0)), #5e7074 0) !important;
}

.lighting-story-panel .light-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: -2px;
}

.lighting-story-panel .light-grid button {
  display: grid;
  height: 24px;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  color: #7a7a7a;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lighting-story-panel .light-grid button.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
  box-shadow: -2px 1px 6px rgba(0,0,0,0.05);
}

.rim-light {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.rim-light i {
  display: block;
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #ccc;
}

.rim-light i::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.24);
}

.light-status-pill {
  display: flex;
  width: 74px;
  height: 30px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  align-self: flex-end;
  margin-top: auto;
  padding: 4px 5px 4px 9px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: #ccc;
  background: rgba(255,255,255,0.08);
  font-size: 12px;
  line-height: 1;
}

.light-status-pill span {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}

.light-status-pill b {
  min-width: 16px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.light-status-pill em {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  color: #000;
  background: #fff;
  font-style: normal;
  font-weight: 700;
}

.creator-replace-step .replace-story-visual {
  opacity: 1;
}

.creator-replace-step .replace-story-visual > * {
  transition: none;
  will-change: opacity, transform, clip-path;
}

.creator-replace-step .replace-story-visual .mini-toolbar {
  left: 254px;
  top: -18px;
  opacity: var(--replace-hero-opacity, 0);
  transform: translateY(var(--replace-toolbar-translate, 20px));
}

.replace-hero-frame {
  position: absolute;
  left: 120px;
  top: 22px;
  width: 516px;
  height: 288px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  background: #111;
  opacity: var(--replace-hero-opacity, 0);
  transform: translateY(var(--replace-hero-translate, 20px));
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}

.replace-hero-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}

.replace-original-shot {
  filter: brightness(var(--replace-hero-brightness, 0.72));
}

.replace-final-shot {
  opacity: var(--replace-final-opacity, 0);
  clip-path: inset(0 var(--replace-final-clip-right, 100%) 0 0);
}

.replace-select-box {
  position: absolute;
  left: 152px;
  top: 45px;
  width: 206px;
  height: 204px;
  border: 2px solid rgba(255,255,255,0.66);
  border-radius: 6px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.48) 0 2px, transparent 2.4px);
  background-size: 19px 19px;
  background-position: 0 0;
  opacity: var(--replace-selection-opacity, 0);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}

.replace-scan-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--replace-scan-left, 0);
  width: 3px;
  opacity: var(--replace-scan-opacity, 0);
  background: rgba(255,255,255,0.96);
  box-shadow: -18px 0 48px 18px rgba(255,255,255,0.23), 8px 0 28px rgba(255,255,255,0.24);
}

.replace-story-card {
  position: absolute;
  left: 144px;
  top: 330px;
  width: 464px;
  height: 225px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(17,17,17,0.94);
  opacity: var(--replace-card-opacity, 0);
  box-shadow: 0 20px 70px rgba(0,0,0,0.5);
  transform: translateY(var(--replace-card-translate, 20px));
}

.replace-two-cards {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.replace-thumb {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 9px;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 56%),
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
  box-shadow: inset 0 -20px 32px rgba(255,255,255,0.08);
}

.replace-thumb {
  height: 118px;
}

.replace-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--replace-real-opacity, 0);
}

.replace-thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #333;
  background: rgba(255,255,255,0.8);
  font-size: 14px;
  line-height: 1;
  opacity: var(--replace-real-opacity, 0);
}

.replace-placeholder {
  position: absolute;
  inset: 0;
  opacity: var(--replace-placeholder-opacity, 1);
}

.replace-placeholder-object::before,
.replace-placeholder-object::after {
  content: "";
  position: absolute;
  top: 35px;
  width: 44px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}

.replace-placeholder-object::before {
  left: 70px;
}

.replace-placeholder-object::after {
  left: 92px;
  background: rgba(255,255,255,0.16);
}

.replace-placeholder-image::before {
  content: "";
  position: absolute;
  left: 73px;
  top: 38px;
  width: 46px;
  height: 42px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.24) 0 5px, transparent 6px),
    linear-gradient(135deg, transparent 52%, rgba(255,255,255,0.22) 53% 75%, transparent 76%),
    rgba(255,255,255,0.14);
}

.replace-thumb span {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  display: grid;
  width: 128px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px 8px 0 0;
  color: rgba(255,255,255,0.82);
  background: rgba(26,26,26,0.96);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  transform: translateX(-50%);
}

.replace-two-cards em {
  color: rgba(255,255,255,0.4);
  font-style: normal;
  text-align: center;
}

.replace-generate-pill {
  position: absolute;
  right: 20px;
  bottom: 14px;
  display: flex;
  width: 68px;
  height: 28px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: #ccc;
  background: rgba(255,255,255,0.08);
  font-size: 13px;
}

.replace-generate-pill b {
  font-weight: 500;
}

.replace-generate-pill em {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  color: #111;
  background: #fff;
  font-style: normal;
  line-height: 1;
}

.community .section-kicker {
  justify-content: center;
  margin-bottom: 44px;
  font-size: 44px;
}

.community-shell {
  display: grid;
  width: min(1288px, calc(100vw - 210px));
  min-height: 600px;
  margin: 0 auto;
  grid-template-columns: 40fr 60fr;
  align-items: center;
  gap: 56px;
  padding: 48px 56px;
  border-radius: 24px;
  background: rgba(255,255,255,0.03);
}

.community-gallery {
  position: relative;
  display: grid;
  width: 672px;
  gap: 20px;
  transform: none;
}

.skeleton-tabs {
  display: flex;
  justify-content: space-between;
  opacity: var(--community-grid-opacity, 1);
  transition: none;
  will-change: opacity;
}

.skeleton-tabs span {
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
}

.skeleton-tabs span:nth-child(1) { width: 64px; }
.skeleton-tabs span:nth-child(2) { width: 48px; }
.skeleton-tabs span:nth-child(3) { width: 56px; }
.skeleton-tabs span:nth-child(4) { width: 96px; margin-left: auto; }
.skeleton-tabs span:nth-child(5) { width: 80px; }

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  opacity: var(--community-grid-opacity, 1);
  transform: scale(var(--community-grid-scale, 1));
  transform-origin: center top;
  transition: none;
  will-change: opacity, transform;
}

.community-card {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.community-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 9px;
  object-fit: cover;
}

.community-card div {
  display: flex;
  height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.community-card span {
  display: block;
  width: 59%;
  height: 14px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
}

.community-card:nth-child(2) span,
.community-card:nth-child(5) span {
  width: 54%;
}

.community-card i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  color: rgba(255,255,255,0.62);
  background: rgba(255,255,255,0.06);
  font-style: normal;
  font-size: 17px;
  line-height: 1;
}

.community-recipe-preview {
  position: absolute;
  left: 0;
  top: 29px;
  z-index: 4;
  width: 168px;
  height: 89.8px;
  overflow: hidden;
  border-radius: 9px;
  opacity: var(--community-recipe-opacity, 1);
  transform: translateY(var(--community-recipe-translate, 0px)) scale(var(--community-recipe-scale, 1));
  transform-origin: left top;
  transition: none;
  pointer-events: none;
  will-change: opacity, transform;
}

.community-recipe-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.community-recipe-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-recipe-preview button {
  position: absolute;
  left: 20%;
  bottom: 9%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  font-size: 4px;
  font-weight: 500;
  transform: scale(1.08);
}

.community-clone-preview {
  position: absolute;
  left: var(--community-clone-left, 0px);
  top: var(--community-clone-top, 0px);
  z-index: 5;
  width: var(--community-clone-width, 672px);
  height: var(--community-clone-height, 359px);
  overflow: hidden;
  border-radius: 14px;
  background: #020202;
  opacity: var(--community-clone-opacity, 0);
  transform: scale(var(--community-clone-scale, 0.92));
  transform-origin: center center;
  transition: none;
  pointer-events: none;
  will-change: opacity, transform;
}

.community-clone-preview img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.community-clone-preview button {
  position: absolute;
  top: 16px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 118px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(14px);
  font-size: 16px;
  font-weight: 500;
}

.story-pin {
  position: relative;
}

.models.story-pin {
  width: 100%;
  max-width: none;
  height: 220vh;
  padding: 0;
}

.models .feature-row {
  position: sticky;
  top: 18vh;
  display: grid;
  width: min(1420px, calc(100vw - 120px));
  min-height: 600px;
  margin: 0 auto;
  grid-template-columns: 40fr 60fr;
  align-items: center;
  gap: 56px;
  padding: 48px 56px;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.models .feature-copy,
.community .feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.models .feature-copy h2,
.community .feature-copy h2 {
  width: 100%;
  font-size: 33px;
  line-height: 49.5px;
  font-weight: 400;
}

.models .feature-copy p,
.community .feature-copy p {
  width: 100%;
  max-width: 448px;
  margin: 0;
  font-size: 16px;
  line-height: 26px;
  font-weight: 300;
}

.models .feature-copy .button,
.community .feature-copy .button {
  min-width: 104px;
  padding: 0 20px;
  line-height: 24px;
}

.models .model-board {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #111;
}

.models .model-board::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.models .model-preview {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
  object-fit: cover;
}

.models .model-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.models .model-grid-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: marquee 40s linear infinite;
}

.models .model-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 20px;
}

.models .model-brand img {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  object-fit: contain;
}

.models .model-brand span {
  color: #f5f4f0;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  white-space: nowrap;
}

.community.story-pin {
  width: 100%;
  max-width: none;
  height: calc(500vh + 68px);
  padding: 0;
}

.community.story-pin .section-kicker {
  position: sticky;
  top: 64px;
  z-index: 2;
  margin: 0;
  justify-content: center;
  font-size: 40px;
  line-height: 60px;
  transform: translateY(calc(-180px * var(--community-exit-progress, 0)));
  transition: none;
  will-change: transform;
}

.community.story-pin .section-kicker strong {
  font-weight: 400;
}

.community.story-pin .community-shell {
  position: sticky;
  top: 124px;
  z-index: 1;
  transform: translateY(calc(-108px * var(--community-exit-progress, 0)));
  transition: none;
  will-change: transform;
}

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

@media (max-width: 900px) {
  .agent.scroll-story,
  .creator-scroll.scroll-story,
  .models.story-pin,
  .community.story-pin {
    height: auto;
  }

  .scroll-sticky,
  .models .feature-row,
  .community.story-pin .section-kicker,
  .community.story-pin .community-shell {
    position: relative;
    top: auto;
    min-height: 0;
    transform: none;
  }

  .agent-shell,
  .creator-shell,
  .community-shell {
    width: calc(100% - 32px);
  }

  .agent-shell {
    grid-template-columns: 1fr;
    min-height: 720px;
  }

  .agent-visual {
    min-height: 420px;
  }

  .storyboard-list {
    left: 18px;
    width: 190px;
  }

  .story-window {
    right: 12px;
    width: 230px;
    transform: scale(0.82);
    transform-origin: top right;
  }

  .creator-sticky {
    padding-top: 70px;
  }

  .creator-scroll {
    padding-top: 0;
  }

  .creator-step,
  .creator-lens-step,
  .creator-angle-step,
  .creator-lighting-step,
  .creator-replace-step {
    height: auto;
    margin-top: 0;
  }

  .creator-step-sticky,
  .creator-lens-step .creator-step-sticky {
    position: relative;
    top: auto;
    padding: 70px 0 0;
  }

  .creator-lens-step .creator-step-sticky {
    padding-bottom: 0;
  }

  .creator-step:not(.creator-lens-step) .creator-shell {
    margin-top: 0;
  }

  .creator-shell {
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .creator-scene,
  .creator-scene-reverse {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 22px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .creator-scene:not(:first-child) {
    margin-top: 32px;
  }

  .dot-surface {
    min-height: 460px;
    transform: scale(0.72);
    transform-origin: top left;
    width: 138%;
  }

  .community-shell {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 42px 22px;
  }

  .community-shell > *,
  .community-gallery,
  .community-grid,
  .skeleton-tabs {
    min-width: 0;
    width: 100%;
  }

  .community-gallery {
    gap: 14px;
    overflow: hidden;
  }

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

  .skeleton-tabs {
    gap: 8px;
  }

  .skeleton-tabs span {
    min-width: 0;
  }

  .skeleton-tabs span:nth-child(1) { width: 44px; }
  .skeleton-tabs span:nth-child(2) { width: 34px; }
  .skeleton-tabs span:nth-child(3) { width: 40px; }
  .skeleton-tabs span:nth-child(4) { width: 68px; margin-left: 0; }
  .skeleton-tabs span:nth-child(5) { width: 56px; }

  .models.story-pin,
  .community.story-pin {
    padding: 86px 18px;
  }

  .models .feature-row {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 42px 22px;
  }

  .models .model-grid {
    min-width: 0;
  }

  .final-cta {
    height: 220px;
    padding: 48px 18px;
  }

  .final-cta h2 {
    font-size: 38px;
    line-height: 46px;
  }

  .site-footer {
    min-height: 430px;
  }

  .site-footer-main {
    width: calc(100% - 36px);
    flex-direction: column;
    align-items: center;
    gap: 34px;
    padding-top: 72px;
    margin-bottom: 34px;
  }

  .site-footer-left {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .footer-logo {
    font-size: 42px;
    line-height: 52px;
    transform: none;
  }

  .back-top {
    font-size: 18px;
    line-height: 24px;
  }

  .footer-legal {
    flex-wrap: wrap;
    padding: 0 24px;
    white-space: normal;
  }

  .community-grid {
    grid-template-columns: 1fr 1fr;
  }

  .community-grid {
    opacity: 1;
    transform: none;
  }

  .community-clone-preview {
    display: none;
  }
}

body.tap-auth-open {
  overflow: hidden;
}

.button {
  cursor: pointer;
}

.tap-auth-overlay[hidden] {
  display: none;
}

.tap-auth-dialog [hidden] {
  display: none !important;
}

.tap-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.tap-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 8, 0.72);
  backdrop-filter: blur(14px);
}

.tap-auth-dialog {
  position: relative;
  width: min(92vw, 420px);
  max-height: min(86vh, 720px);
  overflow: auto;
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 20px;
  padding: 34px;
  background: rgba(15, 15, 35, 0.82);
  box-shadow:
    0 0 60px rgba(0, 255, 255, 0.08),
    0 0 100px rgba(119, 0, 255, 0.06),
    inset 0 0 80px rgba(0, 255, 255, 0.025);
  color: #fff;
}

.tap-auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.tap-auth-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #00ffff;
}

.tap-auth-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.tap-auth-header {
  margin-bottom: 24px;
  text-align: center;
}

.tap-auth-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0, 255, 255, 0.5);
  border-radius: 50%;
  animation: tapAuthRingPulse 2s ease-in-out infinite;
}

.tap-auth-logo span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #00ffff, #7700ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes tapAuthRingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(0, 255, 255, 0); }
}

.tap-auth-header h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.tap-auth-header p,
.tap-auth-reset-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.5;
}

.tap-auth-toggle {
  position: relative;
  display: flex;
  margin-bottom: 22px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.tap-auth-toggle button {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  font-size: 14px;
  transition: color 180ms ease;
}

.tap-auth-toggle button.is-active {
  color: #fff;
}

.tap-auth-toggle i {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(119, 0, 255, 0.2));
  transition: transform 220ms ease;
}

.tap-auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tap-auth-reset-copy {
  text-align: center;
}

.tap-auth-reset-copy h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.tap-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tap-field span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.tap-field input,
.tap-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.tap-field select {
  background: rgba(28, 28, 48, 0.96);
}

.tap-field input:focus,
.tap-field select:focus {
  border-color: rgba(0, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.tap-field input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.tap-email-row,
.tap-code-row {
  display: flex;
  align-items: end;
  gap: 8px;
}

.tap-email-row input {
  flex: 2;
  min-width: 0;
}

.tap-email-row em {
  align-self: center;
  color: rgba(255, 255, 255, 0.62);
  font-style: normal;
}

.tap-email-row select {
  flex: 1;
  min-width: 112px;
}

.tap-code-row .tap-field {
  flex: 1;
  min-width: 0;
}

.tap-code-btn {
  min-height: 46px;
  min-width: 104px;
  border: 1px solid rgba(0, 255, 255, 0.28);
  border-radius: 10px;
  padding: 0 14px;
  background: rgba(0, 255, 255, 0.1);
  color: #00ffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.tap-code-btn:hover:not(:disabled) {
  border-color: rgba(0, 255, 255, 0.52);
  background: rgba(0, 255, 255, 0.18);
}

.tap-code-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tap-auth-message {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 80, 80, 0.24);
  border-radius: 9px;
  background: rgba(255, 80, 80, 0.1);
  color: #ff7373;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.tap-auth-message[data-type="success"] {
  border-color: rgba(50, 255, 180, 0.24);
  background: rgba(50, 255, 180, 0.1);
  color: #62ffc8;
}

.tap-auth-submit {
  min-height: 48px;
  margin-top: 2px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.75), rgba(119, 0, 255, 0.75));
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.tap-auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 255, 255, 0.22);
}

.tap-auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tap-auth-footer {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.tap-auth-footer button {
  border: 0;
  background: transparent;
  color: #00ffff;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.tap-auth-footer button:hover {
  text-decoration: underline;
}

.tap-auth-forgot {
  flex-basis: 100%;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.55) !important;
}

.tap-auth-back {
  color: rgba(255, 255, 255, 0.66) !important;
}

@media (max-width: 560px) {
  .tap-auth-overlay {
    padding: 14px;
  }

  .tap-auth-dialog {
    padding: 28px 20px;
  }

  .tap-email-row,
  .tap-code-row {
    align-items: stretch;
    flex-direction: column;
  }

  .tap-code-btn {
    width: 100%;
  }
}
