:root {
  --font-sans: "Manrope", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", ui-sans-serif, sans-serif;
  --font-display: "Manrope", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", ui-sans-serif, sans-serif;
  --bg: #f5f8fc;
  --ink: #0e1b3b;
  --muted: #52627a;
  --surface: #ffffff;
  --line: #e2e8f2;
  --accent: #1a56db;
  --accent-fg: #ffffff;
  --accent-soft: #e7f0ff;
  --good: #0c6b45;
  --good-soft: #e5f4ec;
  --soon: #52627a;
  --soon-soft: #eef2f8;
  --studio: #0e1b3b;
  --studio-fg: #f4f7fb;
  --studio-muted: #b7c3d6;
  --studio-line: #243352;
  --panel: #f3f0fb;
  --panel-accent: #6d28d9;
  --panel-soft: #f8e7a0;
  --shell: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button:not(:disabled),
[role="button"]:not(:disabled) {
  cursor: pointer;
}

::selection {
  background: color-mix(in srgb, var(--accent) 22%, white);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, white);
  outline-offset: 3px;
}

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.font-display {
  font-family: var(--font-display);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--ink);
}

.logo img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.nav-desktop a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  width: auto;
  max-width: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn span {
  white-space: nowrap;
}

/* Primary CTAs match design h-12 / px-6 */
.btn-lg {
  height: 3rem;
  min-height: 3rem;
  padding: 0 1.5rem;
}

.header-actions .btn {
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.75rem;
}

.header-actions .btn-accent {
  padding: 0 1rem;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-fg);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.2);
  background: color-mix(in srgb, var(--accent) 88%, black);
}

.btn-surface {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-surface:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.btn-ghost-studio {
  border-color: var(--studio-line);
  color: var(--studio-fg);
  background: transparent;
}

.btn-light {
  background: var(--surface);
  color: var(--ink);
}

.btn-icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-download {
  display: none;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 0.75rem 1.25rem 1rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 1rem;
}

.mobile-nav .download-link {
  margin-top: 0.5rem;
  font-weight: 500;
  color: var(--accent);
}

.menu-toggle {
  display: inline-flex;
}

/* Hero — py-16 / md:py-24, title text-5xl / md:text-6xl */
.hero {
  padding: 4rem 0;
  text-align: center;
}

.hero-badge {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
}

.hero h1 {
  margin: 1rem auto 0;
  max-width: 56rem;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.hero-sub {
  margin: 1.25rem auto 0;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--muted);
}

.hero-aux {
  margin: 0.75rem auto 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hero-actions .btn {
  height: 3rem;
  min-height: 3rem;
  padding: 0 1.5rem;
  width: auto;
  white-space: nowrap;
}

.hero-note,
.hero-mobile {
  margin: 0.75rem auto 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.hero-mobile {
  display: block;
}

.hero-checks {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.preview-wrap {
  margin: 3rem auto 0;
  max-width: 48rem;
  text-align: left;
  scroll-margin-top: 6rem;
}

/* Dub stage */
.dub-stage {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--studio-line);
  background: var(--studio);
  color: var(--studio-fg);
}

.dub-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.dub-stage-label {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--studio-muted);
}

.dub-stage-voice {
  flex-shrink: 0;
  border: 1px solid var(--studio-line);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.dub-stage-screen {
  position: relative;
  margin: 0 1rem;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #000;
}

.dub-stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.dub-stage-play-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 24px color-mix(in srgb, #000 35%, transparent);
}

.dub-stage-play-center[hidden] {
  display: none;
}

.stage-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stage-badge {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stage-end-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  padding: 1rem;
}

.stage-end-layer[hidden] {
  display: none;
}

.stage-end-layer a {
  background: var(--surface);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
}

.dub-stage-captions {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 1rem 1rem;
  text-align: center;
}

.caption-zh {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  line-height: 1.35;
}

.caption-en {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--studio-muted);
}

.caption-en.solo {
  color: var(--studio-fg);
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.dub-stage-controls {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.seek {
  height: 2.75rem;
  padding-block: 1rem;
  cursor: pointer;
}

.seek-track {
  height: 0.25rem;
  border-radius: 999px;
  background: var(--studio-line);
}

.seek-fill {
  height: 0.25rem;
  border-radius: 999px;
  background: var(--accent);
  width: 0%;
}

.dub-stage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.dub-stage-playrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dub-stage-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}

.dub-time {
  color: var(--studio-muted);
  font-variant-numeric: tabular-nums;
}

.mode-switch {
  display: flex;
  border: 1px solid var(--studio-line);
  border-radius: 999px;
  padding: 0.25rem;
}

.mode-switch button {
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  padding: 0 0.75rem;
  background: transparent;
  color: var(--studio-muted);
}

.mode-switch button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
}

/* Sections shared — py-16, titles text-4xl */
.section {
  padding: 4rem 0;
  scroll-margin-top: 6rem;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.section-sub {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.625;
}

.section-center {
  text-align: center;
}

.section-center .section-title,
.section-center .section-sub {
  text-align: center;
}

/* Stats */
.stats {
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding: 0;
}

.stats-grid {
  display: grid;
  margin: 0;
}

.stats-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 2rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.stats-item:last-child {
  border-bottom: 0;
}

.stats-item dt {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.stats-item dd {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Edge */
.edge {
  background: var(--accent-soft);
}

.edge-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 2.5rem;
}

.edge-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 1rem;
  background: var(--surface);
  padding: 1.5rem;
  text-align: left;
}

.edge-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.edge-card p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

.edge-card .example {
  color: var(--accent);
}

/* How */
.how {
  background: var(--surface);
}

.how-steps {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2rem;
  text-align: left;
}

.how-num {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--accent);
}

.how-steps h3 {
  margin: 0.5rem 0 0;
  font-size: 1.125rem;
}

.how-steps p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Controls */
.controls-grid {
  display: grid;
  gap: 2.5rem;
}

.controls-copy h2 {
  margin: 0;
}

.controls-copy > p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.feature-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.5rem;
}

.feature-list h3 {
  margin: 0;
}

.feature-list p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

.panel {
  border-radius: 1.5rem;
  background: var(--panel);
  padding: 0.75rem;
  box-shadow: 0 1px 2px rgba(14, 27, 59, 0.06);
  color: var(--ink);
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
}

.panel-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.panel-brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
}

