:root {
    color-scheme: light;
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f4f6f8;
    --text-primary: #17181b;
    --text-secondary: #555f6d;
    --text-tertiary: #7b8491;
    --border-primary: rgba(15, 23, 42, 0.12);
    --border-secondary: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.22);
    --accent: #CEA01C;
    --accent-2: #B97913;
    --hero-tint: #fff7df;
    --media-bg: #f1f3f6;
    --shadow-sm: rgba(15, 23, 42, 0.06);
    --shadow-md: rgba(15, 23, 42, 0.12);
}

body.dark-mode,
html.theme-dark body {
    color-scheme: dark;
    --bg-primary: #0f0f10;
    --bg-secondary: #161719;
    --bg-tertiary: #1f2226;
    --text-primary: #f4f6f8;
    --text-secondary: #c3c8d0;
    --text-tertiary: #8a929e;
    --border-primary: rgba(255, 255, 255, 0.14);
    --border-secondary: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.24);
    --accent: #CEA01C;
    --accent-2: #E2B643;
    --hero-tint: #221b0c;
    --media-bg: #101214;
    --shadow-sm: rgba(0, 0, 0, 0.18);
    --shadow-md: rgba(0, 0, 0, 0.34);
}

@media (prefers-color-scheme: dark) {
    html:not(.theme-light) body:not(.theme-light) {
        color-scheme: dark;
        --bg-primary: #0f0f10;
        --bg-secondary: #161719;
        --bg-tertiary: #1f2226;
        --text-primary: #f4f6f8;
        --text-secondary: #c3c8d0;
        --text-tertiary: #8a929e;
        --border-primary: rgba(255, 255, 255, 0.14);
        --border-secondary: rgba(255, 255, 255, 0.08);
        --border-hover: rgba(255, 255, 255, 0.24);
        --accent: #CEA01C;
        --accent-2: #E2B643;
        --hero-tint: #221b0c;
        --media-bg: #101214;
        --shadow-sm: rgba(0, 0, 0, 0.18);
        --shadow-md: rgba(0, 0, 0, 0.34);
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    padding-top: 78px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
}

.site-shell {
    min-height: 100vh;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 78px;
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.12) 46%, rgba(255, 255, 255, 0.08)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 28%, rgba(255, 255, 255, 0.06) 62%, rgba(255, 255, 255, 0.08));
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px) saturate(145%);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    isolation: isolate;
}

.header::before,
.header::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.header::before {
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0, rgba(255, 255, 255, 0.12) 18%, rgba(255, 255, 255, 0) 40%),
        radial-gradient(180px 72px at 12% 24%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.02) 52%, rgba(255, 255, 255, 0) 76%),
        radial-gradient(220px 72px at 84% 18%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 48%, rgba(255, 255, 255, 0) 76%);
    opacity: 0.96;
}

.header::after {
    z-index: 1;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.header > * {
    position: relative;
    z-index: 2;
}

body.dark-mode .header,
html.theme-dark body .header {
    border-top-color: rgba(255, 255, 255, 0.09);
    border-bottom-color: rgba(255, 255, 255, 0.05);
    background:
        linear-gradient(180deg, rgba(34, 34, 34, 0.5), rgba(18, 18, 18, 0.36) 46%, rgba(10, 10, 10, 0.3)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01) 28%, rgba(255, 255, 255, 0.03) 62%, rgba(255, 255, 255, 0.05));
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.11),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px) saturate(130%) brightness(0.96);
    -webkit-backdrop-filter: blur(14px) saturate(130%) brightness(0.96);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.18);
}

.logo span {
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 1.08em;
    font-style: italic;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
    padding: 0 16px;
}

.header-mode-nav {
    width: auto;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 0;
}

.home-mode-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 6px 4px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(31, 41, 55, 0.72);
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.home-mode-switch-btn:hover,
.home-mode-switch-btn.active {
    background: transparent;
    box-shadow: none;
    color: var(--text-primary);
}

