/* ========== RESET & VARIABLES ========== */
:root {
    --bg-primary: #0a0a1e;
    --bg-secondary: #111133;
    --bg-card: #1a1a3e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0cc;
    --text-muted: #666688;
    --accent-1: #6c5ce7;
    --accent-2: #00cec9;
    --accent-3: #fd79a8;
    --accent-4: #fdcb6e;
    --gradient-1: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --gradient-2: linear-gradient(135deg, #00cec9, #81ecec);
    --gradient-3: linear-gradient(135deg, #fd79a8, #fab1a0);
    --gradient-hero: linear-gradient(135deg, #6c5ce7 0%, #00cec9 50%, #fd79a8 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(108, 92, 231, 0.3);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 30, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 30, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.logo-icon {
    font-size: 28px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.download-btn {
    background: var(--gradient-1);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
}

.nav-link.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-1);
    border-radius: 50%;
    animation: float 6s infinite;
    opacity: 0.6;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; background: var(--accent-1); }
.particle:nth-child(2) { top: 60%; left: 80%; animation-delay: 1s; background: var(--accent-2); }
.particle:nth-child(3) { top: 30%; left: 50%; animation-delay: 2s; background: var(--accent-3); }
.particle:nth-child(4) { top: 70%; left: 30%; animation-delay: 3s; background: var(--accent-4); }
.particle:nth-child(5) { top: 10%; left: 70%; animation-delay: 4s; background: var(--accent-1); }
.particle:nth-child(6) { top: 80%; left: 60%; animation-delay: 5s; background: var(--accent-2); }
.particle:nth-child(7) { top: 40%; left: 20%; animation-delay: 1.5s; background: var(--accent-3); }
.particle:nth-child(8) { top: 50%; left: 90%; animation-delay: 2.5s; background: var(--accent-4); }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.6; }
    25% { transform: translateY(-30px) translateX(20px) scale(1.5); opacity: 1; }
    50% { transform: translateY(-10px) translateX(-10px) scale(1); opacity: 0.6; }
    75% { transform: translateY(-40px) translateX(-20px) scale(1.5); opacity: 1; }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(108, 92, 231, 0.2);
    border: 1px solid rgba(108, 92, 231, 0.5);
    color: var(--accent-1);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(108, 92, 231, 0); }
}

.hero-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-subtitle strong {
    color: var(--accent-4);
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-bottom: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-icon {
    font-size: 20px;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(108, 92, 231, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--accent-1);
    border: 2px solid var(--accent-1);
}

.btn-outline:hover {
    background: var(--accent-1);
    color: white;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

/* ========== HERO PHONE ========== */
.hero-phone {
    max-width: 320px;
    margin: 0 auto;
}

.phone-screen {
    background: var(--bg-card);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--shadow), var(--shadow-glow);
}

.screen-header {
    font-size: 12px;
    color: var(--accent-2);
    margin-bottom: 12px;
    text-align: center;
}

.screen-code {
    background: #000;
    border-radius: var(--radius-sm);
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.code-keyword { color: #c678dd; }
.code-func { color: #61afef; }
.code-method { color: #e5c07b; }
.code-number { color: #d19a66; }

/* ========== SECTIONS ========== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 60px;
}

/* ========== FEATURES GRID ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-1);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ========== STEPS ========== */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.step {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.step-icon {
    font-size: 40px;
    margin: 16px 0;
}

.step-arrow {
    font-size: 32px;
    color: var(--accent-1);
    font-weight: 700;
}

/* ========== SCRIPTS GRID ========== */
.scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.script-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.script-card:hover {
    border-color: var(--accent-2);
    transform: translateY(-3px);
}

.script-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.script-card h3 {
    margin-bottom: 8px;
}

.script-card p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
}

.script-tag {
    display: inline-block;
    background: rgba(0, 206, 201, 0.2);
    color: var(--accent-2);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
    background: var(--bg-secondary);
}

.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
}

.quote {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 72px;
    color: var(--accent-1);
    opacity: 0.3;
    font-family: serif;
    line-height: 1;
}

.testimonial-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    font-size: 40px;
}

.author-info strong {
    display: block;
}

.author-info span {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== DOWNLOAD ========== */
.download {
    text-align: center;
}

.download-card {
    background: var(--bg-card);
    border: 2px solid rgba(108, 92, 231, 0.3);
    border-radius: var(--radius);
    padding: 48px;
    max-width: 500px;
    margin: 0 auto;
}

.download-icon {
    font-size: 72px;
    margin-bottom: 16px;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 24px 0;
}

.download-info span {
    color: var(--text-secondary);
    font-size: 14px;
}

.download-note {
    color: var(--text-muted);
    font-size: 13px;
    margin: 16px 0 8px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 24px 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-1);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 32px;
    }
}