/* ============================
   RESET & ROOT
   ============================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0c0c0e;
    --bg2: #131316;
    --bg3: #1a1a1f;
    --border: rgba(255,255,255,0.07);
    --border2: rgba(255,255,255,0.12);
    --text: #e2e2ea;
    --dim: #6b6b80;
    --dim2: #44445a;
    --orange: #ff7a2f;
    --orange2: #ff9a5c;
    --purple: #7c3aed;
    --purple2: #a78bfa;
    --green: #22c55e;
    --teal: #14b8a6;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    overflow-x: hidden;
    cursor: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.inline-code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.88em;
    color: var(--orange2);
    background: rgba(255,154,92,0.1);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
}

/* ============================
   CURSOR
   ============================ */
#cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width .15s, height .15s, background .2s;
    mix-blend-mode: screen;
}

#cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,122,47,0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width .25s ease, height .25s ease, border-color .2s;
}

body.cursor-hover #cursor-dot {
    width: 14px;
    height: 14px;
    background: var(--purple2);
}

body.cursor-hover #cursor-ring {
    width: 52px;
    height: 52px;
    border-color: rgba(167,139,250,0.4);
}

/* ============================
   SCROLL PROGRESS
   ============================ */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), var(--purple));
    z-index: 999;
    width: 0%;
    transition: width .1s linear;
}

/* ============================
   PARTICLE CANVAS
   ============================ */
#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .55;
}

/* ============================
   CHECKERBOARD
   ============================ */
.checker-bg {
    background-image: linear-gradient(45deg, rgba(255,255,255,.015) 25%, transparent 25%), linear-gradient(-45deg, rgba(255,255,255,.015) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(255,255,255,.015) 75%), linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.015) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

/* ============================
   NAV
   ============================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 2.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(12,12,14,.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: background .3s;
}

    nav.scrolled {
        background: rgba(12,12,14,.97);
    }

.nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    position: relative;
    z-index: 1;
}

.nav-logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--orange), #e55b00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    font-weight: 800;
    letter-spacing: -.05em;
    box-shadow: 0 0 0 0 rgba(255,122,47,.5);
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%,100% {
        box-shadow: 0 0 0 0 rgba(255,122,47,.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(255,122,47,0);
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

    .nav-links a {
        font-size: .85rem;
        color: var(--dim);
        transition: color .2s;
        position: relative;
    }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            right: 0;
            height: 1px;
            background: var(--orange);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform .25s;
        }

        .nav-links a:hover {
            color: var(--text);
        }

            .nav-links a:hover::after {
                transform: scaleX(1);
            }

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-badge {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .7rem;
    color: var(--orange2);
    padding: .3rem .75rem;
    border: 1px solid rgba(255,122,47,.3);
    border-radius: 4px;
    background: rgba(255,122,47,.06);
    transition: all .3s;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .03em;
    padding: .6rem 1.4rem;
    border-radius: 6px;
    transition: all .2s;
    cursor: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-orange {
    background: var(--orange);
    color: #fff;
}

    .btn-orange::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255,255,255,.15), transparent);
        opacity: 0;
        transition: opacity .2s;
    }

    .btn-orange:hover {
        background: var(--orange2);
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(255,122,47,.4);
    }

        .btn-orange:hover::before {
            opacity: 1;
        }

    .btn-orange:active {
        transform: translateY(0);
    }

.btn-ghost {
    background: transparent;
    color: var(--dim);
    border: 1px solid var(--border2);
}

    .btn-ghost:hover {
        color: var(--text);
        background: var(--bg3);
        border-color: rgba(255,255,255,.2);
    }

.btn-lg {
    font-size: .95rem;
    padding: .85rem 2rem;
    border-radius: 8px;
}

/* Download burst */
.btn-orange.burst-anim {
    animation: btn-burst .4s ease;
}

@keyframes btn-burst {
    0% {
        box-shadow: 0 0 0 0 rgba(255,122,47,.6);
    }

    100% {
        box-shadow: 0 0 0 24px rgba(255,122,47,0);
    }
}

