/* ═══════════════════════════════════════════════════════════════════════════
   Khyoot Studio — Premium landing (scoped to .ks-landing)
   ═══════════════════════════════════════════════════════════════════════════ */

.ks-landing-main {
    max-width: 100%;
    padding: 0 !important;
    overflow-x: clip;
}

body.ks-page-home {
    background: #000;
}

body.ks-page-home #app-content {
    padding-top: 0;
    background: #000;
}

body.ks-page-home .ks-framer-nav-wrap {
    z-index: 1200;
}

.ks-landing {
    --landing-accent: #e11d48;
    --landing-accent-soft: rgba(180, 18, 42, 0.35);
    --landing-surface: #0a0a0a;
    --landing-surface-2: #111111;
    --landing-border: rgba(255, 255, 255, 0.1);
    --landing-glow: rgba(180, 18, 42, 0.45);
    --landing-black: #000000;
    position: relative;
    background: var(--landing-black);
    color: var(--text-primary, #f4f4f5);
    font-family: 'Space Grotesk', system-ui, sans-serif;
    isolation: isolate;
}

.ks-landing h1,
.ks-landing h2,
.ks-landing h3,
.ks-landing .ks-landing-headline,
.ks-landing .ks-landing-section-title {
    font-family: 'Syne', 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

/* ── Background layers ───────────────────────────────────────────────────── */
.ks-landing-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.ks-landing-mesh {
    position: absolute;
    inset: 0;
    background: var(--landing-black);
}

.ks-landing-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.35;
    mask-image: linear-gradient(180deg, black 0%, black 40%, transparent 100%);
}

.ks-landing-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ks-landing-hero .container {
    position: relative;
    z-index: 1;
}

.ks-landing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    animation: ks-landing-orb-float 12s ease-in-out infinite;
}

.ks-landing-orb--1 {
    width: 420px;
    height: 420px;
    top: -8%;
    right: 5%;
    background: var(--landing-glow);
}

.ks-landing-orb--2 {
    width: 280px;
    height: 280px;
    bottom: 20%;
    left: -5%;
    background: rgba(99, 102, 241, 0.35);
    animation-delay: -4s;
}

.ks-landing-orb--3 {
    width: 200px;
    height: 200px;
    top: 45%;
    left: 40%;
    background: rgba(225, 29, 72, 0.25);
    animation-delay: -7s;
}

@keyframes ks-landing-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(12px, -18px) scale(1.06); }
}

.ks-landing-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    z-index: 9999;
    background: linear-gradient(90deg, var(--accent, #b4122a), #f43f5e, #fb7185);
    box-shadow: 0 0 20px var(--landing-accent-soft);
    transition: width 0.08s linear;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.ks-landing-hero {
    position: relative;
    padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
    min-height: min(92vh, 900px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* ── Post-hero blocks (solid black) ──────────────────────────────────────── */
.ks-landing-block {
    position: relative;
    background: var(--landing-black);
}

.ks-landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.9rem 0.45rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--landing-border);
    background: var(--landing-surface);
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(12px);
}

.ks-landing-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
    animation: ks-landing-pulse 2s ease-in-out infinite;
}

@keyframes ks-landing-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.92); }
}

.ks-landing-headline {
    font-size: clamp(2.35rem, 5.5vw, 4.15rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    max-width: 14ch;
}

.ks-landing-gradient-text {
    display: inline;
    background: linear-gradient(120deg, #fff 0%, #fda4af 40%, var(--accent, #b4122a) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ks-landing-spark {
    display: inline-block;
    margin-left: 0.15em;
    color: #fb7185;
    animation: ks-landing-spark 3s ease-in-out infinite;
}

@keyframes ks-landing-spark {
    0%, 100% { opacity: 0.6; transform: rotate(0deg) scale(1); }
    50% { opacity: 1; transform: rotate(90deg) scale(1.15); }
}

.ks-landing-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.62);
    max-width: 36rem;
    margin-bottom: 2rem;
}

.ks-landing-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.ks-landing-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.ks-landing-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ks-landing-trust-item i {
    color: var(--accent, #b4122a);
}

/* ── Mockup ──────────────────────────────────────────────────────────────── */
.ks-landing-mockup-wrap {
    position: relative;
    perspective: 1200px;
}

.ks-landing-mockup-glow {
    position: absolute;
    inset: 10% 5%;
    background: radial-gradient(circle, var(--landing-glow), transparent 65%);
    filter: blur(40px);
    opacity: 0.7;
    animation: ks-landing-glow-pulse 4s ease-in-out infinite;
}

@keyframes ks-landing-glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.98); }
    50% { opacity: 0.85; transform: scale(1.02); }
}

.ks-landing-mockup {
    position: relative;
    border-radius: 16px;
    border: 1px solid var(--landing-border);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 40px 80px -20px rgba(0, 0, 0, 0.7),
        0 0 60px -10px var(--landing-accent-soft);
    transform-style: preserve-3d;
    animation: ks-landing-mockup-float 6s ease-in-out infinite;
}

@keyframes ks-landing-mockup-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ks-landing-mockup-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--landing-border);
    background: rgba(0, 0, 0, 0.35);
}

