:root {
    --brand: #00ceac;
    --brand-glow: rgba(0, 206, 172, 0.4);
    --bg-deep: #050a10;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-nebula: linear-gradient(135deg, #00ceac 0%, #a855f7 100%);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* --- Background Nebula Effect --- */
.nebula {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 206, 172, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.05) 0%, transparent 40%);
    z-index: -1;
}

/* --- Navbar --- */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    background: rgba(5, 10, 16, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -1px;
    display: flex; align-items: center; gap: 12px;
}

.nav-logo span { color: var(--brand); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-item { text-decoration: none; color: var(--text-dim); font-weight: 500; font-size: 0.95rem; transition: var(--transition); }
.nav-item:hover { color: var(--brand); }

.nav-cta {
    background: var(--brand);
    color: #050a10;
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 14px var(--brand-glow);
}

.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--brand-glow); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.nav-cta-mobile { display: none; }

/* --- Hero Section --- */
.hero {
    padding: 12rem 4rem 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100vh;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 2rem;
    display: flex; align-items: center; gap: 8px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -4px;
    line-height: 0.95;
    margin-bottom: 2rem;
    max-width: 1000px;
}

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

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-dim);
    max-width: 700px;
    margin-bottom: 3.5rem;
}

.hero-btns { display: flex; gap: 1.5rem; }

.btn-magical {
    background: var(--text-main);
    color: var(--bg-deep);
    padding: 1.2rem 3rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: flex; align-items: center; gap: 10px;
}

.btn-magical:hover { scale: 1.05; background: var(--brand); color: #000; }

.btn-ghost {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 1.2rem 3rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }

/* --- Showcase --- */
.showcase {
    width: 100%; max-width: 1200px;
    margin: -4rem auto 8rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1rem;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    overflow: hidden;
}

.showcase img { width: 100%; border-radius: 16px; filter: grayscale(0.2); transition: var(--transition); }
.showcase:hover img { filter: grayscale(0); }

/* --- Features --- */
.section-wrap { padding: 8rem 4rem; max-width: 1300px; margin: 0 auto; }
.label { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; margin-bottom: 1rem; display: block; }
.title { font-size: 3rem; font-weight: 800; margin-bottom: 4rem; letter-spacing: -1px; }

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

.feature-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--brand);
    transform: translateY(-10px);
}

.feature-item i { font-size: 2.5rem; color: var(--brand); margin-bottom: 2rem; display: block; }
.feature-item h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.feature-item p { color: var(--text-dim); }

/* --- Integration Preview --- */
.integration-section {
    background: #0a0f18;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 10rem 4rem;
}

.integration-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.integration-content { flex: 1; min-width: 300px; }
.integration-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 2rem; }
.integration-desc { color: var(--text-dim); margin-bottom: 2rem; }

.integration-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.integration-list li { display: flex; gap: 10px; align-items: center; }
.integration-list i { color: var(--brand); }

.integration-visual { flex: 1; min-width: 320px; }

.code-preview {
    background: #000;
    border-radius: 16px;
    padding: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    position: relative;
    overflow-x: hidden;
}

.code-preview::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 206, 172, 0.1), transparent);
}

/* --- Footer --- */
footer {
    padding: 6rem 4rem 4rem;
    border-top: 1px solid var(--glass-border);
    display: flex; flex-direction: column; align-items: center;
}

.footer-logo { font-size: 2rem; font-weight: 800; margin-bottom: 2rem; text-decoration: none; color: white; }
.footer-links { display: flex; gap: 3rem; margin-bottom: 4rem; }
.footer-links a { color: var(--text-dim); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--brand); }

.copyright { color: rgba(255,255,255,0.2); font-size: 0.9rem; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .navbar { padding: 0 2rem; }
    .hero { padding: 8rem 2rem 4rem; }
    .section-wrap { padding: 6rem 2rem; }
    
    .menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(5, 10, 16, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        transition: var(--transition);
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active { right: 0; }
    .nav-item { font-size: 1.5rem; }
    .nav-cta { display: none; }
    .nav-cta-mobile {
        display: block;
        background: var(--brand);
        color: #000;
        padding: 1rem 3rem;
        border-radius: 12px;
        text-decoration: none;
        font-weight: 700;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero { padding: 7rem 1rem 4rem; }
    .hero h1 { font-size: 2.6rem; letter-spacing: -1px; }
    .hero p { font-size: 1rem; margin-bottom: 2.5rem; }
    .hero-btns { flex-direction: column; width: 100%; gap: 1rem; }
    .btn-magical, .btn-ghost { justify-content: center; width: 100%; padding: 1rem; font-size: 1rem; }
    
    .section-wrap { padding: 4rem 1rem; }
    .title { font-size: 2rem; margin-bottom: 3rem; }
    .features-grid { grid-template-columns: 1fr; gap: 1rem; }
    .feature-item { padding: 2rem; }

    .integration-section { padding: 4rem 1rem; }
    .integration-container { gap: 2.5rem; }
    .integration-content { min-width: 100%; }
    .integration-title { font-size: 1.8rem; }
    .integration-visual { min-width: 100%; }
    .code-preview { padding: 1.5rem; font-size: 0.8rem; }
}

@media (max-width: 530px) {
    .hero h1 { font-size: 2.2rem; }
    .footer-logo { font-size: 1.5rem; margin-bottom: 1.5rem; }
    .footer-links { 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 1rem 2rem; 
    }
    .footer-links a { font-size: 0.9rem; }
    .copyright { text-align: center; line-height: 1.4; }
}
