:root {
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.4);
    --secondary: #ec4899;
    --secondary-glow: rgba(236, 72, 153, 0.4);
    --tertiary: #8b5cf6;
    --bg-dark: #09090b;
    --bg-card: rgba(24, 24, 27, 0.5);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #fafafa;
    --text-muted: #a1a1aa;
    
    --radius-lg: 24px;
    --radius-md: 16px;
    
    /* Utilities */
    --c-blue: #3b82f6;
    --c-purple: #8b5cf6;
    --c-pink: #ec4899;
    --c-green: #10b981;
    --c-orange: #f59e0b;
    --c-teal: #14b8a6;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
h1, h2, h3, h4, .logo, .badge, .brand-title { font-family: 'Outfit', sans-serif; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Branding */
.brand-container {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
}
.brand-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #f3f4f6;
    margin-bottom: 0;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    line-height: 1;
}
.brand-title::after {
    content: '';
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 45%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #6366f1, #ec4899);
}
.brand-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: #9ca3af;
    margin-top: -2px;
    padding-right: 2px;
}

/* Background Blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite alternate ease-in-out;
}
.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%); }
.blob-2 { bottom: -20%; right: -10%; width: 60vw; height: 60vw; background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%); animation-delay: -5s; }
.blob-3 { top: 40%; left: 40%; width: 40vw; height: 40vw; background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%); animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #a78bfa, #f472b6, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(79, 70, 229, 0.3);
    color: #a78bfa;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.glow-badge {
    background: rgba(236, 72, 153, 0.15);
    border-color: rgba(236, 72, 153, 0.3);
    color: #f472b6;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
}

.bg-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.bg-purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }
.bg-pink { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.bg-green { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.bg-orange { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.bg-teal { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; border: 1px solid rgba(20, 184, 166, 0.3); }

.text-blue { color: #60a5fa; }
.text-purple { color: #a78bfa; }
.text-pink { color: #f472b6; }

/* Buttons */
.btn-gradient {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: 0.3s;
    border: none;
    cursor: pointer;
}
.btn-gradient:hover {
    box-shadow: 0 8px 25px var(--secondary-glow);
    transform: translateY(-2px);
    filter: brightness(1.1);
}
.btn-gradient.large {
    padding: 18px 40px;
    font-size: 1.1rem;
    border-radius: 16px;
}
.btn-outline {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.mt-4 { margin-top: 30px; }

/* Scroll Animations */
.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Nav */
.glass-nav {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    padding: 15px 0;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 30px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-links .btn-primary {
    background: var(--primary); padding: 10px 20px; border-radius: 10px; font-weight: 600; color: white;
}
.nav-links .btn-primary:hover { background: #6366f1; color: white; box-shadow: 0 4px 12px var(--primary-glow); }
.mobile-menu-btn { display: none; font-size: 1.8rem; cursor: pointer; }

/* Hero */
.hero {
    max-width: 1200px; margin: 0 auto; padding: 160px 30px 100px;
    display: flex; align-items: center; gap: 60px; min-height: 100vh;
}
.hero-content { flex: 1; }
.hero-title { font-size: 4rem; line-height: 1.1; font-weight: 800; margin-bottom: 24px; letter-spacing: -1px; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; max-width: 500px; }
.hero-actions { display: flex; gap: 20px; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 40px; border-top: 1px solid var(--glass-border); padding-top: 30px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 2rem; font-weight: 800; font-family: 'Outfit'; color: var(--text-main); }
.stat-label { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

.hero-visual { flex: 1; position: relative; perspective: 1000px; }
.glass-mockup {
    background: rgba(15, 15, 20, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    transform: rotateY(-15deg) rotateX(10deg);
    transition: 0.5s;
    height: auto;
}
.glass-mockup:hover { transform: rotateY(-5deg) rotateX(5deg); }
.mockup-header { background: rgba(0,0,0,0.4); padding: 15px 20px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dots { display: flex; gap: 8px; margin-right: 20px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; }
.dots .red { background: #ff5f56; } .dots .yellow { background: #ffbd2e; } .dots .green { background: #27c93f; }
.url { flex: 1; background: rgba(255,255,255,0.05); padding: 6px 15px; border-radius: 6px; text-align: center; font-size: 0.85rem; color: #a1a1aa; font-family: monospace; }
.mockup-body { padding: 20px; }
.mockup-body pre { font-family: 'Fira Code', monospace; color: #e2e8f0; font-size: 0.95rem; white-space: pre-wrap; }
.mockup-body .language-php { color: #f472b6; }

.floating-icon {
    position: absolute; width: 60px; height: 60px; border-radius: 16px;
    display: flex; justify-content: center; align-items: center; font-size: 1.5rem;
    animation: float-icon 4s infinite alternate ease-in-out;
}
.fi-1 { top: -20px; right: -20px; color: #a78bfa; animation-delay: 0s; }
.fi-2 { bottom: 40px; left: -30px; color: #34d399; animation-delay: -1s; }
.fi-3 { bottom: -20px; right: 40px; color: #f472b6; animation-delay: -2s; }

@keyframes float-icon {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(10deg); }
}

/* Sections */
section { max-width: 1200px; margin: 0 auto; padding: 120px 30px; border-top: 1px solid var(--glass-border); }
.section-header { text-align: center; margin-bottom: 70px; max-width: 700px; margin-inline: auto; }
.section-header h2 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; }
.section-header p { font-size: 1.1rem; color: var(--text-muted); }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card { padding: 40px 30px; }
.feature-icon { width: 50px; height: 50px; border-radius: 14px; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* AI Section */
.ai-section { border-top: none; padding-top: 60px; }
.ai-container { display: flex; align-items: center; gap: 60px; background: rgba(24, 24, 27, 0.4); border-radius: var(--radius-lg); padding: 60px; border: 1px solid var(--glass-border); position: relative; overflow: hidden; }
.ai-text { flex: 1; z-index: 2; }
.ai-text h2 { font-size: 2.8rem; font-weight: 800; margin-bottom: 20px; }
.ai-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; }
.check-list { list-style: none; }
.check-list li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; color: #d4d4d8; }
.check-list li i { font-size: 1.2rem; margin-top: -2px; }

.ai-visual { flex: 1; position: relative; z-index: 2; }
.ai-mockup { padding: 25px; border-color: rgba(236, 72, 153, 0.3); }
.ai-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-weight: 600; font-family: 'Outfit'; font-size: 1.1rem; }
.ai-prompt-box { background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); padding: 15px; border-radius: 12px; color: #e2e8f0; font-style: italic; margin-bottom: 20px; }
.ai-loading { display: flex; align-items: center; gap: 15px; color: var(--text-muted); font-size: 0.9rem; }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.1); border-top-color: #ec4899; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.ai-glow-orb { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 300px; height: 300px; background: radial-gradient(circle, rgba(236,72,153,0.3) 0%, transparent 70%); filter: blur(40px); z-index: -1; animation: pulse 4s infinite alternate; }

/* Benefits */
.benefits-grid { display: flex; flex-direction: column; gap: 30px; max-width: 800px; margin: 0 auto; }
.benefit-row { display: flex; gap: 24px; background: rgba(255,255,255,0.02); padding: 30px; border-radius: var(--radius-md); border: 1px solid var(--glass-border); transition: 0.3s; }
.benefit-row:hover { background: rgba(255,255,255,0.04); transform: scale(1.02); }
.b-icon { font-size: 2.5rem; color: var(--primary); }
.b-content h4 { font-size: 1.5rem; margin-bottom: 10px; }
.b-content p { color: var(--text-muted); }

/* How To */
.steps-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.step-card { padding: 40px; text-align: center; position: relative; overflow: hidden; }
.step-number { position: absolute; top: -10px; right: -10px; font-size: 8rem; font-weight: 900; color: rgba(255,255,255,0.03); font-family: 'Outfit'; line-height: 1; }
.step-icon { font-size: 3rem; margin-top: 20px; display: inline-block; }
.step-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Github */
.github-section { padding-top: 60px; border-top: none; }
.github-container { padding: 60px; text-align: center; background: linear-gradient(135deg, rgba(24, 24, 27, 0.8), rgba(9, 9, 11, 0.9)); border-color: rgba(255,255,255,0.15); overflow: hidden; position: relative; }
.gh-logo { font-size: 4rem; color: #fff; margin-bottom: 20px; display: inline-block; }
.gh-content h2 { font-size: 2.5rem; margin-bottom: 15px; }
.gh-content p { color: var(--text-muted); max-width: 600px; margin: 0 auto 30px; font-size: 1.1rem; }
.gh-decoration { position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: -1; pointer-events: none; opacity: 0.1; }
.gh-line { position: absolute; background: #fff; }
.gh-line:nth-child(1) { width: 100%; height: 1px; top: 30%; }
.gh-line:nth-child(2) { width: 1px; height: 100%; left: 20%; }
.gh-line:nth-child(3) { width: 100%; height: 1px; bottom: 20%; transform: rotate(15deg); }

/* CTA */
.cta { text-align: center; border-top: none; }
.cta-inner { padding: 80px 40px; background: radial-gradient(circle at center, rgba(79, 70, 229, 0.2) 0%, transparent 60%); border-radius: var(--radius-lg); }
.cta h2 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; }
.cta p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; max-width: 600px; margin-inline: auto; }

/* Footer */
footer { border-top: 1px solid var(--glass-border); padding: 60px 30px; background: rgba(0,0,0,0.3); }
.footer-content { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; font-size: 1.5rem; font-weight: 700; font-family: 'Outfit'; }
.footer-links h4 { margin-bottom: 20px; font-size: 1.1rem; color: #fff; }
.footer-links a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 12px; transition: 0.2s; }
.footer-links a:hover { color: var(--primary); }
.copyright { grid-column: 1 / -1; text-align: center; color: #52525b; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); }

/* Responsive */
@media (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; padding-top: 180px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { width: 100%; max-width: 500px; margin: 40px auto 0; }
    .glass-mockup { transform: none !important; }
    
    .ai-container { flex-direction: column; text-align: center; }
    .check-list li { justify-content: center; text-align: left; }
    
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { justify-content: center; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    .hero-actions { flex-direction: column; }
    .section-header h2, .cta h2 { font-size: 2.2rem; }
    .nav-links { 
        display: none; 
        position: absolute; 
        top: 100%; left: 0; width: 100%; 
        background: rgba(9, 9, 11, 0.95); 
        backdrop-filter: blur(16px); 
        flex-direction: column; 
        padding: 20px; 
        border-bottom: 1px solid var(--glass-border); 
        text-align: center;
    }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
}