.panel-top-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-pill {
  border-radius: 999px;
  background: var(--panel-soft);
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

.panel-user {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
}

.panel-user svg {
  width: 1.25rem;
  height: 1.25rem;
}

.panel-card {
  margin-top: 0.5rem;
  border-radius: 1rem;
  background: var(--surface);
  padding: 1rem;
}

.panel-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.panel-status-row p {
  margin: 0;
}

.panel-status-row .muted {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.panel-start {
  height: 3rem;
  border: 0;
  border-radius: 0.75rem;
  padding: 0 1.5rem;
  background: var(--panel-accent);
  color: #fff;
  font-weight: 500;
}

.panel-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.panel-fields label {
  display: grid;
  gap: 0.25rem;
}

.panel-fields select {
  height: 3rem;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 0.75rem;
}

.panel-fields select.accented {
  border: 2px solid var(--panel-accent);
}

.panel-audio > p {
  margin: 0;
  font-weight: 600;
}

.panel-audio label {
  display: block;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.panel-audio label:last-child {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.range-val {
  border-radius: 0.5rem;
  background: var(--panel);
  padding: 0.125rem 0.5rem;
  color: var(--panel-accent);
  font-variant-numeric: tabular-nums;
}

.panel-audio input[type="range"] {
  width: 100%;
  height: 2.75rem;
  accent-color: var(--panel-accent);
}

.panel-audio input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--panel-accent);
}

/* Scenes */
.scenes-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.5rem 2.5rem;
  text-align: left;
}

.scenes-list button {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: inherit;
}

.scenes-list .title {
  font-size: 1.125rem;
  font-weight: 600;
}

.scenes-list .blurb {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Platforms */
.platforms-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  text-align: left;
}

.platform-now-list {
  display: grid;
  gap: 0.75rem;
}

.platform-now {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
  padding: 1.5rem;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

.badge-good {
  background: var(--good-soft);
  color: var(--good);
}

.badge-soon {
  background: var(--soon-soft);
  color: var(--soon);
}

.platform-now h3 {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
}

.platform-now p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

.platform-now p a {
  color: var(--accent);
  font-weight: 500;
}

.platforms-foot {
  margin: 1rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.platforms-foot svg {
  width: 1rem;
  height: 1rem;
}

/* Languages */
.languages {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.lang-list {
  margin: 2rem auto 0;
  max-width: 48rem;
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Pricing */
.pricing-grid {
  margin: 2rem auto 0;
  max-width: 56rem;
  display: grid;
  gap: 1rem;
}

.price-card {
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 1.5rem;
  text-align: left;
}

.price-card.featured {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(14, 27, 59, 0.06);
}

.price-card h3 {
  margin: 0;
  font-size: 1.125rem;
}

.price-amount {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
}

.price-amount span {
  margin-left: 0.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--muted);
}

.price-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.price-list li {
  display: flex;
  gap: 0.5rem;
}

.price-list svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  color: var(--good);
}

.price-card:not(.featured) .price-list svg {
  color: var(--muted);
}

.price-card .btn {
  margin-top: 1.5rem;
  width: 100%;
  height: 3rem;
  min-height: 3rem;
  white-space: nowrap;
}

.price-note {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Install */
.install {
  background: var(--studio);
  color: var(--studio-fg);
}

.install-grid {
  display: grid;
  gap: 2rem;
}

.install .section-sub {
  color: var(--studio-muted);
}

.install-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.install-actions .btn {
  height: 3rem;
  min-height: 3rem;
  padding: 0 1.25rem;
}

.install-tip {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--studio-muted);
}

.install-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.install-steps li {
  border: 1px solid var(--studio-line);
  border-radius: 0.75rem;
  padding: 1rem;
}

.install-steps .n {
  margin: 0;
  font-size: 0.875rem;
  color: var(--accent);
}

.install-steps h3 {
  margin: 0.25rem 0 0;
}

.install-steps p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--studio-muted);
}

/* FAQ */
.faq-wrap {
  max-width: 48rem;
  margin-inline: auto;
}

.faq-list {
  margin-top: 2rem;
  border-block: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 500;
  color: var(--ink);
}

.faq-item button svg {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.15s ease;
}

.faq-item.is-open button svg {
  transform: rotate(180deg);
}

.faq-item .answer {
  display: none;
  margin: 0;
  padding-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

.faq-item.is-open .answer {
  display: block;
}

/* CTA */
.cta {
  background: var(--accent-soft);
  text-align: center;
}

.cta .btn {
  margin-top: 1.5rem;
  height: 3rem;
  min-height: 3rem;
  padding: 0 1.5rem;
}

.cta-note {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 0;
}

.footer-blurb {
  margin: 0.75rem 0 0;
  max-width: 24rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-col {
  font-size: 0.875rem;
}

.footer-col strong {
  display: block;
}

.footer-col ul {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
}

.footer-col a:hover,
.footer-col button:hover {
  color: var(--ink);
}

.footer-col button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.footer-bar {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 1rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Account modal — preserve production IDs, restyle to new tokens */
.account-modal {
  width: min(100% - 32px, 440px);
  max-height: min(720px, calc(100dvh - 32px));
  border: 0;
  border-radius: 19px;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 25px 75px rgba(6, 14, 38, 0.3);
}

.account-modal::backdrop {
  background: rgba(8, 14, 31, 0.58);
  backdrop-filter: blur(4px);
}

.account-inner {
  padding: 28px;
  overflow: auto;
  max-height: inherit;
}

.account-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.account-top h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.12;
}

.account-top p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.close-account {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  color: #33415f;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 23px 0 18px;
  padding: 4px;
  border-radius: 10px;
  background: var(--accent-soft);
}

.auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
  cursor: pointer;
}

.auth-tab[aria-selected="true"] {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(29, 49, 92, 0.1);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.auth-field input:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, white);
  border-color: var(--accent);
}

.auth-help {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}

.auth-help button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.auth-submit {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-note,
.auth-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.auth-status {
  min-height: 20px;
  color: #b42318;
}

.auth-status.ok {
  color: #15803d;
}

.turnstile-slot {
  min-height: 0;
}

.turnstile-slot:not(:empty) {
  min-height: 65px;
}

.account-panel {
  display: grid;
  gap: 17px;
}

.account-email {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: transparent;
  background-color: #dce8ff;
  background-position: center;
  background-size: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  font-weight: 800;
}

.account-email strong {
  display: block;
  font-size: 14px;
}

.account-email span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.account-row span {
  color: var(--muted);
}

.account-row b {
  text-align: right;
}

.account-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.danger-link {
  color: #c2382b;
}

.admin-entry {
  display: block;
  margin: 6px 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.admin-entry:hover {
  background: color-mix(in srgb, var(--accent-soft) 70%, var(--accent));
}

.account-hidden {
  display: none !important;
}

/* Learn: side-panel preview */
.learn {
  background: var(--surface);
}

.learn-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.learn-copy .section-title {
  text-align: left;
}

.learn-copy > p {
  margin: 0.75rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  line-height: 1.625;
}

.learn-point {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 0 0 0.9rem;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: inherit;
  text-align: left;
}

.learn-point.is-active {
  border-left-color: var(--panel-accent);
}

.learn-point h3 {
  color: var(--ink);
}

.learn-point.is-active h3 {
  color: var(--panel-accent);
}

.learn-device {
  display: flex;
  flex-direction: column;
  height: min(40rem, 80vh);
  overflow: hidden;
  border: 1px solid #e7e5f4;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(49, 46, 129, 0.12);
  color: #1e1b4b;
}

.lm-is-closed {
  height: auto;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
}

.lm-is-closed p {
  margin: 0;
}

.lm-top,
.lm-tabs,
.lm-status {
  flex-shrink: 0;
}

.lm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem 0.35rem;
}

.lm-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.lm-brand img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
}

.lm-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.lm-brand strong {
  font-size: 0.95rem;
}

.lm-brand small {
  color: #6b7280;
  font-size: 0.75rem;
}

.lm-tools {
  display: inline-flex;
  gap: 0.15rem;
}

.lm-iconbtn,
.lm-textbtn {
  border: 0;
  background: transparent;
  color: #6d28d9;
  font: inherit;
}

.lm-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.6rem;
}

