/* Modernized Style - Plus Jakarta Sans, Bento Box, Glassmorphism */
:root {
    --bg-dark: #0B1320;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --text-white: #FFFFFF;
    --text-muted: #8E9BAE;
    --gold: #E5A93D;
    --gold-hover: #D49A32;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(229, 169, 61, 0.2);
    --glow-gold: rgba(229, 169, 61, 0.15);
}

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

html, body {
    overflow-x: clip;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
.text-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Ambient Glow Backgrounds */
.ambient-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
}

.glow-1 {
    top: -10%; left: -5%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--glow-gold) 0%, transparent 70%);
}

.glow-2 {
    top: 40%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(26, 41, 66, 0.5) 0%, transparent 70%);
}

.glow-3 {
    bottom: -10%; left: 20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(11, 19, 32, 0) 0%, transparent 70%);
}

/* Navigation - Floating Pill */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 4rem);
    max-width: 1000px;
}

.nav-container {
    background: rgba(21, 34, 56, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    padding: 0.75rem 1rem 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 24px;
    height: 24px;
    color: var(--gold);
    stroke-width: 2.5;
}

.nav-links {
    display: flex;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 700;
    border-radius: 100px; /* Pill shape */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn:active {
    transform: scale(0.95);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #C48E2E 100%);
    color: var(--bg-dark);
    box-shadow: 0 8px 20px rgba(229, 169, 61, 0.25);
}

.btn-gold:hover {
    box-shadow: 0 12px 25px rgba(229, 169, 61, 0.4);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--text-white);
    color: var(--bg-dark);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

.btn-white:hover {
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 12rem 0 6rem;
    position: relative;
    z-index: 1;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4rem;
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(229, 169, 61, 0.1);
    border: 1px solid var(--border-highlight);
    color: var(--gold);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold);
}

.headline {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    font-weight: 500;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

/* Hero Gallery */
.hero-gallery {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mockup {
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mockup-main {
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg) translateY(-20px);
}

.mockup-secondary {
    z-index: 1;
    left: 55%;
    transform: perspective(1000px) rotateY(15deg) translateY(40px) scale(0.9);
    filter: brightness(0.7) blur(2px);
}

.hero-gallery:hover .mockup-main {
    transform: perspective(1000px) rotateY(0deg) translateY(-30px);
}
.hero-gallery:hover .mockup-secondary {
    transform: perspective(1000px) rotateY(10deg) translateY(20px) scale(0.95);
    filter: brightness(0.9) blur(0px);
}

.mockup-frame {
    width: 280px;
    height: 580px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.mockup-glare {
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    animation: glare 6s infinite;
}

@keyframes glare {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.mockup-screen {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
}

.mockup-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
}

.mockup-screen.theme-midnight { background: linear-gradient(135deg, #1A2942 0%, #0B1320 100%); }
.mockup-screen.theme-wood { background: linear-gradient(135deg, #8B5A2B 0%, #4A2E12 100%); }

/* Checkerboard overlay */
.mockup-screen::after {
    content: '';
    position: absolute;
    top: 15%; left: 5%; right: 5%;
    aspect-ratio: 1/1;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.4);
}

/* Floating Badges on Mockups */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(20, 30, 45, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    padding: 0.75rem 1.25rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    animation: float 4s ease-in-out infinite;
    z-index: 10;
}

.inline-icon {
    width: 18px;
    height: 18px;
    color: var(--gold);
    stroke-width: 2.5;
}

.fb-1 { top: 20%; left: -40px; animation-delay: 0s; }
.fb-2 { bottom: 25%; right: -60px; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


/* Sticky Scroll Features Section */
.features-section {
    padding: 8rem 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.scroll-features-container {
    display: flex;
    position: relative;
    margin-top: 4rem;
}

.scroll-text-side {
    width: 50%;
    padding-right: 4rem;
}

.scroll-step {
    min-height: 80vh; /* Forces scrolling */
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.25;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(30px);
}

.scroll-step.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-step .feature-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.1;
}

.scroll-step .feature-text {
    font-size: 1.6rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.scroll-visual-side {
    width: 50%;
    position: relative;
}

.sticky-mockup-wrapper {
    position: sticky;
    top: 15vh;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.large-mockup {
    width: 320px;
    height: 640px;
    background: #000;
    border-radius: 46px;
    padding: 14px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.2);
}

.large-mockup .mockup-screen {
    border-radius: 34px;
    position: relative;
    background: var(--bg-dark);
}

/* Screen Content States */
.screen-content {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0.92);
    padding: 0; /* Removed padding so images can be full-bleed */
    background: #0F172A; /* Slate 900 */
    border-radius: 34px;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensure image respects border radius during animation */
}

.screen-content.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

/* Fake UI Elements */
.fake-ui-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.fake-folder {
    background: rgba(255,255,255,0.05);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    color: var(--text-white);
    font-weight: 500;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.fake-icon {
    width: 20px; height: 20px;
    color: var(--gold);
    margin-right: 12px;
}

.fake-count {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.fake-tree-line {
    background: rgba(229, 169, 61, 0.15);
    padding: 14px;
    border-radius: 8px;
    color: var(--gold);
    margin-bottom: 12px;
    font-weight: 700;
    border: 1px solid rgba(229, 169, 61, 0.3);
}

.fake-tree-branch {
    margin-left: 24px;
    padding: 10px 14px;
    color: var(--text-muted);
    border-left: 2px solid rgba(255,255,255,0.1);
    margin-bottom: 8px;
    font-weight: 500;
}

.screen-content.theme-wood {
    background: linear-gradient(135deg, #8B5A2B 0%, #4A2E12 100%);
    justify-content: center;
    align-items: center;
}

.perf-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}

.stat-ring {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(229, 169, 61, 0.1);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(229, 169, 61, 0.2);
    animation: pulse 2s infinite;
}

.stat-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}
.stat-text.muted {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 5rem 0 2rem;
    background: #080D17;
    border-top: 1px solid var(--border-subtle);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.footer-brand .logo { margin-bottom: 0.5rem; }
.footer-desc { color: var(--text-muted); font-weight: 500; }

.footer-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.footer-links a {
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-white); }
.social-link { font-size: 1.25rem; }

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .headline { font-size: 4.5rem; }
    .scroll-text-side { padding-right: 2rem; }
    .large-mockup { transform: scale(0.8); transform-origin: top center; }
}

@media (max-width: 768px) {
    .navbar { 
        width: calc(100% - 2rem); 
        top: 1rem; 
        left: 0;
        right: 0;
        margin: 0 auto;
        transform: none;
    }
    .nav-container { 
        padding: 0.5rem 1rem 0.5rem 1.25rem; 
        gap: 1.5rem;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(21, 34, 56, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--border-subtle);
        border-radius: 20px;
        padding: 1.5rem;
        gap: 1.5rem;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        z-index: 90;
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .mobile-menu-btn {
        display: flex;
        padding: 0.25rem;
    }
    
    .nav-download {
        display: none;
    }
    
    .hero { padding: 8rem 0 4rem; }
    .headline { font-size: 3.5rem; }
    .subtitle { font-size: 1.15rem; }
    .cta-group { flex-direction: column; width: 100%; }
    .btn-lg { width: 100%; }
    
    .hero-gallery { height: 450px; }
    .mockup-main { transform: scale(0.85); }
    .mockup-secondary { display: none; }
    
    .scroll-features-container { 
        display: block; 
        position: relative;
        margin-top: 2rem; 
    }
    .scroll-visual-side { 
        display: block; 
        width: 100%;
        position: absolute;
        top: 0; left: 0; bottom: 0; right: 0;
        height: 100%;
        z-index: 10;
        pointer-events: none;
    }
    .scroll-visual-side .sticky-mockup-wrapper {
        position: sticky;
        top: 45vh; /* Stick to the bottom half */
        height: 55vh;
        margin-top: 45vh; /* Push down to avoid covering container top */
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        background: linear-gradient(to bottom, rgba(11, 19, 32, 0) 0%, rgba(11, 19, 32, 1) 15%, rgba(11, 19, 32, 1) 100%);
    }
    .scroll-visual-side .large-mockup {
        transform: scale(0.65);
        transform-origin: top center;
    }
    .scroll-text-side { 
        width: 100%; 
        padding-right: 0; 
        margin-top: 0;
        position: relative;
        z-index: 2;
        pointer-events: none;
    }
    .scroll-step { 
        min-height: 100vh; 
        padding-top: 15vh; /* Start text 15% from top */
        padding-bottom: 55vh; /* Prevent text from overlapping phone in bottom 55% */
        justify-content: flex-start;
        opacity: 0; /* Complete fade out for non-active on mobile */
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
    .scroll-step.active {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-step .feature-title {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    .scroll-step .feature-text {
        font-size: 1.1rem;
    }
    
    .footer-top { flex-direction: column; gap: 2rem; text-align: center; align-items: center; }
    .footer-links { flex-direction: column; gap: 1rem; }
}
