/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
    --deep-space: #0c0b14;
    --muted-violet: #48466e;
    --dusty-rose: #c6868f;
    --steel-blue: #929fba;
    --ocean: #4d6793;
    --powder: #8d9cb7;

    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Lora', serif;
    --font-mono: 'IBM Plex Mono', monospace;

    /* Nav height — dùng để offset hero */
    --nav-h: 5rem;
}

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

body {
    background: var(--deep-space);
    color: #e8eaf2;
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════
   STARS CANVAS (fixed background)
═══════════════════════════════════════════ */
#stars-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    background: linear-gradient(to bottom, rgba(12, 11, 20, .96) 0%, transparent 100%);
}

.nav-logo-icon {
    width: 180px;
    height: auto;
    border-radius: 0;
    object-fit: contain;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.2rem;
}

nav ul a {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--powder);
    text-decoration: none;
    transition: color .25s;
}

nav ul a:hover {
    color: #fff;
}

.nav-cta {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: 1px solid var(--dusty-rose);
    color: var(--dusty-rose);
    padding: .5rem 1.2rem;
    border-radius: 2px;
    text-decoration: none;
    transition: background .25s, color .25s;
}

.nav-cta:hover {
    background: var(--dusty-rose);
    color: #fff;
}

/* ═══════════════════════════════════════════
   HERO
   FIX: padding-top = var(--nav-h) agar nav
   tidak menimpa konten hero
═══════════════════════════════════════════ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    /* ← FIX nav overlap: bắt đầu sau thanh nav */
    padding-top: var(--nav-h);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-planet {
    position: absolute;
    bottom: -18vw;
    left: -8vw;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    background: radial-gradient(circle at 60% 40%,
    var(--dusty-rose) 0%,
    var(--muted-violet) 30%,
    var(--ocean) 60%,
    var(--deep-space) 100%
    );
    filter: blur(2px);
    opacity: .85;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    bottom: -10vw;
    left: 0;
    width: 55vw;
    height: 30vw;
    background: radial-gradient(ellipse at 30% 100%, rgba(72, 70, 110, .55) 0%, transparent 70%);
    pointer-events: none;
}

/* Nội dung hero nằm bên phải */
.hero-content {
    position: relative;
    z-index: 2;
    margin-left: auto;
    padding: 4rem 6vw 4rem 2rem;
    width: 55%;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--dusty-rose);
    margin-bottom: 1.6rem;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(4.5rem, 9.5vw, 10.5rem);
    line-height: .95;
    color: #fff;
    letter-spacing: .01em;
}

.hero-title span {
    color: transparent;
    -webkit-text-stroke: 1px var(--steel-blue);
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--powder);
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

/* ─── Buttons ─── */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    /* ← FIX: không dùng position absolute nên
       platforms-hero không đè lên nữa */
    margin-bottom: 2.5rem;
}

.btn-primary {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    background: linear-gradient(135deg, var(--dusty-rose), var(--ocean));
    color: #fff;
    padding: .85rem 2rem;
    border-radius: 2px;
    transition: opacity .25s, transform .25s;
}

.btn-primary:hover {
    opacity: .85;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--steel-blue);
    color: var(--steel-blue);
    padding: .85rem 2rem;
    border-radius: 2px;
    transition: background .25s, color .25s;
}

.btn-outline:hover {
    background: var(--steel-blue);
    color: #fff;
}

/*
  FIX platforms-hero:
  Trước đây dùng position:absolute bottom:2.8rem right:6vw
  → đè lên nút bên dưới.
  Nay đưa vào flow bình thường bên dưới hero-actions.
*/
.platforms-hero {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.platform-pill {
    font-family: var(--font-mono);
    font-size: .56rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    color: var(--powder);
    padding: .3rem .8rem;
    border-radius: 100px;
    backdrop-filter: blur(6px);
}

/* ═══════════════════════════════════════════
   SECTION CHUNG
═══════════════════════════════════════════ */
section {
    position: relative;
    z-index: 1;
}

.section-label {
    font-family: var(--font-mono);
    font-size: .63rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--dusty-rose);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.6rem, 4.8vw, 5rem);
    line-height: 1.05;
    color: #fff;
    margin-bottom: 4rem;
}

/* ═══════════════════════════════════════════
   STATS
═══════════════════════════════════════════ */
.stats {
    position: relative;
    z-index: 1;
    padding: 5rem 6vw;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem;
}

.stat {
    text-align: center;
}