body.dark-mode .home-mode-switch-btn,
html.theme-dark body .home-mode-switch-btn {
    color: rgba(255, 255, 255, 0.78);
}

body.dark-mode .home-mode-switch-btn:hover,
body.dark-mode .home-mode-switch-btn.active,
html.theme-dark body .home-mode-switch-btn:hover,
html.theme-dark body .home-mode-switch-btn.active {
    color: #ffffff;
}

.nav-icon,
.lucide-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    background: currentColor;
    mask: var(--icon-url) center / contain no-repeat;
    -webkit-mask: var(--icon-url) center / contain no-repeat;
}

.icon-image { --icon-url: url('/static/lucide/image.svg'); }
.icon-video { --icon-url: url('/static/lucide/video.svg'); }
.icon-music { --icon-url: url('/static/lucide/music.svg'); }
.icon-workflow { --icon-url: url('/static/lucide/layers.svg'); }
.icon-eraser { --icon-url: url('/static/lucide/eraser.svg'); }
.icon-expand { --icon-url: url('/static/lucide/expand.svg'); }

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.46);
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow:
        0 4px 12px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    border-color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.64);
    color: var(--text-primary);
}

body.dark-mode .theme-toggle,
html.theme-dark body .theme-toggle {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.dark-mode .theme-toggle:hover,
html.theme-dark body .theme-toggle:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
}

.theme-toggle img {
    display: block;
    width: 16px;
    height: 16px;
}

.landing-main {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
    gap: 46px;
    align-items: stretch;
    min-height: 0;
    padding: 54px 0 36px;
    border-bottom: 1px solid var(--border-secondary);
}

.hero-copy-block {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 800;
}

.breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 13px 7px 11px;
    border: 1px solid var(--border-primary);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg-secondary) 88%, transparent);
    color: var(--text-primary);
    box-shadow: 0 8px 22px var(--shadow-sm);
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.breadcrumb a::before {
    content: "";
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    background: currentColor;
    mask: url('/static/lucide/arrow-left.svg') center / contain no-repeat;
    -webkit-mask: url('/static/lucide/arrow-left.svg') center / contain no-repeat;
}

.breadcrumb a:hover {
    border-color: var(--border-hover);
    background: var(--bg-secondary);
    color: var(--accent);
    box-shadow: 0 12px 28px var(--shadow-md);
    transform: translateX(-2px);
}

.breadcrumb span {
    color: var(--text-tertiary);
}

.breadcrumb span:last-child {
    color: var(--text-secondary);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.3;
    text-transform: uppercase;
}

h1,
h2,
h3,
p,
dl,
dd {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 3.35rem;
    font-weight: 900;
    line-height: 1.04;
}

.hero-copy {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 1.12rem;
    line-height: 1.75;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--border-primary);
    border-radius: 999px;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button:hover {
    border-color: var(--border-hover);
    background: var(--bg-secondary);
}

.button.primary {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: var(--bg-primary);
}

.button.primary:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
}

.hero-visual {
    position: relative;
    margin: 0;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    background: var(--bg-secondary);
    box-shadow: 0 18px 44px var(--shadow-sm);
    display: grid;
    grid-template-rows: minmax(390px, 1fr) auto;
    overflow: hidden;
}

.hero-visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 390px;
    padding: 0;
    background: var(--media-bg);
    object-fit: cover;
}

.hero-visual-comparison {
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 22px;
    background: #151719;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18), 0 8px 24px rgba(15, 23, 42, 0.12);
}

.comparison-slider {
    min-height: 420px;
    display: grid;
    padding: 14px 14px 0;
    background: #151719;
}

.comparison-frame {
    position: relative;
    width: 100%;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    background:
        linear-gradient(45deg, rgba(148, 163, 184, 0.18) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(148, 163, 184, 0.18) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, 0.18) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, 0.18) 75%);
    background-color: #f8fafc;
    background-position: 0 0, 0 14px, 14px -14px, -14px 0;
    background-size: 28px 28px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.comparison-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 22%, transparent 68%, rgba(0, 0, 0, 0.22));
    opacity: 0.64;
    pointer-events: none;
}

