/* Vidfy night palette. Loaded after page-specific styles so every workflow shares it. */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0e11;
  --bg-soft: #252628;
  --ink: #eaf0fa;
  --muted: #b3b8be;
  --line: #3b3c3e;
  --composer-bg: #292a2c;
  --composer-shadow: 0 12px 34px rgba(0, 0, 0, .25), 0 0 0 1px #3b3c3e;
  --accent: #56d2c5;
  --cinema-lime: #b8ce1b;
  --cinema-teal: #56d2c5;
  --accent-ink: #081b19;
  --bubble-assistant: transparent;
  --bubble-user: #353638;
  --chip-bg: #2e2f31;
  --chip-hover: #3a3b3d;
  --chip-border: #494a4c;
  --surface: #292a2c;
  --surface-raised: #303133;
  --surface-hover: #393a3c;
  --link: #9cc2ff;
  --danger: #ffaaa5;
  --success: #84dfb6;
}

html[data-theme="dark"] body {
  background: var(--bg);
  color: var(--ink);
}
html[data-theme="dark"] :is(input, select, textarea) { color-scheme: dark; }
html[data-theme="dark"] :is(input, select, textarea)::placeholder { color: #a0aec3; }
html[data-theme="dark"] :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #91baff;
  outline-offset: 2px;
}
html[data-theme="dark"] a { color: var(--link); }