.ks-landing-mockup-bar span:not(.ks-landing-mockup-title) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.ks-landing-mockup-bar span:nth-child(1) { background: #ef4444; }
.ks-landing-mockup-bar span:nth-child(2) { background: #eab308; }
.ks-landing-mockup-bar span:nth-child(3) { background: #22c55e; }

.ks-landing-mockup-title {
    margin-left: auto;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
}

.ks-landing-mockup-tabs {
    display: flex;
    gap: 4px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--landing-border);
}

.ks-landing-mockup-tabs span {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    cursor: default;
    transition: background 0.25s, color 0.25s;
}

.ks-landing-mockup-tabs span.is-active {
    background: rgba(180, 18, 42, 0.25);
    color: #fda4af;
}

.ks-landing-mockup-body {
    display: flex;
    gap: 10px;
    padding: 12px;
    min-height: 220px;
}

.ks-landing-mockup-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 48px;
}

.ks-landing-mockup-sidebar div {
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.ks-landing-mockup-sidebar div.is-active {
    background: linear-gradient(135deg, rgba(180, 18, 42, 0.4), rgba(225, 29, 72, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ks-landing-mockup-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ks-landing-mockup-card {
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ks-landing-mockup-card.wide {
    grid-column: 1 / -1;
}

.ks-landing-mockup-card .thumb {
    height: 48px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    margin-bottom: 8px;
}

.ks-landing-mockup-card .thumb.accent {
    background: linear-gradient(135deg, rgba(180, 18, 42, 0.5), rgb(45 0 8));
}

.ks-landing-mockup-card .thumb.wide {
    height: 56px;
}

.ks-landing-mockup-card .lines span {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 4px;
}

.ks-landing-mockup-card .lines span:first-child { width: 80%; }
.ks-landing-mockup-card .lines span:last-child { width: 55%; }

.ks-landing-mockup-float {
    position: absolute;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 1.28rem;
    font-weight: 600;
    border: 1px solid var(--landing-border);
    background: rgba(12, 12, 16, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    animation: ks-landing-float-badge 5s ease-in-out infinite;
}

.ks-landing-mockup-float--1 {
    bottom: 18%;
    left: -4%;
    animation-delay: 0s;
}

.ks-landing-mockup-float--2 {
    top: 22%;
    right: -6%;
    display: flex;
    align-items: center;
    gap: 8px;
    animation-delay: -2s;
}

.dot-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

@keyframes ks-landing-float-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ── Stats ───────────────────────────────────────────────────────────────── */
.ks-landing-stats {
    padding: clamp(4rem, 9vw, 6.5rem) 0;
    background: var(--landing-black, #000);
}

.ks-landing-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.ks-landing-stat-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
    min-height: clamp(10rem, 20vw, 13.5rem);
    padding: clamp(2.75rem, 6vw, 4.25rem) clamp(1.25rem, 3vw, 2.5rem);
}

.ks-landing-stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: min(78%, clamp(5.5rem, 14vw, 9.5rem));
    transform: translateY(-50%);
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.04) 18%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.04) 82%,
        transparent 100%
    );
    pointer-events: none;
}

.ks-landing-stat-value {
    font-family: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
    font-size: clamp(2.25rem, 4.8vw, 3.15rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
}

.ks-landing-stat-label {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: clamp(0.95rem, 1.75vw, 1.12rem);
    font-weight: 400;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.42);
}

/* Partner / asset source logos */
.ks-landing-partners {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ks-landing-partners__label {
    margin: 0 0 1.35rem;
    text-align: center;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: clamp(0.72rem, 1.4vw, 0.82rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.ks-landing-partners-marquee {
    --partner-logo-w: clamp(128px, 14vw, 172px);
    --partner-logo-h: clamp(40px, 5.2vw, 52px);
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.ks-landing-partners-track {
    display: flex;
    width: max-content;
    animation: ks-landing-partners-marquee 32s linear infinite;
}

.ks-landing-partners-set {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 5vw, 3.5rem);
    margin: 0;
    padding: 0 clamp(1rem, 2.5vw, 1.75rem);
    list-style: none;
}

.ks-landing-partners-set li {
    flex: 0 0 var(--partner-logo-w);
    width: var(--partner-logo-w);
    height: var(--partner-logo-h);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* PNGs with large transparent padding — scale up to match peers */
.ks-landing-partners-item--iconscout {
    --partner-logo-scale: 2.65;
}

.ks-landing-partners-item--giphy {
    --partner-logo-scale: 1.85;
}

.ks-landing-partners-item--iconscout img,
.ks-landing-partners-item--giphy img {
    transform: scale(var(--partner-logo-scale, 1));
    transform-origin: center center;
}

.ks-landing-partners-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ks-landing-partners-set img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.62;
    filter: grayscale(1) brightness(1.1);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.ks-landing-partners-set li:hover img {
    opacity: 0.95;
    filter: grayscale(0) brightness(1);
}

@keyframes ks-landing-partners-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.ks-landing-section {
    padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.ks-landing-section--dim {
    background: var(--landing-black);
}

.ks-landing-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.ks-landing-section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    margin: 0.5rem 0 1rem;
}

.ks-landing-section-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0;
}

/* ── Plugin showcase (Everything in one plugin) ──────────────────────────── */
.ks-landing-plugin-showcase {
    margin: 0 0 2.5rem;
}

.ks-landing-plugin-tabs {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.ks-landing-plugin-tab {
    flex: 1 1 0;
    min-width: 0;
    width: 33.333%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.62);
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ks-landing-plugin-tab:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}

.ks-landing-plugin-tab.is-active {
    color: #fff;
    border-color: rgba(225, 29, 72, 0.55);
    background: linear-gradient(180deg, rgba(225, 29, 72, 0.28) 0%, rgba(120, 16, 32, 0.35) 100%);
    box-shadow: 0 0 24px rgba(225, 29, 72, 0.22);
}

.ks-landing-plugin-stage {
    position: relative;
    width: 100%;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 42%, rgba(180, 18, 42, 0.22) 100%);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.55),
        0 0 60px rgba(180, 18, 42, 0.12);
    overflow: hidden;
}

/* Desktop: mockup column width shared by tabs, stage, and creator banner */
@media (min-width: 901px) {
    #features {
        --plugin-stage-h: clamp(440px, 48vw, 560px);
        --plugin-col-w: min(100%, calc(var(--plugin-stage-h) * 1.6));
    }

    #features .ks-landing-plugin-tabs,
    #features .ks-landing-plugin-stage,
    #features .ks-landing-creator-banner {
        width: var(--plugin-col-w);
        max-width: 100%;
        margin-inline: auto;
    }

    #features .ks-landing-plugin-stage {
        height: var(--plugin-stage-h);
    }
}

.ks-landing-plugin-stage::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 21px;
    background: #0e0e0e;
    z-index: 0;
    pointer-events: none;
}