/* ============================
   HERO
   ============================ */
.hero-section-wrap {
    position: relative;
    overflow: hidden;
    padding-top: 64px;
    min-height: 100vh;
}

.hero {
    min-height: calc(100vh - 64px);
    padding: 0 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .72rem;
    color: var(--orange);
    background: rgba(255,122,47,.1);
    border: 1px solid rgba(255,122,47,.25);
    padding: .35rem .8rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

    .hero-tag::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--orange);
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: .3;
    }
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    line-height: 1.05;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -.02em;
    min-height: 2.2em; /* prevents layout jump during scramble */
}

    .hero h1 em {
        font-style: normal;
        color: var(--orange);
    }
/* scramble cursor blink */
.scramble-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: var(--orange);
    margin-left: 3px;
    vertical-align: middle;
    animation: blink-cur .7s step-end infinite;
}

@keyframes blink-cur {
    50% {
        opacity: 0;
    }
}

.hero-sub {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dim);
    margin-bottom: 2.5rem;
    max-width: 480px;
    opacity: 0;
    animation: fade-up .7s .9s forwards;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fade-up .7s 1.1s forwards;
}

.hero-meta {
    display: flex;
    gap: 2rem;
    opacity: 0;
    animation: fade-up .7s 1.3s forwards;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.meta-num {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
}

.meta-label {
    font-size: .75rem;
    color: var(--dim);
}

.meta-sep {
    width: 1px;
    background: var(--border);
    align-self: stretch;
}

.install-cmd {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .78rem;
    background: var(--bg2);
    border: 1px solid var(--border2);
    padding: .8rem 1.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fade-up .7s .7s forwards;
}

    .install-cmd .prompt {
        color: var(--dim2);
    }

    .install-cmd .cmd {
        color: var(--orange2);
    }

    .install-cmd .copy-btn {
        margin-left: auto;
        font-size: .68rem;
        color: var(--dim);
        cursor: none;
        border: 1px solid var(--border);
        padding: .25rem .6rem;
        border-radius: 4px;
        transition: all .2s;
        background: transparent;
        font-family: inherit;
    }

        .install-cmd .copy-btn:hover {
            color: var(--text);
            border-color: var(--border2);
        }

        .install-cmd .copy-btn.copied {
            color: var(--green);
            border-color: rgba(34,197,94,.4);
        }

/* ============================
   HERO VISUAL — LAYER STACK
   ============================ */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 520px;
    opacity: 0;
    animation: fade-up .8s .4s forwards;
}

.layer-stack {
    position: relative;
    width: 320px;
    height: 420px;
    transform-style: preserve-3d;
}

.layer-card {
    position: absolute;
    width: 260px;
    height: 200px;
    border-radius: 12px;
    border: 1px solid var(--border2);
    overflow: hidden;
    will-change: transform;
    transition: box-shadow .3s, border-color .3s;
}

    .layer-card:hover {
        border-color: rgba(255,122,47,.35);
    }

    .layer-card .lc-header {
        height: 32px;
        background: rgba(255,255,255,.05);
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        padding: 0 12px;
        gap: 8px;
        font-family: 'IBM Plex Mono', monospace;
        font-size: .65rem;
        color: var(--dim);
    }

