/**
 * GolinksPRO — "Studio" design layer for the marketing site.
 *
 * Mirrors the desktop app's 1.3.0 design tokens ("Studio pro + lime", see
 * src/index.css in the app repo) so the website and the product read as one
 * thing. Two halves:
 *
 *   st-*  page primitives for dark marketing pages (home, offer)
 *   mk-*  coded replicas of real app screens (dashboard, workspace, clip
 *         cards, caption preview, export queue)
 *
 * The light-page tokens in main.css are untouched — the 21 light content
 * pages keep working; only pages that opt in with `.st-page` go dark.
 */

:root {
    /* Surfaces — copied from the app's @theme */
    --st-canvas: #09090b;
    --st-panel: #121317;
    --st-panel-2: #1a1c21;
    --st-panel-3: #23262c;
    --st-line: #22252b;
    --st-line-strong: #30343c;

    --st-ink: #f1f3f5;
    --st-ink-2: #aab0b8;
    --st-ink-3: #7d838c;
    --st-ink-4: #575d66;

    --st-accent: #a3e635;
    --st-accent-bright: #bef264;
    --st-accent-dim: #4d5c22;
    --st-accent-ink: #0b0c0e;

    --st-success: #34d399;
    --st-danger: #f87171;
    --st-warning: #fbbf24;
    --st-info: #60a5fa;

    --st-shadow-card: inset 0 1px 0 0 rgb(255 255 255 / 0.035), 0 1px 2px 0 rgb(0 0 0 / 0.4), 0 8px 24px -12px rgb(0 0 0 / 0.5);
    --st-shadow-pop: inset 0 1px 0 0 rgb(255 255 255 / 0.05), 0 2px 4px 0 rgb(0 0 0 / 0.4), 0 24px 48px -16px rgb(0 0 0 / 0.7);
    --st-shadow-glow: 0 0 0 1px rgb(163 230 53 / 0.35), 0 8px 28px -10px rgb(163 230 53 / 0.55);

    --st-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --st-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
}

/* ==========================================================================
   PAGE PRIMITIVES
   ========================================================================== */

.st-page {
    background: var(--st-canvas);
    color: var(--st-ink);
    font-family: var(--st-sans);
}
.st-page ::selection { background: rgb(163 230 53 / 0.3); color: var(--st-ink); }

.st-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.st-wrap-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }

.st-section { position: relative; padding: 112px 0; }
.st-section + .st-section { border-top: 1px solid var(--st-line); }
.st-section--tight { padding: 72px 0; }
.st-section--raised { background: linear-gradient(180deg, rgb(18 19 23 / 0.7), var(--st-canvas)); }

/* Faint grid texture, the same one the app uses behind empty thumbnails */
.st-grid-bg {
    background-image:
        linear-gradient(rgb(255 255 255 / 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
}

.st-glow {
    position: absolute; pointer-events: none; border-radius: 50%;
    background: radial-gradient(circle, rgb(163 230 53 / 0.13) 0%, transparent 65%);
    filter: blur(8px);
}

.st-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.st-head--left { margin-left: 0; text-align: left; }

.st-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 11px; margin-bottom: 18px;
    border: 1px solid rgb(163 230 53 / 0.2); background: rgb(163 230 53 / 0.05);
    border-radius: 999px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--st-accent);
}
.st-eyebrow::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--st-accent); box-shadow: 0 0 8px rgb(163 230 53 / 0.8);
}

.st-h1 {
    font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 700;
    line-height: 1.04; letter-spacing: -0.045em; color: var(--st-ink);
    text-wrap: balance; margin: 0;
}
.st-h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.7rem); font-weight: 650;
    line-height: 1.1; letter-spacing: -0.035em; color: var(--st-ink);
    text-wrap: balance; margin: 0 0 16px;
}
.st-h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; color: var(--st-ink); margin: 0 0 10px; }
.st-accent-text { color: var(--st-accent); }
.st-dim-text { color: var(--st-ink-3); }
.st-lead { font-size: 1.08rem; line-height: 1.7; color: var(--st-ink-2); text-wrap: pretty; margin: 0; }
.st-body { font-size: 0.95rem; line-height: 1.72; color: var(--st-ink-3); margin: 0; }
.st-mono { font-family: var(--st-mono); }