.comparison-frame img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    padding: 0;
    background: transparent;
}

.comparison-before {
    z-index: 1;
}

.comparison-after {
    z-index: 2;
    clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0);
}

.comparison-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--split, 50%);
    z-index: 4;
    width: 4px;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12), 0 0 28px rgba(15, 23, 42, 0.28);
    transform: translateX(-2px);
    pointer-events: none;
}

.comparison-handle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='18' viewBox='0 0 34 18' fill='none'%3E%3Cpath d='M13 4L8 9L13 14' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M21 4L26 9L21 14' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 34px 18px no-repeat,
        rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%);
}

.comparison-handle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 1px;
    height: 22px;
    border-radius: 999px;
    background: rgba(107, 114, 128, 0.32);
    transform: translate(-50%, -50%);
}

.comparison-range {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
}

.comparison-label {
    position: absolute;
    z-index: 3;
    top: 24px;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 17px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.58);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.comparison-label-left {
    left: 24px;
    background: rgba(107, 114, 128, 0.82);
}

.comparison-label-right {
    right: 24px;
    background: rgba(17, 24, 39, 0.64);
}

.hero-visual-comparison figcaption {
    gap: 12px;
    padding: 18px 20px 22px;
    border-top-color: rgba(255, 255, 255, 0.08);
    background: #151719;
}

.hero-visual-comparison figcaption span {
    min-height: 34px;
    padding: 8px 15px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.hero-visual video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 390px;
    background: #000;
    object-fit: cover;
}

.hero-visual-audio {
    background: var(--bg-secondary);
}

.audio-preview-card {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 34px;
    background: var(--bg-secondary);
}

.audio-preview-head h2 {
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1.08;
}

.audio-preview-head p:not(.eyebrow) {
    max-width: 520px;
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
}

.audio-waveform {
    height: 116px;
    display: grid;
    grid-template-columns: repeat(24, minmax(0, 1fr));
    align-items: center;
    gap: 5px;
    padding: 18px;
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    background: var(--media-bg);
}

.audio-waveform span {
    display: block;
    width: 100%;
    height: var(--h, 50%);
    min-height: 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    opacity: 0.78;
}

.audio-preview-card audio {
    width: 100%;
}

.audio-preview-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    overflow: hidden;
}

.audio-preview-meta div {
    padding: 12px 14px;
    border-right: 1px solid var(--border-secondary);
}

.audio-preview-meta div:last-child {
    border-right: 0;
}

.audio-preview-meta dt {
    margin-bottom: 4px;
    color: var(--text-tertiary);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.audio-preview-meta dd {
    margin: 0;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 850;
}

.hero-visual-workflow {
    background: var(--bg-secondary);
}

.workflow-snapshot {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
}

.workflow-snapshot-toolbar {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-secondary);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 850;
}

.workflow-snapshot-toolbar > div {
    display: inline-flex;
    gap: 6px;
}

.workflow-window-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-hover);
}

.workflow-window-dot:nth-child(1) { background: #ef4444; }
.workflow-window-dot:nth-child(2) { background: #f59e0b; }
.workflow-window-dot:nth-child(3) { background: #22c55e; }

.workflow-canvas-preview {
    position: relative;
    min-height: 390px;
    flex: 1;
    overflow: hidden;
    background-color: var(--media-bg);
    background-image:
        linear-gradient(var(--border-secondary) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-secondary) 1px, transparent 1px);
    background-size: 26px 26px;
}

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

.workflow-connectors path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    opacity: 0.72;
}

.workflow-node {
    position: absolute;
    z-index: 2;
    width: 154px;
    min-height: 108px;
    padding: 12px;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg-secondary) 94%, transparent);
    box-shadow: 0 14px 32px var(--shadow-sm);
}