.lc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.layer-card .lc-body {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.lc-base {
    background: var(--bg3);
    left: 0;
    bottom: 0;
    animation: float1 5s ease-in-out infinite;
}

.lc-mid {
    background: rgba(124,58,237,.15);
    left: 30px;
    bottom: 60px;
    animation: float2 6s ease-in-out infinite;
}

.lc-top {
    background: rgba(255,122,47,.12);
    left: 60px;
    bottom: 120px;
    animation: float3 7s ease-in-out infinite;
}

.lc-ui {
    background: var(--bg2);
    width: 110px;
    height: 300px;
    border-radius: 10px;
    position: absolute;
    right: -20px;
    bottom: 20px;
    animation: float4 5.5s ease-in-out infinite;
    overflow: hidden;
}

@keyframes float1 {
    0%,100% {
        transform: rotate(-2deg) translateY(0);
    }

    50% {
        transform: rotate(-2deg) translateY(-8px);
    }
}

@keyframes float2 {
    0%,100% {
        transform: rotate(1deg) translateY(0);
    }

    50% {
        transform: rotate(1deg) translateY(-12px);
    }
}

@keyframes float3 {
    0%,100% {
        transform: rotate(-.5deg) translateY(0);
    }

    50% {
        transform: rotate(-.5deg) translateY(-6px);
    }
}

@keyframes float4 {
    0%,100% {
        transform: rotate(2deg) translateY(0);
    }

    50% {
        transform: rotate(2deg) translateY(-10px);
    }
}

/* Shapes inside cards */
.shape {
    position: absolute;
    border-radius: 8px;
}

/* Layer panel mock */
.lp-title {
    padding: 10px 10px 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .58rem;
    color: var(--dim);
    border-bottom: 1px solid var(--border);
    letter-spacing: .1em;
}

.lp-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border);
    font-size: .6rem;
    color: var(--dim);
    font-family: 'IBM Plex Mono', monospace;
}

    .lp-row.active {
        background: rgba(255,122,47,.1);
        color: var(--orange2);
    }

.lp-thumb {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    flex-shrink: 0;
}

.lp-eye {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid currentColor;
    margin-left: auto;
}

/* ============================
   MARQUEE
   ============================ */
.marquee-wrap {
    overflow: hidden;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
    position: relative;
    z-index: 1;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 28s linear infinite;
}

    .marquee-track:hover {
        animation-play-state: paused;
    }

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

.marquee-item {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--dim);
    padding: 0 2.5rem;
    white-space: nowrap;
}

    .marquee-item span {
        color: var(--orange);
        margin: 0 .3rem;
    }

/* ============================
   WAVE DIVIDER
   ============================ */
.wave-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border2) 30%, var(--border2) 70%, transparent);
}

/* ============================
   SECTIONS — SHARED
   ============================ */
.section-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .7rem;
    color: var(--orange);
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    color: #fff;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}

.section-sub {
    font-size: 1rem;
    color: var(--dim);
    line-height: 1.8;
    max-width: 540px;
    margin-bottom: 4rem;
}

/* ============================
   FEATURES
   ============================ */
.features {
    padding: 7rem 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1px;
    background: var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.feat-card {
    background: var(--bg2);
    padding: 2.2rem;
    transition: background .2s, transform .2s;
    position: relative;
    overflow: hidden;
}

    .feat-card:hover {
        background: var(--bg3);
    }
/* tilt handled by JS — we set --rx --ry via style */
.feat-card {
    transform-style: preserve-3d;
}

    .feat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .4s ease;
    }

    .feat-card.ac-orange::before {
        background: var(--orange);
    }

    .feat-card.ac-purple::before {
        background: var(--purple);
    }

    .feat-card.ac-teal::before {
        background: var(--teal);
    }

    .feat-card.ac-green::before {
        background: var(--green);
    }

    .feat-card:hover::before {
        transform: scaleX(1);
    }

    /* Shimmer on hover */
    .feat-card::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255,255,255,.03) 0%, transparent 50%);
        opacity: 0;
        transition: opacity .3s;
    }

    .feat-card:hover::after {
        opacity: 1;
    }

.feat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform .3s;
}

.feat-card:hover .feat-icon {
    transform: scale(1.12) rotate(-3deg);
}

.feat-icon.ic-orange {
    background: rgba(255,122,47,.15);
}

.feat-icon.ic-purple {
    background: rgba(124,58,237,.15);
}

.feat-icon.ic-teal {
    background: rgba(20,184,166,.15);
}

.feat-icon.ic-green {
    background: rgba(34,197,94,.15);
}

.feat-card h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: .6rem;
}

