:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4338ca;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --dark: #0f172a;
    --darker: #020617;
    --surface: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    --gray-dark: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    --gradient-accent: linear-gradient(135deg, #06b6d4, #6366f1);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Outfit', sans-serif;
    background: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.7;
}

/* ── Utility ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section-pad { padding: 7rem 5%; }
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; margin-bottom: 1rem; }
.section-header p { color: var(--gray); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }
.section-label {
    display: inline-block; padding: 0.35rem 1rem; border-radius: 999px;
    font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
    background: rgba(99,102,241,0.12); color: var(--primary-light);
    border: 1px solid rgba(99,102,241,0.2); margin-bottom: 1.2rem;
}

/* ── Animated BG ── */
.bg-mesh {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(99,102,241,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(236,72,153,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(6,182,212,0.06) 0%, transparent 60%);
}
.particle {
    position: absolute; width: 4px; height: 4px; border-radius: 50%;
    background: var(--primary-light); opacity: 0;
    animation: floatParticle 12s infinite ease-in-out;
}
.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 80%; top: 30%; animation-delay: 2s; width: 3px; height: 3px; }
.particle:nth-child(3) { left: 50%; top: 70%; animation-delay: 4s; width: 5px; height: 5px; background: var(--secondary); }
.particle:nth-child(4) { left: 30%; top: 80%; animation-delay: 6s; }
.particle:nth-child(5) { left: 70%; top: 10%; animation-delay: 8s; width: 3px; height: 3px; background: var(--accent); }
.particle:nth-child(6) { left: 90%; top: 60%; animation-delay: 3s; }
@keyframes floatParticle {
    0%, 100% { opacity: 0; transform: translateY(0) scale(1); }
    25% { opacity: 0.6; }
    50% { opacity: 0.8; transform: translateY(-80px) scale(1.5); }
    75% { opacity: 0.4; }
}

/* ── Navbar ── */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(2,6,23,0.6); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border); transition: all 0.4s ease;
}
nav.scrolled { background: rgba(2,6,23,0.92); padding: 0.7rem 5%; box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.logo {
    font-size: 1.6rem; font-weight: 800; text-decoration: none;
    display: flex; align-items: center; gap: 0.6rem;
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.logo svg { filter: drop-shadow(0 0 8px rgba(129,140,248,0.4)); }
.nav-links { display: flex; gap: 1.8rem; align-items: center; }
.nav-links a {
    color: var(--gray); text-decoration: none; font-weight: 500;
    font-size: 0.95rem; transition: color 0.3s; position: relative;
}
.nav-links a:hover { color: white; }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0;
    height: 2px; background: var(--gradient-primary); transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

/* Mobile Menu */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: white; margin: 5px 0; transition: 0.3s; border-radius: 2px; }
.mobile-menu {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(2,6,23,0.97); backdrop-filter: blur(20px);
    flex-direction: column; align-items: center; justify-content: center; gap: 2rem; z-index: 999;
}
.mobile-menu.active { display: flex; }
.mobile-menu a { color: white; text-decoration: none; font-size: 1.4rem; font-weight: 600; }
.mobile-close { position: absolute; top: 1.5rem; right: 5%; background: none; border: none; color: white; font-size: 2rem; cursor: pointer; }

/* ── Buttons ── */
.btn {
    padding: 0.8rem 1.8rem; border-radius: 999px; font-weight: 600;
    text-decoration: none; transition: all 0.35s ease; cursor: pointer;
    border: none; display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.95rem; font-family: 'Outfit', sans-serif;
}
.btn-primary {
    background: var(--gradient-primary); color: white;
    box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(99,102,241,0.5); }
.btn-outline {
    background: transparent; border: 1px solid rgba(255,255,255,0.15); color: var(--light);
}
.btn-outline:hover { background: rgba(255,255,255,0.06); border-color: var(--primary-light); color: white; }
.btn-ghost { background: transparent; color: var(--primary-light); padding: 0.8rem 0; }
.btn-ghost:hover { color: white; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }

/* ── Hero ── */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding: 8rem 5% 4rem; position: relative;
}
.hero-inner { max-width: 1200px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-text { z-index: 10; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 1rem 0.4rem 0.5rem; border-radius: 999px;
    background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
    font-size: 0.82rem; font-weight: 600; color: var(--primary-light); margin-bottom: 1.5rem;
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem;
}
.hero h1 span {
    background: linear-gradient(135deg, #818cf8, #c084fc, #f0abfc);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc { font-size: 1.15rem; color: var(--gray); margin-bottom: 2.5rem; max-width: 500px; line-height: 1.8; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { position: relative; z-index: 10; }
.hero-img-wrap {
    border-radius: 1.2rem; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), var(--shadow-glow);
    transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.6s ease;
}
.hero-img-wrap:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg) scale(1.02); }
.hero-img-wrap img { width: 100%; display: block; }
.hero-glow {
    position: absolute; width: 300px; height: 300px; border-radius: 50%;
    background: var(--primary); filter: blur(120px); opacity: 0.2;
    top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: -1;
}