/* Site chrome, including the collapsed mobile menu. */
html[data-theme="dark"] .site-header {
  background: #0a0c0d;
  border-color: #2b2d30;
}
html[data-theme="dark"] .site-brand .brand-dark-logo { display: none; }
html[data-theme="dark"] .site-brand .brand-light-logo { display: block; }
html[data-theme="dark"] .brand-mark { filter: invert(1); }
html[data-theme="dark"] .site-link,
html[data-theme="dark"] .site-link-quiet { color: #c3d0e3; }
html[data-theme="dark"] .site-link:is(:hover, .is-active),
html[data-theme="dark"] .site-link-quiet:is(:hover, .is-active) { color: #fff; }
html[data-theme="dark"] .site-link.is-active { background: #242629; }
html[data-theme="dark"] .site-link.is-active::after { background: #91baff; }
html[data-theme="dark"] .site-menu { background: #131518; border-color: #2f3134; box-shadow: 0 18px 35px #0009; }
html[data-theme="dark"] .nav-toggle,
html[data-theme="dark"] .theme-toggle {
  background: #1f2124;
  border-color: #404245;
  color: #eaf0fa;
}
html[data-theme="dark"] .nav-toggle span { background: #eaf0fa; }
html[data-theme="dark"] .theme-toggle:hover { background: #2d2f32; }
html[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }
html[data-theme="dark"] .lang-switch,
html[data-theme="dark"] .account-menu-trigger,
html[data-theme="dark"] .account-menu-panel {
  background: #1a1c1f;
  border-color: #383a3d;
}
html[data-theme="dark"] .lang-btn { color: #c4d1e3; }
html[data-theme="dark"] .lang-btn.is-active { background: #2f3134; color: #fff; }
html[data-theme="dark"] .account-avatar { background: #2c2e31; color: #d5e6ff; }
html[data-theme="dark"] .account-menu-name,
html[data-theme="dark"] .account-menu-panel a,
html[data-theme="dark"] .account-menu-panel .account-logout { color: #e9f0fa; }
html[data-theme="dark"] .account-menu-panel :is(a, .account-logout):hover { background: #2a2c2f; }
html[data-theme="dark"] .site-cta { background: #72a8ff; color: #0e1013; }
html[data-theme="dark"] .site-footer { background: #090a0c; border-color: #242629; }
html[data-theme="dark"] .site-footer::before {
  background: radial-gradient(circle, rgba(255, 255, 255, .055), transparent 67%);
}
html[data-theme="dark"] .site-footer-cta { background: #dce9ff; color: #1a1c1f; }
html[data-theme="dark"] .site-footer-cta:hover { background: #fff; color: #1a1c1f; }

/* Creator: setup, references, chat, and composer. */
html[data-theme="dark"] .history-toggle,
html[data-theme="dark"] .side-tab,
html[data-theme="dark"] .rail-nav,
html[data-theme="dark"] .char-card,
html[data-theme="dark"] .choice.choice-visual,
html[data-theme="dark"] .mode-menu,
html[data-theme="dark"] .brief-acc,
html[data-theme="dark"] .brief-asset,
html[data-theme="dark"] .brief-chip {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"] .side-tab:hover,
html[data-theme="dark"] .rail-nav:hover:not(:disabled),
html[data-theme="dark"] .choice.choice-visual:hover:not(:disabled),
html[data-theme="dark"] .mode-menu button:hover { background: var(--surface-hover); }
html[data-theme="dark"] .side-tab.is-active,
html[data-theme="dark"] .choice.picked,
html[data-theme="dark"] .choice.choice-visual.picked,
html[data-theme="dark"] .choice.choice-delegate,
html[data-theme="dark"] .brief-acc.is-open .brief-acc-toggle,
html[data-theme="dark"] .mode-menu button[aria-pressed="true"] {
  background: #27292c;
  border-color: #547eb4;
  color: #d5e6ff;
}
html[data-theme="dark"] .side-tab.is-active .side-tab-label,
html[data-theme="dark"] .choice.choice-visual.picked .choice-visual-label,
html[data-theme="dark"] .setup-answer,
html[data-theme="dark"] .upload-count,
html[data-theme="dark"] .brief-kicker { color: #a9cbff; }
html[data-theme="dark"] .side-tab-count,
html[data-theme="dark"] .side-tab.is-active .side-tab-count,
html[data-theme="dark"] .upload-count,
html[data-theme="dark"] .char-card-index { background: #292b2e; color: #e4efff; border-color: #53739f; }
html[data-theme="dark"] .upload-drop,
html[data-theme="dark"] .brief-drop,
html[data-theme="dark"] .brief-more,
html[data-theme="dark"] .choice-visual-stage {
  background: #1a1c1f;
  border-color: #424447;
  color: var(--ink);
}
html[data-theme="dark"] .upload-drop:is(:hover, .is-drag),
html[data-theme="dark"] .brief-drop.is-drag { background: #26282b; border-color: #8cbaff; }
html[data-theme="dark"] .upload-name-input,
html[data-theme="dark"] .brief-asset-name input,
html[data-theme="dark"] .composer { background: var(--surface); color: var(--ink); border-color: var(--line); }
html[data-theme="dark"] .upload-card,
html[data-theme="dark"] .upload-thumb,
html[data-theme="dark"] .char-card-media { background: #232528; }
html[data-theme="dark"] .brief-card { background: linear-gradient(180deg, #181a1d, #15171a); border-color: var(--line); box-shadow: 0 20px 42px #0005; }
html[data-theme="dark"] .brief-card-head,
html[data-theme="dark"] .brief-col-assets,
html[data-theme="dark"] .brief-acc-body { border-color: var(--line); }
html[data-theme="dark"] .brief-acc-toggle { background: #1f2124; color: var(--ink); }
html[data-theme="dark"] .brief-subtitle,
html[data-theme="dark"] .brief-acc-chevron { color: var(--muted); }
html[data-theme="dark"] .msg.user .msg-bubble { background: #2a2c2f; color: #f1f6ff; }
html[data-theme="dark"] .msg.assistant .msg-bubble { color: var(--ink); }
html[data-theme="dark"] .setup-duration-warning:not([hidden]),
html[data-theme="dark"] .clip-editor-notice,
html[data-theme="dark"] #edit-continuity { background: #42341d; color: #f4d49b; border-color: #8a6833; }
html[data-theme="dark"] .composer-wrap { background: linear-gradient(180deg, transparent, var(--bg) 32%); }
html[data-theme="dark"] .composer-wrap.is-reveal .composer-hint { color: #a9cbff; }
html[data-theme="dark"] .composer-input { color: var(--ink); }
html[data-theme="dark"] .send-btn:not(:disabled):hover { background: #9bc5ff; }
html[data-theme="dark"] .mode-menu button { color: var(--ink); }
html[data-theme="dark"] .upload-open-error { color: var(--danger); }

/* Landing page, pricing, samples, and public information. */
html[data-theme="dark"] .home-showcase,
html[data-theme="dark"] .home-showcase-head h2 { color: var(--ink); }
html[data-theme="dark"] .home-showcase-eyebrow,
html[data-theme="dark"] .home-showcase-link { color: #a8cbff; }
html[data-theme="dark"] .home-showcase-card,
html[data-theme="dark"] .samples-card,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .how-steps li,
html[data-theme="dark"] .faq-item {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 14px 35px #0003;
}
html[data-theme="dark"] .home-showcase-meta,
html[data-theme="dark"] .home-showcase-meta span,
html[data-theme="dark"] .samples-card-info h3,
html[data-theme="dark"] .samples-outro h2,
html[data-theme="dark"] .price-amount,
html[data-theme="dark"] .faq-item summary { color: var(--ink); }
html[data-theme="dark"] .samples-card-info p,
html[data-theme="dark"] .price-card ul,
html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .how-steps p,
html[data-theme="dark"] .faq-item p,
html[data-theme="dark"] .section-heading p,
html[data-theme="dark"] .pricing-bottom p,
html[data-theme="dark"] .how-editorial-step p,
html[data-theme="dark"] .faq-layout aside p,
html[data-theme="dark"] .price-for { color: #b9c8dc; }
html[data-theme="dark"] .pricing-trial,
html[data-theme="dark"] .samples-outro,
html[data-theme="dark"] .page-content .price-card.is-trial,
html[data-theme="dark"] .marketing-features .feature-card {
  background: linear-gradient(145deg, #1d1f22, #17191c);
  border-color: #3a3c3f;
}
html[data-theme="dark"] .pricing-trial p { color: #c5d2e6; }
html[data-theme="dark"] .price-tag,
html[data-theme="dark"] .samples-duration,
html[data-theme="dark"] .how-num,
html[data-theme="dark"] .home-showcase-meta time { background: #2b2d30; color: #d5e6ff; }
html[data-theme="dark"] .price-credits,
html[data-theme="dark"] .marketing-eyebrow,
html[data-theme="dark"] .feature-index { color: #9bc2ff; }
html[data-theme="dark"] .price-action { background: #27292c; color: #cbd7e8; }
html[data-theme="dark"] .pricing-bottom,
html[data-theme="dark"] .how-editorial,
html[data-theme="dark"] .how-editorial-step { border-color: var(--line); }
html[data-theme="dark"] .how-editorial-number { color: #5676a6; }
html[data-theme="dark"] .marketing-hero,
html[data-theme="dark"] .samples-intro,
html[data-theme="dark"] .public-intro,
html[data-theme="dark"] .marketing-callout { color: #fff; }
html[data-theme="dark"] .marketing-hero,
html[data-theme="dark"] .samples-intro,
html[data-theme="dark"] .public-intro,
html[data-theme="dark"] .marketing-callout {
  background: linear-gradient(135deg, #1b1d21, #101114 72%, #0b0c0e);
  border: 1px solid #303238;
}
html[data-theme="dark"] .marketing-hero::before {
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .065), transparent 45%);
}
html[data-theme="dark"] .marketing-link { background: #d7e6ff; color: #181a1d; }
html[data-theme="dark"] .marketing-link:hover { background: #fff; }
html[data-theme="dark"] .samples-number,
html[data-theme="dark"] .samples-intro h2,
html[data-theme="dark"] .public-intro h2 { color: #f3f7ff; }
html[data-theme="dark"] .samples-outro .samples-eyebrow,
html[data-theme="dark"] .faq-item summary b,
html[data-theme="dark"] .policy-body section > span { color: #a9ceff; }
html[data-theme="dark"] .samples-cta { background: #245db9; color: #fff; }
html[data-theme="dark"] .samples-cta:hover { background: #356fc8; color: #fff; }
html[data-theme="dark"] .how-editorial-number { color: #7fa3d6; }

html[data-theme="dark"] .policy-index,
html[data-theme="dark"] .public-help,
html[data-theme="dark"] .contact-aside { background: #1c1e21; border-color: var(--line); }
html[data-theme="dark"] .policy-index strong,
html[data-theme="dark"] .policy-body h3,
html[data-theme="dark"] .public-help h3,
html[data-theme="dark"] .contact-aside h3,
html[data-theme="dark"] .contact-form label { color: #e7effb; }
html[data-theme="dark"] .policy-index a,
html[data-theme="dark"] .policy-body p,
html[data-theme="dark"] .public-help p,
html[data-theme="dark"] .contact-aside p { color: #bac9dd; }
html[data-theme="dark"] .policy-body section { border-color: var(--line); }
html[data-theme="dark"] .contact-form { background: var(--surface); border-color: var(--line); box-shadow: 0 18px 45px #0003; }
html[data-theme="dark"] .contact-form :is(input:not([type="checkbox"]), textarea) {
  background: #121417;
  border-color: #3c3e41;
  color: var(--ink);
}
html[data-theme="dark"] .contact-actions p { color: #b8c9e3; }

/* Accounts, assets, project lists, and sign-in. */
html[data-theme="dark"] .account-nav,
html[data-theme="dark"] .account-card,
html[data-theme="dark"] .account-table-wrap,
html[data-theme="dark"] .asset-card,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .projects-empty,
html[data-theme="dark"] .auth-page-card,
html[data-theme="dark"] .auth-modal {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"] .account-nav-link { color: #c2d0e2; }
html[data-theme="dark"] .account-nav-link:hover,
html[data-theme="dark"] .account-nav-link.is-active { background: #2c2e31; color: #e6f0ff; }
html[data-theme="dark"] .account-card-label,
html[data-theme="dark"] .account-nav-kicker,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .project-card-meta,
html[data-theme="dark"] .usage-bar-wrap small { color: var(--muted); }
html[data-theme="dark"] .account-table th,
html[data-theme="dark"] .fleet-members th { background: #232528; color: #d2deee; }
html[data-theme="dark"] .account-table :is(th, td),
html[data-theme="dark"] .usage-chart { border-color: var(--line); }
html[data-theme="dark"] .credit-bar,
html[data-theme="dark"] .usage-mode-track { background: #282a2d; }
html[data-theme="dark"] .asset-thumb { background: #242629; }
html[data-theme="dark"] .projects-empty { border-style: dashed; }
html[data-theme="dark"] .project-card-title { color: #f0f5fd; }
html[data-theme="dark"] .project-card-thumb { background: linear-gradient(145deg, #232528, #1a1c1f); border-color: var(--line); color: #b9d5ff; }
html[data-theme="dark"] .proj-btn-ghost,
html[data-theme="dark"] .proj-btn-danger { background: #212326; border-color: #414346; color: #e6eef9; }
html[data-theme="dark"] .proj-btn-danger { color: var(--danger); }
html[data-theme="dark"] .status-pill { background: #282a2d; color: #e3ecf8; }
html[data-theme="dark"] .status-pill.status-ready { background: #282a2d; color: #c4dcff; }
html[data-theme="dark"] .status-pill:is(.status-setup, .status-draft, .status-generating) { background: #493c25; color: #f5d8a0; }
html[data-theme="dark"] .status-pill.status-done { background: #1c483e; color: #a2eed0; }
html[data-theme="dark"] :is(.auth-field input, .account-form input, .account-form select, .account-form textarea) {
  background: #101c2d;
  border-color: #435a77;
  color: var(--ink);
}
html[data-theme="dark"] .auth-tab { color: #bdcce0; }
html[data-theme="dark"] .auth-logo { filter: invert(1); }
html[data-theme="dark"] .auth-tabs { background: #242629; }
html[data-theme="dark"] .auth-tabs .auth-tab { background: transparent; color: #c9d7e9; }
html[data-theme="dark"] .auth-tabs .auth-tab.is-active { background: #393b3e; color: #fff; }
html[data-theme="dark"] .auth-field { color: #d2e0f0; }
html[data-theme="dark"] .auth-close { background: #26282b; border-color: #424447; color: #e7eff9; }
html[data-theme="dark"] .auth-error { background: #4a2630; border-color: #905463; color: #ffd1d2; }
html[data-theme="dark"] .auth-tagline,
html[data-theme="dark"] .auth-footnote { color: #bdcbe0; }

/* Production progress, storyboard review, and timeline/editor. */
html[data-theme="dark"] .page-production {
  background: radial-gradient(1000px 420px at 50% -8%, #1d1f22, transparent 60%), var(--bg-soft);
}
html[data-theme="dark"] .prod-page > .prod-card,
html[data-theme="dark"] .prod-card {
  background: linear-gradient(145deg, #1a1c1f, #15171a);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 18px 50px #0004;
}
html[data-theme="dark"] .prod-page .progress-heading :is(h2, p),
html[data-theme="dark"] .prod-page #counts,
html[data-theme="dark"] .prod-subtitle,
html[data-theme="dark"] .prod-meta { color: #c1d0e5; }
html[data-theme="dark"] .prod-page .progress-heading h2 { color: #eff5ff; }
html[data-theme="dark"] .prod-page .progress-kicker,
html[data-theme="dark"] .prod-nle-empty { color: #aecaef; }
html[data-theme="dark"] .prod-page .status-row { color: #d8e5f6; }
html[data-theme="dark"] .progress-meter,
html[data-theme="dark"] .prod-progress { background: #2a2c2f; }
html[data-theme="dark"] .prod-page .prod-ms,
html[data-theme="dark"] .prod-ms { background: #212326; border-color: var(--line); color: #d2deed; }
html[data-theme="dark"] .prod-page .prod-ms.is-active,
html[data-theme="dark"] .prod-ms.is-active { background: #2c2e31; color: #d5e8ff; border-color: #5b8bc8; }
html[data-theme="dark"] .prod-page .prod-ms.is-done,
html[data-theme="dark"] .prod-ms.is-done { background: #20443b; color: #b1efd4; border-color: #468870; }
html[data-theme="dark"] .prod-page .status-row { border-color: var(--line); }
html[data-theme="dark"] .prod-error,
html[data-theme="dark"] .prod-ms.is-failed { background: #482b32; color: var(--danger); border-color: #83505a; }
html[data-theme="dark"] .storyboard { background: #141619; border-color: #303235; box-shadow: 0 22px 50px #0005; }
html[data-theme="dark"] .storyboard-heading {
  background: linear-gradient(115deg, #202226, #141518 70%, #1c1e22);
  border: 1px solid #373a40;
}
html[data-theme="dark"] .storyboard-preview-empty {
  background: #22252a;
  color: #d7e0ec;
}
html[data-theme="dark"] .storyboard-card { background: var(--surface); border-color: var(--line); box-shadow: 0 5px 20px #0003; }
html[data-theme="dark"] .storyboard-card-head { background: linear-gradient(90deg, #1e2023, #191b1e); border-color: var(--line); }
html[data-theme="dark"] .storyboard-card-head h3 { color: #ecf3ff; }
html[data-theme="dark"] .storyboard-transition,
html[data-theme="dark"] .storyboard-scene-number { background: #2b2d30; border-color: #526b88; color: #d9e8ff; }
html[data-theme="dark"] .storyboard-transition.is-continuation { background: #1d4a43; border-color: #4d957c; color: #b9f2dd; }
html[data-theme="dark"] .storyboard-card-counter { color: #b6c5d9; }
html[data-theme="dark"] .storyboard-card label,
html[data-theme="dark"] .storyboard-section-title { color: #d6e4f7; }
html[data-theme="dark"] .storyboard-visual-fields,
html[data-theme="dark"] .storyboard-help,
html[data-theme="dark"] .character-sheet-review { background: #1e2023; border-color: #414346; color: #cbdaf0; }
html[data-theme="dark"] .storyboard-dropzone,
html[data-theme="dark"] .character-sheet-grid figure { background: #17191c; border-color: #414346; color: #d8e6f9; }
html[data-theme="dark"] .storyboard-dropzone:is(:hover, .is-dragging, :focus-visible) { background: #2a2c2f; }
html[data-theme="dark"] .storyboard-drop-icon,
html[data-theme="dark"] .storyboard-generate-image,
html[data-theme="dark"] .storyboard-save,
html[data-theme="dark"] .storyboard-card input[type=file]::file-selector-button {
  background: #2f3134;
  border-color: #6289b6;
  color: #e5f0ff;
}
html[data-theme="dark"] .storyboard-generate-image:hover:not(:disabled),
html[data-theme="dark"] .storyboard-save:hover:not(:disabled) { background: #355c88; }
html[data-theme="dark"] .storyboard-drop-status:not(:empty),
html[data-theme="dark"] #storyboard-image-status { color: #a7d6ed; }
html[data-theme="dark"] .storyboard-card-loading { background: rgba(18, 34, 54, .94); color: #e6f1ff; }
html[data-theme="dark"] .prod-page.is-storyboard .storyboard-production-slot { background: #1e2023; border-color: #567393; }
html[data-theme="dark"] #storyboard-image-generator { background: #16181b; border-color: #414346; color: var(--ink); }
html[data-theme="dark"] .storyboard-image-dialog-head h3,
html[data-theme="dark"] .storyboard-image-prompt-field,
html[data-theme="dark"] .storyboard-image-source legend,
html[data-theme="dark"] .character-sheet-review h3,
html[data-theme="dark"] .character-sheet-grid figcaption { color: #e9f2ff; }
html[data-theme="dark"] .storyboard-image-source { background: #1f2124; border-color: #414346; }
html[data-theme="dark"] .storyboard-image-source label,
html[data-theme="dark"] .character-sheet-grid figure > span { color: #c5d6eb; }
html[data-theme="dark"] .character-sheet-grid img { background: #25272a; }
html[data-theme="dark"] #storyboard-message { color: var(--danger); }
html[data-theme="dark"] .storyboard :is(input, textarea, select) { background: #141619; border-color: #404245; color: var(--ink); }
html[data-theme="dark"] .storyboard :is(label, small, p) { color: #c4d2e5; }
html[data-theme="dark"] .storyboard-heading :is(h2, p),
html[data-theme="dark"] .storyboard-preview :is(p, small) { color: #eff5ff; }
html[data-theme="dark"] .storyboard :is(.storyboard-continuity, .storyboard-image-upload, .storyboard-image-request) { background: #1f2124; border-color: #3c3e41; }
html[data-theme="dark"] .prod-nle-shell,
html[data-theme="dark"] .prod-nle-toolbar,
html[data-theme="dark"] .prod-nle-viewport,
html[data-theme="dark"] .prod-nle-track { background-color: #181a1d; border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .prod-nle-toolbar { background: #1b1d20; }
html[data-theme="dark"] .prod-nle-toolbar > button {
  background: #292c31;
  border-color: #4a4e55;
  color: #e5edf8;
}
html[data-theme="dark"] .prod-nle-scroll > button,
html[data-theme="dark"] .prod-nle-edit,
html[data-theme="dark"] .prod-nle-version-button { background: #26282b; color: #e0edff; border-color: var(--line); }
html[data-theme="dark"] .timeline-settings #settings-menu { background: #1d1f22; border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .timeline-settings #settings-menu button { background: transparent; color: var(--ink); }
html[data-theme="dark"] .timeline-settings #settings-menu button:hover { background: #323437; }
html[data-theme="dark"] .prod-nle-qa { background: #604923; color: #fff0c7; }
html[data-theme="dark"] dialog,
html[data-theme="dark"] #clip-editor,
html[data-theme="dark"] #clip-image-generator { background: #16181b; color: var(--ink); border-color: #404245; }
html[data-theme="dark"] .clip-editor-header,
html[data-theme="dark"] .clip-editor-actions { background: #1d1f22; border-color: var(--line); }
html[data-theme="dark"] .clip-editor-header h3,
html[data-theme="dark"] .clip-image-generator-head h3,
html[data-theme="dark"] .clip-image-preview,
html[data-theme="dark"] #clip-editor .clip-editor-field,
html[data-theme="dark"] #clip-image-generator .clip-editor-field,
html[data-theme="dark"] .clip-image-source legend { color: #eaf2ff; }
html[data-theme="dark"] .clip-editor-header p,
html[data-theme="dark"] .clip-image-preview p,
html[data-theme="dark"] .clip-image-options small,
html[data-theme="dark"] #clip-image-generate-status { color: #becde2; }
html[data-theme="dark"] .clip-image-studio,
html[data-theme="dark"] #clip-editor .clip-editor-upload,
html[data-theme="dark"] .clip-image-source { background: #1f2124; border-color: #414346; }
html[data-theme="dark"] .clip-image-options > div { background: #191b1e; border-color: var(--line); }
html[data-theme="dark"] .clip-image-options button,
html[data-theme="dark"] #close-editor { background: #2d2f32; color: #e0edff; border-color: #5575a1; }
html[data-theme="dark"] #clip-editor :is(input, select, textarea),
html[data-theme="dark"] #clip-image-generator :is(input, select, textarea) {
  background: #101215;
  border-color: #424447;
  color: var(--ink);
}
html[data-theme="dark"] .clip-image-preview img { background: #111316; }
html[data-theme="dark"] .clip-editor-actions p,
html[data-theme="dark"] #clip-editor #edit-message { color: var(--danger); }

/* Admin tables, rule editor, and supporting controls. */
html[data-theme="dark"] .fleet-card,
html[data-theme="dark"] .fleet-rule,
html[data-theme="dark"] .fleet-rule-editor,
html[data-theme="dark"] .fleet-password-form,
html[data-theme="dark"] .fleet-account-selected form,
html[data-theme="dark"] .fleet-member-stats > div,
html[data-theme="dark"] .fleet-account-results button {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"] .fleet-rule-head strong,
html[data-theme="dark"] .fleet-member-stats strong,
html[data-theme="dark"] .fleet-members td { color: #edf3fc; }
html[data-theme="dark"] .fleet-card :is(p, small),
html[data-theme="dark"] .fleet-guide li,
html[data-theme="dark"] .fleet-rule-head span,
html[data-theme="dark"] .fleet-rule small,
html[data-theme="dark"] .fleet-member-stats span,
html[data-theme="dark"] .fleet-members td small { color: #b7c7dc; }
html[data-theme="dark"] .fleet-rule :is(summary, details),
html[data-theme="dark"] .fleet-node,
html[data-theme="dark"] .fleet-metrics :is(th, td),
html[data-theme="dark"] .fleet-members :is(th, td) { border-color: var(--line); }
html[data-theme="dark"] .fleet-members tbody tr:is(:hover, .is-selected) { background: #26282b; }
html[data-theme="dark"] .fleet-card :is(input:not([type="checkbox"]), select, textarea),
html[data-theme="dark"] .fleet-rule-editor :is(input, select, textarea) {
  background: #121417;
  border-color: #3f4144;
  color: var(--ink);
}
html[data-theme="dark"] .fleet-admin-tabs button,
html[data-theme="dark"] .fleet-card button:not(.primary),
html[data-theme="dark"] .fleet-rule-tags span { background: #282a2d; border-color: #56749d; color: #e1edff; }
html[data-theme="dark"] .fleet-admin-tabs button.is-active,
html[data-theme="dark"] .fleet-rule-toolbar button { background: #477ed9; color: #fff; }
html[data-theme="dark"] .fleet-rule pre { background: #0e1013; color: #eaf2ff; }
html[data-theme="dark"] .fleet-project-table-wrap,
html[data-theme="dark"] .admin-project-card,
html[data-theme="dark"] .admin-project-hero,
html[data-theme="dark"] .admin-project-stack article,
html[data-theme="dark"] .admin-project-event,
html[data-theme="dark"] .admin-project-message,
html[data-theme="dark"] .admin-project-asset,
html[data-theme="dark"] .admin-rule-agent,
html[data-theme="dark"] .admin-api-usage article,
html[data-theme="dark"] .admin-profile-card,
html[data-theme="dark"] .admin-profile-stages section {
  background: #1a1c1f;
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"] .admin-project-detail,
html[data-theme="dark"] .admin-project-hero h1,
html[data-theme="dark"] .admin-profile-top h3,
html[data-theme="dark"] .admin-api-usage strong { color: var(--ink); }
html[data-theme="dark"] .fleet-project-table :is(th, td),
html[data-theme="dark"] .admin-profile-line { border-color: var(--line); }
html[data-theme="dark"] .fleet-project-table th { background: #242629; color: #d2e1f2; }
html[data-theme="dark"] .fleet-project-table tbody tr:hover { background: #27292c; }
html[data-theme="dark"] .fleet-project-table td:first-child,
html[data-theme="dark"] .fleet-project-table td:nth-child(4),
html[data-theme="dark"] .fleet-project-table td:nth-child(5),
html[data-theme="dark"] .admin-project-stack strong,
html[data-theme="dark"] .admin-project-event strong,
html[data-theme="dark"] .admin-project-message strong,
html[data-theme="dark"] .admin-profile-extra > strong { color: #dceaff; }
html[data-theme="dark"] .admin-project-hero p,
html[data-theme="dark"] .admin-project-section-head p,
html[data-theme="dark"] .admin-project-story,
html[data-theme="dark"] .admin-project-log pre,
html[data-theme="dark"] .admin-profile-line span,
html[data-theme="dark"] .admin-api-usage small { color: #b9c9df; }
html[data-theme="dark"] .fleet-project-table a,
html[data-theme="dark"] .admin-project-badge,
html[data-theme="dark"] .admin-profile-badge,
html[data-theme="dark"] .admin-profile-rule,
html[data-theme="dark"] .admin-profiles-readonly { background: #2e3033; color: #d7eaff; border-color: #54799e; }
html[data-theme="dark"] .admin-project-badge[data-status=success] { background: #1e483d; color: #aeefd1; }
html[data-theme="dark"] .admin-project-badge[data-status=failed],
html[data-theme="dark"] .admin-profile-rule.is-disabled { background: #4b2b32; color: #ffd0ca; }
html[data-theme="dark"] .admin-project-expand summary,
html[data-theme="dark"] .admin-rule-agent summary,
html[data-theme="dark"] .admin-profile-stages span { color: #afccff; }
html[data-theme="dark"] .admin-rule-agent :is(p, small) { color: #b9c9df; }
html[data-theme="dark"] .admin-api-usage span,
html[data-theme="dark"] .admin-profile-id { color: #aac9f4; }
html[data-theme="dark"] .admin-project-badge[data-status=running] { background: #2b2d30; color: #d6e8ff; }
html[data-theme="dark"] .fleet-project-filters select { background: #141619; border-color: #414346; color: var(--ink); }

/* Cinema accents: an editorial highlight with a consistent action color. */
html[data-theme="dark"] :is(a, button, input, select, textarea, summary):focus-visible {
  outline-color: #83e2d7;
}
html[data-theme="dark"] .page-home .greeting,
html[data-theme="dark"] .marketing-hero h2,
html[data-theme="dark"] .samples-intro h2,
html[data-theme="dark"] .public-intro h2 {
  color: var(--cinema-lime);
}
html[data-theme="dark"] .setup-block[data-step-id="type"] .choice {
  background: #1b1d20;
  border-color: #3a3d40;
  color: var(--cinema-teal);
}
html[data-theme="dark"] .setup-block[data-step-id="type"] .choice:hover:not(:disabled),
html[data-theme="dark"] .choice:not(.choice-visual):hover:not(:disabled) {
  background: #202d2b;
  border-color: #68cfc3;
  color: #a7fff3;
}
html[data-theme="dark"] .setup-block[data-step-id="type"] .choice.picked,
html[data-theme="dark"] .choice.picked,
html[data-theme="dark"] .choice.choice-visual.picked,
html[data-theme="dark"] .side-tab.is-active,
html[data-theme="dark"] .mode-menu button[aria-pressed="true"] {
  background: #1a3531;
  border-color: #67cabd;
  color: #d3fff8;
}
html[data-theme="dark"] .setup-answer,
html[data-theme="dark"] .choice.choice-visual.picked .choice-visual-label,
html[data-theme="dark"] .side-tab.is-active .side-tab-label,
html[data-theme="dark"] .price-credits,
html[data-theme="dark"] .brief-kicker { color: #87e6d9; }
html[data-theme="dark"] .choice-with-description span { color: #bac7c7; }
html[data-theme="dark"] .site-cta,
html[data-theme="dark"] .samples-cta,
html[data-theme="dark"] .price-card.is-trial .price-action,
html[data-theme="dark"] .contact-actions button:not(:disabled),
html[data-theme="dark"] .auth-submit:not(:disabled),
html[data-theme="dark"] .proj-btn-primary,
html[data-theme="dark"] .primary,
html[data-theme="dark"] .fleet-admin-tabs button.is-active,
html[data-theme="dark"] .fleet-rule-toolbar button {
  background: var(--cinema-teal);
  color: #09211e;
  border-color: var(--cinema-teal);
  box-shadow: none;
}
html[data-theme="dark"] .site-cta:hover,
html[data-theme="dark"] .samples-cta:hover,
html[data-theme="dark"] .price-card.is-trial .price-action:hover,
html[data-theme="dark"] .contact-actions button:hover:not(:disabled),
html[data-theme="dark"] .proj-btn-primary:hover {
  background: #82e3d7;
  color: #09211e;
}
html[data-theme="dark"] .send-btn:disabled {
  background: #40504e;
  color: #9cb6b1;
}
html[data-theme="dark"] .site-footer-cta,
html[data-theme="dark"] .marketing-link { background: #d9f5ee; color: #102320; }
html[data-theme="dark"] .site-footer-cta:hover,
html[data-theme="dark"] .marketing-link:hover { background: #fff; color: #102320; }
html[data-theme="dark"] .home-showcase-card:hover,
html[data-theme="dark"] .samples-card:hover { border-color: #49625e; }
html[data-theme="dark"] .prod-page .prod-ms.is-active,
html[data-theme="dark"] .prod-ms.is-active {
  background: #1a3531;
  border-color: #62c3b7;
  color: #d3fff8;
}
html[data-theme="dark"] .prod-progress > span,
html[data-theme="dark"] .progress-meter > span { background: linear-gradient(90deg, #238d82, #75dfd1); }
html[data-theme="dark"] .storyboard-generate-image,
html[data-theme="dark"] .storyboard-save {
  background: #24413c;
  border-color: #65c2b5;
  color: #d3fff8;
}
html[data-theme="dark"] .storyboard-generate-image:hover:not(:disabled),
html[data-theme="dark"] .storyboard-save:hover:not(:disabled) { background: #315b54; }

/* Graphite surfaces sampled from the supplied dashboard reference. */
html[data-theme="dark"] .site-menu,
html[data-theme="dark"] .account-menu-panel { background: #2b2c2e; border-color: #414244; }
html[data-theme="dark"] .nav-toggle,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .lang-switch,
html[data-theme="dark"] .account-menu-trigger { background: #303133; border-color: #494a4c; }
html[data-theme="dark"] .site-link.is-active,
html[data-theme="dark"] .lang-btn.is-active,
html[data-theme="dark"] .account-menu-panel :is(a, .account-logout):hover {
  background: #414244;
}
html[data-theme="dark"] .setup-block[data-step-id="type"] .choice,
html[data-theme="dark"] .choice.choice-delegate,
html[data-theme="dark"] .brief-acc-toggle { background: #2e2f31; border-color: #494a4c; }
html[data-theme="dark"] .setup-block[data-step-id="type"] .choice.picked,
html[data-theme="dark"] .choice.choice-delegate.picked { background: #26413d; border-color: #67cabd; }
html[data-theme="dark"] .setup-block[data-step-id="type"] .choice[data-value="content"] {
  color: #68dfd1;
}
html[data-theme="dark"] .setup-block[data-step-id="type"] .choice[data-value="ad"] {
  color: #f3b181;
}
html[data-theme="dark"] .setup-block[data-step-id="type"] .choice[data-value="ad"]:hover:not(:disabled) {
  background: #39302a;
  border-color: #c98d64;
  color: #ffd1af;
}
html[data-theme="dark"] .setup-block[data-step-id="type"] .choice[data-value="ad"].picked {
  background: #493629;
  border-color: #d79a6c;
  color: #ffe2cb;
}
html[data-theme="dark"] .composer,
html[data-theme="dark"] .upload-name-input,
html[data-theme="dark"] .brief-asset-name input { background: #292a2c; }
html[data-theme="dark"] .brief-card {
  background: linear-gradient(180deg, #303133, #292a2c);
  border-color: var(--line);
}
html[data-theme="dark"] .home-showcase-card,
html[data-theme="dark"] .samples-card { background: #292a2c; border-color: #3b3c3e; }
html[data-theme="dark"] .site-footer { background: #1e1f21; border-color: #3b3c3e; }
html[data-theme="dark"] .marketing-hero,
html[data-theme="dark"] .samples-intro,
html[data-theme="dark"] .public-intro,
html[data-theme="dark"] .marketing-callout {
  background: linear-gradient(135deg, #303133, #27282a 72%, #232426);
  border-color: #414244;
}
html[data-theme="dark"] .feature-showreel {
  background: #202123;
  border-color: #4a4b4d;
  box-shadow: 0 24px 65px rgba(0, 0, 0, .28);
}
html[data-theme="dark"] .feature-showreel-eyebrow { color: #88dcd2; }
html[data-theme="dark"] .feature-showreel-caption strong { color: #f3f6f5; }
html[data-theme="dark"] .feature-showreel-caption small { color: #b9c3c4; }
html[data-theme="dark"] .pricing-trial,
html[data-theme="dark"] .samples-outro,
html[data-theme="dark"] .page-content .price-card.is-trial,
html[data-theme="dark"] .marketing-features .feature-card {
  background: linear-gradient(145deg, #303133, #292a2c);
  border-color: #454648;
}
html[data-theme="dark"] .policy-index,
html[data-theme="dark"] .public-help,
html[data-theme="dark"] .contact-aside,
html[data-theme="dark"] .contact-form { background: #2b2c2e; border-color: #414244; }
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .auth-shell { background: #292a2c; border-color: #414244; }
html[data-theme="dark"] .page-production {
  background: radial-gradient(1000px 420px at 50% -8%, #2d2e30, transparent 60%), var(--bg);
}
html[data-theme="dark"] .prod-page > .prod-card,
html[data-theme="dark"] .prod-card {
  background: linear-gradient(145deg, #303133, #292a2c);
  border-color: #414244;
}
html[data-theme="dark"] .storyboard,
html[data-theme="dark"] .prod-nle-shell { background: #222324; border-color: #414244; }
html[data-theme="dark"] .storyboard-heading {
  background: linear-gradient(115deg, #353638, #292a2c 70%, #303133);
  border-color: #494a4c;
}
html[data-theme="dark"] .prod-nle-toolbar,
html[data-theme="dark"] .prod-nle-viewport,
html[data-theme="dark"] .prod-nle-track { background: #292a2c; border-color: #414244; }
html[data-theme="dark"] .admin-project-card,
html[data-theme="dark"] .admin-project-hero,
html[data-theme="dark"] .admin-project-stack article,
html[data-theme="dark"] .admin-project-event,
html[data-theme="dark"] .admin-project-message,
html[data-theme="dark"] .admin-api-usage article { background: #292a2c; border-color: #414244; }

/* Footer: the same graphite base with restrained editorial color cues. */
html[data-theme="dark"] .site-footer {
  background: linear-gradient(180deg, #252628 0%, #1d1e20 100%);
  border-top-color: #4a4b4d;
  color: #e3e8e8;
}
html[data-theme="dark"] .site-footer::before {
  background: radial-gradient(circle, rgba(86, 210, 197, .13), transparent 68%);
}
html[data-theme="dark"] .site-footer::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #56d2c5, #b8ce1b 51%, #f3b181);
  opacity: .65;
  pointer-events: none;
}
html[data-theme="dark"] .site-footer-kicker { color: #c6da4d; }
html[data-theme="dark"] .site-footer-top h2,
html[data-theme="dark"] .site-footer-column h3 { color: #f5f7f6; }
html[data-theme="dark"] .site-footer-top p,
html[data-theme="dark"] .site-footer-brand-block p { color: #bbc3c5; }
html[data-theme="dark"] .site-footer-cta {
  background: #8de2d7;
  color: #102320;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}
html[data-theme="dark"] .site-footer-cta:hover { background: #b4f3e9; color: #102320; }
html[data-theme="dark"] .site-footer-divider,
html[data-theme="dark"] .site-footer-bottom { border-color: #414244; }
html[data-theme="dark"] .site-footer-divider { background: #414244; }
html[data-theme="dark"] .site-footer-column h3::after {
  content: "";
  display: block;
  width: 23px;
  height: 2px;
  margin-top: 10px;
  border-radius: 2px;
  background: #56d2c5;
}
html[data-theme="dark"] .site-footer-column:nth-of-type(2) h3::after { background: #b8ce1b; }
html[data-theme="dark"] .site-footer-column:nth-of-type(3) h3::after { background: #f3b181; }
html[data-theme="dark"] .site-footer-column a { color: #c7cfd0; }
html[data-theme="dark"] .site-footer-column a:hover { color: #9ce9df; }
html[data-theme="dark"] .site-footer-column:nth-of-type(2) a:hover { color: #d3e470; }
html[data-theme="dark"] .site-footer-column:nth-of-type(3) a:hover { color: #ffd1af; }
html[data-theme="dark"] .site-footer-bottom { color: #abb4b6; }
html[data-theme="dark"] .site-footer a:focus-visible { outline-color: #83e2d7; }

/* Registration uses the same lime as the opening headline. */
html[data-theme="dark"] .site-cta,
html[data-theme="dark"] .page-auth[data-auth-mode="register"] .auth-submit:not(:disabled),
html[data-theme="dark"] .page-auth[data-auth-mode="register"] .auth-tabs .auth-tab.is-active {
  background: var(--cinema-lime);
  border-color: var(--cinema-lime);
  color: #161914;
}
html[data-theme="dark"] .site-cta:hover,
html[data-theme="dark"] .page-auth[data-auth-mode="register"] .auth-submit:hover:not(:disabled) {
  background: #d0e65b;
  border-color: #d0e65b;
  color: #161914;
}
html[data-theme="dark"] :is(.auth-field input, .account-form input, .account-form select, .account-form textarea) {
  background: #222426;
  border-color: #55585a;
}

@media (max-width: 1080px) {
  html[data-theme="dark"] .site-menu { background: #2b2c2e; }
}

@media (min-width: 1081px) {
  html[data-theme="dark"] .site-menu { border-radius: 12px; }
}

html[data-theme="dark"] .admin-paid-gpu { background:#2e2f31; border-color:#5b7876; color:#9ce9df; }
html[data-theme="dark"] .admin-gpu-refresh { background:#303133; border-color:#5b7876; color:#9ce9df; }
html[data-theme="dark"] .admin-gpu-dialog { background:#252628; border-color:#494a4c; color:#eaf0fa; }
html[data-theme="dark"] .admin-gpu-option { border-color:#494a4c; }
html[data-theme="dark"] .admin-gpu-note { color:#bbc3c5; }
/* Timeline contrast in dark mode. */
html[data-theme="dark"] .prod-nle-ruler {
  background: repeating-linear-gradient(90deg, transparent 0 51px, rgba(255,255,255,.12) 52px, transparent 53px), #24272b;
  border-color: #494d53;
}
html[data-theme="dark"] .prod-nle-ruler-label { color: #c3d0e0; }
html[data-theme="dark"] .prod-nle-clip-label {
  background: rgba(18, 25, 34, .92);
  color: #f3f7fc;
  border-color: #566271;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
html[data-theme="dark"] .prod-nle-clip.is-queued .prod-nle-clip-version {
  background: #2b3139;
  color: #e6edf7;
  border-color: #596372;
}
html[data-theme="dark"] .prod-nle-clip.is-producing .prod-nle-clip-version {
  background: #1b3552;
  color: #d9ecff;
  border-color: #5a91ca;
}
html[data-theme="dark"] .prod-nle-clip-version {
  background: #214434;
  color: #d5f6e3;
  border-color: #4d896a;
}
html[data-theme="dark"] .timeline-controls > button:not(.primary),
html[data-theme="dark"] .timeline-settings > button {
  background: #2d3137;
  color: #edf3fc;
  border-color: #5b6572;
}
html[data-theme="dark"] .timeline-controls > button:not(.primary):hover,
html[data-theme="dark"] .timeline-settings > button:hover { background: #3a414a; }
html[data-theme="dark"] .prod-nle-playhead-time {
  background: #202b38;
  color: #d7eaff;
  border-color: #6a94c2;
}
html[data-theme="dark"] .prod-nle-summary,
html[data-theme="dark"] .prod-nle-summary.is-live {
  background: #26303c;
  border-color: #506782;
}
html[data-theme="dark"] .prod-nle-summary-progress { background: #414b58; }
/* Shared dark defaults: plain controls otherwise inherit light text on white. */
:where(html[data-theme="dark"]) button {
  background: #2d3034;
  border-color: #535a62;
  color: #edf3fc;
}
:where(html[data-theme="dark"]) :is(input, select, textarea) {
  background: #1d2024;
  border-color: #50575f;
  color: #edf3fc;
}
html[data-theme="dark"] .danger:not(.primary) { color: #ffaaa5; }
html[data-theme="dark"] .prod-page :is(.chat-card, .create-card, .projects-card) {
  background: #24272b;
  border-color: #41474f;
  color: #edf3fc;
}
html[data-theme="dark"] .prod-page .message {
  background: #30363e;
  color: #edf3fc;
}
html[data-theme="dark"] .prod-page .message.user { background: #24443f; }
html[data-theme="dark"] .prod-page .message:is(.tool, .status) {
  background: transparent;
  color: #b8c6d6;
}
html[data-theme="dark"] .prod-final-panel {
  background: #22262b;
  border-color: #4d5660;
  color: #edf3fc;
  box-shadow: 0 18px 50px #0008;
}
html[data-theme="dark"] .prod-final-download {
  background: #243c48;
  border-color: #5b929f;
  color: #c8f3f1;
}
html[data-theme="dark"] .prod-final-download:hover { background: #305460; }
html[data-theme="dark"] .prod-nle-play {
  background: #283c44;
  border-color: #5d9ca0;
  color: #b7f0e9;
}
html[data-theme="dark"] .prod-nle-play:hover { background: #35515a; }
html[data-theme="dark"] .prod-nle-clip,
html[data-theme="dark"] .prod-nle-clip.is-queued {
  background: #22272c;
}
html[data-theme="dark"] .prod-nle-production-overlay {
  background: rgba(15, 21, 28, .82);
}
html[data-theme="dark"] .prod-nle-render-label { color: #f1f7ff; }
html[data-theme="dark"] .prod-nle-clip-percent {
  background: #233e57;
  color: #e2f1ff;
}
html[data-theme="dark"] #version-options button.is-active {
  background: #23443e;
  border-color: #60b7a9;
  color: #e2fff8;
}
html[data-theme="dark"] .version-option .version-preview { color: #b3dcff; }
html[data-theme="dark"] #version-message { color: #ffaaa5; }
html[data-theme="dark"] .prod-preview-panel {
  background: #22262b;
  border-color: #4d5660;
  color: #edf3fc;
  box-shadow: 0 18px 50px #0008;
}
/* Pricing discount panels keep their hierarchy in dark mode. */
html[data-theme="dark"] .discount-panel { background: linear-gradient(145deg,#202b3d,#1b202b); border-color: #3e526f; box-shadow: 0 12px 27px #0003, inset 0 1px 0 #ffffff0d; }
html[data-theme="dark"] .discount-panel-head { border-color: #3a4b63; }
html[data-theme="dark"] .discount-panel-label,
html[data-theme="dark"] .discount-panel-standard strong { color: #a8c9ff; }
html[data-theme="dark"] .discount-max,
html[data-theme="dark"] .discount-row strong,
html[data-theme="dark"] .discount-row:last-child strong { color: #d3e3ff; }
html[data-theme="dark"] .discount-row { color: #c1d0e5; }
html[data-theme="dark"] .discount-row:nth-child(even) { background: #ffffff09; }
html[data-theme="dark"] .discount-row:last-child { background: linear-gradient(100deg,#2d466d,#263953); }

/* Pricing showcase */
html[data-theme="dark"] .pricing-showcase { background: radial-gradient(circle at 5% 5%,#263653,transparent 35%),radial-gradient(circle at 95% 90%,#43362f,transparent 32%),#1a202b; }
html[data-theme="dark"] .pricing-intro h2,html[data-theme="dark"] .pricing-point,html[data-theme="dark"] .pricing-showcase .price-card h3,html[data-theme="dark"] .pricing-showcase .price-amount { color:#f4f7ff; }
html[data-theme="dark"] .pricing-intro p,html[data-theme="dark"] .pricing-point small,html[data-theme="dark"] .pricing-showcase .price-for,html[data-theme="dark"] .pricing-footnote { color:#adbcd2; }
html[data-theme="dark"] .pricing-intro .marketing-eyebrow { background:#283752; border-color:#43618c; color:#c3d8ff; }
html[data-theme="dark"] .pricing-showcase .price-card,html[data-theme="dark"] .pricing-showcase .price-card.is-trial { background:#252d3b; border-color:#46536a; box-shadow:0 18px 36px #0004; }
html[data-theme="dark"] .pricing-showcase .price-card.is-featured { border-color:#729cff; box-shadow:0 0 0 5px #6096ff26,0 24px 46px #0006; }
html[data-theme="dark"] .pricing-showcase .price-card ul { border-color:#455267; }
html[data-theme="dark"] .pricing-showcase .discount-panel { background:#392e29; border-color:#75513b; }
html[data-theme="dark"] .pricing-showcase .discount-tile small { color:#e8d3c1; }
html[data-theme="dark"] .pricing-showcase .price-card--pro .discount-panel { background:#302e4b; border-color:#54517f; }
html[data-theme="dark"] .pricing-showcase .price-card--studio .discount-panel { background:#432c3f; border-color:#704765; }

/* Product-discovery pages */
html[data-theme="dark"] body[data-page="features"] .marketing-hero,
html[data-theme="dark"] body[data-page="how"] .marketing-hero,
html[data-theme="dark"] body[data-page="samples"] .samples-intro { background:radial-gradient(circle at 94% 8%,#2b3c5d,transparent 36%),radial-gradient(circle at 5% 95%,#40332d,transparent 34%),#202b3c; border-color:#41516d; }
html[data-theme="dark"] body[data-page="features"] .marketing-hero h2,
html[data-theme="dark"] body[data-page="how"] .marketing-hero h2,
html[data-theme="dark"] body[data-page="samples"] .samples-intro h2 { color:#f4f7ff; }
html[data-theme="dark"] body[data-page="features"] .marketing-hero p,
html[data-theme="dark"] body[data-page="how"] .marketing-hero p,
html[data-theme="dark"] body[data-page="samples"] .samples-intro p { color:#b7c5dc; }
html[data-theme="dark"] body[data-page="features"] .marketing-features .feature-card,
html[data-theme="dark"] body[data-page="how"] .how-editorial-step,
html[data-theme="dark"] body[data-page="samples"] .samples-card { background:#252d3b; border-color:#45536b; }
html[data-theme="dark"] body[data-page="how"] .how-mini-timeline { background:#263244; border-color:#465b7a; }
html[data-theme="dark"] body[data-page="how"] .how-mini-timeline span { background:#30415b; border-color:#435a7b; color:#e6efff; }
html[data-theme="dark"] body[data-page="how"] .how-mini-timeline span:nth-child(even) { background:#49382e; border-color:#66503f; }
html[data-theme="dark"] body[data-page="samples"] .samples-outro { background:linear-gradient(115deg,#263a5a,#49382e); border-color:#51637c; }

/* FAQ and contact */
html[data-theme="dark"] body[data-page="faq"] .marketing-hero,
html[data-theme="dark"] body[data-page="contact"] .public-intro { background:radial-gradient(circle at 93% 8%,#2b3c5d,transparent 36%),radial-gradient(circle at 5% 95%,#40332d,transparent 34%),#202b3c; border-color:#41516d; }
html[data-theme="dark"] body[data-page="faq"] .marketing-hero h2,
html[data-theme="dark"] body[data-page="contact"] .public-intro h2 { color:#f4f7ff; }
html[data-theme="dark"] body[data-page="faq"] .marketing-hero p,
html[data-theme="dark"] body[data-page="contact"] .public-intro p { color:#b7c5dc; }
html[data-theme="dark"] body[data-page="faq"] .faq-layout aside,
html[data-theme="dark"] body[data-page="faq"] .faq-item,
html[data-theme="dark"] body[data-page="contact"] .contact-aside,
html[data-theme="dark"] body[data-page="contact"] .contact-form { background:#252d3b; border-color:#45536b; }
html[data-theme="dark"] body[data-page="faq"] .faq-item summary { color:#e6efff; }
html[data-theme="dark"] body[data-page="faq"] .faq-item summary b { background:#344663; color:#bed7ff; }

/* The shared footer deliberately keeps the same blue art in both themes. */
html[data-theme="dark"] .site-footer { color:#d1ddf1; background:radial-gradient(circle at 92% 3%,#112e75 0,transparent 27%),linear-gradient(150deg,#071633,#051126 72%,#071a43); border-color:transparent; }
html[data-theme="dark"] .site-footer::before { inset:0 0 auto; width:100%; height:min(33vw,460px); min-height:300px; background:url('/static/brand/footer-waves.svg?v=20261008-footer1') center top / cover no-repeat; opacity:1; }
html[data-theme="dark"] .site-footer::after { inset:auto -8% -220px; height:440px; background:radial-gradient(ellipse,#15398255,transparent 68%); opacity:1; }
html[data-theme="dark"] .site-footer-kicker { color:#8dc3ff; }
html[data-theme="dark"] .site-footer-top h2 { background:linear-gradient(100deg,#fff 14%,#fff 52%,#63a8ff 82%,#90c6ff); -webkit-background-clip:text; background-clip:text; color:transparent; }
html[data-theme="dark"] .site-footer-top p,html[data-theme="dark"] .site-footer-brand-block p { color:#b5c5df; }
html[data-theme="dark"] .site-footer-cta { color:#12346e; background:linear-gradient(145deg,#fff,#d9e8ff); box-shadow:0 10px 30px #1b63ec55,inset 0 1px #fff; }
html[data-theme="dark"] .site-footer-cta:hover { color:#12346e; background:linear-gradient(145deg,#fff,#ecf4ff); }
html[data-theme="dark"] .site-footer-divider { background:#aec4ef33; }
html[data-theme="dark"] .site-footer-divider,html[data-theme="dark"] .site-footer-bottom { border-color:#aec4ef33; }
html[data-theme="dark"] .site-footer-column h3::after { display:none; }
html[data-theme="dark"] .site-footer-column a { color:#aabbd5; }
html[data-theme="dark"] .site-footer-column a:hover { color:#fff; }
/* Dark-only cinematic home, with the editable creation flow kept intact. */
html[data-theme="dark"] .theme-toggle { display: none !important; }
html[data-theme="dark"] body.page-home { background: #061126; }
html[data-theme="dark"] .page-home .site-header {
  background: rgba(4, 13, 34, .93);
  border-bottom-color: rgba(115, 166, 255, .15);
}
html[data-theme="dark"] .page-home .app.show-home-showcase {
  color: #f7faff;
  background:
    radial-gradient(760px 520px at 78% 16%, rgba(39, 97, 210, .32), transparent 75%),
    radial-gradient(650px 360px at 23% 72%, rgba(21, 76, 163, .22), transparent 76%),
    linear-gradient(135deg, #030b1e 8%, #081c3e 58%, #061129);
}
html[data-theme="dark"] .page-home .app.show-home-showcase .stage {
  padding: clamp(30px, 5vh, 68px) 28px 20px;
}
html[data-theme="dark"] .page-home .app.show-home-showcase .hero {
  width: min(100%, 1420px);
  gap: 22px;
}
.home-cinema-intro { display: none; }
html[data-theme="dark"] .page-home .app.show-home-showcase .home-cinema-intro {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(22px, 4vw, 68px);
  text-align: left;
}
html[data-theme="dark"] .page-home .app.show-home-showcase .greeting,
html[data-theme="dark"] .page-home .app.show-home-showcase .setup-block[data-step-id="type"] .setup-question { display: none; }
.home-cinema-copy { min-width: 0; }
.home-cinema-eyebrow {
  display: inline-flex;
  padding: 11px 20px;
  border: 1px solid #1677e9;
  border-radius: 999px;
  color: #68bbff;
  background: rgba(10, 34, 82, .48);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .19em;
}
html[data-theme="dark"] .home-cinema-copy h1 {
  margin: 25px 0 18px;
  color: #fff;
  font-size: clamp(2.8rem, 5.6vw, 6.2rem);
  line-height: .98;
  letter-spacing: -.07em;
  font-weight: 800;
}
.home-cinema-copy h1 span,
.home-cinema-copy h1 em { display: block; font-style: normal; }
.home-cinema-copy h1 em {
  padding-bottom: .08em;
  background: linear-gradient(100deg, #04c7ff, #308dff 46%, #9aaeff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="dark"] .home-cinema-copy p {
  max-width: 620px;
  margin: 0;
  color: #c5d6f2;
  font-size: clamp(1rem, 1.55vw, 1.42rem);
  line-height: 1.55;
}
.home-cinema-media {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: clamp(290px, 31vw, 450px);
  overflow: hidden;
  border: 1px solid rgba(133, 180, 255, .38);
  border-radius: 32px;
  background: #101c3b;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .52), 0 0 65px rgba(45, 105, 248, .2);
}
.home-cinema-media::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 17, 42, .22), transparent 32%), linear-gradient(0deg, rgba(4, 10, 27, .48), transparent 35%);
}
.home-cinema-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .45s ease;
}
.home-cinema-video.is-active { opacity: 1; }
.home-cinema-toggle {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  color: #fff;
  background: rgba(7, 21, 51, .58);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 1.2rem;
}
html[data-theme="dark"] .page-home .app.show-home-showcase .setup-block[data-step-id="type"] .choices {
  width: min(100%, 900px);
  gap: 14px;
}
html[data-theme="dark"] .page-home .app.show-home-showcase .setup-block[data-step-id="type"] .choice {
  min-height: 66px;
  border-radius: 999px;
  font-size: clamp(.9rem, 1vw, 1.1rem);
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24);
}
html[data-theme="dark"] .page-home .app.show-home-showcase .setup-block[data-step-id="type"] .choice[data-value="content"] {
  color: #fff;
  border-color: #2389fa;
  background: linear-gradient(105deg, #08b9ef, #136cf2 54%, #5338ed);
}
html[data-theme="dark"] .page-home .app.show-home-showcase .setup-block[data-step-id="type"] .choice[data-value="ad"] {
  color: #fff;
  border-color: #667da6;
  background: rgba(21, 35, 67, .86);
}
html[data-theme="dark"] .page-home .app.show-home-showcase .composer {
  max-width: 960px;
  background: rgba(26, 40, 70, .92);
  border: 1px solid #5c79aa;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .35);
}
html[data-theme="dark"] .page-home .app.show-home-showcase .composer-wrap {
  padding-top: 4px;
  background: transparent;
}
.home-cinema-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 24px 0 28px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(135, 174, 244, .2);
}
.home-cinema-benefits div { display: grid; gap: 4px; }
.home-cinema-benefits strong { color: #f7faff; font-size: .98rem; }
.home-cinema-benefits span { color: #a7bee2; font-size: .84rem; }
@media (max-width: 820px) {
  html[data-theme="dark"] .page-home .app.show-home-showcase .home-cinema-intro { grid-template-columns: 1fr; }
  .home-cinema-media { min-height: min(55vw, 430px); }
  .home-cinema-benefits { gap: 12px; }
}
@media (max-width: 560px) {
  html[data-theme="dark"] .page-home .app.show-home-showcase .stage { padding: 26px 16px 12px; }
  html[data-theme="dark"] .home-cinema-copy h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .home-cinema-eyebrow { font-size: .62rem; letter-spacing: .12em; }
  .home-cinema-media { min-height: 240px; border-radius: 22px; }
  .home-cinema-benefits { grid-template-columns: 1fr; }
}

/* Full-screen cinematic backdrop: content sits over the video. */
html[data-theme="dark"] .page-home .app.show-home-showcase { position: relative; isolation: isolate; }
html[data-theme="dark"] .page-home .app.show-home-showcase .stage { position: relative; z-index: 1; padding: 42px clamp(24px, 7.5vw, 140px) 14px; }
html[data-theme="dark"] .page-home .app.show-home-showcase .hero { width: min(100%, 1500px); gap: 22px; }
html[data-theme="dark"] .page-home .app.show-home-showcase .home-cinema-intro { display: block; min-height: clamp(290px, 27vw, 370px); text-align: left; }
html[data-theme="dark"] .page-home .home-cinema-copy { position: relative; z-index: 2; width: min(100%, 840px); }
html[data-theme="dark"] .page-home .home-cinema-copy h1 { font-size: clamp(3rem, 5.5vw, 5.9rem); }
html[data-theme="dark"] .page-home .home-cinema-media {
  position: absolute; z-index: 0; inset: 0 0 auto; width: 100%;
  height: max(780px, calc(100svh - 60px)); min-height: 0;
  border: 0; border-radius: 0; box-shadow: none;
}
html[data-theme="dark"] .page-home .home-cinema-video { object-position: center 43%; }
html[data-theme="dark"] .page-home .home-cinema-media::after {
  background: linear-gradient(90deg, rgba(2, 9, 26, .94) 0%, rgba(2, 10, 28, .77) 26%, rgba(3, 15, 37, .39) 58%, rgba(3, 15, 37, .04) 100%),
              linear-gradient(0deg, #051128 0%, rgba(5, 17, 40, .10) 42%, rgba(5, 17, 40, .13) 83%, rgba(5, 17, 40, .62) 100%);
}
html[data-theme="dark"] .page-home .home-cinema-toggle {
  right: 18%; bottom: 43%; width: 86px; height: 86px;
  border-width: 2px; background: rgba(12, 37, 84, .24); font-size: 1.55rem;
}
html[data-theme="dark"] .page-home .app.show-home-showcase .setup,
html[data-theme="dark"] .page-home .app.show-home-showcase .composer-wrap,
html[data-theme="dark"] .page-home .app.show-home-showcase .home-showcase { position: relative; z-index: 2; }
html[data-theme="dark"] .page-home .app.show-home-showcase .setup-block[data-step-id="type"] .choices { width: min(100%, 950px); gap: 16px; }
html[data-theme="dark"] .page-home .app.show-home-showcase .setup-block[data-step-id="type"] .choice { min-height: 74px; padding: 14px 28px; font-size: clamp(1rem, 1.15vw, 1.25rem); }
html[data-theme="dark"] .page-home .app.show-home-showcase .setup-block[data-step-id="type"] .choice::before {
  content: "✦"; margin-right: 12px; color: #84e9ff; font-size: 1.25em;
}
html[data-theme="dark"] .page-home .app.show-home-showcase .setup-block[data-step-id="type"] .choice[data-value="ad"]::before {
  content: "▶"; color: #ffb15a; font-size: 1em;
}
html[data-theme="dark"] .page-home .app.show-home-showcase .setup-block[data-step-id="type"] .choice::after {
  content: "→"; margin-left: 14px; font-size: 1.25em; font-weight: 400;
}
html[data-theme="dark"] .page-home .app.show-home-showcase .composer { background: rgba(20, 34, 62, .86); backdrop-filter: blur(18px); }
@media (max-width: 820px) {
  html[data-theme="dark"] .page-home .app.show-home-showcase .stage { padding: 48px 24px 14px; }
  html[data-theme="dark"] .page-home .app.show-home-showcase .home-cinema-intro { min-height: 350px; }
  html[data-theme="dark"] .page-home .home-cinema-media { height: 760px; }
  html[data-theme="dark"] .page-home .home-cinema-media::after { background: linear-gradient(90deg, rgba(2, 9, 26, .90), rgba(2, 9, 26, .28)), linear-gradient(0deg, #051128, transparent 55%); }
  html[data-theme="dark"] .page-home .home-cinema-toggle { right: 9%; bottom: 28%; width: 64px; height: 64px; }
}
@media (max-width: 560px) {
  html[data-theme="dark"] .page-home .app.show-home-showcase .stage { padding: 34px 18px 12px; }
  html[data-theme="dark"] .page-home .app.show-home-showcase .home-cinema-intro { min-height: 370px; }
  html[data-theme="dark"] .page-home .home-cinema-copy h1 { font-size: clamp(2.75rem, 11vw, 4rem); }
  html[data-theme="dark"] .page-home .home-cinema-media { height: 740px; }
  html[data-theme="dark"] .page-home .home-cinema-toggle { right: 8%; bottom: 24%; width: 52px; height: 52px; }
  html[data-theme="dark"] .page-home .app.show-home-showcase .setup-block[data-step-id="type"] .choices { gap: 10px; }
  html[data-theme="dark"] .page-home .app.show-home-showcase .setup-block[data-step-id="type"] .choice { min-height: 62px; padding: 10px 14px; font-size: .9rem; }
}

/* The homepage navigation floats over the cinematic background. */
html[data-theme="dark"] body.page-home .site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent; border: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html[data-theme="dark"] body.page-home .site-header-inner {
  width: min(1510px, calc(100% - 72px)); min-height: 82px; gap: clamp(24px, 3.6vw, 58px);
}
html[data-theme="dark"] body.page-home .site-menu {
  background: transparent; border: 0; box-shadow: none;
}
html[data-theme="dark"] body.page-home .site-links { gap: clamp(2px, .8vw, 12px); flex-wrap: nowrap; }
html[data-theme="dark"] body.page-home .site-link {
  color: #f2f6ff; background: transparent; border-radius: 0;
  padding: 11px 7px; font-weight: 700; white-space: nowrap;
}
html[data-theme="dark"] body.page-home .site-link:hover { color: #83c5ff; }
html[data-theme="dark"] body.page-home .site-link.is-active::after {
  left: 7px; right: 7px; bottom: 2px; height: 3px;
  background: linear-gradient(90deg, #02c4ef, #366cff);
}
html[data-theme="dark"] body.page-home .site-actions { gap: 8px; }
html[data-theme="dark"] body.page-home .lang-switch,
html[data-theme="dark"] body.page-home .account-menu-trigger {
  background: rgba(4, 15, 39, .66); border: 1px solid rgba(174, 203, 255, .15);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
html[data-theme="dark"] body.page-home .app.show-home-showcase .stage { padding-top: 124px; }
@media (max-width: 1080px) {
  html[data-theme="dark"] body.page-home .site-header-inner { width: calc(100% - 36px); }
  html[data-theme="dark"] body.page-home .site-menu {
    background: rgba(5, 14, 34, .97); border: 1px solid rgba(174, 203, 255, .16);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .45);
  }
  html[data-theme="dark"] body.page-home .site-links { flex-wrap: wrap; }
  html[data-theme="dark"] body.page-home .site-link.is-active::after { display: none; }
}
@media (max-width: 560px) {
  html[data-theme="dark"] body.page-home .app.show-home-showcase .stage { padding-top: 106px; }
}

/* Four illustrated benefit labels beneath the hero. */
html[data-theme="dark"] .page-home .home-cinema-benefits {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 32px);
  max-width: 1500px;
  margin: 0 auto 30px;
  padding: 30px clamp(24px, 6vw, 70px) 34px;
  border-bottom-color: rgba(135, 174, 244, .18);
}
html[data-theme="dark"] .page-home .home-cinema-benefits .home-benefit {
  display: flex; align-items: center; gap: 15px; min-width: 0;
}
html[data-theme="dark"] .page-home .home-benefit-icon {
  display: inline-flex; flex: 0 0 81px; width: 81px; height: 81px;
  filter: drop-shadow(0 6px 14px rgba(38, 122, 255, .28));
}
html[data-theme="dark"] .page-home .home-benefit-icon svg { width: 100%; height: 100%; }
html[data-theme="dark"] .page-home .home-benefit-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
html[data-theme="dark"] .page-home .home-benefit-copy { display: grid; gap: 5px; }
html[data-theme="dark"] .page-home .home-benefit-copy strong { color: #fff; font-size: clamp(.88rem, 1vw, 1.12rem); }
html[data-theme="dark"] .page-home .home-benefit-copy span { color: #bfd0ec; font-size: clamp(.78rem, .9vw, .95rem); }
@media (max-width: 950px) {
  html[data-theme="dark"] .page-home .home-cinema-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  html[data-theme="dark"] .page-home .home-cinema-benefits { grid-template-columns: 1fr; padding: 22px 24px; }
}

html[data-theme="dark"] .page-home .app.show-home-showcase .setup-block[data-step-id="type"] .choice::before {
  content: ""; display: inline-block; flex: 0 0 45px; width: 45px; height: 45px;
  margin-right: 12px; vertical-align: middle;
  background: url("/static/assets/home/icons/content.png") center / contain no-repeat;
}
html[data-theme="dark"] .page-home .app.show-home-showcase .setup-block[data-step-id="type"] .choice[data-value="ad"]::before {
  content: ""; background-image: url("/static/assets/home/icons/ad.png");
}

/* Reference-matched feature strip: four even groups on the cinematic backdrop. */
html[data-theme="dark"] .page-home .app.show-home-showcase .home-cinema-media {
  height: max(980px, calc(100svh + 160px));
}
html[data-theme="dark"] .page-home .app.show-home-showcase .home-showcase {
  width: min(calc(100% - 70px), 1500px);
}
html[data-theme="dark"] .page-home .home-cinema-benefits {
  gap: 16px; max-width: none; margin: 0 auto 36px; padding: 10px 8px 28px;
  border-bottom: 0;
}
html[data-theme="dark"] .page-home .home-cinema-benefits .home-benefit {
  gap: 14px; align-items: center;
}
html[data-theme="dark"] .page-home .home-benefit-icon {
  position: relative; flex: 0 0 60px; width: 60px; height: 70px; filter: none;
}
html[data-theme="dark"] .page-home .home-benefit-icon img {
  position: absolute; left: -30px; top: -25px; width: 120px; height: 120px;
  max-width: none; object-fit: contain;
}
html[data-theme="dark"] .page-home .home-benefit-copy { gap: 6px; }
html[data-theme="dark"] .page-home .home-benefit-copy strong {
  font-size: clamp(.94rem, 1.04vw, 1.08rem); line-height: 1.25;
}
html[data-theme="dark"] .page-home .home-benefit-copy span {
  font-size: clamp(.86rem, .98vw, 1rem); line-height: 1.35;
}
@media (max-width: 950px) {
  html[data-theme="dark"] .page-home .app.show-home-showcase .home-showcase { width: min(calc(100% - 40px), 760px); }
}

/* Cinematic sample gallery, matched to the supplied card reference. */
html[data-theme="dark"] .page-home .app.show-home-showcase .home-showcase {
  width: min(calc(100% - 70px), 1500px);
  padding: 0 0 58px;
  background:
    radial-gradient(ellipse 65% 30% at 14% 9%, rgba(20, 89, 213, .23), transparent 80%),
    radial-gradient(ellipse 60% 30% at 88% 50%, rgba(17, 89, 208, .18), transparent 78%);
}
html[data-theme="dark"] .page-home .home-showcase-head { align-items: center; margin: 8px 12px 22px; }
html[data-theme="dark"] .page-home .home-showcase-eyebrow {
  color: #5f9fff; font-size: .78rem; font-weight: 850; letter-spacing: .22em;
}
html[data-theme="dark"] .page-home .home-showcase-head h2 {
  margin-top: 10px; color: #f8fbff; font-size: clamp(2rem, 3.4vw, 3.55rem);
  font-weight: 850; line-height: 1.1; letter-spacing: -.06em;
}
html[data-theme="dark"] .page-home .home-showcase-head h2 em {
  margin-left: .15em; font-style: normal; background: linear-gradient(95deg, #75c5ff, #2789ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-theme="dark"] .page-home .home-showcase-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px; border: 1px solid #5396ed;
  border-radius: 999px; background: rgba(4, 22, 57, .56); color: #d2e9ff;
  font-size: 1rem; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(74, 167, 255, .14), 0 0 20px rgba(34, 130, 255, .18);
  text-decoration: none;
}
html[data-theme="dark"] .page-home .home-showcase-link:hover { background: rgba(16, 64, 132, .62); text-decoration: none; }
html[data-theme="dark"] .page-home .home-showcase-rail { gap: 18px; }
html[data-theme="dark"] .page-home .home-showcase-card {
  position: relative; overflow: hidden; padding: 10px 10px 0;
  border: 1px solid #54a8ff; border-radius: 22px;
  background: linear-gradient(155deg, rgba(8, 42, 96, .95), rgba(5, 16, 43, .98));
  box-shadow: inset 0 0 0 1px rgba(101, 181, 255, .3), 0 0 13px rgba(55, 157, 255, .6), 0 0 34px rgba(25, 105, 245, .3);
  transition: transform .2s ease, box-shadow .2s ease;
}
html[data-theme="dark"] .page-home .home-showcase-card:hover {
  transform: translateY(-3px); border-color: #8bd1ff;
  box-shadow: inset 0 0 0 1px rgba(156, 211, 255, .46), 0 0 22px rgba(55, 157, 255, .8), 0 0 48px rgba(25, 105, 245, .4);
}
html[data-theme="dark"] .page-home .home-showcase-media { position: relative; overflow: hidden; border-radius: 15px; }
html[data-theme="dark"] .page-home .home-showcase-media video {
  width: 100%; height: clamp(225px, 20vw, 310px); border-radius: 15px;
  object-fit: cover; background: #06132e;
}
html[data-theme="dark"] .page-home .home-showcase-card:not(.is-landscape) .home-showcase-media video {
  height: clamp(205px, 19vw, 300px);
}
html[data-theme="dark"] .page-home .home-showcase-media time {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  padding: 5px 12px; border: 1px solid #78a8f2; border-radius: 999px;
  background: rgba(4, 15, 42, .82); color: #f5f9ff;
  font-size: .9rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
html[data-theme="dark"] .page-home .home-showcase-play {
  position: absolute; top: 50%; left: 50%; z-index: 2; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 74px; height: 74px; padding: 0;
  border: 2px solid #57b6ff; border-radius: 50%;
  background: rgba(11, 38, 89, .74); color: #fff; cursor: pointer;
  box-shadow: 0 0 0 5px rgba(29, 113, 234, .18), 0 0 25px rgba(44, 145, 255, .8);
  backdrop-filter: blur(5px);
}
html[data-theme="dark"] .page-home .home-showcase-play span { margin-left: 5px; font-size: 1.8rem; line-height: 1; }
html[data-theme="dark"] .page-home .home-showcase-media.is-playing .home-showcase-play { display: none; }
html[data-theme="dark"] .page-home .home-showcase-meta {
  min-height: 54px; justify-content: flex-start; gap: 12px; padding: 9px 8px;
  color: #f6fbff;
}
html[data-theme="dark"] .page-home .home-showcase-meta::before {
  content: ""; flex: 0 0 30px; width: 30px; height: 30px;
  background: url("/static/assets/home/icons/cinematic-v2.png") center / 53px 53px no-repeat;
}
html[data-theme="dark"] .page-home .home-showcase-meta span {
  color: #f8fbff; font-size: clamp(.88rem, 1.1vw, 1.1rem); font-weight: 750;
}
@media (max-width: 900px) {
  html[data-theme="dark"] .page-home .app.show-home-showcase .home-showcase { width: min(calc(100% - 40px), 760px); }
  html[data-theme="dark"] .page-home .home-showcase-head h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
  html[data-theme="dark"] .page-home .home-showcase-media video,
  html[data-theme="dark"] .page-home .home-showcase-card:not(.is-landscape) .home-showcase-media video { height: 220px; }
}
@media (max-width: 580px) {
  html[data-theme="dark"] .page-home .home-showcase-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  html[data-theme="dark"] .page-home .home-showcase-rail { grid-template-columns: 1fr; }
  html[data-theme="dark"] .page-home .home-showcase-card.is-landscape { grid-column: span 1; }
  html[data-theme="dark"] .page-home .home-showcase-media video,
  html[data-theme="dark"] .page-home .home-showcase-card:not(.is-landscape) .home-showcase-media video { height: 230px; }
  html[data-theme="dark"] .page-home .home-showcase-play { width: 64px; height: 64px; }
}

/* Let the mobile creation actions follow the intro copy instead of reserving empty hero space. */
@media (max-width: 820px) {
  html[data-theme="dark"] .page-home .app.show-home-showcase .home-cinema-intro {
    min-height: 0;
  }
}

/* Product-faithful story sections between the sample gallery and footer. */
html[data-theme="dark"] .page-home .home-journey {
  position: relative;
  z-index: 2;
  color: #f5f9ff;
  background: #06132e;
  border-top: 1px solid rgba(105, 173, 255, .22);
}
html[data-theme="dark"] .page-home .home-journey-kicker {
  display: block;
  color: #75b4ff;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .22em;
}
html[data-theme="dark"] .page-home .home-journey h2 {
  margin: 12px 0 14px;
  color: #f9fbff;
  font-size: clamp(2rem, 3.4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}
html[data-theme="dark"] .page-home .home-journey p {
  margin: 0;
  color: #bfd1ed;
  font-size: clamp(.98rem, 1.14vw, 1.17rem);
  line-height: 1.65;
}
html[data-theme="dark"] .page-home .home-journey-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  min-height: 420px;
  overflow: hidden;
  padding: 58px max(5vw, calc((100vw - 1460px) / 2));
  background:
    linear-gradient(90deg, rgba(3, 13, 36, .92) 0%, rgba(3, 13, 36, .78) 34%, rgba(3, 13, 36, .06) 67%),
    url('/static/assets/home/journey/imagine-banner-v1.png') center 52% / cover no-repeat;
  border-bottom: 1px solid rgba(116, 174, 255, .19);
}
html[data-theme="dark"] .page-home .home-journey-banner::after {
  content: ""; position: absolute; inset: auto 0 0; height: 3px;
  background: linear-gradient(90deg, transparent, #18a8ff 28%, #7859ff 72%, transparent);
  opacity: .65;
}
html[data-theme="dark"] .page-home .home-journey-banner-copy { position: relative; z-index: 2; max-width: 590px; }
html[data-theme="dark"] .page-home .home-journey-banner-copy h2 {
  font-size: clamp(2.9rem, 4.8vw, 5.7rem);
  background: linear-gradient(95deg, #fff 15%, #77bfff 83%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-theme="dark"] .page-home .home-journey-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; margin-top: 26px; padding: 0 28px;
  border: 1px solid #53a9ff; border-radius: 999px;
  color: #fff; background: linear-gradient(105deg, #09b9ef, #226bff 58%, #5938ea);
  box-shadow: 0 12px 32px rgba(10, 89, 245, .3);
  text-decoration: none; font-weight: 800;
}
html[data-theme="dark"] .page-home .home-journey-primary:hover { filter: brightness(1.12); text-decoration: none; }
html[data-theme="dark"] .page-home .home-journey-inner { width: min(calc(100% - 64px), 1460px); margin: 0 auto; }
html[data-theme="dark"] .page-home .home-journey-heading { padding: 76px 0 30px; }
html[data-theme="dark"] .page-home .home-journey-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
html[data-theme="dark"] .page-home .home-journey-step {
  display: flex; flex-direction: column; min-height: 336px; padding: 27px;
  border: 1px solid rgba(80, 158, 255, .67); border-radius: 19px;
  background: radial-gradient(circle at 100% 0, rgba(32, 111, 228, .21), transparent 56%), rgba(8, 31, 73, .88);
  box-shadow: inset 0 0 0 1px rgba(85, 158, 245, .12), 0 15px 35px rgba(0, 8, 29, .28);
}
html[data-theme="dark"] .page-home .home-journey-number {
  display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%;
  color: #fff; background: linear-gradient(145deg, #11c2f2, #324efa); font-weight: 900;
  box-shadow: 0 0 24px rgba(38, 132, 255, .58);
}
html[data-theme="dark"] .page-home .home-journey-step h3 { margin: 20px 0 7px; font-size: 1.25rem; color: #fff; }
html[data-theme="dark"] .page-home .home-journey-step p { font-size: .99rem; }
html[data-theme="dark"] .page-home .home-journey-step-prompt,
html[data-theme="dark"] .page-home .home-journey-step-frames,
html[data-theme="dark"] .page-home .home-journey-step-video {
  margin-top: auto; min-height: 92px; overflow: hidden; border: 1px solid rgba(99, 165, 251, .55);
  border-radius: 13px; background: rgba(3, 17, 47, .8);
}
html[data-theme="dark"] .page-home .home-journey-step-prompt {
  display: flex; align-items: center; padding: 19px; color: #b7d5ff; font-size: .96rem;
}
html[data-theme="dark"] .page-home .home-journey-step-frames { display: flex; gap: 5px; padding: 7px; }
html[data-theme="dark"] .page-home .home-journey-step-frames img { width: calc((100% - 10px) / 3); height: 82px; border-radius: 7px; object-fit: cover; }
html[data-theme="dark"] .page-home .home-journey-step-video { position: relative; height: 92px; }
html[data-theme="dark"] .page-home .home-journey-step-video img { width: 100%; height: 100%; object-fit: cover; }
html[data-theme="dark"] .page-home .home-journey-step-video span {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
  font-size: 1.6rem; text-shadow: 0 0 15px #0054f6;
}
html[data-theme="dark"] .page-home .home-journey-proof,
html[data-theme="dark"] .page-home .home-journey-control,
html[data-theme="dark"] .page-home .home-journey-credit {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center; gap: clamp(32px, 5vw, 90px);
  margin-top: 92px; padding: 36px 0 80px;
  border-bottom: 1px solid rgba(112, 175, 255, .2);
}
html[data-theme="dark"] .page-home .home-journey-proof-copy { max-width: 550px; }
html[data-theme="dark"] .page-home .home-journey-text-link {
  display: inline-flex; align-items: center; margin-top: 20px; color: #80c5ff;
  text-decoration: none; font-weight: 800;
}
html[data-theme="dark"] .page-home .home-journey-text-link:hover { color: #c2e6ff; text-decoration: underline; }
html[data-theme="dark"] .page-home .home-journey-proof-image {
  position: relative; display: block; min-height: 290px; overflow: hidden;
  border: 1px solid #60b3ff; border-radius: 22px;
  box-shadow: 0 0 27px rgba(40, 140, 255, .35), 0 24px 56px rgba(0, 7, 28, .3);
}
html[data-theme="dark"] .page-home .home-journey-proof-image img { display: block; width: 100%; height: 310px; object-fit: cover; }
html[data-theme="dark"] .page-home .home-journey-proof-image span {
  position: absolute; top: 14px; left: 14px; padding: 7px 13px; border: 1px solid rgba(133, 193, 255, .65);
  border-radius: 999px; background: rgba(4, 17, 47, .83); color: #e4f3ff; font-size: .82rem; font-weight: 800;
}
html[data-theme="dark"] .page-home .home-journey-capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
html[data-theme="dark"] .page-home .home-journey-control-visual {
  overflow: hidden; border: 1px solid rgba(87, 165, 255, .57); border-radius: 20px;
  box-shadow: 0 0 26px rgba(25, 106, 234, .32), 0 20px 40px rgba(0, 8, 31, .29);
}
html[data-theme="dark"] .page-home .home-journey-control-visual img { display: block; width: 100%; height: 280px; object-fit: cover; }
html[data-theme="dark"] .page-home .home-journey-step {
  min-height: 315px; gap: 0; padding: 23px;
  box-shadow: inset 0 0 0 1px rgba(82, 157, 255, .12), 0 0 23px rgba(12, 96, 233, .15), 0 16px 38px rgba(0, 8, 29, .31);
}
html[data-theme="dark"] .page-home .home-journey-step h3 { margin: 12px 0 5px; }
html[data-theme="dark"] .page-home .home-journey-step-prompt,
html[data-theme="dark"] .page-home .home-journey-step-frames,
html[data-theme="dark"] .page-home .home-journey-step-video { min-height: 116px; }
html[data-theme="dark"] .page-home .home-journey-step-prompt { justify-content: space-between; gap: 12px; }
html[data-theme="dark"] .page-home .home-journey-prompt-mark {
  display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px;
  border-radius: 50%; background: linear-gradient(130deg, #05bffa, #653dff);
  color: #fff; box-shadow: 0 0 16px rgba(57, 107, 255, .55);
}
html[data-theme="dark"] .page-home .home-journey-step-frames img { height: 100px; }
html[data-theme="dark"] .page-home .home-journey-step-video { height: 116px; }
html[data-theme="dark"] .page-home .home-journey-idea-example {
  margin-top: 21px; padding: 16px 18px; max-width: 520px;
  border: 1px solid rgba(74, 149, 255, .6); border-radius: 14px;
  background: linear-gradient(120deg, rgba(15, 66, 144, .43), rgba(6, 23, 59, .72));
  box-shadow: inset 0 0 20px rgba(18, 101, 236, .12);
}
html[data-theme="dark"] .page-home .home-journey-idea-example span { font-weight: 800; color: #67bdff; font-size: .88rem; }
html[data-theme="dark"] .page-home .home-journey-idea-example p { margin: 8px 0 0; color: #c9dcf5; }
html[data-theme="dark"] .page-home .home-journey-capabilities { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
html[data-theme="dark"] .page-home .home-journey-capabilities div {
  display: flex; align-items: center; gap: 13px; min-height: 82px; padding: 16px;
  border: 1px solid rgba(84, 158, 255, .52); border-radius: 16px;
  background: linear-gradient(135deg, rgba(11, 42, 91, .94), rgba(8, 24, 57, .94));
}
html[data-theme="dark"] .page-home .home-journey-capabilities span { color: #4fb8ff; font-size: .85rem; font-weight: 900; }
html[data-theme="dark"] .page-home .home-journey-capabilities strong { color: #eff6ff; line-height: 1.3; }
html[data-theme="dark"] .page-home .home-journey-credit {
  position: relative; grid-template-columns: minmax(0, 1fr) auto 140px;
  margin-top: 0; padding: 76px 0 86px; border: 0;
}
html[data-theme="dark"] .page-home .home-journey-credit-art { display: block; width: 140px; height: 140px; object-fit: contain; }
html[data-theme="dark"] .page-home .home-journey-credit .home-journey-text-link {
  margin: 0; padding: 16px 23px; border: 1px solid #5da8ff; border-radius: 999px;
  background: rgba(12, 45, 98, .8); white-space: nowrap;
}
@media (max-width: 900px) {
  html[data-theme="dark"] .page-home .home-journey-banner { grid-template-columns: 1fr; gap: 50px; padding: 55px 34px 70px; }
  html[data-theme="dark"] .page-home .home-journey-steps { gap: 12px; }
  html[data-theme="dark"] .page-home .home-journey-step { padding: 20px; }
}
@media (max-width: 650px) {
  html[data-theme="dark"] .page-home .home-journey-banner {
    min-height: 440px; padding: 49px 22px 60px; align-items: start;
    background-position: 61% center;
    background-image: linear-gradient(180deg, rgba(3, 13, 36, .97), rgba(3, 13, 36, .61) 55%, rgba(3, 13, 36, .09)),
      url('/static/assets/home/journey/imagine-banner-v1.png');
  }
  html[data-theme="dark"] .page-home .home-journey-banner-copy h2 { font-size: clamp(2.6rem, 12vw, 4.2rem); }
  html[data-theme="dark"] .page-home .home-journey-inner { width: min(calc(100% - 36px), 520px); }
  html[data-theme="dark"] .page-home .home-journey-heading { padding: 58px 0 23px; }
  html[data-theme="dark"] .page-home .home-journey-steps,
  html[data-theme="dark"] .page-home .home-journey-proof,
  html[data-theme="dark"] .page-home .home-journey-control,
  html[data-theme="dark"] .page-home .home-journey-credit { grid-template-columns: 1fr; }
  html[data-theme="dark"] .page-home .home-journey-step { min-height: 0; }
  html[data-theme="dark"] .page-home .home-journey-proof,
  html[data-theme="dark"] .page-home .home-journey-control { margin-top: 45px; padding: 28px 0 55px; gap: 24px; }
  html[data-theme="dark"] .page-home .home-journey-proof-image,
  html[data-theme="dark"] .page-home .home-journey-proof-image img { height: 220px; min-height: 0; }
  html[data-theme="dark"] .page-home .home-journey-capabilities { gap: 8px; }
  html[data-theme="dark"] .page-home .home-journey-control-visual img { height: 180px; }
  html[data-theme="dark"] .page-home .home-journey-capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-theme="dark"] .page-home .home-journey-capabilities div { align-items: flex-start; flex-direction: column; gap: 7px; padding: 13px; }
  html[data-theme="dark"] .page-home .home-journey-credit { gap: 22px; padding: 50px 0 60px; }
  html[data-theme="dark"] .page-home .home-journey-credit .home-journey-text-link { justify-self: start; white-space: normal; }
  html[data-theme="dark"] .page-home .home-journey-credit-art { position: absolute; right: 0; bottom: 14px; width: 100px; height: 100px; opacity: .82; }
}

/* Homepage-only cinematic closing artwork; other pages retain the shared footer. */
html[data-theme="dark"] body.page-home .site-footer::before {
  height: 470px; min-height: 0;
  background:
    linear-gradient(180deg, rgba(4, 15, 37, .12), rgba(4, 15, 37, .62) 77%, #06132d),
    url('/static/assets/home/journey/footer-valley-v1.png') center 58% / cover no-repeat;
}
@media (max-width: 700px) {
  html[data-theme="dark"] body.page-home .site-footer::before { height: 400px; background-position: center, 30% center; }
}

/* Compact idea-to-video story, using a quiet generated landscape behind the real UI. */
html[data-theme="dark"] .page-home .home-journey-inner {
  position: relative; isolation: isolate; background: transparent; --journey-split: 50%;
}
html[data-theme="dark"] .page-home .home-journey-inner::before {
  content: ""; position: absolute; z-index: 0; top: 0; bottom: 0;
  left: 50%; width: 100vw; transform: translateX(-50%);
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(3, 15, 40, .18) 42%, rgba(3, 15, 40, .34) 86%, #031028 100%),
    url('/static/assets/home/journey/idea-backdrop-v2.png'),
    url('/static/assets/home/journey/idea-backdrop-lower-v1.png');
  background-size: 100% 100%, 100% var(--journey-split), 100% calc(100% - var(--journey-split));
  background-position: center, center top, center bottom;
  background-repeat: no-repeat;
  pointer-events: none;
}
html[data-theme="dark"] .page-home .home-journey-inner > * { position: relative; z-index: 1; }
html[data-theme="dark"] .page-home .home-journey-heading { padding: 54px 0 23px; }
html[data-theme="dark"] .page-home .home-journey-steps { gap: 18px; }
html[data-theme="dark"] .page-home .home-journey-step { min-height: 286px; }
html[data-theme="dark"] .page-home .home-journey-proof {
  margin-top: 26px; padding: 34px 0 52px; gap: clamp(26px, 4vw, 72px);
  border-top: 1px solid rgba(112, 175, 255, .2);
}
html[data-theme="dark"] .page-home .home-journey-proof-image { min-height: 260px; }
html[data-theme="dark"] .page-home .home-journey-proof-image img { height: 275px; }
@media (max-width: 700px) {
  html[data-theme="dark"] .page-home .home-journey-heading { padding: 45px 0 20px; }
  html[data-theme="dark"] .page-home .home-journey-step { min-height: 0; }
  html[data-theme="dark"] .page-home .home-journey-proof { margin-top: 28px; padding: 30px 0 48px; gap: 22px; }
  html[data-theme="dark"] .page-home .home-journey-proof-image,
  html[data-theme="dark"] .page-home .home-journey-proof-image img { min-height: 0; height: 220px; }
}

/* The filmstrip bridges the two landscape plates without claiming a new feature. */
html[data-theme="dark"] .page-home .home-journey-transition {
  position: relative; z-index: 3; left: 50%; width: calc(100vw - 8px); height: 138px;
  margin: -24px 0 -34px; transform: translateX(-50%) rotate(-.65deg);
  overflow: hidden; border-top: 2px solid rgba(80, 173, 255, .94);
  border-bottom: 2px solid rgba(98, 168, 255, .92);
  background: rgba(2, 12, 32, .88);
  box-shadow: 0 0 30px rgba(41, 135, 255, .35), 0 22px 35px rgba(0, 5, 26, .33);
}
html[data-theme="dark"] .page-home .home-journey-transition::before,
html[data-theme="dark"] .page-home .home-journey-transition::after {
  content: ""; position: absolute; z-index: 2; left: 0; right: 0; height: 12px;
  background: repeating-linear-gradient(90deg, #06173d 0 22px, #82bdff 23px 28px, #06173d 29px 58px);
  box-shadow: 0 0 12px rgba(64, 150, 255, .45);
}
html[data-theme="dark"] .page-home .home-journey-transition::before { top: 0; }
html[data-theme="dark"] .page-home .home-journey-transition::after { bottom: 0; }
html[data-theme="dark"] .page-home .home-journey-transition-track {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px; height: 100%; padding: 16px 6px;
}
html[data-theme="dark"] .page-home .home-journey-transition-track > div {
  min-width: 0; overflow: hidden; border: 1px solid rgba(115, 182, 255, .75);
  background: #07152e;
}
html[data-theme="dark"] .page-home .home-journey-transition-track img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
html[data-theme="dark"] .page-home .home-journey-control { margin-top: 54px; }
@media (max-width: 700px) {
  html[data-theme="dark"] .page-home .home-journey-inner { --journey-split: 62%; }
  html[data-theme="dark"] .page-home .home-journey-control { margin-top: 24px; }
  html[data-theme="dark"] .page-home .home-journey-transition { height: 94px; margin: -12px 0 -14px; transform: translateX(-50%) rotate(-.35deg); }
  html[data-theme="dark"] .page-home .home-journey-transition-track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 13px 4px; }
  html[data-theme="dark"] .page-home .home-journey-transition-track > div:nth-child(n+4) { display: none; }
  html[data-theme="dark"] .page-home .home-journey-transition::before,
  html[data-theme="dark"] .page-home .home-journey-transition::after { height: 9px; }
}

/* Creation flow takes the viewport; the site footer remains below it. */
html[data-theme="dark"] .page-home .app:not(.show-home-showcase) {
  min-height: 100vh;
  min-height: 100dvh;
  margin-bottom: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}
html[data-theme="dark"] .page-home .app:not(.show-home-showcase) .home-showcase,
html[data-theme="dark"] .page-home .app:not(.show-home-showcase) .home-journey {
  display: none;
}
html[data-theme="dark"] .page-home .app:not(.show-home-showcase) .composer-wrap {
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}
html[data-theme="dark"] body.page-home:has(.app:not(.show-home-showcase)) .site-footer-top,
html[data-theme="dark"] body.page-home:has(.app:not(.show-home-showcase)) .site-footer-divider,
html[data-theme="dark"] body.page-home:has(.app:not(.show-home-showcase)) .site-footer::before {
  display: none;
}

/* Cinematic content-mode choices, retaining the existing button actions. */
html[data-theme="dark"] .page-home .app.phase-setup:has(.setup-block[data-step-id="content_mode"]) .hero {
  width: min(100%, 1040px);
}
html[data-theme="dark"] .page-home .app.phase-setup:has(.setup-block[data-step-id="content_mode"]) .stage {
  padding-top: 195px;
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="content_mode"] .choices {
  width: min(100%, 980px);
  max-width: none;
  gap: 16px;
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="content_mode"] .choice-with-description {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  justify-content: flex-end;
  width: 100%;
  min-height: 232px;
  padding: 125px 23px 25px;
  gap: 6px;
  border: 1px solid rgba(142, 163, 223, .57);
  border-radius: 22px;
  color: #f8fbff;
  background:
    radial-gradient(ellipse at 83% 105%, rgba(80, 43, 170, .31), transparent 48%),
    linear-gradient(145deg, rgba(11, 28, 65, .98), rgba(5, 15, 38, .98));
  box-shadow: inset 0 1px rgba(197, 216, 255, .09), 0 18px 32px rgba(0, 5, 25, .28);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="content_mode"] .choice-with-description[data-value="character_story"] {
  --card-icon: url('/static/assets/create/character-story-v1.png');
  border-color: #28a7ff;
  box-shadow: inset 0 1px rgba(197, 216, 255, .12), 0 0 19px rgba(19, 141, 255, .26), 0 18px 32px rgba(0, 5, 25, .28);
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="content_mode"] .choice-with-description[data-value="documentary"] {
  --card-icon: url('/static/assets/create/documentary-v1.png');
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="content_mode"] .choice-with-description[data-value="general"] {
  --card-icon: url('/static/assets/create/general-content-v1.png');
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="content_mode"] .choice-with-description::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 22px;
  width: 98px;
  height: 98px;
  background: var(--card-icon) center / contain no-repeat;
  pointer-events: none;
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="content_mode"] .choice-with-description::after {
  content: "›";
  position: absolute;
  top: 27px;
  right: 23px;
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border: 1px solid rgba(121, 169, 255, .8);
  border-radius: 50%;
  color: #f6faff;
  background: rgba(13, 30, 74, .62);
  font-size: 33px;
  line-height: 1;
  box-shadow: inset 0 0 12px rgba(42, 109, 235, .17), 0 0 12px rgba(30, 117, 252, .21);
  pointer-events: none;
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="content_mode"] .choice-with-description strong {
  position: relative;
  z-index: 1;
  font-size: 17px;
  line-height: 1.25;
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="content_mode"] .choice-with-description span {
  position: relative;
  z-index: 1;
  color: #c8d5ee;
  font-size: 13px;
  line-height: 1.48;
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="content_mode"] .choice-with-description:hover,
html[data-theme="dark"] .page-home .setup-block[data-step-id="content_mode"] .choice-with-description:focus-visible {
  transform: translateY(-3px);
  border-color: #6dc5ff;
  box-shadow: 0 0 25px rgba(34, 134, 255, .34), 0 20px 36px rgba(0, 5, 25, .32);
}
html[data-theme="dark"] .page-home .app.phase-setup:has(.setup-block[data-step-id="content_mode"]) .history-toggle {
  width: 48px;
  height: 48px;
  border-color: rgba(121, 169, 255, .8);
  color: #f6faff;
  background: rgba(13, 30, 74, .72);
  box-shadow: inset 0 0 12px rgba(42, 109, 235, .2), 0 0 12px rgba(30, 117, 252, .22);
}
html[data-theme="dark"] .page-home .app.phase-setup:has(.setup-block[data-step-id="content_mode"]) .history-toggle svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 700px) {
  html[data-theme="dark"] .page-home .app.phase-setup:has(.setup-block[data-step-id="content_mode"]) .stage {
    padding-top: 112px;
  }
  html[data-theme="dark"] .page-home .setup-block[data-step-id="content_mode"] .choices {
    grid-template-columns: 1fr;
    width: min(100%, 440px);
  }
  html[data-theme="dark"] .page-home .setup-block[data-step-id="content_mode"] .choice-with-description {
    min-height: 142px;
    padding: 23px 66px 21px 112px;
  }
  html[data-theme="dark"] .page-home .setup-block[data-step-id="content_mode"] .choice-with-description::before {
    top: 23px;
    left: 12px;
    width: 85px;
    height: 85px;
  }
  html[data-theme="dark"] .page-home .setup-block[data-step-id="content_mode"] .choice-with-description::after {
    top: 24px;
    right: 13px;
    width: 37px;
    height: 37px;
    font-size: 25px;
  }
}

/* Duration choices: presentation only; affordability still comes from render quotes. */
html[data-theme="dark"] .page-home .app.phase-setup:has(.setup-block[data-step-id="duration"]) .hero {
  width: min(100%, 1380px);
}
html[data-theme="dark"] .page-home .app.phase-setup:has(.setup-block[data-step-id="duration"]) .stage {
  padding-top: clamp(130px, 17vh, 190px);
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .setup-question {
  margin-bottom: 27px;
  color: #f5f9ff;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.2;
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .choices {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  width: min(100%, 1350px);
  gap: 17px 15px;
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .choice-duration {
  min-width: 0;
  min-height: 90px;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  border: 1px solid rgba(86, 148, 239, .64);
  border-radius: 23px;
  color: #f8fbff;
  background: linear-gradient(150deg, rgba(18, 39, 82, .93), rgba(12, 26, 58, .96));
  box-shadow: inset 0 1px rgba(183, 215, 255, .09), 0 9px 23px rgba(0, 6, 29, .2);
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .choice-duration > span {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .choice-duration small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #bfd5f5;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .choice-duration small::before {
  content: "";
  flex: 0 0 auto;
  width: 13px;
  height: 10px;
  margin-right: 2px;
  border: 1px solid #f5ac13;
  border-radius: 50%;
  background: linear-gradient(#fff3a0, #ffbb20 60%, #e38900);
  box-shadow: 0 3px 0 #ffbc25, 0 6px 0 #d88700;
  transform: translateY(-3px);
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .choice-duration:hover:not(:disabled),
html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .choice-duration:focus-visible,
html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .choice-duration.picked {
  border-color: #86c6ff;
  color: #fff;
  background: linear-gradient(125deg, #1557c9, #395ce7 54%, #7531e6);
  box-shadow: inset 0 1px rgba(255, 255, 255, .25), 0 0 20px rgba(48, 137, 255, .66), 0 10px 25px rgba(24, 46, 161, .34);
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .choice-duration.picked small { color: #f2f7ff; }
html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .choice-duration:disabled {
  opacity: .44;
  filter: saturate(.65);
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .choice-duration:nth-last-child(2) { grid-column: 4; }
html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .choice-duration:last-child { grid-column: 5; }
html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .setup-duration-meta {
  margin-top: 17px;
  padding: 9px 23px;
  border: 1px solid rgba(87, 143, 231, .32);
  border-radius: 999px;
  color: #aec3e7;
  background: rgba(19, 39, 79, .6);
  font-size: 13px;
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .setup-duration-meta a { color: #70baff; }
@media (max-width: 1150px) {
  html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .choices { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .choice-duration:nth-last-child(2),
  html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .choice-duration:last-child { grid-column: auto; }
}
@media (max-width: 700px) {
  html[data-theme="dark"] .page-home .app.phase-setup:has(.setup-block[data-step-id="duration"]) .stage { padding-top: 112px; }
  html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .choice-duration { min-height: 78px; border-radius: 17px; padding: 11px 6px; }
  html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .choice-duration > span { font-size: 12px; }
  html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .choice-duration small { font-size: 10px; }
}
@media (max-width: 430px) {
  html[data-theme="dark"] .page-home .setup-block[data-step-id="duration"] .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Creation flow: format, image upload and project summary share one visual language. */
html[data-theme="dark"] .page-home .setup-block[data-step-id="aspect"] .choice.choice-visual {
  padding: 13px;
  border: 1px solid rgba(91, 150, 245, .58);
  border-radius: 23px;
  background: linear-gradient(150deg, rgba(18, 41, 88, .94), rgba(11, 22, 55, .97));
  box-shadow: inset 0 1px rgba(184, 216, 255, .12), 0 16px 36px rgba(1, 7, 31, .28);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="aspect"] .choice-visual-stage {
  border: 1px solid rgba(102, 162, 253, .28);
  border-radius: 16px;
  background: radial-gradient(circle at 50% 15%, rgba(42, 105, 227, .32), transparent 70%), #071631;
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="aspect"] .choice-visual-frame {
  box-shadow: 0 0 0 1px rgba(155, 205, 255, .48), 0 8px 24px rgba(5, 14, 47, .75);
}
html[data-theme="dark"] .page-home .setup-block[data-step-id="aspect"] .choice-visual-label { color: #f5f9ff; font-weight: 750; }
html[data-theme="dark"] .page-home .setup-block[data-step-id="aspect"] .choice.choice-visual:is(:hover, :focus-visible, .picked) {
  transform: translateY(-3px);
  border-color: #83c7ff;
  background: linear-gradient(145deg, rgba(27, 81, 170, .97), rgba(54, 46, 145, .94));
  box-shadow: 0 0 22px rgba(33, 133, 255, .45), inset 0 1px rgba(255,255,255,.22);
}
html[data-theme="dark"] .page-home .upload-workspace { width: min(100%, 880px); gap: 16px; }
html[data-theme="dark"] .page-home .side-tab,
html[data-theme="dark"] .page-home .upload-card,
html[data-theme="dark"] .page-home .brief-acc,
html[data-theme="dark"] .page-home .brief-asset {
  border: 1px solid rgba(91, 150, 245, .45);
  border-radius: 17px;
  background: linear-gradient(150deg, rgba(18, 42, 88, .94), rgba(10, 23, 54, .97));
  box-shadow: inset 0 1px rgba(181, 218, 255, .09), 0 9px 24px rgba(0, 7, 31, .22);
}
html[data-theme="dark"] .page-home .side-tab:is(:hover, :focus-visible, .is-active) {
  border-color: #81c5ff;
  background: linear-gradient(130deg, #174eaa, #383a9a);
  box-shadow: 0 0 17px rgba(38, 137, 255, .4);
}
html[data-theme="dark"] .page-home .side-tab.is-active .side-tab-label { color: #fff; }
html[data-theme="dark"] .page-home .side-tab-count,
html[data-theme="dark"] .page-home .upload-count { border: 1px solid rgba(109, 181, 255, .4); color: #bdddff; background: rgba(16, 58, 118, .65); }
html[data-theme="dark"] .page-home .upload-drop,
html[data-theme="dark"] .page-home .brief-drop {
  border: 1.5px dashed rgba(96, 166, 255, .7);
  border-radius: 20px;
  background: radial-gradient(circle at top, rgba(34, 91, 196, .24), transparent 72%), rgba(8, 22, 54, .83);
}
html[data-theme="dark"] .page-home .upload-drop:is(:hover, .is-drag),
html[data-theme="dark"] .page-home .brief-drop.is-drag { border-color: #9cdbff; background: rgba(20, 67, 147, .75); }
html[data-theme="dark"] .page-home .brief-card {
  border: 1px solid rgba(86, 153, 255, .64);
  border-radius: 25px;
  background: radial-gradient(circle at 100% 0, rgba(69, 58, 178, .32), transparent 45%), linear-gradient(155deg, rgba(13, 35, 78, .98), rgba(7, 18, 45, .98));
  box-shadow: 0 0 24px rgba(39, 124, 255, .17), 0 22px 48px rgba(0, 5, 28, .38), inset 0 1px rgba(194, 222, 255, .13);
}
html[data-theme="dark"] .page-home .brief-card::before { height: 3px; background: linear-gradient(90deg, #1dcfff, #3d79ff 55%, #a34cff); }
html[data-theme="dark"] .page-home .brief-card-head,
html[data-theme="dark"] .page-home .brief-col-assets,
html[data-theme="dark"] .page-home .brief-acc-body { border-color: rgba(100, 156, 246, .25); }
html[data-theme="dark"] .page-home .brief-kicker { color: #62c6ff; }
html[data-theme="dark"] .page-home .brief-acc-toggle { color: #f5f9ff; background: rgba(21, 49, 99, .72); }
html[data-theme="dark"] .page-home .brief-acc.is-open .brief-acc-toggle { background: rgba(30, 78, 155, .78); }
html[data-theme="dark"] .page-home .brief-acc-chevron { color: #9fd0ff; }
html[data-theme="dark"] .page-home .brief-more { border-color: rgba(103, 174, 255, .55); color: #bcdeff; background: rgba(22, 59, 123, .64); }
html[data-theme="dark"] .page-home .brief-more:hover { border-color: #9edaff; background: rgba(36, 91, 178, .72); }
html[data-theme="dark"] .page-home .app.phase-chat .brief-panel { top: 56px; margin-top: 44px; }
@media (max-width: 700px) {
  html[data-theme="dark"] .page-home .setup-block[data-step-id="aspect"] .choice.choice-visual { border-radius: 18px; padding: 9px; }
  html[data-theme="dark"] .page-home .brief-card { border-radius: 19px; }
  html[data-theme="dark"] .page-home .app.phase-chat .brief-panel { top: 24px; margin-top: 28px; }
}

/* Production uses the same floating navigation as the cinematic homepage. */
html[data-theme="dark"] body.page-production {
  background: linear-gradient(180deg, rgba(2, 10, 31, .28) 0, rgba(3, 13, 37, .66) 520px, #04112b 1050px),
    url('/static/assets/home/journey/imagine-banner-v1.png') center top / 100% auto no-repeat,
    #04112b;
}
html[data-theme="dark"] body.page-production .site-header {
  position: absolute; inset: 0 0 auto; z-index: 50;
  background: transparent; border: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html[data-theme="dark"] body.page-production .site-header-inner {
  width: min(1510px, calc(100% - 72px)); min-height: 82px;
  gap: clamp(24px, 3.6vw, 58px);
}
html[data-theme="dark"] body.page-production .site-menu { background: transparent; border: 0; box-shadow: none; }
html[data-theme="dark"] body.page-production .site-links { gap: clamp(2px, .8vw, 12px); flex-wrap: nowrap; }
html[data-theme="dark"] body.page-production .site-link {
  color: #f2f6ff; background: transparent; border-radius: 0;
  padding: 11px 7px; font-weight: 700; white-space: nowrap;
}
html[data-theme="dark"] body.page-production .site-link:hover { color: #83c5ff; }
html[data-theme="dark"] body.page-production .site-actions { gap: 8px; }
html[data-theme="dark"] body.page-production .lang-switch,
html[data-theme="dark"] body.page-production .account-menu-trigger {
  background: rgba(4, 15, 39, .66); border: 1px solid rgba(174, 203, 255, .15);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
html[data-theme="dark"] body.page-production .prod-page { padding-top: 110px; }
@media (max-width: 1080px) {
  html[data-theme="dark"] body.page-production .site-header-inner { width: calc(100% - 36px); }
  html[data-theme="dark"] body.page-production .site-menu {
    background: rgba(5, 14, 34, .97); border: 1px solid rgba(174, 203, 255, .16);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .45);
  }
  html[data-theme="dark"] body.page-production .site-links { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  html[data-theme="dark"] body.page-production .prod-page { padding-top: 100px; }
}

/* Mobile navigation control in the same blue-glass treatment as the flow cards. */
@media (max-width: 1080px) {
  html[data-theme="dark"] .nav-toggle {
    width: 48px; height: 48px; padding: 13px; border-radius: 16px;
    border: 1px solid #519fff;
    background: linear-gradient(145deg, rgba(20, 80, 169, .95), rgba(45, 34, 111, .96));
    box-shadow: 0 0 15px rgba(40, 135, 255, .45), inset 0 1px rgba(222, 240, 255, .26);
  }
  html[data-theme="dark"] .nav-toggle span { height: 2px; border-radius: 999px; background: #eef8ff; box-shadow: 0 0 5px #8fdbff; }
  html[data-theme="dark"] .nav-toggle:is(:hover, :focus-visible),
  html[data-theme="dark"] .site-header.is-open .nav-toggle {
    border-color: #9edaff; background: linear-gradient(135deg, #145fc2, #6640ca);
    box-shadow: 0 0 22px rgba(47, 149, 255, .7);
  }
}

/* Kinetik Yazı: content card icon and template gallery */
html[data-theme="dark"] .page-home .setup-block[data-step-id="content_mode"] .choice-with-description[data-value="kinetic"] {
  --card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext x='4' y='72' font-family='Impact,Anton,sans-serif' font-size='70' fill='%23E62026'%3EAa%3C/text%3E%3Crect x='6' y='82' width='60' height='6' fill='%23ffffff'/%3E%3C/svg%3E");
}
.page-home .setup-block[data-step-id="kinetic_template"] .choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  width: min(100%, 980px);
  max-width: none;
  gap: 14px;
}
.page-home .choice.choice-template {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 10px 10px 14px;
  text-align: left;
  border-radius: 18px;
}
.page-home .choice-template-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 9 / 16;
  max-height: 260px;
  overflow: hidden;
  border-radius: 12px;
  background: #050608;
}
.page-home .choice-template-media video,
.page-home .choice-template-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-home .choice-template-sample {
  font-family: Impact, "Anton", sans-serif;
  font-size: 64px;
  line-height: 1;
}
.page-home .choice-template strong { font-size: 15px; }
.page-home .choice-template span:not(.choice-template-media):not(.choice-template-sample) { font-size: 12.5px; opacity: .78; }
.page-home .choice-template small {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(230, 32, 38, .18);
  color: #ff8a8d;
}