.feat-card p {
    font-size: .875rem;
    color: var(--dim);
    line-height: 1.75;
}

/* ============================
   BLEND MODES
   ============================ */
.blends-section {
    background: var(--bg2);
    padding: 7rem 2.5rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.blends-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.blend-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1px;
    background: var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
}

.blend-item {
    background: var(--bg);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    transition: background .2s, transform .15s;
    cursor: none;
}

    .blend-item:hover {
        background: var(--bg3);
        transform: scale(1.02);
        z-index: 1;
    }

.blend-swatch {
    width: 100%;
    aspect-ratio: 1.6;
    border-radius: 4px;
    background: var(--bg3);
    overflow: hidden;
    position: relative;
    transition: box-shadow .2s;
}

.blend-item:hover .blend-swatch {
    box-shadow: 0 4px 16px rgba(0,0,0,.5);
}

.blend-name {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .65rem;
    color: var(--dim);
}

.blend-use {
    font-size: .65rem;
    color: var(--dim2);
}

/* ============================
   PLUGIN LIST (in blends section)
   ============================ */
.plugin-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-top: 2rem;
}

.plugin-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .85rem;
    color: var(--dim);
    padding: .6rem 1rem;
    border-radius: 6px;
    transition: all .15s;
    cursor: none;
    border: 1px solid transparent;
}

    .plugin-item:hover {
        background: var(--bg3);
        color: var(--text);
        border-color: var(--border);
    }

.plugin-badge {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .6rem;
    padding: .2rem .5rem;
    border-radius: 4px;
    margin-left: auto;
    letter-spacing: .05em;
}

.pb-filter {
    background: rgba(124,58,237,.15);
    color: var(--purple2);
}

.pb-action {
    background: rgba(255,122,47,.15);
    color: var(--orange2);
}

/* ============================
   PLUGIN API CODE SECTION
   ============================ */
.plugin-section {
    padding: 7rem 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.plugin-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.api-surface {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color .2s, transform .2s;
}

    .api-surface:hover {
        border-color: rgba(255,122,47,.25);
        transform: translateX(4px);
    }

.api-surface-emoji {
    font-size: 1.2rem;
}

.api-surface h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    color: #fff;
    margin-bottom: .3rem;
}

.api-surface p {
    font-size: .8rem;
    color: var(--dim);
}

