:root {
    --bg-dark: #050510;
    --accent: #7b61ff;
    --text-gray: #b0b0b0;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}


html, body {
    width: 100%;
    overflow-x: hidden; /* Stops horizontal wobble */
    background-color: var(--bg-dark);
    font-family: 'Inter', sans-serif;
    color: white;
    line-height: 1.6;
}

/* NAVBAR */
nav {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 15px 5%; 
    position: sticky; 
    top: 0; 
    background: rgba(5, 5, 16, 0.95); 
    backdrop-filter: blur(10px);
    z-index: 100;
}
.logo { font-size: 1.4rem; font-weight: bold; display: flex; align-items: center; gap: 10px; }
.nav-links a { color: var(--text-gray); text-decoration: none; margin: 0 15px; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: white; }
.nav-btn { background: var(--accent); border: none; color: white; padding: 10px 20px; border-radius: 8px; cursor: pointer; }

/* HERO SECTION */
.hero { 
    display: flex; 
    align-items: center; 
    padding: 60px 8%; 
    min-height: auto; /* Slightly reduced */
    gap: 40px;
    position: relative;
    overflow: hidden; /* CRITICAL: Prevents glow-circle from causing extra scroll */
}
.hero-text { flex: 1; z-index: 5; }
.hero-text h1 { 
    font-size: clamp(2.2rem, 6vw, 4rem); 
    line-height: 1.1; 
    margin-bottom: 20px; 
}
.highlight { color: var(--accent); }
.hero-text p { color: var(--text-gray); font-size: 1.1rem; max-width: 500px; margin-bottom: 30px; }

.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }

.btn-primary { background: var(--accent); border: none; color: white; padding: 15px 30px; border-radius: 12px; font-weight: bold; cursor: pointer; box-shadow: 0 10px 20px rgba(123, 97, 255, 0.3); transition: 0.3s; }
.btn-outline { background: transparent; border: 1px solid #333; color: white; padding: 15px 30px; border-radius: 12px; cursor: pointer; transition: 0.3s; }

.hero-mockup { flex: 1; position: relative; display: flex; justify-content: center; }
.hero-mockup img { 
    width: 100%; 
    max-width: 380px; 
    height: auto; 
    z-index: 2; 
    filter: drop-shadow(0 0 50px rgba(123, 97, 255, 0.2)); 
}
.glow-circle { 
    position: absolute; 
    width: 300px; 
    height: 300px; 
    background: radial-gradient(circle, rgba(123,97,255,0.15) 0%, transparent 70%); 
    top: 50%; left: 50%; 
    transform: translate(-50%, -50%); 
    z-index: 1;
}

/* FEATURES */
.features-section { padding: 80px 8%; text-align: center; }
.section-tag { color: var(--accent); font-weight: bold; letter-spacing: 2px; font-size: 0.8rem; margin-bottom: 10px; }
.features-section h2 { font-size: 2.2rem; margin-bottom: 50px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.f-card { background: white; color: black; padding: 40px 30px; border-radius: 20px; text-align: left; transition: 0.3s; }
.f-card:hover { transform: translateY(-10px); }

/* SCREENSHOTS SECTION */
.screenshots-section { padding: 60px 0; text-align: center; }
.screenshots-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 8%;
    justify-content: flex-start;
    scrollbar-width: none;
}
.screenshots-container::-webkit-scrollbar { display: none; }
.screenshots-container img {
    width: 220px;
    flex-shrink: 0;
    border-radius: 25px;
    border: 4px solid #1a1a2e;
}

/* VIDEO & DOC SPLIT SECTION */
.video-doc-split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: #0a0a1a;
    padding: 60px 8%;
    gap: 40px;
}
.video-half, .doc-half { flex: 1 1 320px; }
.video-container {
    width: 100%;
    max-width: 280px; 
    border-radius: 25px;
    overflow: hidden;
    margin: 0 auto;
}
.video-container video { width: 100%; display: block; }

/* FOOTER */
footer { 
    background: #02020a; 
    padding: 60px 8% 30px; 
    border-top: 1px solid #1a1a2e; 
}
.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 40px; 
}
.footer-bottom { 
    text-align: center; 
    border-top: 1px solid #1a1a2e; 
    padding-top: 25px; 
    margin-top: 40px;
    color: #444; 
    font-size: 0.85rem; 
}

/* TABLET (900px) */
@media (max-width: 900px) {
    .hero { 
        flex-direction: column; 
        text-align: center; 
        padding: 60px 5%; 
        min-height: auto; /* Fixes extra vertical space */
    }
    .hero-text p { margin: 0 auto 30px; }
    .hero-actions { justify-content: center; }
    .hero-mockup img { max-width: 300px; }
    .nav-links { display: none; }
}

/* MOBILE (600px) */
@media (max-width: 600px) {
    .hero-text h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-primary, .btn-outline { width: 100%; text-align: center; }
    
    .features-section, .video-doc-split { padding: 40px 5%; }
    .video-half, .doc-half { min-width: 100%; }
    
    .doc-content { text-align: center; }
    .doc-content li { text-align: left; }
}