/* ===========================
   Ducat Protocol Landing Page
   Pixel-perfect to ducatprotocol.com
   =========================== */

/* --- Font Declarations --- */
@font-face {
    font-family: "Cabinet Grotesk";
    src: url("assets/fonts/cabinet-grotesk-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cabinet Grotesk";
    src: url("assets/fonts/cabinet-grotesk-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cabinet Grotesk";
    src: url("assets/fonts/cabinet-grotesk-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Custom Properties --- */
:root {
    --bg-body: #111015;
    --bg-card: #18171c;
    --bg-card-alt: #1d1c21;
    --bg-card-dark: #0d0c10;
    --border-card: rgba(255, 255, 255, 0.04);
    --border-field: rgba(255, 255, 255, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.04);
    --text-primary: rgb(221, 221, 221);
    --text-secondary: rgb(142, 141, 144);
    --text-muted: rgba(255, 255, 255, 0.3);
    --accent-blue: rgb(24, 88, 228);
    --green: #59aa8a;
    --green-bright: #4ade80;
    --orange: rgb(245, 178, 95);
    --orange-dark: rgb(255, 140, 0);
    --code-kw: #c792ea;
    --code-ty: #ffcb6b;
    --code-fn: #82aaff;
    --code-pr: #f07178;
    --code-nm: #f78c6c;
    --code-cm: #546e7a;
    --code-cn: #89ddff;
    --font-sans: "Cabinet Grotesk", 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Inconsolata', 'Fira Code', monospace;
    --radius-card: 24px;
    --radius-btn: 8px;
    --max-w: 1060px;
    --nav-h: 81px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[id] {
    scroll-margin-top: var(--nav-h);
}

body {
    font-family: var(--font-sans);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input {
    font-family: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* --- Utilities --- */
.wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Scroll Animations --- */
.step-card,
.hl-card,
.feat-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.step-card.visible,
.hl-card.visible,
.feat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Section Headers --- */
.sec-head {
    text-align: center;
    margin-bottom: 56px;
}

.sec-head h2 {
    font-size: clamp(28px, 2.8vw, 40px);
    font-weight: 700;
    letter-spacing: -1.2px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.sec-head p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
    max-width: 520px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.badge img {
    width: 18px;
    height: 18px;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: var(--text-primary);
    color: rgb(0, 0, 0);
    font-weight: 500;
    font-size: 14px;
    border: none;
    border-radius: var(--radius-btn);
    transition: opacity 0.2s, background 0.2s;
}

.btn-primary:hover {
    opacity: 0.88;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-btn);
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
    background: transparent;
    transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--text-primary);
    color: rgb(0, 0, 0);
    font-weight: 500;
    font-size: 14px;
    border: none;
    border-radius: var(--radius-btn);
    transition: opacity 0.2s;
}

.btn-nav:hover {
    opacity: 0.88;
}

/* ===========================
   1. NAV
   =========================== */
.nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(17, 16, 21, 0.98);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.nav.scrolled {
    background: rgba(17, 16, 21, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-inner {
    max-width: 100%;
    margin: 0;
    padding: 16px 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 5px;
    color: white;
    flex-shrink: 0;
}

.logo img {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: white;
    letter-spacing: -0.2px;
    white-space: nowrap;
    transition: color 0.2s;
}

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

.nav-toggle {
    display: none;
    width: 24px;
    height: 24px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 1024px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-body);
        padding: 16px 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-links.open {
        display: flex;
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s, background 0.2s;
}

.social-icon:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

/* ===========================
   2. HERO
   =========================== */
.hero {
    padding-top: 0;
    padding-bottom: 0;
}

.hero-card {
    position: relative;
    width: calc(100% - 48px);
    margin: 0 24px;
    background: linear-gradient(180deg, rgba(28, 27, 33, 0.5) 0%, rgba(17, 16, 21, 0.7) 100%);
    border: none;
    border-radius: var(--radius-card);
    overflow: hidden;
}

.hero-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 140px;
    background: radial-gradient(ellipse at center bottom, rgba(245, 178, 95, 0.03), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 80px 40px 48px;
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 427px;
    font-size: 14px;
    font-weight: 500;
    color: rgb(173, 177, 184);
    background: rgb(17, 16, 21);
    margin-bottom: 24px;
    transition: border-color 0.3s, color 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.watch-btn::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -100%;
    width: 60%;
    height: calc(100% + 2px);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: btn-shine 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btn-shine {
    0% { left: -100%; }
    40% { left: 150%; }
    100% { left: 150%; }
}

.watch-btn:hover {
    color: rgb(237, 238, 240);
    border-color: rgba(255, 255, 255, 0.2);
}

.watch-btn svg {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(26px, 2.5vw, 35px);
    font-weight: 700;
    letter-spacing: -1.4px;
    line-height: 1.2;
    max-width: 800px;
    margin: 0 auto 20px;
    color: var(--text-primary);
}

.hero-sub {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-dash {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.hero-dash img {
    width: 73%;
    max-width: 1224px;
    border-radius: 16px 16px 0 0;
    display: block;
    aspect-ratio: 1224 / 611;
    object-fit: cover;
    object-position: top left;
}

/* ===========================
   3. PARTNERS
   =========================== */
.partners {
    padding: 9px 0;
    overflow: hidden;
}

.partners-marquee {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);

}

.partners-track {
    display: flex;
    align-items: center;
    gap: 58px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.partner-logo {
    flex-shrink: 0;
    opacity: 0.35;
    object-fit: contain;
}

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

/* ===========================
   4. HOW DUCAT WORKS
   =========================== */
.how-works {
    padding: 80px 0;
}

.step-card {
    background: var(--bg-card-alt);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    position: sticky;
    max-width: 1224px;
    margin-left: auto;
    margin-right: auto;
}

.step-card:nth-child(2) { top: 140px; z-index: 1; }
.step-card:nth-child(3) { top: 160px; z-index: 2; }
.step-card:nth-child(4) { top: 180px; z-index: 3; }
.step-card:nth-child(5) { top: 190px; z-index: 4; }

.step-visual-card {
    background: var(--bg-body);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow: hidden;
    min-height: 300px;
}

.step-img {
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: contain;
}

.step-text {
    padding: 48px 40px;
}

.step-text h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.step-text p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 480px;
}

.checks {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
}

.checks li::before {
    content: '';
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(24, 88, 228, 0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231858e4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

/* Desktop: side-by-side inside one card */
@media (min-width: 1200px) {
    .step-card {
        flex-direction: row;
        height: 456px;
        padding: 24px 24px 24px 80px;
        align-items: center;
        gap: 60px;
    }

    .step-text {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0;
        gap: 40px;
    }

    .step-visual-card {
        flex: 0 0 auto;
        width: 380px;
        height: 380px;
        min-height: unset;
        border-radius: 16px;
        padding: 40px;
    }

    .step-img {
        max-width: 280px;
    }
}

/* Tablet: stacked, no sticky */
@media (min-width: 810px) and (max-width: 1199.98px) {
    .step-card {
        position: relative !important;
        top: unset !important;
        flex-direction: column;
        height: min-content;
        gap: 24px;
        padding: 24px;
    }

    .step-visual-card {
        min-height: 300px;
    }
}

/* Mobile: stacked, sticky with incremental top */
@media (max-width: 809.98px) {
    .step-card {
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-radius: 12px;
        height: auto;
        overflow: hidden;
    }

    .step-card:nth-child(2) { top: 74px; }
    .step-card:nth-child(3) { top: 84px; }
    .step-card:nth-child(4) { top: 94px; }
    .step-card:nth-child(5) { top: 104px; }

    .step-text {
        padding: 12px 18px 16px;
        flex: 0 0 auto;
    }

    .step-text h3 {
        font-size: 18px;
        margin-bottom: 8px;
        letter-spacing: -0.3px;
    }

    .step-text p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 10px;
        max-width: 100%;
    }

    .checks {
        gap: 6px;
    }

    .checks li {
        font-size: 13px;
        gap: 8px;
    }

    .checks li::before {
        width: 18px;
        height: 18px;
        background-size: 10px;
    }

    .step-visual-card {
        min-height: 0;
        flex: 0 0 200px;
        padding: 20px;
        order: -1 !important;
        border-radius: 10px;
        margin: 12px 12px 0;
    }

    .step-img {
        max-width: 220px;
        max-height: 180px;
        object-fit: contain;
    }
}

/* Old hand-coded step visuals removed — now using actual asset images */

/* ===========================
   5. HIGHLIGHTS
   =========================== */
.highlights {
    padding: 80px 0 0;
}

/* Wider wrap for highlights section */
.highlights .wrap {
    max-width: 1280px;
}

.highlights .sec-head {
    margin-bottom: 24px;
}

/* Two-column layout: Col1 (cards + code) | Col2 (dashboard) */
.hl-two-col {
    display: flex;
    gap: 24px;
    height: 914px;
}

.hl-col1 {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    height: 100%;
}

.hl-col2 {
    flex: 0 0 32%;
    position: relative;
    border-radius: 16px;
    padding: 40px 0 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
    overflow: hidden;
    height: 100%;
}

.hl-col2::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgb(40, 39, 44);
    border-radius: inherit;
    pointer-events: none;
}

.hl-grid {
    display: flex;
    gap: 24px;
}

.hl-card {
    flex: 1 0 0;
    position: relative;
    border-radius: 16px;
    height: 425px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    overflow: hidden;
}

.hl-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgb(40, 39, 44);
    border-radius: inherit;
    pointer-events: none;
}

.hl-icon {
    background: var(--bg-card-alt);
    border-radius: 15px;
    padding: 10px;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hl-icon img {
    width: 29px;
    height: 29px;
    object-fit: contain;
}

.hl-card-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hl-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.4px;
    line-height: 26px;
    color: var(--text-primary);
}

.hl-card p {
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
    line-height: 25.6px;
}

/* Code card inside col1 */
.code-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.code-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgb(40, 39, 44);
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.code-scroll-wrap {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent 0%, black 32.5%, black 67.5%, transparent 100%);
    padding: 10px;
}

.code-block {
    padding: 32px 40px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.75;
    color: #d6deeb;
    tab-size: 4;
    animation: codeScroll 30s linear infinite;
}

@keyframes codeScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.code-block code {
    font-family: inherit;
}

.code-block .kw { color: var(--code-kw); }
.code-block .ty { color: var(--code-ty); }
.code-block .fn { color: var(--code-fn); }
.code-block .pr { color: var(--code-pr); }
.code-block .nm { color: var(--code-nm); }
.code-block .cm { color: var(--code-cm); font-style: italic; }
.code-block .cn { color: var(--code-cn); }

.code-info {
    padding: 32px 40px;
}

.code-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.code-info p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
}

/* Dashboard (col2) */
.dash-text {
    flex: 0 0 auto;
    padding: 0 40px;
}

.dash-text h3 {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.4px;
    line-height: 26px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.dash-text p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
    line-height: 25.6px;
}

.dash-img {
    flex: 1 1 0;
    min-height: 0;
    padding-left: 40px;
    overflow: hidden;
}

.dash-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    border-radius: 8px 0 0 0;
    display: block;
}

/* ===========================
   6. FEATURES
   =========================== */
.features {
    padding: 24px 0 0;
}

.features .wrap {
    max-width: 1280px;
}

.feat-grid {
    display: flex;
    gap: 24px;
}

.feat-card {
    flex: 1 0 0;
    position: relative;
    border-radius: 16px;
    padding: 40px;
    height: 346px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.feat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgb(40, 39, 44);
    border-radius: inherit;
    pointer-events: none;
}

.feat-ico {
    width: 50px;
    height: 50px;
    background: var(--bg-card-alt);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.feat-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feat-card h3 {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.4px;
    line-height: 26px;
    color: var(--text-primary);
}

.feat-card p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 400;
    line-height: 25.6px;
}

/* ===========================
   7. UNIT BANNER
   =========================== */
.unit-banner {
    padding: 24px 0 0;
}

.unit-banner .wrap {
    max-width: 1280px;
}

.ub-card {
    position: relative;
    background: var(--bg-card-alt);
    border-radius: 16px;
    padding: 40px 0;
    text-align: center;
}

.ub-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgb(40, 39, 44);
    border-radius: inherit;
    pointer-events: none;
}

.ub-card p {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.48px;
    line-height: 31.2px;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto;
}

/* ===========================
   8. LIQUIDATOR
   =========================== */
.liquidator {
    padding: 150px 0 80px;
}

.liquidator .sec-head {
    margin-bottom: 100px;
}

.liq-layout {
    display: flex;
    gap: 50px;
    align-items: center;
}

.liq-tabs {
    flex: 0 0 38%;
    display: flex;
    flex-direction: column;
    align-self: center;
}

.liq-tab {
    padding: 16px 0 16px 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: border-color 0.3s;
}

.liq-tab.active {
    border-left-color: rgba(255, 255, 255, 0.5);
}

.liq-tab-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 28px;
    transition: color 0.3s;
}

.liq-tab.active .liq-tab-title {
    color: var(--text-primary);
    font-weight: 700;
}

.liq-tab-desc {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-top: 0;
}

.liq-tab.active .liq-tab-desc {
    max-height: 200px;
    opacity: 1;
    margin-top: 12px;
}

.liq-img {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    min-height: 400px;
}

.liq-img-slide {
    width: 100%;
    display: block;
    border-radius: 12px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.liq-img-slide.active {
    opacity: 1;
    position: relative;
}

.liq-img-slide img {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.liq-overlay {
    position: absolute;
    top: 60px;
    left: 80px;
    z-index: 2;
}

.liq-toast {
    background: rgb(24, 23, 28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 260px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.liq-toast svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.liq-toast-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.liq-toast-text strong {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.liq-toast-text span {
    font-size: 11px;
    color: var(--text-secondary);
}

.liq-toast-link {
    font-size: 11px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 4px 10px;
    width: fit-content;
    margin-top: 4px;
}

.liq-toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    line-height: 1;
}

/* ===========================
   9. TESTIMONIALS
   =========================== */
.testimonials {
    padding: 80px 0 0;
    overflow: hidden;
}

.ticker-grid {
    display: flex;
    gap: 16px;
    max-width: 1224px;
    margin: 0 auto;
    padding: 0 20px;
    height: 650px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.ticker-col {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-track {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Duplicate cards via JS for seamless loop */
.ticker-up {
    animation: tickerUp 25s linear infinite;
}

.ticker-down {
    animation: tickerDown 25s linear infinite;
}

@keyframes tickerUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes tickerDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

.tweet {
    background: #18171c;
    border: 1px solid #28272c;
    border-radius: 16px;
    padding: 24px;
    flex-shrink: 0;
}

.tw-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.tw-head img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.tw-head b {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: white;
    line-height: 1.3;
}

.tw-head span {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.3;
}

.tweet p {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-secondary);
}

/* ===========================
   10. FAQ
   =========================== */
.faq {
    padding: 40px 0 80px;
}

.faq .sec-head h2 {
    margin-bottom: 0;
}

.faq-list {
    max-width: 1000px;
    margin: 40px auto 0;
    background: var(--bg-card-alt);
    border-radius: 20px;
    padding: 0 20px;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 24px;
    padding: 20px 0 20px 20px;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    color: white;
    cursor: pointer;
    transition: color 0.2s;
}

.faq-q:hover {
    color: rgba(255, 255, 255, 0.7);
}

.faq-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s;
    order: -1;
}

.faq-item.active .faq-plus {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-a {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq-a p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
    padding: 0 0 0 44px;
}

.faq-cta {
    text-align: center;
    margin-top: 56px;
}

.faq-cta h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.faq-cta p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ===========================
   11. CTA
   =========================== */
.cta {
    padding: 80px 0;
}

.cta .wrap {
    max-width: none;
    padding: 0 24px;
}

.cta-card {
    border: none;
    border-radius: 24px;
    text-align: center;
    overflow: hidden;
    padding: 90px 0 0;
    max-width: 1272px;
    margin: 0 auto;
}

.cta-card h2 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1.4px;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.cta-card .btn-primary {
    font-size: 12px;
    padding: 8px 24px;
    border-radius: 8px;
    background: var(--text-primary);
    color: #11101d;
}

.cta-dash {
    margin-top: 40px;
    overflow: hidden;
}

.cta-dash img {
    width: 100%;
    display: block;
    aspect-ratio: 1224 / 255;
    object-fit: cover;
    object-position: top left;
}

/* ===========================
   12. FOOTER
   =========================== */
.footer {
    padding: 64px 0 32px;
}

.foot-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.foot-top .logo img {
    width: 40px;
    height: 40px;
}

.foot-about {
    font-size: 14px;
    color: white;
    transition: color 0.2s;
}

.foot-about:hover {
    color: var(--text-secondary);
}

.foot-blog {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 32px;
}
.foot-blog-heading {
    width: 100%;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.foot-blog a {
    font-size: 14px;
    color: white;
    transition: color 0.2s;
}
.foot-blog a:hover {
    color: var(--text-secondary);
}

.foot-sub {
    margin-bottom: 48px;
}

.foot-sub p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.sub-form {
    display: flex;
    gap: 12px;
    max-width: 440px;
}

.sub-form input {
    flex: 1;
    min-width: 0;
    width: 280px;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-btn);
    color: white;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.sub-form input::placeholder {
    color: var(--text-muted);
}

.sub-form input:focus {
    border-color: rgba(255, 255, 255, 0.2);
}

.sub-form button {
    padding: 12px 20px;
    background: var(--text-primary);
    color: black;
    font-weight: 500;
    font-size: 14px;
    border: none;
    border-radius: var(--radius-btn);
    white-space: nowrap;
    transition: opacity 0.2s;
}

.sub-form button:hover {
    opacity: 0.88;
}

.foot-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.foot-legal {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

.foot-legal a {
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.2s;
}

.foot-legal a:hover {
    color: var(--text-secondary);
}

.foot-socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.foot-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
}

.foot-socials a:hover {
    color: var(--text-primary);
}

/* ===========================
   RESPONSIVE
   =========================== */

/* Tablet: 768-1024px */
@media (max-width: 1024px) {
    .hero-inner {
        padding: 60px 32px 40px;
    }

    .hl-two-col {
        flex-direction: column;
        height: auto;
    }

    .hl-col2 {
        flex: none;
        height: auto;
        min-height: 500px;
    }

    .hl-grid {
        flex-direction: column;
    }

    .feat-grid {
        flex-wrap: wrap;
    }

    .feat-card {
        flex: 1 1 calc(50% - 12px);
        height: auto;
    }

    .liq-layout {
        flex-direction: column;
        gap: 32px;
    }

    .ticker-grid {
        height: 550px;
    }

    .ticker-col:last-child {
        display: none;
    }

    .ub-card p {
        font-size: 22px;
    }
}

/* Mobile: <768px */
@media (max-width: 768px) {
    :root {
        --nav-h: 56px;
    }

    .wrap {
        padding: 0 16px;
    }

    .hero {
        padding-top: 0;
    }

    .hero-card {
        width: calc(100% - 32px);
        margin: 0 16px;
    }

    .hero-inner {
        padding: 48px 20px 32px;
    }

    .hero-sub {
        font-size: 15px;
    }

    .how-works,
    .highlights,
    .features,
    .unit-banner,
    .liquidator,
    .testimonials,
    .faq,
    .cta {
        padding: 56px 0;
    }

    .sec-head {
        margin-bottom: 32px;
    }

    .sec-head p {
        font-size: 14px;
    }

    .checks li {
        font-size: 13px;
    }

    .hl-grid {
        flex-direction: column;
    }

    .hl-two-col {
        flex-direction: column;
        height: auto;
    }

    .hl-col2 {
        flex: none;
        height: auto;
        min-height: 400px;
    }

    .hl-card {
        height: auto;
        min-height: 280px;
        padding: 24px;
    }

    .code-block {
        padding: 20px;
        font-size: 11px;
    }

    .code-info {
        padding: 24px 20px;
    }

    .dash-img {
        padding-left: 24px;
    }

    .feat-grid {
        flex-direction: column;
    }

    .feat-card {
        padding: 28px 24px;
        height: auto;
    }

    .ub-card {
        padding: 40px 24px;
    }

    .ub-card p {
        font-size: 20px;
    }

    .liq-layout {
        flex-direction: column;
        gap: 32px;
    }

    .ticker-grid {
        height: 450px;
    }

    .ticker-col:nth-child(2),
    .ticker-col:nth-child(3) {
        display: none;
    }

    .cta-card {
        padding-top: 40px;
    }

    .cta-dash {
        padding: 28px 0 0;
    }

    .cta .wrap {
        padding: 0 16px;
    }

    .faq-q {
        font-size: 14px;
        gap: 12px;
    }

    .faq-cta {
        padding: 28px 20px;
    }

    .faq-cta h3 {
        font-size: 22px;
    }

    .foot-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .sub-form {
        flex-direction: column;
        max-width: 100%;
    }

    .sub-form input {
        width: 100%;
    }

    .foot-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .foot-legal {
        flex-direction: column;
        gap: 8px;
    }

    .foot-socials {
        display: none;
    }

    .dash-text {
        padding: 28px 24px 20px;
    }

    .dash-text h3 {
        font-size: 20px;
    }

    .social-icon {
        display: none;
    }
}

/* ===========================
   VIDEO MODAL
   =========================== */
.video-modal {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.video-modal-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg-body);
}

.video-modal-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 960px;
}

.video-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.video-modal-close:hover {
    color: white;
}

.video-modal-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 0;
    overflow: hidden;
    background: #000;
}

.video-modal-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===========================
   REDUCED MOTION
   =========================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
