/* StreamCloud landing — dark default, optional light theme */
:root {
    --bg: #000000;
    --bg-elevated: rgba(255, 255, 255, 0.04);
    --bg-glass: rgba(20, 20, 22, 0.65);
    --border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --accent: #ffdd95;
    --accent-soft: rgba(255, 221, 149, 0.18);
    --accent-ink: #141414;
    --glow-1: rgba(255, 221, 149, 0.22);
    --glow-2: rgba(255, 180, 100, 0.18);
    --radius: 20px;
    --radius-sm: 14px;
    --header-h: 72px;
    --font: "Inter", system-ui, -apple-system, sans-serif;
}

[data-theme="light"] {
    --bg: #f4f4f5;
    --bg-elevated: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border: rgba(0, 0, 0, 0.08);
    --text: #18181b;
    --text-muted: #71717a;
    --accent: #ffdd95;
    --accent-soft: rgba(255, 221, 149, 0.28);
    --accent-ink: #141414;
    --glow-1: rgba(255, 221, 149, 0.35);
    --glow-2: rgba(255, 180, 100, 0.2);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    transition: background-color 0.45s ease;
}

/* Anchor offset under sticky header */
main.landing-main section[id],
.landing-footer#contact-sales {
    scroll-margin-top: calc(var(--header-h) + 12px);
}

body.landing-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.45s ease, color 0.35s ease;
}

/* Vào trang: fade + nhẹ nhàng — chỉ khi JS đã bật .landing-animate */
body.landing-animate.landing-page--boot .landing-wrap {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(6px);
}

body.landing-page--loaded .landing-wrap {
    opacity: 1;
    transform: none;
    filter: none;
    transition:
        opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.75s ease;
}

@media (prefers-reduced-motion: reduce) {
    body.landing-animate.landing-page--boot .landing-wrap {
        opacity: 1;
        transform: none;
        filter: none;
    }

    body.landing-page--loaded .landing-wrap {
        transition: none;
    }
}

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

.landing-wrap {
    position: relative;
    overflow-x: hidden;
}

/* Ambient blobs */
.landing-wrap::before,
.landing-wrap::after {
    content: "";
    position: fixed;
    width: min(560px, 90vw);
    height: min(560px, 90vw);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}

.landing-wrap::before {
    top: calc(-120px - var(--parallax-y, 0px));
    right: -80px;
    background: var(--glow-1);
    transition: top 0.15s ease-out;
}

.landing-wrap::after {
    bottom: calc(10% - var(--parallax-y, 0px) * 0.25);
    left: -120px;
    background: var(--glow-2);
    transition: bottom 0.15s ease-out;
}

/* —— App header —— */
.landing-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
        border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.landing-header.is-scrolled {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
    border-bottom-color: color-mix(in srgb, var(--border) 70%, transparent);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.landing-header__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}

.landing-brand__logo {
    display: block;
    width: auto;
    max-width: 100px;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.landing-brand__logo--footer {
    max-width: 100px;
    height: auto;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .landing-nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        max-width: calc(100vw - 200px);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 4px;
    }

    .landing-nav::-webkit-scrollbar {
        display: none;
    }

    .landing-header__inner {
        position: relative;
    }

    .landing-brand {
        z-index: 2;
    }

    .landing-header__actions {
        z-index: 2;
    }
}

.landing-nav a {
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 10px;
    transition: color 0.2s, background 0.2s;
}

.landing-nav a:hover {
    color: var(--text);
    background: var(--bg-elevated);
}

.landing-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-icon-theme {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    line-height: 1;
    transition: background 0.2s, border-color 0.2s;
}

.btn-icon-theme i {
    font-size: 0.85rem;
    line-height: 1;
}

.btn-icon-theme:hover {
    background: color-mix(in srgb, var(--text) 8%, transparent);
}

[data-theme="light"] .theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-icon-light {
    display: none;
}

.btn-ghost {
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    transition: background 0.2s;
}

.btn-ghost:hover {
    background: var(--bg-elevated);
}

.btn-primary {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    background: var(--text);
    color: var(--bg);
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

[data-theme="light"] .btn-primary {
    background: #18181b;
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-primary--accent {
    background: var(--accent);
    color: var(--accent-ink);
}

.btn-primary--accent:hover {
    opacity: 0.95;
    filter: brightness(1.03);
}

/* —— Sections —— */
main.landing-main {
    position: relative;
    z-index: 1;
}

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section--tight-top {
    padding-top: 48px;
}

.section__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 16px;
}

.section__lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.section__header {
    text-align: center;
    margin-bottom: 48px;
}

/* Hero */
.hero {
    text-align: center;
    padding-bottom: 40px;
}

.hero__title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin: 0 0 20px;
}