.code-block {
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.code-header {
    padding: .75rem 1.2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .7rem;
    color: var(--dim);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.cd {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.cd-r {
    background: #ff5f57;
}

.cd-y {
    background: #ffbd2e;
}

.cd-g {
    background: #28ca41;
}

.code-body {
    padding: 1.5rem;
    overflow-x: auto;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .78rem;
    line-height: 1.9;
    min-height: 240px;
}
/* Syntax colours */
.kw {
    color: #c084fc;
}

.fn {
    color: var(--orange2);
}

.st {
    color: #86efac;
}

.cm {
    color: var(--dim2);
}

.cl {
    color: #67e8f9;
}

.at {
    color: #fde68a;
}

.df {
    color: #c084fc;
}

/* Typing cursor for code block */
.type-cursor {
    display: inline-block;
    width: 2px;
    height: .9em;
    background: var(--orange);
    vertical-align: middle;
    animation: blink-cur .6s step-end infinite;
    margin-left: 1px;
}

/* ============================
   RELEASES TIMELINE
   ============================ */
.releases-section {
    padding: 6rem 2.5rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

.releases-inner {
    max-width: 780px;
    margin: 0 auto;
}

.changelog-list {
    list-style: none;
    margin-top: 2.5rem;
    position: relative;
}

    .changelog-list::before {
        content: '';
        position: absolute;
        left: 9px;
        top: 8px;
        bottom: 8px;
        width: 1px;
        background: linear-gradient(to bottom, var(--orange), var(--purple), transparent);
    }

.cl-item {
    display: flex;
    gap: 1.5rem;
    padding: 0 0 2.5rem 2.5rem;
    position: relative;
}

    .cl-item:last-child {
        padding-bottom: 0;
    }

.cl-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--orange);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .3s;
}

.cl-item:hover .cl-dot {
    border-color: var(--purple2);
    background: rgba(124,58,237,.15);
}

.cl-dot.latest {
    background: var(--orange);
    border-color: var(--orange);
}

    .cl-dot.latest::after {
        content: '';
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        border: 2px solid rgba(255,122,47,.3);
        animation: ring-pulse 2s infinite;
    }

@keyframes ring-pulse {
    50% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.cl-body {
}

.cl-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .75rem;
    color: var(--orange);
    font-weight: 500;
}

    .cl-tag.dim {
        color: var(--dim);
    }

.cl-date {
    font-size: .72rem;
    color: var(--dim2);
    margin-top: .15rem;
}

.cl-desc {
    font-size: .85rem;
    color: var(--dim);
    margin-top: .4rem;
    line-height: 1.6;
}

/* ============================
   DOWNLOAD
   ============================ */
.dl-section {
    padding: 7rem 2.5rem;
    background: linear-gradient(135deg, rgba(255,122,47,.04) 0%, rgba(124,58,237,.04) 100%);
    border-top: 1px solid var(--border);
}

.dl-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

    .dl-inner .section-title {
        margin-bottom: .5rem;
    }

    .dl-inner .section-sub {
        margin: 0 auto 3rem;
        max-width: 520px;
        text-align: center;
    }

.steps {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    text-align: left;
}

.step {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: border-color .25s, transform .2s;
}

    .step:hover {
        border-color: rgba(255,122,47,.2);
        transform: translateY(-3px);
    }

.step-num {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    color: rgba(255,255,255,.06);
    line-height: 1;
    margin-bottom: .75rem;
}

.step h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    color: #fff;
    margin-bottom: .4rem;
}

.step p {
    font-size: .8rem;
    color: var(--dim);
    line-height: 1.7;
}

.step code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .75rem;
    color: var(--orange2);
    background: rgba(255,154,92,.1);
    padding: .15rem .4rem;
    border-radius: 3px;
}

.dl-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.req-line {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .68rem;
    color: var(--dim);
    margin-top: 1.5rem;
}

    .req-line span {
        color: var(--orange);
    }

/* ============================
   VERSION TOAST
   ============================ */
#version-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 200;
    background: var(--bg3);
    border: 1px solid rgba(255,122,47,.3);
    border-radius: 10px;
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: .9rem;
    font-size: .82rem;
    color: var(--text);
    box-shadow: 0 12px 40px rgba(0,0,0,.5);
    transform: translateY(120%);
    opacity: 0;
    transition: transform .45s cubic-bezier(.34,1.56,.64,1), opacity .4s;
    max-width: 320px;
}

    #version-toast.show {
        transform: translateY(0);
        opacity: 1;
    }

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--orange), #e55b00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
    color: #fff;
    font-weight: 800;
}

.toast-text strong {
    display: block;
    font-weight: 600;
    font-size: .85rem;
}

.toast-text span {
    font-size: .75rem;
    color: var(--dim);
}

.toast-close {
    margin-left: auto;
    color: var(--dim);
    font-size: .9rem;
    cursor: none;
    transition: color .15s;
    background: none;
    border: none;
    font-family: inherit;
    padding: .2rem;
}

    .toast-close:hover {
        color: var(--text);
    }

/* ============================
   FOOTER
   ============================ */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

    .footer-links a {
        font-size: .82rem;
        color: var(--dim);
        transition: color .2s;
    }

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

.footer-copy {
    font-size: .78rem;
    color: var(--dim2);
}

/* ============================
   REVEAL ANIMATIONS
   ============================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s ease, transform .65s ease;
}

    .reveal.in {
        opacity: 1;
        transform: none;
    }

.reveal-delay-1 {
    transition-delay: .12s;
}

.reveal-delay-2 {
    transition-delay: .24s;
}

.reveal-delay-3 {
    transition-delay: .36s;
}

/* ============================
   GLOW RING
   ============================ */
