:root {
    --bg-dark: #12101a;
    --bg-darker: #0a080f;
    --bg-card: rgba(26, 15, 34, 0.4);
    --text-main: #f4f0f8;
    --text-muted: #a095b0;
    --accent-lavender: #c9b4e0;
    --accent-moon: #ffd9a0;
    
    --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: initial; /* Lenis handles this */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 0 14px rgba(255, 217, 160, 0.35);
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-100px, -100px, 0);
    transition: width 0.25s, height 0.25s, background-color 0.25s, border-color 0.25s, opacity 0.25s;
    opacity: 0;
    will-change: transform;
    display: none; /* Enabled via JS on non-touch */
}

@media (pointer: fine) {
    .custom-cursor.active {
        display: block;
        opacity: 1;
    }
    body {
        cursor: none;
    }
    a, button, .magnetic {
        cursor: none;
    }
}

.custom-cursor.hover {
    width: 56px;
    height: 56px;
    background-color: rgba(255, 217, 160, 0.18);
    border-color: rgba(255, 217, 160, 0.9);
}

/* Layout */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--text-main) 0%, var(--accent-lavender) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: var(--space-lg);
}

/* Nav */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(18, 16, 26, 0.7) 0%, rgba(18, 16, 26, 0) 100%);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(18, 16, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-cta {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
}

.nav-cta::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hero */
.hero {
    position: relative;
    height: 100dvh;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-still,
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.hero-video {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-video.is-ready {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(100deg, rgba(18, 16, 26, 0.94) 0%, rgba(18, 16, 26, 0.82) 24%, rgba(18, 16, 26, 0.4) 48%, rgba(18, 16, 26, 0.05) 72%, rgba(18, 16, 26, 0.35) 100%),
        linear-gradient(to bottom, rgba(18, 16, 26, 0.55) 0%, rgba(18, 16, 26, 0) 20%, rgba(18, 16, 26, 0) 68%, rgba(18, 16, 26, 0.85) 100%);
}

.hero-content {
    position: relative;
    text-align: left;
    z-index: 1;
    padding: 0 clamp(1.5rem, 7vw, 8rem);
    max-width: 860px;
}

.hero-eyebrow {
    font-size: 1rem;
    color: var(--accent-moon);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: var(--space-md);
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-sub {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--text-main);
    opacity: 0.9;
    max-width: 30rem;
    text-wrap: balance;
    margin-bottom: var(--space-lg);
    font-weight: 300;
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding-bottom: 5rem;
    }

    .hero-bg {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: 75vw;
        z-index: 0;
        overflow: hidden;
    }

    .hero-overlay {
        background: linear-gradient(to bottom, rgba(18, 16, 26, 0.62) 0%, rgba(18, 16, 26, 0.18) 30%, rgba(18, 16, 26, 0.1) 62%, rgba(18, 16, 26, 0.6) 100%);
    }

    .hero-still,
    .hero-video {
        transform: none;
    }

    .hero-content {
        padding: 2rem 1.5rem 0;
        max-width: none;
    }

    .hero-title {
        font-size: clamp(2.25rem, 11vw, 3.2rem);
    }

    .hero-sub {
        font-size: 1.0625rem;
        margin-bottom: var(--space-md);
    }

    .scroll-indicator {
        display: none;
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    background-color: var(--text-main);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(255, 217, 160, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: clamp(1.5rem, 7vw, 8rem);
    opacity: 0.5;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-main);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--text-main);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* Pain Points */
.pain-points {
    padding: var(--space-2xl) 0 calc(var(--space-2xl) + 2rem);
    background: linear-gradient(to bottom, var(--bg-dark) 0%, var(--bg-darker) 100%);
    position: relative;
    z-index: 1;
}

.contrast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.contrast-card {
    background: var(--bg-card);
    border: 1px solid rgba(201, 180, 224, 0.1);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: transform 0.4s ease, background 0.4s ease;
}

.contrast-card:hover {
    transform: translateY(-10px);
    background: rgba(201, 180, 224, 0.05);
}

.contrast-old {
    font-size: 1.5rem;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.6;
}

.contrast-arrow {
    color: var(--accent-lavender);
    font-size: 1.5rem;
}

.contrast-new {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-moon);
}

/* Product Showcase (Scrub) */
.product-showcase {
    background-color: var(--bg-darker);
    position: relative;
    z-index: 2;
}

.scrub-container {
    height: 250vh;
}

.scrub-sticky {
    position: sticky;
    top: 0;
    height: 100dvh;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

#scrub-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scrub-overlay {
    position: absolute;
    bottom: 10%;
    left: 0;
    width: 100%;
    z-index: 2;
    text-align: center;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.scrub-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 0.5rem;
}

.scrub-desc {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255,255,255,0.9);
}

/* Features */
.features {
    padding: var(--space-2xl) 0;
    background-color: var(--bg-darker);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg) var(--space-md);
}

.feature-card {
    position: relative;
    padding-top: 2rem;
    border-top: 1px solid rgba(201, 180, 224, 0.2);
}

.feature-icon {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-lavender);
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Offerings */
.offerings {
    padding: var(--space-2xl) 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

/* Moon glow parallax bg */
.offerings::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 217, 160, 0.08) 0%, rgba(18, 16, 26, 0) 70%);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

.offerings-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.offerings-list {
    list-style: none;
    margin-top: var(--space-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.offerings-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 500;
}

.check {
    color: var(--accent-moon);
    font-size: 1.5rem;
}

/* Proof */
.proof {
    padding: var(--space-2xl) 0 var(--space-xl);
    background-color: var(--bg-darker);
}

.video-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto var(--space-xl);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    aspect-ratio: 16/9;
    background: #000;
}

.proof-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    padding: 2rem 0;
}

.gallery-track {
    display: flex;
    gap: 2rem;
    padding: 0 5vw;
    /* Will be animated by GSAP */
}

.gallery-item {
    flex: 0 0 300px;
    aspect-ratio: 9/16;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-track:hover .gallery-item {
    filter: brightness(0.5);
}

.gallery-track .gallery-item:hover {
    transform: scale(1.05) translateY(-10px);
    filter: brightness(1);
    z-index: 10;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 240px;
    }
}

/* CTA */
.cta {
    padding: var(--space-lg) 0 var(--space-2xl);
    background: var(--bg-darker);
    text-align: center;
}

.cta-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.cta-wechat {
    font-size: 1.5rem;
    color: var(--accent-lavender);
    margin-bottom: 3rem;
}

.qr-placeholder {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.qr-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--bg-darker);
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.footer-logo {
    height: 24px;
    width: auto;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Utilities */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
}