.hero-headline-accent {
    display: block;
    font-size: 0.55em;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Slogan dòng chính: chuyển dưới → lên, mờ → rõ → mờ */
.hero-lead-slider {
    display: block;
    max-width: 42rem;
    margin: 0 auto;
    min-height: 3.35em;
    padding: 0 12px;
}

.hero-lead-slider__text {
    display: block;
    font-size: 1em;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.04em;
    line-height: 1.28;
    transition:
        opacity 0.48s ease,
        transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.48s ease;
}

.hero-lead-slider__text--out {
    opacity: 0;
    transform: translateY(-18px);
    filter: blur(12px);
}

.hero-lead-slider__text--in {
    animation: heroSloganEnter 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroSloganEnter {
    0% {
        opacity: 0;
        transform: translateY(28px);
        filter: blur(14px);
    }

    50% {
        opacity: 1;
        filter: blur(3px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-eyebrow.hero-text--exit,
.hero-headline-accent.hero-text--exit {
    opacity: 0;
    transform: translateY(6px);
}

.hero-eyebrow.hero-text--enter,
.hero-headline-accent.hero-text--enter {
    animation: heroTextIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroTextIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.65;
    opacity: 1;
    transform: none;
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

body.landing-animate .hero__desc:not(.hero-desc--visible) {
    opacity: 0;
    transform: translateY(12px);
}

body.landing-animate .hero__desc.hero-desc--visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .hero-lead-slider__text--in {
        animation: none;
    }

    body.landing-animate .hero__desc:not(.hero-desc--visible) {
        opacity: 1;
        transform: none;
    }

    .hero-eyebrow.hero-text--exit,
    .hero-headline-accent.hero-text--exit {
        opacity: 1;
        transform: none;
    }
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 56px;
}

.hero__actions .btn-primary,
.hero__actions .btn-ghost {
    min-width: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Glass showcase */
.hero-showcase {
    max-width: 900px;
    margin: 0 auto;
}

.hero-showcase__stack {
    position: relative;
    padding: 24px;
}

.glass-panel {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .glass-panel {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.hero-showcase__main {
    padding: 20px 24px;
}

.hero-showcase__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.hero-embed__label {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.hero-embed__label i {
    color: var(--accent);
    font-size: 0.9rem;
}

.hero-showcase__main.hero-embed {
    padding-bottom: 16px;
}

.hero-embed__frame {
    position: relative;
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-embed__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Demo: link thay iframe — nhẹ, không ảnh hưởng JS trang */
.hero-demo-open {
    position: relative;
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition:
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-demo-open:hover {
    border-color: rgba(255, 221, 149, 0.35);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    transform: translateY(-3px);
}

.hero-demo-open__ratio {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 160px;
}

.hero-demo-open__inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    text-align: center;
}

.hero-demo-open__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.35s ease;
}

.hero-demo-open:hover .hero-demo-open__icon {
    transform: scale(1.06);
}

.hero-demo-open__title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

.hero-demo-open__hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 380px;
    line-height: 1.45;
}

.hero-float__muted {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.hero-float__muted i {
    color: var(--accent);
    margin-right: 6px;
}

.hero-float__stat {
    font-weight: 700;
    font-size: 1.25rem;
}

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

.hero-showcase__dot--r {
    background: #ff5f57;
}

.hero-showcase__dot--y {
    background: #febc2e;
}

.hero-showcase__dot--g {
    background: #28c840;
}

.hero-showcase__float {
    position: absolute;
    width: 42%;
    max-width: 280px;
    right: 8%;
    bottom: -8px;
    padding: 16px;
    transform: rotate(-2deg);
}

@media (max-width: 640px) {
    .hero-showcase__float {
        display: none;
    }
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    transition:
        border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Feature: nâng nhẹ + icon xoay nhẹ + viền sáng */
.feature-card:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 221, 149, 0.12);
    transform: translateY(-6px);
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 8px 24px rgba(255, 221, 149, 0.12);
}

.feature-card .feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 16px;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.feature-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

@media (max-width: 960px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
}

.pricing-card {
    position: relative;
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    display: flex;
    flex-direction: column;
    transition:
        border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Pricing / bảng giá: phóng nhẹ + bóng đậm + icon nhảy */
.pricing-card:hover {
    transform: scale(1.03) translateY(-5px);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.38);
}

.pricing-card--popular:hover {
    transform: scale(1.045) translateY(-7px);
    box-shadow: 0 28px 64px rgba(255, 221, 149, 0.18), 0 0 0 1px rgba(255, 221, 149, 0.2);
}

.pricing-card:hover .pricing-card__icon {
    transform: scale(1.15);
}

.pricing-card--popular {
    border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent),
        0 20px 60px rgba(255, 221, 149, 0.14);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border-radius: 999px;
}

.pricing-card .pricing-card__icon {
    font-size: 1.75rem;
    color: var(--accent);
    margin-bottom: 12px;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pricing-card h3 {
    margin: 0 0 4px;
    font-size: 1.25rem;
}

.pricing-card__tag {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.pricing-card__price {
    margin-bottom: 20px;
}

.pricing-card__price .old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1rem;
    margin-right: 8px;
}

.pricing-card__price .amount {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.pricing-card__price .currency {
    font-size: 1.25rem;
    vertical-align: super;
    font-weight: 600;
}

.pricing-card ul {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    flex: 1;
}

.pricing-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.pricing-card li i {
    color: var(--accent);
    margin-top: 3px;
    font-size: 0.85rem;
}

.pricing-card .btn-primary,
.pricing-card .btn-ghost {
    width: 100%;
    text-align: center;
    padding: 12px;
}

/* API block */
.api-section .api-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .api-section .api-layout {
        grid-template-columns: 1fr;
    }
}

.api-copy h2 {
    margin: 0 0 12px;
    font-size: 1.75rem;
}

.api-copy p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.api-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.api-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.api-pill i {
    color: var(--accent);
}

.code-block {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #0a0a0b;
    color: #e4e4e7;
    overflow: hidden;
}

[data-theme="light"] .code-block {
    background: #18181b;
    color: #f4f4f5;
}

.code-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.code-block pre {
    margin: 0;
    padding: 20px;
    font-size: 0.8rem;
    line-height: 1.55;
    overflow-x: auto;
    font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
}

.code-block .key {
    color: #a78bfa;
}

.code-block .str {
    color: #ffdd95;
}

.code-block .num {
    color: #fbbf24;
}

/* Footer */
.landing-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 48px 24px 32px;
    margin-top: 40px;
}

.landing-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
    align-items: flex-start;
}

.landing-footer__brand p {
    margin: 8px 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 280px;
}

.landing-footer__cols {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.landing-footer__col h4 {
    margin: 0 0 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.landing-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-footer__col li {
    margin-bottom: 8px;
}

.landing-footer__col a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.landing-footer__col a:hover {
    color: var(--text);
}

.landing-footer__social {
    display: flex;
    gap: 12px;
}

.landing-footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.2s, background 0.2s;
}

.landing-footer__social a:hover {
    color: var(--text);
    background: var(--bg-elevated);
}

.landing-footer__bottom {
    max-width: 1200px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* —— Scroll reveal —— mặc định hiện (không JS); .landing-animate = chờ .is-visible */
.reveal {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
        opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

body.landing-animate .reveal:not(.is-visible) {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
}

body.landing-animate .reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* —— Section scene —— */
[data-scene] {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
        opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

body.landing-animate [data-scene]:not(.scene--in) {
    opacity: 0.88;
    transform: translate3d(0, 18px, 0);
}

[data-scene].scene--in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Khi đã loaded: hero luôn hiển thị (tránh màn đen nếu JS rAF/IO trễ hoặc lỗi) */
body.landing-page--loaded .landing-main .hero[data-scene] {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

body.landing-page--loaded .landing-main .hero .reveal {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    body.landing-animate .reveal:not(.is-visible),
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none;
        will-change: auto;
    }

    .landing-header {
        transition: none;
    }

    .partner-tile {
        transition: none;
    }

    body.landing-animate [data-scene]:not(.scene--in),
    [data-scene] {
        opacity: 1 !important;
        transform: none !important;
        transition: none;
    }
}

/* —— Partners: infinite horizontal marquee —— */
.partners-section .section__lead {
    max-width: 520px;
}

.partners-marquee {
    position: relative;
    width: 100%;
    margin: 0 -24px;
    padding: 8px 0 4px;
}

@media (min-width: 1248px) {
    .partners-marquee {
        margin: 0 calc(50% - 50vw + 24px);
        width: 100vw;
        max-width: 100vw;
    }
}

.partners-marquee__viewport {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.partners-marquee__track {
    display: flex;
    gap: 16px;
    width: max-content;
    will-change: transform;
    animation: partners-marquee-scroll 50s linear infinite;
}

.partners-marquee:hover .partners-marquee__track,
.partners-marquee__viewport:hover .partners-marquee__track {
    animation-play-state: paused;
}

/* Hai cụm + gap 16px: -50% là một nửa track; trừ thêm nửa gap để khớp vòng lặp */
@keyframes partners-marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 8px));
    }
}

.partners-marquee__group {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    gap: 16px;
    padding: 0 8px;
}

.partner-tile {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 152px;
    min-height: 88px;
    padding: 16px 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    overflow: hidden;
    transition:
        box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease;
    z-index: 1;
    transform-style: preserve-3d;
    will-change: transform;
    cursor: default;
}

.partner-tile:hover {
    z-index: 4;
    border-color: rgba(255, 221, 149, 0.35);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.partner-tile img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 42px;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    transition: filter 0.35s ease;
    filter: brightness(1.05);
}

.partner-tile:hover img {
    filter: brightness(1.12);
}

[data-theme="light"] .partner-tile {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .partner-tile:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

@media (prefers-reduced-motion: reduce) {
    .partners-marquee__track {
        animation: none !important;
        transform: none !important;
    }
}