.glow-ring {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,122,47,.05) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    animation: glow-drift 12s ease-in-out infinite alternate;
}

@keyframes glow-drift {
    from {
        transform: translate(0,0);
    }

    to {
        transform: translate(-60px, 60px);
    }
}

/* ============================
   PARTICLE BURST (JS-injected)
   ============================ */
.spark {
    position: fixed;
    pointer-events: none;
    z-index: 9990;
    border-radius: 50%;
    transform: translate(-50%,-50%);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
    nav {
        padding: 0 1.5rem;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 64px 1.5rem 3rem;
        min-height: auto;
    }

    .hero-visual {
        height: 460px;
        order: 2;
    }

    .features, .plugin-section {
        padding: 5rem 1.5rem;
    }

    .blends-section {
        padding: 5rem 1.5rem;
    }

    .blends-inner, .plugin-inner {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .features-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .dl-section {
        padding: 5rem 1.5rem;
    }

    .releases-section {
        padding: 5rem 1.5rem;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 15px;
        cursor: auto;
    }

    #cursor-dot, #cursor-ring {
        display: none;
    }

    nav {
        padding: 0 1rem;
        height: 56px;
    }

    .nav-links {
        display: none;
    }

    .nav-right {
        gap: .6rem;
    }

    .nav-badge {
        display: none;
    }

    .btn {
        padding: .55rem 1rem;
        font-size: .78rem;
    }

    .btn-lg {
        font-size: .88rem;
        padding: .75rem 1.4rem;
    }

    .hero {
        padding: 56px 1rem 2.5rem;
        gap: 2rem;
    }

        .hero h1 {
            font-size: clamp(2rem,9vw,2.6rem);
        }

    .hero-sub {
        font-size: .95rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

    .install-cmd {
        font-size: .7rem;
        padding: .65rem .85rem;
        gap: .6rem;
        flex-wrap: wrap;
    }

        .install-cmd .cmd {
            word-break: break-all;
            flex: 1 1 auto;
            min-width: 0;
        }

        .install-cmd .copy-btn {
            margin-left: 0;
        }

    .hero-ctas {
        gap: .6rem;
        margin-bottom: 2rem;
    }

        .hero-ctas .btn {
            flex: 1 1 100%;
            justify-content: center;
        }

    .hero-meta {
        gap: 1.2rem;
        flex-wrap: wrap;
    }

    .meta-num {
        font-size: 1.2rem;
    }

    .hero-visual {
        height: 380px;
    }

    .layer-stack {
        width: 280px;
        height: 360px;
        transform: scale(.85);
        transform-origin: center;
    }

    .layer-card {
        width: 220px;
        height: 180px;
    }

    .lc-ui {
        width: 95px;
        right: -10px;
        height: 260px;
    }

    .features, .plugin-section, .blends-section, .dl-section, .releases-section {
        padding: 4rem 1rem;
    }

    .section-title {
        font-size: clamp(1.6rem,6vw,2.2rem);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feat-card {
        padding: 1.6rem;
    }

    .blend-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .blends-inner, .plugin-inner {
        gap: 3rem;
    }

    .code-body {
        padding: 1rem;
        font-size: .7rem;
        line-height: 1.7;
    }

    .code-header {
        padding: .6rem .9rem;
        font-size: .62rem;
        flex-wrap: wrap;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .dl-ctas {
        flex-direction: column;
        align-items: stretch;
    }

        .dl-ctas .btn {
            justify-content: center;
        }

    .req-line {
        font-size: .62rem;
        line-height: 1.8;
    }

    footer {
        padding: 2rem 1rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem;
    }

    .glow-ring {
        width: 360px;
        height: 360px;
        top: -150px;
        right: -150px;
    }

    #version-toast {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 380px) {
    .blend-grid {
        grid-template-columns: 1fr;
    }

    .hero-meta {
        gap: .9rem;
    }

    .meta-sep {
        display: none;
    }
}