.lm-iconbtn:hover,
.lm-textbtn:hover,
.lm-chip:hover {
  background: #f5f3ff;
}

.lm-svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lm-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0 0.75rem;
  border-bottom: 1px solid #eceaf5;
}

.lm-tab {
  min-height: 2.75rem;
  padding: 0.4rem 0.7rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #6b7280;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
}

.lm-tab.is-active {
  color: #6d28d9;
  border-bottom-color: #6d28d9;
}

.lm-status {
  min-height: 1.25rem;
  margin: 0;
  padding: 0.35rem 0.9rem 0;
  color: #5b21b6;
  font-size: 0.8rem;
}

.lm-status:empty {
  display: none;
}

.lm-body {
  flex: 1;
  overflow: auto;
  padding: 0.85rem;
  scroll-padding-top: 0.5rem;
}

.lm-hero,
.lm-card {
  margin: 0 0 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid #eceaf5;
  border-radius: 0.9rem;
  background: #fff;
}

.lm-hero {
  border-color: #ddd6fe;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}

.lm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.lm-card h3,
.lm-concept h4,
.lm-subhead {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: #1e1b4b;
  font-size: 0.95rem;
}

.lm-kicker {
  margin: 0;
  color: #6d28d9;
  font-size: 0.8rem;
  font-weight: 700;
}

.lm-hero-text {
  margin: 0;
  color: #1e1b4b;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.55;
}

.lm-card p,
.lm-concept p,
.lm-caption p,
.lm-quiz-q,
.lm-feedback p {
  margin: 0;
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.6;
}

.lm-textbtn {
  min-height: 2.75rem;
  padding: 0 0.35rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.lm-chapters {
  display: grid;
}

.lm-chapter {
  border-top: 1px solid #f3f0fb;
}

.lm-chapter summary {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  cursor: pointer;
  list-style: none;
}

.lm-chapter summary::-webkit-details-marker {
  display: none;
}

.lm-chapter-title {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
}

.lm-expand {
  color: #9ca3af;
  font-size: 0.75rem;
  white-space: nowrap;
}

.lm-chapter[open] .lm-expand {
  display: none;
}

.lm-chapter > p {
  margin: 0 0 0.7rem 4.4rem;
}

.lm-time {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 0.4rem;
  background: #f3e8ff;
  color: #6d28d9;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.75rem;
}

.lm-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  margin: 0 0 0.75rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 0.8rem;
  background: #7c3aed;
  color: #fff;
  font: inherit;
  font-weight: 650;
  text-align: center;
}

.lm-cta:hover {
  background: #6d28d9;
}

.lm-export {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.lm-export button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  color: #374151;
  font: inherit;
  font-size: 0.8rem;
}

.lm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.lm-chip {
  min-height: 2.25rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  background: #fff;
  color: #4c1d95;
  font: inherit;
  font-size: 0.8rem;
}

.lm-checks,
.lm-ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.lm-checks li,
.lm-ol li {
  position: relative;
  padding-left: 1.6rem;
  color: #374151;
  font-size: 0.875rem;
  line-height: 1.5;
}

.lm-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 0.25rem;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.05rem;
  text-align: center;
}