.ks-landing-plugin-stage::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 21px;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.55) 18%,
        rgba(0, 0, 0, 0.15) 36%,
        transparent 48%
    );
}

.ks-landing-plugin-copy {
    position: absolute;
    inset: auto 1px 1px 1px;
    z-index: 4;
    display: grid;
    align-content: end;
    padding: clamp(0.85rem, 2vw, 1.25rem);
    text-align: left;
    border-radius: 0 0 21px 21px;
    pointer-events: none;
    max-height: 32%;
}

.ks-landing-plugin-panel {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    width: 100%;
    max-width: min(36rem, 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
}

.ks-landing-plugin-panel.is-active {
    opacity: 1;
    visibility: visible;
}

.ks-landing-plugin-panel.is-active .ks-landing-link {
    pointer-events: auto;
}

.ks-landing-plugin-panel-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.ks-landing-plugin-panel-desc {
    margin: 0;
    font-size: clamp(0.88rem, 1.6vw, 0.98rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.ks-landing-plugin-panel .ks-landing-link {
    margin-bottom: 0;
    font-size: 0.92rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* Interactive plugin panel mockup */
.ks-plugin-mockup {
    position: absolute;
    inset: 1px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 21px;
    overflow: hidden;
    pointer-events: none;
}

.ks-plugin-mockup__shell {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: clamp(0.55rem, 1.6vw, 0.85rem);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.98) 0%, rgba(12, 12, 12, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.ks-plugin-mockup__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.ks-plugin-mockup__bar span:not(.ks-plugin-mockup__title) {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.ks-plugin-mockup__bar span:nth-child(1) { background: #ef4444; }
.ks-plugin-mockup__bar span:nth-child(2) { background: #eab308; }
.ks-plugin-mockup__bar span:nth-child(3) { background: #22c55e; }

.ks-plugin-mockup__title {
    margin-left: auto;
    font-size: clamp(0.62rem, 1.2vw, 0.72rem);
    color: rgba(255, 255, 255, 0.42);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ks-plugin-mockup__views {
    position: relative;
    flex: 1;
    min-height: 0;
}

.ks-plugin-mockup-view {
    position: absolute;
    inset: 0;
    padding: clamp(0.5rem, 1.4vw, 0.75rem);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

.ks-plugin-mockup-view.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Shared mockup controls */
.ks-pm-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    margin-bottom: 8px;
}

.ks-pm-search i {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
}

.ks-pm-search__text {
    flex: 1;
    font-size: clamp(0.68rem, 1.3vw, 0.78rem);
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ks-pm-search__kbd {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.35);
    padding: 2px 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
}

.ks-pm-search--sm {
    margin-bottom: 6px;
}

/* Marketplace */
.ks-pm-market {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.ks-pm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.ks-pm-chip {
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.55);
    font-family: inherit;
    font-size: clamp(0.6rem, 1.1vw, 0.68rem);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.ks-pm-chip:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.ks-pm-chip.is-active {
    color: #fda4af;
    border-color: rgba(225, 29, 72, 0.45);
    background: rgba(180, 18, 42, 0.28);
}

.ks-pm-packs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    flex: 1;
    min-height: 0;
    align-content: start;
}

.ks-pm-pack {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.ks-pm-pack:hover {
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.ks-pm-pack.is-selected {
    border-color: rgba(225, 29, 72, 0.55);
    background: rgba(180, 18, 42, 0.18);
    box-shadow: 0 0 16px rgba(225, 29, 72, 0.15);
}

.ks-pm-pack__thumb {
    display: block;
    height: clamp(36px, 8vw, 52px);
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
}

.ks-pm-pack__thumb.accent {
    background: linear-gradient(135deg, rgba(180, 18, 42, 0.55), rgb(45 0 8));
}

.ks-pm-pack__thumb.wide {
    height: clamp(40px, 9vw, 56px);
}

.ks-pm-pack__meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ks-pm-pack__meta strong {
    font-size: clamp(0.62rem, 1.1vw, 0.72rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.ks-pm-pack__meta em {
    font-size: clamp(0.58rem, 1vw, 0.65rem);
    font-style: normal;
    color: rgba(255, 255, 255, 0.45);
}

.ks-pm-float {
    position: absolute;
    right: 4%;
    bottom: 8%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 10px;
    border: 1px solid rgba(225, 29, 72, 0.4);
    background: rgba(14, 14, 14, 0.92);
    color: #fff;
    font-size: clamp(0.62rem, 1.1vw, 0.7rem);
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.ks-pm-float i {
    font-size: 0.85rem;
    color: #fda4af;
}

.ks-pm-market:has(.ks-pm-pack.is-selected) .ks-pm-float--import {
    opacity: 1;
    transform: translateY(0);
}

/* Assets */
.ks-pm-assets {
    display: grid;
    grid-template-columns: auto 1fr minmax(72px, 28%);
    gap: 8px;
    height: 100%;
    min-height: 0;
}

.ks-pm-assets__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ks-pm-asset-nav {
    padding: 5px 8px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    font-size: clamp(0.58rem, 1vw, 0.66rem);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.ks-pm-asset-nav:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.ks-pm-asset-nav.is-active {
    color: #fda4af;
    background: rgba(180, 18, 42, 0.22);
}

.ks-pm-assets__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ks-pm-asset-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    flex: 1;
    align-content: start;
}

.ks-pm-asset-tile {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent 55%);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.ks-pm-asset-tile:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: scale(1.04);
}

.ks-pm-asset-tile.is-selected {
    border-color: rgba(225, 29, 72, 0.55);
    box-shadow: 0 0 12px rgba(225, 29, 72, 0.2);
}

.ks-pm-assets__preview {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.ks-pm-preview-box {
    flex: 1;
    min-height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(145deg, rgba(180, 18, 42, 0.25), rgba(255, 255, 255, 0.04)),
        radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.15), transparent 60%);
}

.ks-pm-assets__preview > span {
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

.ks-pm-preview-btn {
    padding: 5px 8px;
    border-radius: 8px;
    border: 1px solid rgba(225, 29, 72, 0.45);
    background: rgba(180, 18, 42, 0.35);
    color: #fff;
    font-family: inherit;
    font-size: 0.58rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.ks-pm-preview-btn:hover {
    background: rgba(180, 18, 42, 0.5);
    transform: translateY(-1px);
}

.ks-pm-preview-btn.is-pressed {
    transform: scale(0.96);
    background: rgba(180, 18, 42, 0.65);
}

/* Tools — Pro suites */
.ks-pm-tools {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 8px;
}

.ks-pm-tools__heading {
    margin: 0 0 2px;
    font-size: clamp(0.62rem, 1.1vw, 0.72rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.ks-pm-pro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    flex: 1;
    align-content: start;
}

.ks-pm-pro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    min-height: clamp(52px, 11vw, 64px);
    padding: 8px 9px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.ks-pm-pro:hover:not(.ks-pm-pro--more) {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.ks-pm-pro.is-selected {
    border-color: rgba(225, 29, 72, 0.5);
    background: rgba(180, 18, 42, 0.18);
    box-shadow: 0 0 14px rgba(225, 29, 72, 0.12);
}

.ks-pm-pro--more {
    cursor: default;
    opacity: 0.55;
    border-style: dashed;
}

.ks-pm-pro__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.35);
}

.ks-pm-pro__icon i {
    font-size: 0.85rem;
    color: #fda4af;
}

.ks-pm-pro--more .ks-pm-pro__icon i {
    color: rgba(255, 255, 255, 0.45);
}

.ks-pm-pro__name {
    font-size: clamp(0.62rem, 1.15vw, 0.74rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.15;
}

.ks-pm-pro-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.28);
}

.ks-pm-pro-detail__label {
    font-size: clamp(0.64rem, 1.1vw, 0.72rem);
    font-weight: 700;
    color: #fff;
}

.ks-pm-pro-detail__hint {
    font-size: clamp(0.58rem, 1vw, 0.66rem);
    color: rgba(255, 255, 255, 0.48);
}

.ks-landing-plugin-showcase:has(.ks-plugin-mockup-view.is-active) .ks-plugin-mockup {
    pointer-events: auto;
}

/* Plugin showcase — stacked copy on smaller screens */
@media (max-width: 900px) {
    .ks-landing-plugin-stage {
        display: grid;
        grid-template-rows: minmax(240px, 50vw) auto;
        height: auto;
        width: 100%;
        aspect-ratio: auto;
    }

    .ks-landing-plugin-stage::after {
        display: none;
    }

    .ks-plugin-mockup {
        position: relative;
        inset: auto;
        grid-row: 1;
        min-height: 260px;
    }

    .ks-landing-plugin-copy {
        position: relative;
        inset: auto;
        grid-row: 2;
        max-height: none;
        pointer-events: auto;
        background: rgba(14, 14, 14, 0.98);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 1.15rem 1.25rem 1.35rem;
    }

    .ks-landing-plugin-panel {
        max-width: 100%;
    }

    .ks-landing-plugin-panel-title {
        font-size: clamp(1.05rem, 4.5vw, 1.35rem);
    }

    .ks-landing-plugin-panel-desc {
        font-size: clamp(0.84rem, 2.8vw, 0.95rem);
    }
}

@media (max-width: 575px) {
    .ks-landing-plugin-stage {
        grid-template-rows: minmax(220px, 62vw) auto;
    }

    .ks-plugin-mockup {
        min-height: 220px;
    }

    .ks-plugin-mockup__shell {
        margin: 0.5rem;
    }

    .ks-pm-pro-grid {
        gap: 5px;
    }

    .ks-pm-assets {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }

    .ks-pm-assets__nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ks-pm-asset-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .ks-pm-assets__preview {
        flex-direction: row;
        align-items: center;
    }

    .ks-pm-preview-box {
        width: 56px;
        min-height: 40px;
        flex: none;
    }
}

/* ── Features ────────────────────────────────────────────────────────────── */
.ks-landing-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.ks-landing-feature-card.is-plugin-active {
    border-color: rgba(180, 18, 42, 0.45);
    box-shadow: 0 12px 40px rgba(180, 18, 42, 0.12);
}

.ks-landing-feature-card {
    position: relative;
    padding: 2rem 1.75rem;
    border-radius: 20px;
    border: 3px solid var(--landing-border);
    background: var(--landing-surface);
    transition: border-color 0.15s, transform 0.15s;
}

.ks-landing-feature-card:hover {
    border-color: rgba(180, 18, 42, 0.4);
    transform: translateY(-4px);
}

.ks-landing-feature-card--lead {
    border-color: rgba(180, 18, 42, 0.35);
}

.ks-landing-feature-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent, #b4122a);
    margin-bottom: 1rem;
}

.ks-landing-feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid var(--landing-border);
    background: #000;
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.ks-landing-feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.ks-landing-feature-card > p {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.ks-landing-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.ks-landing-feature-list li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.4rem;
}

.ks-landing-feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent, #b4122a);
}

.ks-landing-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fda4af;
    text-decoration: none;
    transition: gap 0.25s, color 0.25s;
}

.ks-landing-link:hover {
    gap: 0.55rem;
    color: #fff;
}

.ks-landing-creator-banner {
    margin-top: 1.25rem;
}

.ks-landing-creator-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem 2.25rem;
    border-radius: 20px;
    border: 1px solid var(--landing-border);
    background: var(--landing-surface);
}

.ks-landing-creator-banner h3 {
    font-size: 1.35rem;
    margin: 0.35rem 0 0.5rem;
}

.ks-landing-creator-banner p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

/* ── Workflow ────────────────────────────────────────────────────────────── */
.ks-landing-workflow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.ks-landing-workflow-card {
    padding: 2rem 1.75rem;
    border-radius: 20px;
    border: 1px solid var(--landing-border);
    background: var(--landing-surface);
    transition: border-color 0.3s, transform 0.3s;
}

.ks-landing-workflow-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
}

.ks-landing-workflow-mockup {
    margin-bottom: 1.35rem;
}

/* Shared workflow cursor */
.ks-wf-cursor {
    position: absolute;
    z-index: 30;
    width: 0;
    height: 0;
    pointer-events: none;
    transform-origin: top left;
}

.ks-wf-cursor__icon {
    display: block;
    font-size: 1.2rem;
    line-height: 1;
    color: #fff;
    filter:
        drop-shadow(0 0 1px rgba(0, 0, 0, 0.9))
        drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
}

.ks-wf-cursor__ripple {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.75);
    opacity: 0;
    transform: scale(0.35);
}

.ks-wf-panel {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0a0a0a;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.ks-wf-panel__bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.ks-wf-panel__bar span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.ks-wf-panel__bar span:nth-child(1) { background: #ef4444; }
.ks-wf-panel__bar span:nth-child(2) { background: #eab308; }
.ks-wf-panel__bar span:nth-child(3) { background: #22c55e; }

/* Step 01 — Discover */
.ks-wf-discover {
    position: relative;
    padding: 10px;
    min-height: 148px;
}

.ks-wf-discover__search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
}

.ks-wf-discover__search .hgi {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
}

.ks-wf-discover__query {
    color: rgba(255, 255, 255, 0.72);
    animation: ks-wf-query-pulse 3.2s ease-in-out infinite;
}

@keyframes ks-wf-query-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

.ks-wf-discover__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.ks-wf-discover__chips span {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: color 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.ks-wf-discover__chips span.is-active {
    color: #fda4af;
    border-color: rgba(225, 29, 72, 0.45);
    background: rgba(180, 18, 42, 0.28);
    animation: ks-wf-chip-active 4.8s ease-in-out infinite;
}

@keyframes ks-wf-chip-active {
    0%, 22%, 100% {
        color: #fda4af;
        border-color: rgba(225, 29, 72, 0.45);
        background: rgba(180, 18, 42, 0.28);
    }
    30%, 52% {
        color: rgba(255, 255, 255, 0.4);
        border-color: rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.03);
    }
    60%, 82% {
        color: #fda4af;
        border-color: rgba(225, 29, 72, 0.45);
        background: rgba(180, 18, 42, 0.28);
    }
}

.ks-wf-discover__chips span:nth-child(2) { animation: ks-wf-chip-2 4.8s ease-in-out infinite; }
.ks-wf-discover__chips span:nth-child(3) { animation: ks-wf-chip-3 4.8s ease-in-out infinite; }

@keyframes ks-wf-chip-2 {
    0%, 22%, 100% { color: rgba(255, 255, 255, 0.4); border-color: rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); }
    30%, 52% { color: #fda4af; border-color: rgba(225, 29, 72, 0.45); background: rgba(180, 18, 42, 0.28); }
}

@keyframes ks-wf-chip-3 {
    0%, 52%, 100% { color: rgba(255, 255, 255, 0.4); border-color: rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); }
    60%, 82% { color: #fda4af; border-color: rgba(225, 29, 72, 0.45); background: rgba(180, 18, 42, 0.28); }
}

.ks-wf-discover__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.ks-wf-discover__tile {
    aspect-ratio: 1;
    border-radius: 6px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ks-wf-discover__tile.is-pick-target {
    animation: ks-wf-tile-pick 6s ease-in-out infinite;
}

@keyframes ks-wf-tile-pick {
    0%, 42%, 100% {
        border-color: rgba(255, 255, 255, 0.05);
        box-shadow: none;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
        transform: scale(1);
    }
    48%, 58% {
        border-color: rgba(225, 29, 72, 0.55);
        box-shadow: 0 0 0 1px rgba(225, 29, 72, 0.25), 0 0 16px rgba(180, 18, 42, 0.25);
        background: linear-gradient(145deg, rgba(180, 18, 42, 0.45), rgba(45, 0, 8, 0.6));
        transform: scale(0.96);
    }
    52% {
        transform: scale(1);
    }
}

.ks-wf-cursor--discover {
    animation: ks-wf-cursor-discover 6s ease-in-out infinite;
}

.ks-wf-cursor--discover .ks-wf-cursor__ripple {
    animation: ks-wf-ripple-discover 6s ease-out infinite;
}

@keyframes ks-wf-cursor-discover {
    0%, 10% { top: 14%; left: 18%; transform: scale(1); }
    22%, 30% { top: 62%; left: 36%; transform: scale(1); }
    34% { top: 64%; left: 38%; transform: scale(0.86); }
    36%, 62% { top: 62%; left: 36%; transform: scale(1); }
    74%, 100% { top: 14%; left: 18%; transform: scale(1); }
}

@keyframes ks-wf-ripple-discover {
    0%, 33% { opacity: 0; transform: scale(0.35); }
    34% { opacity: 1; transform: scale(0.6); }
    38% { opacity: 0; transform: scale(1.35); }
    100% { opacity: 0; transform: scale(0.35); }
}

/* Step 02 — Drop */
.ks-wf-drop {
    position: relative;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 10px;
    padding: 12px 10px;
    min-height: 148px;
}

.ks-wf-drop__asset {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.45);
}

.ks-wf-drop__thumb {
    flex: 1;
    min-height: 72px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, rgba(180, 18, 42, 0.35), rgba(255, 255, 255, 0.04));
    animation: ks-wf-asset-idle 6s ease-in-out infinite;
}

@keyframes ks-wf-asset-idle {
    0%, 18% { opacity: 1; transform: scale(1); }
    22%, 58% { opacity: 0.35; transform: scale(0.98); }
    62%, 100% { opacity: 1; transform: scale(1); }
}

.ks-wf-drop__drag-ghost {
    position: absolute;
    z-index: 15;
    width: 44px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid rgba(225, 29, 72, 0.45);
    background: linear-gradient(145deg, rgba(180, 18, 42, 0.55), rgba(45, 0, 8, 0.75));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    animation: ks-wf-drag-ghost 6s ease-in-out infinite;
}

@keyframes ks-wf-drag-ghost {
    0%, 20% { opacity: 0; top: 32%; left: 14%; transform: scale(0.85); }
    24% { opacity: 1; top: 34%; left: 16%; transform: scale(1); }
    48% { opacity: 1; top: 48%; left: 52%; transform: scale(1); }
    56% { opacity: 0; top: 50%; left: 56%; transform: scale(0.9); }
    100% { opacity: 0; top: 32%; left: 14%; transform: scale(0.85); }
}

.ks-wf-drop__timeline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.ks-wf-drop__row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ks-wf-drop__dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

.ks-wf-drop__line {
    display: block;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    width: 72%;
}

.ks-wf-drop__line.wide { width: 92%; }
.ks-wf-drop__line.short { width: 48%; }

.ks-wf-drop__row.is-target {
    animation: ks-wf-layer-highlight 6s ease-in-out infinite;
}

@keyframes ks-wf-layer-highlight {
    0%, 50%, 100% {
        background: transparent;
        border-radius: 6px;
        padding: 0;
        margin: 0;
    }
    56%, 68% {
        background: rgba(180, 18, 42, 0.22);
        border-radius: 6px;
        padding: 4px 6px;
        margin: -4px -6px;
        box-shadow: inset 0 0 0 1px rgba(225, 29, 72, 0.35);
    }
}

.ks-wf-drop__row.is-target .ks-wf-drop__dot {
    animation: ks-wf-dot-accent 6s ease-in-out infinite;
}

@keyframes ks-wf-dot-accent {
    0%, 50%, 100% { background: rgba(255, 255, 255, 0.18); }
    56%, 68% { background: #e11d48; }
}

.ks-wf-cursor--drop {
    animation: ks-wf-cursor-drop 6s ease-in-out infinite;
}

.ks-wf-cursor--drop .ks-wf-cursor__icon {
    animation: ks-wf-cursor-drop-grab 6s ease-in-out infinite;
}

.ks-wf-cursor--drop .ks-wf-cursor__ripple {
    animation: ks-wf-ripple-drop 6s ease-out infinite;
}

@keyframes ks-wf-cursor-drop {
    0%, 14% { top: 36%; left: 20%; opacity: 1; }
    20% { top: 38%; left: 22%; opacity: 1; }
    26%, 48% { top: 50%; left: 54%; opacity: 1; }
    54%, 58% { top: 52%; left: 58%; opacity: 1; }
    64%, 100% { top: 36%; left: 20%; opacity: 1; }
}

@keyframes ks-wf-cursor-drop-grab {
    0%, 18% { transform: scale(1); opacity: 1; }
    22%, 52% { transform: scale(0.9); opacity: 0.95; }
    58%, 100% { transform: scale(1); opacity: 1; }
}

@keyframes ks-wf-ripple-drop {
    0%, 52% { opacity: 0; transform: scale(0.35); }
    54% { opacity: 1; transform: scale(0.55); }
    58% { opacity: 0; transform: scale(1.3); }
    100% { opacity: 0; }
}

/* Step 03 — Sell */
.ks-wf-sell {
    position: relative;
    padding: 10px;
    min-height: 148px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ks-wf-sell__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ks-wf-sell__badge {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    color: #86efac;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.35);
    animation: ks-wf-badge-pulse 2.8s ease-in-out infinite;
}

@keyframes ks-wf-badge-pulse {
    0%, 100% { opacity: 0.75; }
    50% { opacity: 1; }
}

.ks-wf-sell__credits {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
}

.ks-wf-sell__credits em {
    font-style: normal;
    font-weight: 700;
    color: #fda4af;
    animation: ks-wf-credits-tick 3.5s ease-in-out infinite;
}

@keyframes ks-wf-credits-tick {
    0%, 100% { opacity: 0.6; transform: translateY(0); }
    12% { opacity: 1; transform: translateY(-1px); }
    24% { opacity: 1; transform: translateY(0); }
}

.ks-wf-sell__chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 56px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.ks-wf-sell__chart span {
    flex: 1;
    height: var(--h, 50%);
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, rgba(225, 29, 72, 0.75), rgba(120, 16, 32, 0.5));
    transform-origin: bottom;
    animation: ks-wf-bar-grow 3.5s cubic-bezier(0.33, 1, 0.68, 1) infinite;
}

.ks-wf-sell__chart span:nth-child(1) { animation-delay: 0s; }
.ks-wf-sell__chart span:nth-child(2) { animation-delay: 0.12s; }
.ks-wf-sell__chart span:nth-child(3) { animation-delay: 0.24s; }
.ks-wf-sell__chart span:nth-child(4) { animation-delay: 0.36s; }
.ks-wf-sell__chart span:nth-child(5) { animation-delay: 0.48s; }

@keyframes ks-wf-bar-grow {
    0%, 100% { transform: scaleY(0.55); opacity: 0.55; }
    45%, 55% { transform: scaleY(1); opacity: 1; }
}

.ks-wf-sell__footer {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.ks-wf-sell__pack {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.ks-wf-sell__btn {
    flex-shrink: 0;
    align-self: center;
    padding: 7px 12px;
    border: none;
    border-radius: 8px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    background: linear-gradient(180deg, #e11d48 0%, #9f1239 100%);
    box-shadow: 0 4px 14px rgba(180, 18, 42, 0.35);
    cursor: default;
    animation: ks-wf-sell-btn-press 6s ease-in-out infinite;
}

@keyframes ks-wf-sell-btn-press {
    0%, 54%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 14px rgba(180, 18, 42, 0.35);
        filter: brightness(1);
    }
    58% {
        transform: scale(0.94);
        box-shadow: 0 2px 8px rgba(180, 18, 42, 0.25);
        filter: brightness(0.92);
    }
    62%, 68% {
        transform: scale(1);
        box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.45), 0 6px 18px rgba(180, 18, 42, 0.45);
        filter: brightness(1.08);
    }
}

.ks-wf-cursor--sell {
    animation: ks-wf-cursor-sell 6s ease-in-out infinite;
}

.ks-wf-cursor--sell .ks-wf-cursor__ripple {
    animation: ks-wf-ripple-sell 6s ease-out infinite;
}

@keyframes ks-wf-cursor-sell {
    0%, 18% { top: 58%; left: 28%; opacity: 1; transform: scale(1); }
    28%, 52% { top: 78%; left: 78%; opacity: 1; transform: scale(1); }
    56% { top: 80%; left: 80%; transform: scale(0.86); }
    58%, 72% { top: 78%; left: 78%; transform: scale(1); }
    84%, 100% { top: 58%; left: 28%; opacity: 1; transform: scale(1); }
}

@keyframes ks-wf-ripple-sell {
    0%, 54% { opacity: 0; transform: scale(0.35); }
    56% { opacity: 1; transform: scale(0.55); }
    60% { opacity: 0; transform: scale(1.35); }
    100% { opacity: 0; }
}

.ks-wf-sell__pack-thumb {
    width: 36px;
    height: 28px;
    border-radius: 5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(180, 18, 42, 0.35));
    flex-shrink: 0;
}

.ks-wf-sell__pack-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ks-wf-sell__pack-lines span {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.ks-wf-sell__pack-lines span:first-child { width: 88%; }
.ks-wf-sell__pack-lines span:last-child { width: 62%; }

.ks-landing-workflow-step {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.5rem;
}

.ks-landing-workflow-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.ks-landing-workflow-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.65;
    margin: 0;
}

/* ── Marquee ─────────────────────────────────────────────────────────────── */
.ks-landing-marquee {
    padding: 1.25rem 0;
    border-block: 1px solid var(--landing-border);
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.ks-landing-marquee-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: ks-landing-marquee 28s linear infinite;
}

.ks-landing-marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.65rem);
    font-weight: 700;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ks-landing-marquee-track span i {
    font-size: 0.35rem;
    color: var(--accent, #b4122a);
}

@keyframes ks-landing-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pricing section — see pricing-simple.css */

.ks-landing-pricing-intro {
    max-width: 34rem;
    margin: 0 auto 1.5rem;
}

.ks-landing-billing-wrap {
    display: flex;
    justify-content: center;
}

.ks-landing-price {
    margin: 0 0 0.85rem;
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    flex-wrap: wrap;
}

.ks-landing-price .amount {
    transition: opacity 0.2s ease;
}

.ks-landing-price-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ks-landing-price-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.ks-landing-pricing-all {
    margin-top: 1.25rem;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.ks-landing-faq-section {
    padding-top: clamp(3rem, 8vw, 5rem);
    padding-bottom: clamp(3rem, 8vw, 5rem);
}

.ks-landing-faq-container {
    max-width: min(920px, 92%);
}

.ks-landing-faq-title {
    margin: 0 auto clamp(2.5rem, 6vw, 3.5rem);
    max-width: 18ch;
    font-family: 'Syne', 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-align: center;
    color: #fff;
}

.ks-landing-faq {
    --faq-height-duration: 0.52s;
    --faq-fade-duration: 0.34s;
    --faq-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --faq-chevron-duration: 0.42s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0 auto;
    border: none;
    border-radius: 0;
    background: transparent;
}

.ks-landing-faq-item {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 20px;
    background: transparent;
    overflow: hidden;
    transition: background 0.55s ease;
}

.ks-landing-faq-item:hover,
.ks-landing-faq-item[open] {
    background: radial-gradient(42.3% 70.34% at 50% -11.6%, rgb(33, 33, 33) 0%, rgb(20, 20, 20) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 0 0 1px rgba(33, 33, 33, 0.5), 0 8px 32px rgba(20, 20, 20, 0.35);
}

.ks-landing-faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    font-family: 'Syne';
    font-weight: 600;
    font-size: clamp(1rem, 2.2vw, 1.12rem);
    line-height: 1.35;
    color: #fff;
    background: transparent;
}

.ks-landing-faq-item summary::-webkit-details-marker {
    display: none;
}

.ks-landing-faq-item summary::after {
    content: "";
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.15rem;
    border-right: 2px solid rgba(255, 255, 255, 0.85);
    border-bottom: 2px solid rgba(255, 255, 255, 0.85);
    transform: rotate(45deg);
    transition: transform var(--faq-chevron-duration) var(--faq-ease);
}

.ks-landing-faq-item[open] summary::after {
    transform: rotate(-135deg);
}

.ks-landing-faq-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        max-height var(--faq-height-duration) var(--faq-ease),
        opacity var(--faq-fade-duration) ease;
}

.ks-landing-faq-item[open] > .ks-landing-faq-body {
    max-height: 22rem;
    opacity: 1;
    transition:
        max-height var(--faq-height-duration) var(--faq-ease),
        opacity var(--faq-fade-duration) ease 0.07s;
}

.ks-landing-faq-body-inner p {
    margin: 0;
    padding: 0 1.75rem 1.5rem;
    max-width: unset;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: clamp(0.9rem, 1.8vw, 0.98rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.55);
}

@media (prefers-reduced-motion: reduce) {
    .ks-landing-faq-item,
    .ks-landing-faq-body,
    .ks-landing-faq-item summary::after {
        transition: none;
    }

    .ks-landing-faq-item[open] > .ks-landing-faq-body {
        max-height: none;
        opacity: 1;
    }

    .ks-landing-faq-item:not([open]) > .ks-landing-faq-body {
        max-height: 0;
        opacity: 0;
    }
}

/* ── Final CTA ───────────────────────────────────────────────────────────── */
.ks-landing-final {
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(5rem, 10vw, 8rem);
}

.ks-landing-final-card {
    position: relative;
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4rem) 2rem;
    border-radius: 24px;
    border: 1px solid var(--landing-border);
    background: var(--landing-surface);
    overflow: hidden;
}

.ks-landing-final-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: var(--accent, #b4122a);
    border-radius: 0 0 4px 4px;
}

.ks-landing-final-card h2 {
    position: relative;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    max-width: 18ch;
    margin: 0 auto 1rem;
}

.ks-landing-final-card p {
    position: relative;
    color: rgba(255, 255, 255, 0.55);
    max-width: 42ch;
    margin: 0 auto 1.75rem;
}

/* ── Landing-specific animation variants ─────────────────────────────────── */
.ks-landing [data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(28px);
}

.ks-landing [data-animate="fade-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .ks-landing-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .ks-landing-stat-item:nth-child(2n)::after {
        display: none;
    }

    .ks-landing-stat-item:nth-child(1)::before,
    .ks-landing-stat-item:nth-child(2)::before {
        content: "";
        position: absolute;
        left: 14%;
        right: 14%;
        bottom: 0;
        height: 1px;
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.06) 20%,
            rgba(255, 255, 255, 0.18) 50%,
            rgba(255, 255, 255, 0.06) 80%,
            transparent 100%
        );
        pointer-events: none;
    }

    .ks-landing-features,
    .ks-landing-workflow {
        grid-template-columns: 1fr;
    }

    .ks-landing-mockup-float--1 {
        left: 2%;
    }

    .ks-landing-mockup-float--2 {
        right: 2%;
    }
}

@media (max-width: 575.98px) {
    .ks-landing-headline {
        max-width: none;
    }

    .ks-landing-cta-row .ks-framer-btn {
        width: 100%;
    }

    .ks-landing-stats-bar {
        grid-template-columns: 1fr;
    }

    .ks-landing-stat-item {
        min-height: clamp(7.5rem, 22vw, 10rem);
        padding: clamp(2.25rem, 8vw, 3.25rem) 1.5rem;
    }

    .ks-landing-stat-item:nth-child(2n)::after {
        display: block;
    }

    .ks-landing-stat-item::after {
        top: auto;
        right: auto;
        left: 12%;
        width: 76%;
        height: 1px;
        bottom: 0;
        transform: none;
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.06) 18%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.06) 82%,
            transparent 100%
        );
    }

    .ks-landing-stat-item:last-child::after {
        display: none;
    }

    .ks-landing-stat-item::before {
        display: none;
    }

    .ks-landing-creator-banner-inner {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ks-landing-orb,
    .ks-landing-mockup,
    .ks-landing-mockup-float,
    .ks-landing-marquee-track,
    .ks-landing-partners-track,
    .ks-landing-badge-dot,
    .ks-landing [data-animate="fade-up"],
    .ks-wf-discover__query,
    .ks-wf-discover__chips span,
    .ks-wf-discover__tile.is-pick-target,
    .ks-wf-drop__thumb,
    .ks-wf-drop__drag-ghost,
    .ks-wf-drop__row.is-target,
    .ks-wf-drop__row.is-target .ks-wf-drop__dot,
    .ks-wf-cursor--discover,
    .ks-wf-cursor--drop,
    .ks-wf-cursor--drop .ks-wf-cursor__icon,
    .ks-wf-cursor--drop .ks-wf-cursor__ripple,
    .ks-wf-cursor--sell,
    .ks-wf-cursor--sell .ks-wf-cursor__ripple,
    .ks-wf-sell__btn,
    .ks-wf-sell__badge,
    .ks-wf-sell__credits em,
    .ks-wf-sell__chart span {
        animation: none !important;
    }

    .ks-landing-orb,
    .ks-landing-mockup,
    .ks-landing-mockup-float,
    .ks-landing [data-animate="fade-up"] {
        opacity: 1;
        transform: none;
    }

    .ks-wf-discover__tile.is-pick-target {
        border-color: rgba(225, 29, 72, 0.55);
        background: linear-gradient(145deg, rgba(180, 18, 42, 0.45), rgba(45, 0, 8, 0.6));
    }

    .ks-wf-drop__row.is-target {
        background: rgba(180, 18, 42, 0.18);
    }

    .ks-wf-cursor--discover,
    .ks-wf-cursor--drop,
    .ks-wf-cursor--sell {
        opacity: 0;
    }
}