/* Buttons — same recipe as the app's primary/secondary Button */
.st-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 50px; padding: 0 26px; border-radius: 12px;
    font-family: var(--st-sans); font-size: 15px; font-weight: 600; white-space: nowrap;
    cursor: pointer; border: 0; text-decoration: none;
    transition: filter .15s, box-shadow .2s, background .2s, border-color .2s, transform .15s;
}
.st-btn:active { transform: scale(0.98); }
.st-btn--primary {
    background: linear-gradient(180deg, var(--st-accent-bright), var(--st-accent));
    color: var(--st-accent-ink);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 1px 2px rgb(0 0 0 / 0.4);
}
.st-btn--primary:hover { filter: brightness(1.05); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), var(--st-shadow-glow); color: var(--st-accent-ink); }
.st-btn--secondary {
    background: var(--st-panel-2); color: var(--st-ink);
    border: 1px solid var(--st-line); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
}
.st-btn--secondary:hover { background: var(--st-panel-3); border-color: var(--st-line-strong); color: var(--st-ink); }
.st-btn--lg { height: 56px; padding: 0 32px; font-size: 16px; border-radius: 14px; }
.st-btn--sm { height: 40px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.st-btn--block { width: 100%; }

.st-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 999px;
    border: 1px solid var(--st-line); background: var(--st-panel-2);
    font-size: 12px; font-weight: 500; color: var(--st-ink-2); white-space: nowrap;
}
.st-chip i { font-size: 10px; }
.st-chip--accent { border-color: rgb(163 230 53 / 0.25); background: rgb(163 230 53 / 0.1); color: var(--st-accent); }
.st-chip--info { border-color: rgb(96 165 250 / 0.25); background: rgb(96 165 250 / 0.1); color: var(--st-info); }
.st-chip--new {
    border-color: rgb(163 230 53 / 0.35); background: var(--st-accent); color: var(--st-accent-ink);
    font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px;
}

.st-card {
    position: relative; border-radius: 16px;
    border: 1px solid var(--st-line); background: var(--st-panel);
    box-shadow: var(--st-shadow-card);
}
.st-card--hover { transition: transform .2s, border-color .2s, box-shadow .2s; }
.st-card--hover:hover { transform: translateY(-3px); border-color: var(--st-line-strong); box-shadow: var(--st-shadow-pop); }
.st-card--accent {
    border-color: rgb(163 230 53 / 0.3);
    background: linear-gradient(160deg, rgb(163 230 53 / 0.09), var(--st-panel) 45%);
}

.st-icon {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 11px;
    border: 1px solid var(--st-line); background: var(--st-panel-2); color: var(--st-ink-2); font-size: 15px;
}
.st-icon--accent { border-color: rgb(163 230 53 / 0.3); background: rgb(163 230 53 / 0.12); color: var(--st-accent); }

.st-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.st-checks li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; color: var(--st-ink-2); }
.st-checks li::before {
    content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    flex-shrink: 0; width: 19px; height: 19px; margin-top: 1px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 9px; color: var(--st-accent); background: rgb(163 230 53 / 0.12);
    border: 1px solid rgb(163 230 53 / 0.25);
}
.st-checks strong { color: var(--st-ink); font-weight: 600; }

.st-divider { height: 1px; background: var(--st-line); border: 0; margin: 0; }

/* Reveal-on-scroll (pages without AOS) */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* FAQ accordion (dark) */
.st-faq { display: grid; gap: 10px; }
.st-faq-item { border: 1px solid var(--st-line); border-radius: 14px; background: var(--st-panel); overflow: hidden; transition: border-color .2s; }
.st-faq-item.open, .st-faq-item.active { border-color: var(--st-line-strong); }
.st-faq-q {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 18px 22px; cursor: pointer; user-select: none;
    font-size: 15px; font-weight: 600; color: var(--st-ink);
}
.st-faq-q h4 { font-size: 15px; font-weight: 600; color: var(--st-ink); margin: 0; letter-spacing: -0.01em; }
.st-faq-q i { color: var(--st-ink-4); font-size: 12px; transition: transform .25s, color .2s; flex-shrink: 0; }
.st-faq-item.open .st-faq-q i, .st-faq-item.active .st-faq-q i { transform: rotate(180deg); color: var(--st-accent); }
.st-faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.st-faq-item.open .st-faq-a, .st-faq-item.active .st-faq-a { max-height: 600px; }
.st-faq-a p { padding: 0 22px 20px; margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--st-ink-3); }

@media (max-width: 760px) {
    .st-section { padding: 80px 0; }
    .st-section--tight { padding: 56px 0; }
    .st-wrap, .st-wrap-sm { padding: 0 16px; }
    .st-head { margin-bottom: 40px; }
}

/* ==========================================================================
   MOCKUPS — coded replicas of GolinksPRO 1.3.0 screens
   Each mockup is a container-query context so it reflows like the real app
   window would, instead of shrinking into an unreadable thumbnail.
   ========================================================================== */

.mk-window {
    container-type: inline-size;
    position: relative; overflow: hidden; text-align: left;
    border-radius: 14px; border: 1px solid var(--st-line-strong);
    background: var(--st-canvas); color: var(--st-ink);
    font-family: var(--st-sans); font-size: 13px; line-height: 1.45;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05), 0 40px 80px -24px rgb(0 0 0 / 0.85), 0 0 0 1px rgb(0 0 0 / 0.5);
    user-select: none;
}
.mk-window * { box-sizing: border-box; }