/* ── Stats ── */
.stats { padding: 4rem 5%; position: relative; z-index: 20; margin-top: -2rem; }
.stats-grid {
    max-width: 900px; margin: 0 auto; display: grid;
    grid-template-columns: repeat(4, 1fr); gap: 2rem;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 1.5rem; padding: 2.5rem; backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.stat-item { text-align: center; }
.stat-number { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.3rem; }
.stat-label { font-size: 0.85rem; color: var(--gray-dark); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Features ── */
.features { background: var(--dark); position: relative; overflow: hidden; }
.features::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.3), transparent);
}
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; max-width: 1200px; margin: 0 auto;
}
.feature-card {
    background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border);
    border-radius: 1.2rem; padding: 2rem; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.06) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.4s;
}
.feature-card:hover { transform: translateY(-8px); border-color: rgba(99,102,241,0.25); box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(99,102,241,0.08); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 52px; height: 52px; border-radius: 0.8rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.2rem; font-size: 1.4rem; position: relative; z-index: 1;
}
.fi-indigo { background: rgba(99,102,241,0.12); color: #818cf8; border: 1px solid rgba(99,102,241,0.15); }
.fi-pink { background: rgba(236,72,153,0.12); color: #f472b6; border: 1px solid rgba(236,72,153,0.15); }
.fi-cyan { background: rgba(6,182,212,0.12); color: #22d3ee; border: 1px solid rgba(6,182,212,0.15); }
.fi-green { background: rgba(34,197,94,0.12); color: #4ade80; border: 1px solid rgba(34,197,94,0.15); }
.fi-orange { background: rgba(249,115,22,0.12); color: #fb923c; border: 1px solid rgba(249,115,22,0.15); }
.fi-purple { background: rgba(168,85,247,0.12); color: #c084fc; border: 1px solid rgba(168,85,247,0.15); }
.fi-yellow { background: rgba(234,179,8,0.12); color: #facc15; border: 1px solid rgba(234,179,8,0.15); }
.fi-rose { background: rgba(244,63,94,0.12); color: #fb7185; border: 1px solid rgba(244,63,94,0.15); }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; font-weight: 600; position: relative; z-index: 1; }
.feature-card p { color: var(--gray-dark); font-size: 0.92rem; line-height: 1.6; position: relative; z-index: 1; }

/* ── Module Deep Dive ── */
.module-details { background: var(--darker); position: relative; }
.module-row {
    max-width: 1100px; margin: 0 auto 4rem; display: grid;
    grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center;
}
.module-row:last-child { margin-bottom: 0; }
.module-row-reverse { direction: ltr; }
.module-row-reverse .module-row-content { order: 2; }
.module-row-reverse .module-row-visual { order: 1; }
.module-row-content { direction: ltr; }
[dir="rtl"] .module-row-content { direction: rtl; }
.module-row-icon {
    width: 56px; height: 56px; border-radius: 0.8rem;
    display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.module-row-content h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.6rem; }
.module-row-content > p { color: var(--gray); font-size: 1rem; margin-bottom: 1.5rem; line-height: 1.7; }
.module-features-list {
    list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.5rem;
}
.module-features-list li {
    color: var(--gray); font-size: 0.9rem; padding-left: 1.6rem; position: relative; line-height: 1.5;
}
.module-features-list li::before {
    content: '✓'; position: absolute; left: 0; color: var(--primary-light);
    font-weight: 700; font-size: 0.85rem;
}
[dir="rtl"] .module-features-list li { padding-left: 0; padding-right: 1.6rem; }
[dir="rtl"] .module-features-list li::before { left: auto; right: 0; }
.module-row-visual { display: flex; justify-content: center; }
.module-visual-card {
    background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
    border-radius: 1.2rem; padding: 2rem; display: flex; flex-direction: column;
    gap: 1.5rem; width: 100%; max-width: 320px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.visual-stat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.visual-stat-num { font-size: 2rem; font-weight: 800; line-height: 1.2; }
.visual-stat-label { font-size: 0.8rem; color: var(--gray-dark); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.2rem; }

/* ── How It Works ── */
.how-it-works { background: var(--darker); position: relative; }
.steps-grid { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-card { text-align: center; padding: 2rem 1.5rem; position: relative; }
.step-num {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1.5rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800;
    background: var(--gradient-primary); color: white;
    box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}
.step-card h3 { font-size: 1.2rem; margin-bottom: 0.8rem; font-weight: 600; }
.step-card p { color: var(--gray-dark); font-size: 0.95rem; }
.step-connector {
    position: absolute; top: 28px; right: -1rem; width: calc(100% - 56px);
    height: 2px; background: linear-gradient(90deg, rgba(99,102,241,0.4), rgba(99,102,241,0.1));
    transform: translateX(100%);
}
.step-card:last-child .step-connector { display: none; }

/* ── Testimonials ── */
.testimonials { background: var(--dark); position: relative; overflow: hidden; }
.testimonials::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(236,72,153,0.3), transparent);
}
.testimonials-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card {
    background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
    border-radius: 1.2rem; padding: 2rem; position: relative;
}
.testimonial-card::before {
    content: '"'; position: absolute; top: 1rem; right: 1.5rem;
    font-size: 4rem; color: rgba(99,102,241,0.15); font-family: Georgia, serif; line-height: 1;
}
.testimonial-text { color: var(--gray); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.7; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--gradient-primary); display: flex; align-items: center;
    justify-content: center; font-weight: 700; font-size: 1rem; color: white;
}
.testimonial-info h4 { font-size: 0.95rem; font-weight: 600; }
.testimonial-info span { font-size: 0.82rem; color: var(--gray-dark); }
.testimonial-stars { color: #facc15; font-size: 0.85rem; margin-bottom: 1rem; letter-spacing: 2px; }

/* ── CTA ── */
.cta-section { background: var(--darker); position: relative; overflow: hidden; }
.cta-box {
    max-width: 800px; margin: 0 auto; text-align: center; padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(168,85,247,0.08));
    border: 1px solid rgba(99,102,241,0.2); border-radius: 2rem;
    position: relative; overflow: hidden;
}
.cta-box::before {
    content: ''; position: absolute; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.15), transparent 70%);
    top: -200px; right: -200px; filter: blur(60px);
}
.cta-box h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; position: relative; }
.cta-box p { color: var(--gray); font-size: 1.05rem; margin-bottom: 2rem; position: relative; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-box .btn { position: relative; }

/* ── Contact ── */
.contact { background: var(--dark); position: relative; }
.contact-container {
    max-width: 700px; margin: 0 auto;
    background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
    border-radius: 1.5rem; padding: 2.5rem; backdrop-filter: blur(10px);
}
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.9rem; font-weight: 500; color: var(--gray); }
.form-control {
    background: rgba(15,23,42,0.6); border: 1px solid var(--glass-border);
    color: white; padding: 0.75rem 1rem; border-radius: 0.6rem;
    font-size: 0.95rem; outline: none; transition: all 0.3s;
    font-family: 'Outfit', sans-serif;
}
.form-control:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.form-control::placeholder { color: var(--gray-dark); }
textarea.form-control { min-height: 110px; resize: vertical; }

/* ── Footer ── */
footer {
    background: var(--darker); border-top: 1px solid var(--glass-border); padding: 4rem 5% 2rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--gray-dark); font-size: 0.9rem; margin-top: 0.8rem; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--gray-dark); text-decoration: none; font-size: 0.9rem; margin-bottom: 0.6rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
    border-top: 1px solid var(--glass-border); padding-top: 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--gray-dark); font-size: 0.85rem;
}
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05); color: var(--gray); border: 1px solid var(--glass-border);
    transition: all 0.3s; text-decoration: none;
}
.footer-social a:hover { background: rgba(99,102,241,0.15); color: var(--primary-light); border-color: rgba(99,102,241,0.3); }

/* ── Scroll Animations ── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin: 0 auto 2.5rem; }
    .hero-btns { justify-content: center; }
    .hero-visual { max-width: 600px; margin: 0 auto; }
    .hero-img-wrap { transform: none; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .module-row { grid-template-columns: 1fr; gap: 2rem; }
    .module-row-reverse .module-row-content { order: 1; }
    .module-row-reverse .module-row-visual { order: 2; }
    .module-visual-card { max-width: 100%; flex-direction: row; justify-content: space-around; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr; max-width: 400px; }
    .step-connector { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .hero h1 { font-size: 2.2rem; }
    .module-features-list { grid-template-columns: 1fr; }
    .module-visual-card { flex-direction: column; }
    .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; padding: 1.5rem; gap: 1.5rem; }
    .stat-number { font-size: 1.6rem; }
    .hero { padding-top: 6rem; }
}