.stat-num {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(3.2rem, 5.5vw, 5.5rem);
    background: linear-gradient(135deg, #fff, var(--powder));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--dusty-rose);
    margin-top: .6rem;
}

/* ═══════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════ */
.how {
    padding: 8rem 6vw;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2px;
}

.step {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .07);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: background .3s;
}

.step:hover {
    background: rgba(255, 255, 255, .06);
}

/* Top accent bar on hover */
.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--dusty-rose), var(--ocean));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}

.step:hover::before {
    transform: scaleX(1);
}

.step-num {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 3.5rem;
    line-height: 1;
    color: rgba(255, 255, 255, .06);
    margin-bottom: .8rem;
}

.step-icon {
    width: 2.4rem;
    height: 2.4rem;
    background: linear-gradient(135deg, var(--dusty-rose), var(--ocean));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.step h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: .03em;
    color: #fff;
    margin-bottom: .7rem;
}

.step p {
    font-size: .87rem;
    line-height: 1.75;
    color: var(--powder);
    font-family: var(--font-body);
}

/* ═══════════════════════════════════════════
   PLATFORMS GRID
═══════════════════════════════════════════ */
.platforms-section {
    padding: 6rem 6vw;
    background: linear-gradient(to bottom, transparent, rgba(77, 103, 147, .08), transparent);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1px;
    border: 1px solid rgba(255, 255, 255, .06);
}

.platform-card {
    background: rgba(255, 255, 255, .02);
    padding: 2rem 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .04);
    transition: background .25s;
}

.platform-card:hover {
    background: rgba(198, 134, 143, .08);
}

.platform-card .p-logo {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .06em;
    color: var(--powder);
    transition: color .25s;
}

.platform-card:hover .p-logo {
    color: var(--dusty-rose);
}

.platform-card .p-sub {
    font-size: .62rem;
    font-family: var(--font-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .2);
    margin-top: .3rem;
}

/* ═══════════════════════════════════════════
   PRICING
═══════════════════════════════════════════ */
.pricing {
    padding: 8rem 6vw;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.price-card {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 3rem 2.5rem;
    border-radius: 4px;
    position: relative;
    transition: transform .3s, border-color .3s;
}

.price-card:hover {
    transform: translateY(-6px);
    border-color: rgba(198, 134, 143, .4);
}

.price-card.featured {
    background: linear-gradient(160deg, rgba(72, 70, 110, .5), rgba(77, 103, 147, .3));
    border-color: var(--dusty-rose);
}

.price-badge {
    position: absolute;
    top: -1px;
    right: 2rem;
    font-family: var(--font-mono);
    font-size: .58rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--dusty-rose);
    color: #fff;
    padding: .28rem .75rem;
    border-radius: 0 0 4px 4px;
}

.price-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: .06em;
    color: #fff;
    margin-bottom: 1rem;
}

.price-amount {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 3rem;
    line-height: 1;
    color: #fff;
}

.price-amount sub {
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 400;
    color: var(--powder);
    vertical-align: baseline;
    margin-right: .2rem;
}

.price-period {
    font-size: .73rem;
    color: var(--powder);
    margin-left: .3rem;
    font-family: var(--font-body);
}

.price-divider {
    height: 1px;
    background: rgba(255, 255, 255, .08);
    margin: 1.5rem 0;
}

.price-features {
    list-style: none;
}

.price-features li {
    font-size: .84rem;
    font-family: var(--font-body);
    color: var(--powder);
    padding: .45rem 0;
    display: flex;
    align-items: center;
    gap: .65rem;
}

.price-features li::before {
    content: '→';
    color: var(--dusty-rose);
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.price-features li.dim {
    color: rgba(255, 255, 255, .2);
}

.price-features li.dim::before {
    color: rgba(255, 255, 255, .12);
}

.price-btn {
    display: block;
    text-align: center;
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: .85rem;
    border-radius: 2px;
    margin-top: 2rem;
    border: 1px solid var(--dusty-rose);
    color: var(--dusty-rose);
    transition: background .25s, color .25s;
}

.price-btn:hover,
.featured .price-btn {
    background: var(--dusty-rose);
    color: #fff;
}

/* ═══════════════════════════════════════════
   CTA BAND
═══════════════════════════════════════════ */
.cta-band {
    padding: 7rem 6vw;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(198, 134, 143, .15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(77, 103, 147, .15) 0%, transparent 60%);
    pointer-events: none;
}

.cta-band h2 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.8rem, 6.5vw, 6.5rem);
    color: #fff;
    line-height: 1.05;
    position: relative;
}