.lm-ol {
  list-style: decimal;
  padding-left: 1.2rem;
}

.lm-ol li {
  padding-left: 0.25rem;
}

.lm-prereq-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
  color: #6b7280;
  font-size: 0.8rem;
}

.lm-prereq {
  padding: 0.15rem 0.45rem;
  border-radius: 0.4rem;
  background: #f3f4f6;
  color: #374151;
}

.lm-tree ul {
  margin: 0;
  padding-left: 1.1rem;
  list-style: none;
}

.lm-tree li {
  position: relative;
  padding: 0.4rem 0 0 0.85rem;
}

.lm-tree li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-left: 1px solid #d8b4fe;
}

.lm-tree li:last-child::before {
  bottom: auto;
  height: 1.05rem;
}

.lm-tree li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.7rem;
  border-top: 1px solid #d8b4fe;
}

.lm-node {
  display: inline-block;
  max-width: 100%;
  margin-top: 0.2rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid #e9d5ff;
  border-radius: 0.4rem;
  background: #faf5ff;
  line-height: 1.45;
  vertical-align: middle;
}

.lm-node-root {
  margin-bottom: 0.35rem;
  border-color: #7c3aed;
  background: #7c3aed;
  color: #fff;
  font-weight: 650;
}

.lm-rel {
  margin-right: 0.35rem;
  color: #7c3aed;
  font-size: 0.75rem;
}