.workflow-node-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.workflow-node-top span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.workflow-node-top em {
    flex: 0 0 auto;
    padding: 4px 6px;
    border-radius: 999px;
    background: var(--hero-tint);
    color: var(--text-secondary);
    font-style: normal;
    font-size: 9px;
}

.workflow-node .lucide-icon {
    width: 12px;
    height: 12px;
}

.workflow-node h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.3;
}

.workflow-node p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.45;
}

.node-prompt { left: 5%; top: 14%; }
.node-assets { left: 5%; bottom: 14%; }
.node-image { left: 39%; top: 14%; }
.node-video { right: 5%; top: 14%; }
.node-audio { left: 39%; bottom: 14%; }
.node-output { right: 5%; bottom: 14%; }

.workflow-thumb-row,
.workflow-output-row,
.workflow-wave {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.workflow-thumb-row span,
.workflow-output-row span {
    width: 30px;
    height: 24px;
    border-radius: 6px;
    background: var(--hero-tint);
}

.workflow-thumb-row span:nth-child(2),
.workflow-output-row span:nth-child(2) {
    background: color-mix(in srgb, var(--accent-2) 18%, var(--hero-tint));
}

.workflow-thumb-row span:nth-child(3),
.workflow-output-row span:nth-child(3) {
    background: color-mix(in srgb, var(--accent) 18%, var(--hero-tint));
}

.workflow-wave span {
    width: 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    opacity: 0.75;
}

.workflow-wave span:nth-child(1) { height: 14px; }
.workflow-wave span:nth-child(2) { height: 28px; }
.workflow-wave span:nth-child(3) { height: 36px; }
.workflow-wave span:nth-child(4) { height: 22px; }
.workflow-wave span:nth-child(5) { height: 30px; }

.hero-visual figcaption {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
    border-top: 1px solid var(--border-secondary);
}

.hero-visual figcaption span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid var(--border-secondary);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg-secondary) 86%, transparent);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 800;
}

.fact-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 28px 0 0;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.fact-strip div {
    padding: 18px 20px;
    border-right: 1px solid var(--border-secondary);
    text-align: left;
}

.fact-strip div:last-child {
    border-right: 0;
}

.fact-strip dt {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 900;
}

.fact-strip dd {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.section {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
    padding: 58px 0;
    border-bottom: 1px solid var(--border-secondary);
}

.section-heading {
    max-width: none;
    margin-bottom: 0;
}

.section-heading h2 {
    margin-bottom: 14px;
    color: var(--text-primary);
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1.12;
}

.section-heading p:not(.eyebrow) {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.feature-grid,
.steps,
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--border-primary);
}

.feature,
.step,
.related-link {
    min-height: 0;
    padding: 20px 18px 22px;
    border: 0;
    border-right: 1px solid var(--border-secondary);
    border-radius: 0;
    background: transparent;
}

.feature:nth-child(3n),
.step:nth-child(3n),
.related-link:nth-child(3n) {
    border-right: 0;
}

.feature h3,
.step h3,
.related-link strong {
    display: block;
    margin-bottom: 9px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
}

.feature p,
.step p,
.related-link span {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.step span {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 900;
}

.faq-list {
    max-width: none;
    border-top: 1px solid var(--border-primary);
}

.faq-list details {
    border-bottom: 1px solid var(--border-primary);
}

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 64px;
    padding: 18px 0;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    color: var(--text-tertiary);
    font-weight: 600;
}

.faq-list details[open] summary::after {
    content: "-";
}

.faq-list p {
    max-width: 780px;
    padding-bottom: 22px;
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.related-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.related-link:hover {
    border-color: var(--border-hover);
    color: var(--accent);
    transform: none;
}

.video-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.video-card {
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.video-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    object-fit: cover;
}

.video-card-body {
    padding: 16px;
}

.video-card h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.35;
}

.video-card p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.source-note {
    margin-top: 16px;
    color: var(--text-tertiary);
    font-size: 12px;
    line-height: 1.55;
}

