:root {
    --bg: #050608;
    --acc-prim: #01D277;
    --acc-sec: #23CFB2;
    --text: #FFFFFF;
    --text-dim: #94979e;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --nav-h: 72px;
    --grad: linear-gradient(135deg, var(--acc-prim) 0%, var(--acc-sec) 100%);
}

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

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

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.04em;
}

/* Hero Section */
.hero-stage {
    padding-top: 6rem;
    padding-bottom: 4rem; /* Reduced from 8rem */
    position: relative;
    overflow: hidden;
}

.stage-container {
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
}

.hero-logo-main {
    width: 140px;
    height: 140px;
    margin-bottom: 3rem;
    filter: drop-shadow(0 0 30px rgba(1, 210, 119, 0.2));
    opacity: 0;
    transform: translateY(20px);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 0.95;
    margin-bottom: 1.5rem;
}

.highlight {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    color: var(--text-dim);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 6rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: black;
    padding: 1rem 2rem;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

/* Showcase */
.showcase-container {
    position: relative;
    margin-top: 4rem;
    perspective: 2000px;
}

.showcase-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(1, 210, 119, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.main-preview {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.8);
    position: relative;
    z-index: 10; /* Bring to front */
    transform: translateZ(20px);
}

.float-card {
    position: absolute;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.7);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.float-card img {
    width: 100%;
    display: block;
}

/* Layering - All behind main now */
.pc-1 { top: 0; left: -15%; width: 45%; z-index: 5; transform: rotateY(15deg) translateZ(-50px); }
.pc-2 { top: 40%; left: -20%; width: 50%; z-index: 1; transform: rotateY(20deg) translateZ(-150px); }
.pc-3 { top: 10%; right: -15%; width: 45%; z-index: 5; transform: rotateY(-15deg) translateZ(-50px); }
.pc-4 { bottom: 0; right: -20%; width: 50%; z-index: 1; transform: rotateY(-20deg) translateZ(-150px); }

.showcase-container:hover .float-card {
    transform: rotateY(0) translateZ(0) translateX(0);
}

/* Features */
.features-section {
    padding: 6rem 5%; /* Reduced from 10rem */
    max-width: 1200px;
    margin: 0 auto;
}

.section-header h2 {
    font-size: 4rem;
    margin-bottom: 4rem;
    text-align: center;
}

.dim { color: var(--text-dim) !important; }

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

.feature-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    transition: all 0.4s;
    opacity: 0;
    transform: translateY(30px);
}

.feature-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(1, 210, 119, 0.3);
    transform: translateY(-8px);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--text-dim);
}

/* CTA */
.cta-section {
    padding: 6rem 5%; /* Reduced from 10rem */
    display: flex;
    justify-content: center;
}

.cta-box {
    background: linear-gradient(135deg, rgba(1, 210, 119, 0.1) 0%, rgba(35, 207, 178, 0.1) 100%);
    border: 1px solid rgba(1, 210, 119, 0.2);
    padding: 6rem;
    border-radius: 48px;
    text-align: center;
    max-width: 900px;
}

.cta-box h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.cta-box p {
    color: var(--text-dim);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* Footer */
.main-footer {
    padding: 4rem 5%;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-content p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.legal {
    margin-top: 1rem;
    opacity: 0.5;
}

/* Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.visible, .hero-logo-main.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .showcase-container {
        display: flex;
        flex-direction: row; /* Horizontal layout */
        gap: 1.5rem;
        perspective: none;
        margin-top: 4rem;
        overflow-x: auto; /* Enable scroll */
        scroll-snap-type: x mandatory; /* Snap effect */
        padding-bottom: 2rem; /* Space for scrollbar/indicators */
        padding-left: 5%; /* Start with some offset */
        padding-right: 5%;
        margin-left: -5%; /* Negative margin to pull to edges */
        margin-right: -5%;
        width: 110%; /* Compensate for margins */
        -webkit-overflow-scrolling: touch;
    }

    /* Hide scrollbar */
    .showcase-container::-webkit-scrollbar {
        display: none;
    }
    .showcase-container {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .main-preview {
        min-width: 75vw; /* Reduced to show next card */
        width: 75vw;
        height: auto;
        transform: none !important;
        scroll-snap-align: center;
        margin-right: 0;
        z-index: 1;
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }

    .float-card { 
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 75vw !important; /* Consistent width */
        min-width: 75vw;
        transform: none !important;
        display: block;
        scroll-snap-align: center;
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }

    .hero-title { font-size: 3.5rem; }
    .cta-box { padding: 4rem 2rem; }
}

@media (max-width: 768px) {
    .hero-stage { padding-top: 6rem; }
    .feature-item { padding: 2rem; }
    .section-header h2 { font-size: 2.5rem; }
    .cta-box h2 { font-size: 2.2rem; }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 6, 8, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.visible {
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(1, 210, 119, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.visible img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    font-weight: 300;
    z-index: 2001;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--acc-prim);
}