/* Title bar */
.mk-titlebar {
    display: flex; align-items: center; height: 34px; padding: 0 12px;
    border-bottom: 1px solid var(--st-line); background: #0d0e11;
}
.mk-dots { display: flex; gap: 7px; width: 70px; }
.mk-dots span { width: 11px; height: 11px; border-radius: 50%; background: #2a2d33; }
.mk-dots span:nth-child(1) { background: #ff5f57; }
.mk-dots span:nth-child(2) { background: #febc2e; }
.mk-dots span:nth-child(3) { background: #28c840; }
.mk-titlebar-name { flex: 1; text-align: center; font-size: 12px; font-weight: 500; color: var(--st-ink-3); }
.mk-titlebar-end { width: 70px; }

.mk-app { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 520px; }

/* ---- Sidebar (mirrors components/Sidebar.tsx) ---- */
.mk-side {
    display: flex; flex-direction: column; border-right: 1px solid var(--st-line);
    background: linear-gradient(180deg, rgb(18 19 23 / 0.6), var(--st-canvas));
}
.mk-brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 14px; }
/* GolinksPRO Logo: clean centered contain without cropping or hardcoded offsets */
.mk-brand-mark, .st-logo-mark {
    position: relative; width: 34px; height: 34px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
    background: #000; border: 1px solid var(--st-line);
    display: inline-flex; align-items: center; justify-content: center;
}
.mk-brand-mark img, .st-logo-mark img {
    position: static; width: 100%; height: 100%; max-width: 100%; max-height: 100%;
    object-fit: contain; padding: 2px;
    border-radius: 0; display: block;
}
.mk-brand-name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--st-ink); line-height: 1.2; }
.mk-brand-sub { font-size: 10.5px; color: var(--st-ink-4); }

.mk-newbtn {
    margin: 0 12px; height: 36px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    background: linear-gradient(180deg, var(--st-accent-bright), var(--st-accent));
    color: var(--st-accent-ink); font-size: 12.5px; font-weight: 600;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 1px 2px rgb(0 0 0 / 0.4);
}
.mk-newbtn i { font-size: 11px; }

.mk-nav { padding: 0 12px; flex: 1; }
.mk-nav-label { padding: 16px 10px 6px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--st-ink-4); }
.mk-nav-item {
    position: relative; display: flex; align-items: center; gap: 10px;
    padding: 7px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 500; color: var(--st-ink-3);
}
.mk-nav-item i { width: 16px; text-align: center; font-size: 12px; color: var(--st-ink-4); }
.mk-nav-item.is-active {
    color: var(--st-ink);
    background: linear-gradient(90deg, var(--st-panel-2), rgb(26 28 33 / 0.4));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
}
.mk-nav-item.is-active i { color: var(--st-accent); }
.mk-nav-item.is-active::before {
    content: ''; position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 18px; border-radius: 0 3px 3px 0;
    background: var(--st-accent); box-shadow: 0 0 10px rgb(163 230 53 / 0.7);
}
.mk-pill {
    margin-left: auto; padding: 2px 6px; border-radius: 999px; font-size: 9.5px; font-weight: 600; line-height: 1;
    border: 1px solid var(--st-line); background: var(--st-panel-2); color: var(--st-ink-3);
}
.mk-pill--accent { border-color: rgb(163 230 53 / 0.25); background: rgb(163 230 53 / 0.1); color: var(--st-accent); }

.mk-side-foot { padding: 12px; border-top: 1px solid rgb(34 37 43 / 0.7); }
.mk-trial {
    padding: 11px; border-radius: 11px;
    border: 1px solid rgb(163 230 53 / 0.2);
    background: linear-gradient(135deg, rgb(163 230 53 / 0.1), transparent);
}
.mk-trial-row { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.mk-trial-row b { font-weight: 600; color: var(--st-ink); }
.mk-trial-row span { color: var(--st-ink-3); font-variant-numeric: tabular-nums; }
.mk-trial-bar { margin-top: 8px; height: 4px; border-radius: 99px; background: var(--st-panel-3); overflow: hidden; }
.mk-trial-bar i { display: block; height: 100%; width: 66%; border-radius: 99px; background: var(--st-accent); }
.mk-trial p { margin: 8px 0 0; font-size: 10.5px; line-height: 1.4; color: var(--st-ink-3); }
.mk-version { margin: 10px 4px 0; font-size: 9.5px; color: var(--st-ink-4); }

/* ---- Main area ---- */
.mk-main { min-width: 0; padding: 26px 28px 28px; }
.mk-pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.mk-eyebrow {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 9px;
    padding: 2px 9px; border-radius: 999px;
    border: 1px solid rgb(163 230 53 / 0.2); background: rgb(163 230 53 / 0.05);
    font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--st-accent);
}
.mk-eyebrow::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--st-accent); box-shadow: 0 0 8px rgb(163 230 53 / 0.8); }
.mk-h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0; color: var(--st-ink); }
.mk-desc { margin: 6px 0 0; font-size: 12px; color: var(--st-ink-3); }
.mk-btn {
    display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 10px;
    font-size: 12.5px; font-weight: 600; white-space: nowrap;
    background: linear-gradient(180deg, var(--st-accent-bright), var(--st-accent)); color: var(--st-accent-ink);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 1px 2px rgb(0 0 0 / 0.4);
}
.mk-btn--sm { height: 28px; padding: 0 11px; font-size: 11px; border-radius: 7px; }
.mk-btn--ghost { background: var(--st-panel-2); color: var(--st-ink); border: 1px solid var(--st-line); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04); }
.mk-btn i { font-size: 10px; }