.site-footer {
    width: min(1180px, calc(100% - 48px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
    padding: 28px 0;
    color: var(--text-tertiary);
    font-size: 13px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.site-footer a {
    color: var(--text-secondary);
    font-weight: 750;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--text-primary);
}

@media (max-width: 980px) {
    body {
        padding-top: 120px;
    }

    .header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-center {
        order: 3;
        width: 100%;
        padding: 0;
    }

    .header-mode-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 14px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .header-mode-nav::-webkit-scrollbar {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 46px;
    }

    .hero-visual {
        max-width: 620px;
        grid-template-rows: minmax(340px, 1fr) auto;
    }

    .hero-visual img {
        min-height: 340px;
    }

    .comparison-slider,
    .comparison-frame {
        min-height: 340px;
    }

    .comparison-slider {
        padding: 10px 10px 0;
    }

    .comparison-frame {
        border-radius: 16px;
    }

    .comparison-handle::after {
        width: 50px;
        height: 50px;
        background-size: 30px 16px;
    }

    .comparison-label {
        top: 18px;
        min-height: 34px;
        padding: 7px 13px;
        font-size: 12px;
    }

    .comparison-label-left {
        left: 18px;
    }

    .comparison-label-right {
        right: 18px;
    }

    .hero-visual video {
        min-height: 340px;
    }

    .audio-preview-card {
        min-height: 340px;
    }

    .workflow-snapshot {
        min-height: 340px;
    }

    .workflow-canvas-preview {
        min-height: 340px;
    }

    h1 {
        font-size: 2.85rem;
    }

    .section {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

@media (max-width: 720px) {
    .landing-main,
    .site-footer {
        width: min(100% - 32px, 1180px);
    }

    .logo span {
        font-size: 16px;
    }

    .home-mode-switch-btn {
        font-size: 11px;
    }

    .nav-icon,
    .lucide-icon {
        width: 15px;
        height: 15px;
    }

    h1 {
        font-size: 2.25rem;
    }

    .hero-copy {
        font-size: 1rem;
    }

    .fact-strip,
    .feature-grid,
    .steps,
    .related-grid,
    .video-showcase-grid,
    .audio-preview-meta {
        grid-template-columns: 1fr;
    }

    .audio-preview-card {
        padding: 24px;
    }

    .hero-visual-comparison {
        border-radius: 18px;
    }

    .hero-visual-comparison figcaption {
        gap: 8px;
        padding: 14px 14px 18px;
    }

    .hero-visual-comparison figcaption span {
        min-height: 32px;
        padding: 7px 11px;
        font-size: 12px;
    }

    .audio-preview-head h2 {
        font-size: 1.7rem;
    }

    .audio-waveform {
        height: 94px;
        gap: 3px;
        padding: 14px;
    }

    .workflow-node {
        width: 132px;
        min-height: 96px;
        padding: 10px;
    }

    .workflow-node h3 {
        font-size: 12px;
    }

    .workflow-node p {
        font-size: 10px;
    }

    .node-prompt,
    .node-assets { left: 4%; }

    .node-image,
    .node-audio { left: 37%; }

    .node-video,
    .node-output { right: 4%; }

    .audio-preview-meta div {
        border-right: 0;
        border-bottom: 1px solid var(--border-secondary);
    }

    .audio-preview-meta div:last-child {
        border-bottom: 0;
    }

    .feature-grid,
    .steps,
    .related-grid {
        border-top: 1px solid var(--border-primary);
    }

    .feature,
    .step,
    .related-link {
        border-right: 0;
        border-bottom: 1px solid var(--border-secondary);
        padding-left: 0;
        padding-right: 0;
    }

    .feature:last-child,
    .step:last-child,
    .related-link:last-child {
        border-bottom: 0;
    }

    .fact-strip div {
        border-right: 0;
        border-bottom: 1px solid var(--border-secondary);
    }

    .fact-strip div:last-child {
        border-bottom: 0;
    }

    .section-heading h2 {
        font-size: 1.85rem;
    }

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

    .site-footer nav {
        justify-content: flex-start;
    }
}