.cta-band p {
    font-family: var(--font-body);
    color: var(--powder);
    max-width: 500px;
    margin: 1.5rem auto 3rem;
    line-height: 1.75;
    position: relative;
}

.cta-band .actions {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.loudive-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, .07);
    background: linear-gradient(to bottom, rgba(72, 70, 110, .06) 0%, transparent 60%),
    var(--deep-space);
    overflow: hidden;
}

/* Accent glow trên border-top */
.loudive-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
    transparent,
    var(--dusty-rose) 30%,
    var(--ocean) 70%,
    transparent
    );
    opacity: .45;
}

.lf-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 6vw 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.lf-logo {
    height: 2rem;
    width: auto;
    object-fit: contain;
}

.lf-tagline {
    font-family: var(--font-mono);
    font-size: .57rem;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--dusty-rose);
    margin-bottom: 1.8rem;
    margin-top: .8rem;
}

.lf-contact-list {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.lf-contact-item {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .75rem;
    font-family: var(--font-body);
    color: var(--powder);
    line-height: 1.5;
}

.lf-icon {
    color: var(--dusty-rose);
    margin-top: .15rem;
    flex-shrink: 0;
    font-size: .7rem;
}

.lf-link {
    color: var(--powder);
    text-decoration: none;
    transition: color .2s;
}

.lf-link:hover {
    color: #fff;
}

.lf-heading {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .1em;
    color: #fff;
    margin-bottom: 1.2rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    position: relative;
}

.lf-heading::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 2rem;
    height: 1px;
    background: var(--dusty-rose);
}

.lf-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.lf-nav-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    font-family: var(--font-body);
    color: var(--powder);
    text-decoration: none;
    transition: color .2s;
}

.lf-nav-link:hover {
    color: #fff;
}

.lf-arrow {
    font-family: var(--font-mono);
    font-size: .58rem;
    color: var(--dusty-rose);
    flex-shrink: 0;
    transition: transform .2s;
}

.lf-nav-link:hover .lf-arrow {
    transform: translateX(3px);
}

.lf-payment-img {
    height: 2rem;
    width: auto;
    object-fit: contain;
    opacity: .5;
    filter: brightness(.9) saturate(.5);
    transition: opacity .2s, filter .2s;
}

.lf-payment-img:hover {
    opacity: 1;
    filter: none;
}

.lf-empty {
    font-size: .72rem;
    font-style: italic;
    color: rgba(255, 255, 255, .2);
}

.lf-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.2rem 6vw;
    border-top: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.lf-bottom-left {
    font-family: var(--font-mono);
    font-size: .57rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .2);
}

.lf-bottom-right {
    display: flex;
    gap: .55rem;
}

.lf-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 2px;
    color: rgba(255, 255, 255, .3);
    text-decoration: none;
    font-size: .7rem;
    transition: border-color .2s, color .2s, background .2s;
}

.lf-social:hover {
    border-color: var(--dusty-rose);
    color: var(--dusty-rose);
    background: rgba(198, 134, 143, .08);
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}

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

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

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

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

.reveal-delay-4 {
    transition-delay: .4s;
}

/* ═══════════════════════════════════════════
   HERO ENTRANCE ANIMATION
═══════════════════════════════════════════ */
.hero-eyebrow {
    animation: fadeUp .8s .2s both;
}

.hero-title {
    animation: fadeUp .8s .35s both;
}

.hero-tagline {
    animation: fadeUp .8s .5s both;
}

.hero-actions {
    animation: fadeUp .8s .65s both;
}

.platforms-hero {
    animation: fadeUp .8s .8s both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
    :root {
        --nav-h: 4rem;
    }

    nav {
        padding: 0 1.5rem;
    }

    nav ul {
        display: none;
    }

    .hero-content {
        width: 100%;
        padding: 3rem 1.5rem 4rem;
        margin: 0;
    }

    .hero-planet {
        width: 130vw;
        height: 130vw;
        bottom: -40vw;
        left: -30vw;
    }

    .how, .pricing, .stats {
        padding: 5rem 1.5rem;
    }

    .platforms-section {
        padding: 4rem 1.5rem;
    }

    .cta-band {
        padding: 5rem 1.5rem;
    }

    .lf-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .lf-col--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .lf-grid {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem 2rem;
    }

    .lf-col--brand {
        grid-column: unset;
    }

    .lf-bottom {
        padding: 1rem 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .lf-bottom-right {
        justify-content: center;
    }
}