/* Stat tiles (components/ui/StatTile.tsx) */
.mk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.mk-stat { border-radius: 11px; border: 1px solid var(--st-line); background: var(--st-panel); padding: 13px; box-shadow: var(--st-shadow-card); }
.mk-stat.is-accent { border-color: rgb(163 230 53 / 0.25); background: linear-gradient(135deg, rgb(163 230 53 / 0.09), var(--st-panel) 55%); }
.mk-stat-top { display: flex; justify-content: space-between; align-items: center; }
.mk-stat-label { font-size: 11px; font-weight: 500; color: var(--st-ink-3); }
.mk-stat-ico {
    width: 24px; height: 24px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--st-line); background: var(--st-panel-2); color: var(--st-ink-3); font-size: 10px;
}
.mk-stat.is-accent .mk-stat-ico { border-color: rgb(163 230 53 / 0.25); background: rgb(163 230 53 / 0.1); color: var(--st-accent); }
.mk-stat-val { margin-top: 10px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--st-ink); }
.mk-stat-hint { margin-top: 2px; font-size: 10px; color: var(--st-ink-4); }

.mk-sechead { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--st-ink); }
.mk-count { padding: 1px 6px; border-radius: 6px; border: 1px solid var(--st-line); background: var(--st-panel-2); font-size: 10.5px; font-weight: 500; color: var(--st-ink-3); }