.lm-concepts,
.lm-captions,
.lm-options {
  display: grid;
  gap: 0.55rem;
}

.lm-concept,
.lm-caption {
  padding: 0.7rem 0.75rem;
  border: 1px solid #f3f4f6;
  border-radius: 0.7rem;
  background: #fafafa;
}

.lm-concept-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.lm-concept details,
.lm-questions details {
  margin-top: 0.35rem;
}

.lm-concept summary,
.lm-questions summary {
  color: #7c3aed;
  font-size: 0.8rem;
  cursor: pointer;
}

.lm-concept details p,
.lm-questions details p {
  margin-top: 0.3rem;
  padding-left: 0.5rem;
  border-left: 2px solid #e9d5ff;
}

.lm-subhead {
  margin: 0.9rem 0 0.45rem;
}

.lm-score {
  margin: 0 0 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.7rem;
  background: #f3e8ff;
  color: #6d28d9;
  font-size: 1rem;
  font-weight: 750;
  text-align: center;
}

.lm-quiz {
  padding: 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.8rem;
}

.lm-quiz.is-correct {
  border-color: #86efac;
  background: #f0fdf4;
}

.lm-quiz.is-wrong {
  border-color: #fca5a5;
  background: #fef2f2;
}

.lm-quiz-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  color: #6b7280;
  font-size: 0.8rem;
}

.lm-badge {
  padding: 0.05rem 0.35rem;
  border-radius: 0.25rem;
  background: #f3f4f6;
}

.lm-verdict {
  margin-left: auto;
  font-weight: 750;
}

.lm-quiz.is-correct .lm-verdict {
  color: #15803d;
}

.lm-quiz.is-wrong .lm-verdict {
  color: #b91c1c;
}

.lm-quiz-q {
  margin-bottom: 0.55rem;
  color: #111827;
  font-weight: 650;
}

.lm-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.35rem;
  border-radius: 0.55rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

.lm-opt input {
  margin-top: 0.2rem;
  accent-color: #7c3aed;
}

.lm-opt.is-answer {
  color: #15803d;
  font-weight: 650;
}

.lm-opt.is-wrong {
  color: #b91c1c;
}

.lm-feedback {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.lm-caption-index,
.lm-caption-time {
  margin-bottom: 0.15rem;
  color: #6b7280;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .platform-now-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions {
    flex-direction: row;
  }

  .nav-download {
    display: inline-flex;
  }

  .hero-mobile {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .stats-item:last-child {
    border-right: 0;
  }

  .scenes-list {
    grid-template-columns: 1fr 1fr;
  }

  .install-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0;
  }

  .hero h1 {
    font-size: 3.75rem;
  }

  .edge-grid {
    grid-template-columns: 1fr 1fr;
  }

  .how-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav,
  .mobile-nav.is-open {
    display: none;
  }

  .controls-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .learn-grid {
    grid-template-columns: 1fr minmax(20rem, 26rem);
    align-items: start;
  }

  .scenes-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .platform-now-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .install-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.stats-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
  border-radius: 0.5rem;
  z-index: 1;
  position: relative;
  background: var(--surface);
}

.edge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
}

.scenes-list button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
}

/* Animations added for better visual effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.hero h1 {
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-sub {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-actions {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-note, .hero-mobile {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.hero-checks {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.preview-wrap {
  opacity: 0;
  animation: fadeInScale 1s ease-out 1s forwards;
}