/* Project cards (routes/Home.tsx ProjectCard) */
.mk-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mk-proj { overflow: hidden; border-radius: 11px; border: 1px solid var(--st-line); background: var(--st-panel); box-shadow: var(--st-shadow-card); }
.mk-proj-body { padding: 11px 12px 12px; }
.mk-proj-title { font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--st-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 32px; }
.mk-proj-meta { display: flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 10.5px; color: var(--st-ink-4); }
.mk-proj-meta span:last-child { margin-left: auto; }
.mk-proj-part { display: inline-block; margin-bottom: 6px; padding: 1px 7px; border-radius: 99px; background: rgb(163 230 53 / 0.15); color: var(--st-accent); font-size: 8.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

.mk-badge {
    display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
    padding: 2px 8px; border-radius: 999px; border: 1px solid var(--st-line);
    background: var(--st-panel-2); color: var(--st-ink-2); font-size: 10px; font-weight: 500;
}
.mk-badge.dot::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.mk-badge--accent { border-color: rgb(163 230 53 / 0.25); background: rgb(163 230 53 / 0.1); color: var(--st-accent); }
.mk-badge--success { border-color: rgb(52 211 153 / 0.25); background: rgb(52 211 153 / 0.1); color: var(--st-success); }
.mk-badge--warning { border-color: rgb(251 191 36 / 0.25); background: rgb(251 191 36 / 0.1); color: var(--st-warning); }
.mk-badge--info { border-color: rgb(96 165 250 / 0.25); background: rgb(96 165 250 / 0.1); color: var(--st-info); }

/* ---- Thumbnails: CSS-drawn "frames" standing in for real video stills ---- */
.mk-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #15171b; }
.mk-thumb::after { /* bottom scrim, like the real card */
    content: ''; position: absolute; inset: 50% 0 0 0; pointer-events: none;
    background: linear-gradient(0deg, rgb(0 0 0 / 0.7), transparent);
}
.mk-thumb-tl { position: absolute; left: 7px; top: 7px; z-index: 2; }
.mk-thumb-tl .mk-badge { background: rgb(0 0 0 / 0.6); backdrop-filter: blur(4px); }
.mk-thumb-dur {
    position: absolute; right: 7px; bottom: 7px; z-index: 2;
    padding: 1px 5px; border-radius: 5px; background: rgb(0 0 0 / 0.7);
    font-family: var(--st-mono); font-size: 9.5px; font-weight: 500; color: #fff;
}
.mk-thumb-src { position: absolute; left: 8px; bottom: 7px; z-index: 2; color: rgb(255 255 255 / 0.8); font-size: 10px; }
.mk-thumb-score { position: absolute; left: 7px; top: 7px; z-index: 2; }

/* Scenes */
.mk-scene { position: absolute; inset: 0; }
.mk-scene--podcast { background: radial-gradient(ellipse at 50% 20%, #5a3a24 0%, #2a1b12 55%, #120c08 100%); }
.mk-scene--studio  { background: radial-gradient(ellipse at 30% 30%, #1f3a5c 0%, #10203a 50%, #070d18 100%); }
.mk-scene--stage   { background: radial-gradient(ellipse at 50% 0%, #4c2a5e 0%, #1f1230 55%, #0b0712 100%); }
.mk-scene--game    { background: linear-gradient(135deg, #0f3b3a 0%, #112a4a 45%, #2b1145 100%); }
.mk-scene--kitchen { background: radial-gradient(ellipse at 70% 30%, #3d4a2a 0%, #1c2414 55%, #0b0e08 100%); }
.mk-scene--office  { background: radial-gradient(ellipse at 40% 25%, #3b3f48 0%, #1e2027 55%, #0c0d10 100%); }

/* Set dressing: a warm practical light + a desk line */
.mk-scene .mk-lamp { position: absolute; width: 38%; height: 60%; top: -10%; border-radius: 50%; background: radial-gradient(circle, rgb(255 200 140 / 0.22), transparent 70%); }
.mk-scene .mk-desk { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(180deg, rgb(0 0 0 / 0.25), rgb(0 0 0 / 0.55)); }
.mk-scene .mk-mic { position: absolute; bottom: 18%; width: 4%; height: 22%; border-radius: 40% 40% 4px 4px; background: linear-gradient(180deg, #3a3a3e, #18181b); }
.mk-scene .mk-screen { position: absolute; inset: 14% 18% 30% 18%; border-radius: 4px; background: linear-gradient(135deg, #1b5e5a, #3b2a7a); box-shadow: 0 0 30px rgb(80 200 255 / 0.25); }

/* People: head + shoulders silhouettes */
.mk-person { position: absolute; bottom: 0; width: 26%; height: 78%; }
.mk-person::before { /* head */
    content: ''; position: absolute; left: 50%; top: 10%; transform: translateX(-50%);
    width: 42%; aspect-ratio: 0.82; border-radius: 48% 48% 44% 44%;
    background: var(--skin, #c99a76); box-shadow: inset -4px -6px 10px rgb(0 0 0 / 0.25);
}
.mk-person::after { /* shoulders */
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
    border-radius: 46% 46% 0 0; background: var(--shirt, #2d3a4f);
    box-shadow: inset 0 6px 12px rgb(255 255 255 / 0.05);
}
.mk-person--a { left: 14%; --skin: #d2a07c; --shirt: #33435e; }
.mk-person--b { right: 14%; --skin: #8d5b3e; --shirt: #5a2f2f; }
.mk-person--c { left: 50%; transform: translateX(-50%); --skin: #e0b394; --shirt: #22303f; }
.mk-person--solo { left: 50%; transform: translateX(-50%); width: 34%; height: 86%; --skin: #c48c66; --shirt: #1f2b3a; }
.mk-person--cam { right: 6%; bottom: 8%; width: 16%; height: 30%; --skin: #d9a985; --shirt: #3b2a55; }

/* Face box overlay — what the tracker sees */
.mk-facebox { position: absolute; border: 1.5px solid var(--st-accent); border-radius: 4px; box-shadow: 0 0 12px rgb(163 230 53 / 0.45); }
.mk-facebox::after {
    content: attr(data-label); position: absolute; left: -1.5px; top: -15px;
    padding: 0 4px; border-radius: 3px 3px 3px 0; background: var(--st-accent); color: var(--st-accent-ink);
    font-family: var(--st-mono); font-size: 8px; font-weight: 600; line-height: 13px; white-space: nowrap;
}

/* ---- Workspace (routes/ProjectView.tsx) ---- */
.mk-ws-head { display: flex; align-items: center; gap: 12px; padding: 14px 22px 14px; border-bottom: 1px solid var(--st-line); background: rgb(18 19 23 / 0.4); }
.mk-crumbs { font-size: 10.5px; color: var(--st-ink-4); margin-bottom: 6px; }
.mk-crumbs i { font-size: 8px; margin: 0 5px; }
.mk-crumbs b { color: var(--st-ink-3); font-weight: 400; }
.mk-ws-thumb { width: 76px; flex-shrink: 0; border-radius: 7px; border: 1px solid var(--st-line); overflow: hidden; }
.mk-ws-thumb .mk-thumb::after { display: none; }
.mk-ws-title { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; color: var(--st-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-ws-meta { margin-top: 3px; display: flex; gap: 7px; align-items: center; font-size: 10.5px; color: var(--st-ink-3); }
.mk-ws-meta .sep { color: var(--st-ink-4); }
.mk-ws-meta .fa-youtube { color: #ff4e45; }

.mk-stepper { display: flex; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--st-line); background: rgb(9 9 11 / 0.6); overflow: hidden; }
.mk-step { display: flex; align-items: center; flex: 1; min-width: 0; }
.mk-step:last-child { flex: none; }
.mk-step-btn { display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 7px; font-size: 11.5px; font-weight: 500; color: var(--st-ink-3); white-space: nowrap; }
.mk-step-num {
    width: 19px; height: 19px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--st-line-strong); color: var(--st-ink-4); font-size: 9.5px; font-weight: 700;
}
.mk-step.is-done .mk-step-num { border-color: rgb(163 230 53 / 0.4); background: rgb(163 230 53 / 0.15); color: var(--st-accent); }
.mk-step.is-done .mk-step-num::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 8px; }
.mk-step.is-done .mk-step-num span { display: none; }
.mk-step.is-active .mk-step-btn { background: var(--st-panel-2); color: var(--st-ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04), 0 0 0 1px var(--st-line); }
.mk-step.is-active .mk-step-num { border-color: var(--st-accent); background: var(--st-accent); color: var(--st-accent-ink); box-shadow: 0 0 12px rgb(163 230 53 / 0.5); }
.mk-step.is-todo .mk-step-btn { color: var(--st-ink-4); }
.mk-step-line { flex: 1; height: 1px; margin: 0 6px; min-width: 10px; background: var(--st-line); position: relative; }
.mk-step.is-done .mk-step-line::after { content: ''; position: absolute; inset: 0; background: rgb(163 230 53 / 0.6); }

.mk-stage { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; padding: 18px 22px 22px; }
.mk-panel { overflow: hidden; border-radius: 11px; border: 1px solid var(--st-line); background: var(--st-panel); box-shadow: var(--st-shadow-card); align-self: start; }
.mk-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 13px; border-bottom: 1px solid var(--st-line); background: rgb(26 28 33 / 0.4); }
.mk-panel-title { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--st-ink); }
.mk-panel-title::before { content: ''; width: 3px; height: 12px; border-radius: 3px; background: var(--st-accent); }
.mk-panel-body { padding: 13px; display: grid; gap: 15px; }
.mk-group-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 10.5px; font-weight: 600; color: var(--st-ink-2); }
.mk-group-label span { font-weight: 400; font-size: 9.5px; color: var(--st-ink-4); }
.mk-hint { margin: 6px 0 0; font-size: 9.5px; line-height: 1.5; color: var(--st-ink-4); }
.mk-hint b { color: var(--st-accent); font-weight: 600; }

/* OptionGrid (components/StageShell.tsx) */
.mk-opts { display: grid; gap: 5px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.mk-opt {
    padding: 7px 4px; border-radius: 7px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    border: 1px solid var(--st-line); background: var(--st-panel-2); color: var(--st-ink-3); font-size: 10.5px; font-weight: 500;
    transition: border-color .25s, background .25s, color .25s, box-shadow .25s;
}
.mk-opt.is-on { border-color: rgb(163 230 53 / 0.7); background: rgb(163 230 53 / 0.1); color: var(--st-ink); box-shadow: 0 0 0 3px rgb(163 230 53 / 0.08); }
.mk-opt.is-new { position: relative; }
.mk-opt.is-new::after { content: ''; position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--st-accent); box-shadow: 0 0 6px rgb(163 230 53 / 0.9); }

.mk-seg { display: flex; gap: 3px; padding: 3px; border-radius: 8px; border: 1px solid var(--st-line); background: var(--st-panel-2); }
.mk-seg span { flex: 1; text-align: center; padding: 5px 4px; border-radius: 6px; font-size: 10.5px; font-weight: 500; color: var(--st-ink-3); white-space: nowrap; }
.mk-seg span.is-on { background: var(--st-panel-3); color: var(--st-ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05), 0 1px 2px rgb(0 0 0 / 0.3); }

/* Suggestion cards (components/ClipSuggestionList.tsx) */
.mk-sugg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.mk-sugg-head h4 { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--st-ink); }
.mk-sugg-head p { margin: 2px 0 0; font-size: 10.5px; color: var(--st-ink-3); }
.mk-sugg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.mk-sugg { display: flex; flex-direction: column; overflow: hidden; border-radius: 11px; border: 1px solid var(--st-line); background: var(--st-panel); box-shadow: var(--st-shadow-card); }
.mk-sugg-body { padding: 10px 11px 11px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.mk-sugg-title { font-size: 11.5px; font-weight: 600; line-height: 1.35; color: var(--st-ink); }
.mk-sugg-reason { font-size: 10px; line-height: 1.5; color: var(--st-ink-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mk-sugg-time { margin-top: auto; padding-top: 3px; font-family: var(--st-mono); font-size: 9.5px; color: var(--st-ink-4); }
.mk-sugg-time i { margin-right: 4px; }
.mk-sugg-actions { display: flex; gap: 5px; margin-top: 7px; padding-top: 8px; border-top: 1px solid var(--st-line); }
.mk-sugg-actions .mk-btn { flex: 1; justify-content: center; }
.mk-sugg-actions .mk-x { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 7px; color: var(--st-ink-3); font-size: 11px; }
.mk-sugg.is-new { animation: mkCardIn .7s cubic-bezier(.2,.8,.2,1) both; }

/* Sort control */
.mk-sort { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 8px; border: 1px solid var(--st-line); background: var(--st-panel-2); font-size: 10px; }
.mk-sort em { font-style: normal; padding: 0 6px; color: var(--st-ink-3); }
.mk-sort span { padding: 3px 8px; border-radius: 5px; color: var(--st-ink-3); font-weight: 500; }
.mk-sort span.is-on { background: var(--st-panel-3); color: var(--st-ink); }

/* Progress */
.mk-progress { height: 5px; border-radius: 99px; background: var(--st-panel-3); overflow: hidden; }
.mk-progress i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--st-accent-dim), var(--st-accent)); }
.mk-progress--anim i { animation: mkFill 6s cubic-bezier(.4,0,.2,1) infinite; }

/* ---- Vertical (9:16) preview ---- */
.mk-phone {
    position: relative; aspect-ratio: 9 / 16; overflow: hidden;
    border-radius: 14px; border: 1px solid var(--st-line-strong); background: #000;
    box-shadow: 0 24px 48px -16px rgb(0 0 0 / 0.8);
}
.mk-phone .mk-scene { inset: 0; }
.mk-phone .mk-person--solo { width: 78%; height: 62%; }

/* Animated karaoke caption — four words light up in turn */
.mk-caption {
    position: absolute; left: 8%; right: 8%; bottom: 22%; z-index: 3;
    display: flex; flex-wrap: wrap; justify-content: center; gap: .05em .38em;
    font-family: var(--st-sans); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em;
    font-size: clamp(12px, 3.9cqw, 22px); line-height: 1.08; color: #fff;
    text-shadow: 0 2px 0 #000, 0 0 2px #000, 2px 2px 0 #000, -2px 2px 0 #000;
}
.mk-caption span { display: inline-block; animation: mkWord 3.2s infinite; }
.mk-caption span:nth-child(2) { animation-delay: .8s; }
.mk-caption span:nth-child(3) { animation-delay: 1.6s; }
.mk-caption span:nth-child(4) { animation-delay: 2.4s; }
.mk-caption--box span { padding: 0 .12em; border-radius: .14em; animation-name: mkWordBox; text-shadow: none; }

/* Auto Frame: stacked panes that switch on a "cut" */
.mk-af { position: absolute; inset: 0; display: grid; }
.mk-af-pane { position: relative; overflow: hidden; }
.mk-af-pane + .mk-af-pane { border-top: 2px solid #000; }
.mk-af-pane .mk-person { width: 58%; height: 92%; left: 50%; right: auto; transform: translateX(-50%); }
.mk-af--two { grid-template-rows: 1fr 1fr; animation: mkShotA 8s steps(1) infinite; }
.mk-af--one { animation: mkShotB 8s steps(1) infinite; }
.mk-af--three { grid-template-rows: 1fr 1fr; grid-template-columns: 1fr 1fr; }
.mk-af--three .mk-af-pane:nth-child(3) { grid-column: 1 / -1; border-top: 2px solid #000; }
.mk-af--three .mk-af-pane:nth-child(2) { border-top: 0; border-left: 2px solid #000; }

.mk-rec {
    position: absolute; top: 9px; left: 9px; z-index: 4;
    display: flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 99px;
    background: rgb(0 0 0 / 0.6); color: #fff; font-family: var(--st-mono); font-size: 9px; font-weight: 500;
}
.mk-rec::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--st-accent); box-shadow: 0 0 6px var(--st-accent); }

/* ---- Export / results list ---- */
.mk-queue { display: grid; gap: 7px; }
.mk-qitem {
    display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 11px;
    padding: 8px 10px; border-radius: 10px; border: 1px solid var(--st-line); background: var(--st-panel);
}
.mk-qitem .mk-thumb { aspect-ratio: 9 / 16; border-radius: 5px; }
.mk-qitem .mk-thumb::after { display: none; }
.mk-qname { font-size: 11.5px; font-weight: 600; color: var(--st-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-qmeta { margin-top: 2px; font-family: var(--st-mono); font-size: 9.5px; color: var(--st-ink-4); }
/* Export mockup: the AI hook line (v2.3.0), styled like the in-video banner. */
.mk-qhook { margin-top: 4px; display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: .02em; color: var(--st-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-qhook span { flex-shrink: 0; padding: 0 5px; border: 1px solid rgb(255 210 31 / .45); border-radius: 4px; font-family: var(--st-mono); font-size: 8.5px; color: #ffd21f; }
.mk-qhook b { color: #ffd21f; }
.mk-qitem .mk-progress { margin-top: 6px; }
.mk-qitem.is-active { border-color: rgb(163 230 53 / 0.3); background: linear-gradient(90deg, rgb(163 230 53 / 0.06), var(--st-panel)); }

/* ---- Mode cards (routes/NewProject.tsx ModeToggle) ---- */
.mk-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mk-mode { position: relative; padding: 12px; border-radius: 11px; border: 1px solid var(--st-line); background: var(--st-panel); box-shadow: var(--st-shadow-card); }
.mk-mode.is-on { border-color: rgb(163 230 53 / 0.5); background: linear-gradient(180deg, rgb(163 230 53 / 0.09), var(--st-panel)); box-shadow: 0 0 0 4px rgb(163 230 53 / 0.06); }
.mk-mode-top { display: flex; justify-content: space-between; align-items: center; }
.mk-mode-ico { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--st-line); background: var(--st-panel-2); color: var(--st-ink-3); font-size: 12px; }
.mk-mode.is-on .mk-mode-ico { border-color: rgb(163 230 53 / 0.3); background: rgb(163 230 53 / 0.15); color: var(--st-accent); }
.mk-radio { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--st-line-strong); display: flex; align-items: center; justify-content: center; font-size: 7px; color: var(--st-accent-ink); }
.mk-mode.is-on .mk-radio { border-color: var(--st-accent); background: var(--st-accent); }
.mk-mode-name { margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--st-ink-2); }
.mk-mode.is-on .mk-mode-name { color: var(--st-ink); }
.mk-mode-desc { margin-top: 3px; font-size: 10px; line-height: 1.5; color: var(--st-ink-3); }
.mk-stephead { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--st-ink); }
.mk-stephead span { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgb(163 230 53 / 0.3); background: rgb(163 230 53 / 0.1); color: var(--st-accent); font-family: var(--st-mono); font-size: 9.5px; font-weight: 600; }
.mk-input { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 11px; border-radius: 9px; border: 1px solid rgb(163 230 53 / 0.5); background: var(--st-panel-2); box-shadow: 0 0 0 4px rgb(163 230 53 / 0.08); font-family: var(--st-mono); font-size: 11px; color: var(--st-ink-2); }
.mk-input .fa-youtube { color: #ff4e45; font-size: 13px; }
.mk-caret { display: inline-block; width: 1px; height: 13px; background: var(--st-accent); animation: mkBlink 1s steps(1) infinite; }

/* Floating annotation callouts around a mockup */
.mk-callout {
    position: absolute; z-index: 5; display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 11px;
    border: 1px solid var(--st-line-strong); background: rgb(18 19 23 / 0.92); backdrop-filter: blur(10px);
    box-shadow: var(--st-shadow-pop); font-size: 12px; font-weight: 600; color: var(--st-ink); white-space: nowrap;
    animation: mkFloat 6s ease-in-out infinite;
}
.mk-callout i { color: var(--st-accent); font-size: 12px; }
.mk-callout small { display: block; font-size: 10.5px; font-weight: 500; color: var(--st-ink-3); }

/* Keyframes */
@keyframes mkWord {
    0%, 22% { color: var(--st-accent); transform: scale(1.12) rotate(-1.5deg); }
    25%, 100% { color: #fff; transform: none; }
}
@keyframes mkWordBox {
    0%, 22% { background: var(--st-accent); color: var(--st-accent-ink); }
    25%, 100% { background: transparent; color: #fff; }
}
@keyframes mkShotA { 0%, 49.99% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes mkShotB { 0%, 49.99% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes mkFill { 0% { width: 8%; } 80%, 100% { width: 100%; } }
@keyframes mkBlink { 50% { opacity: 0; } }
@keyframes mkFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes mkCardIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---- Container-query reflow: narrow mockups behave like a narrow window ---- */
@container (max-width: 860px) {
    .mk-app { grid-template-columns: minmax(0, 1fr); }
    .mk-side { display: none; }
    .mk-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mk-stage { grid-template-columns: minmax(0, 1fr); }
    .mk-sugg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mk-step-btn .lbl { display: none; }
    .mk-step.is-active .mk-step-btn .lbl { display: inline; }
}
@container (max-width: 560px) {
    .mk-main { padding: 18px 16px; }
    .mk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mk-projects .mk-proj:nth-child(n+3) { display: none; }
    .mk-sugg-grid { grid-template-columns: minmax(0, 1fr); }
    .mk-sugg-grid .mk-sugg:nth-child(n+3) { display: none; }
    .mk-modes { grid-template-columns: minmax(0, 1fr); }
    .mk-ws-head, .mk-stage { padding-left: 14px; padding-right: 14px; }
    .mk-h1 { font-size: 19px; }
}

@media (max-width: 900px) { .mk-callout { display: none; } }

@media (prefers-reduced-motion: reduce) {
    .mk-caption span, .mk-af--two, .mk-af--one, .mk-progress--anim i, .mk-callout, .mk-caret, .mk-sugg.is-new { animation: none !important; }
    .mk-af--one { opacity: 0; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}
