/* style.css */

/* 1. CSS VARIABLES & THEME CONFIGURATION */
:root {
    --bg-dark: #070A13;
    --bg-card: rgba(17, 24, 39, 0.55);
    --bg-card-hover: rgba(17, 24, 39, 0.75);
    --primary-green: #10B981;
    --primary-green-glow: rgba(16, 185, 129, 0.15);
    --primary-green-glow-strong: rgba(16, 185, 129, 0.35);
    --accent-emerald: #059669;
    --accent-glow: #16A34A;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(16, 185, 129, 0.25);
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --text-muted-dark: #6B7280;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease-out;
}

/* 2. BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* 3. COMMON LAYOUT CONTAINERS */
.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 4. BUTTON SYSTEM */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 12px;
    padding: 12px 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    gap: 8px;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-emerald) 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 20px var(--primary-green-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--primary-green-glow-strong);
    background: linear-gradient(135deg, #34D399 0%, var(--primary-green) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* 5. GLASS BADGE */
.badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-green);
    margin-bottom: 24px;
    gap: 8px;
    width: fit-content;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-green);
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* 6. NAVBAR STICKY HEADER */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(7, 10, 19, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    padding: 14px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
    transition: var(--transition-smooth);
}

.logo span {
    background: linear-gradient(135deg, #FFFFFF 30%, #D1D5DB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bolt-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-green);
    filter: drop-shadow(0 0 6px var(--primary-green));
    animation: pulseIcon 3s infinite ease-in-out;
}

@keyframes pulseIcon {
    0%, 100% { filter: drop-shadow(0 0 4px var(--primary-green)); }
    50% { filter: drop-shadow(0 0 10px #34D399); }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-green);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: none;
}

/* 7. GLOW BACKGROUND BLOCKS */
.glow-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.12;
    pointer-events: none;
}

.glow-primary {
    top: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background-color: var(--primary-green);
}

.glow-secondary {
    top: 40%;
    left: -100px;
    width: 450px;
    height: 450px;
    background-color: var(--accent-glow);
}

/* 8. HERO AREA */
.hero-section {
    position: relative;
    padding-top: 160px;
    padding-bottom: 120px;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text-content {
    flex: 1.2;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #FFFFFF 60%, #E5E7EB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-green) 0%, #34D399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    flex: 0.8;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.mockup-frame {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 40px;
    padding: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    max-width: 380px;
    width: 100%;
}

.mockup-screen {
    border-radius: 28px;
    overflow: hidden;
    background: #111827;
    aspect-ratio: 1 / 1;
    position: relative;
}

.mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: var(--transition-smooth);
}

.mockup-frame:hover .mockup-img {
    transform: scale(1.05);
}

/* 9. FEATURES GRID */
.features-section {
    padding: 100px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px 32px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: var(--bg-card-hover);
    border-color: var(--border-glass-hover);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.05);
}

.feature-icon-wrapper {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    margin-bottom: 28px;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--primary-green);
    color: #FFFFFF;
    box-shadow: 0 0 15px var(--primary-green);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* 10. TAB SOLUTIONS SECTION */
.solutions-section {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.tab-controls {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 6px;
    width: fit-content;
    margin: 0 auto 50px;
    gap: 8px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.tab-btn i {
    width: 18px;
    height: 18px;
}

.tab-btn.active {
    background: var(--primary-green);
    color: #FFFFFF;
    box-shadow: 0 4px 15px var(--primary-green-glow-strong);
}

.tab-content-container {
    position: relative;
    width: 100%;
}

.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.tab-pane-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.pane-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.pane-desc {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.pane-list {
    list-style: none;
    margin-bottom: 40px;
}

.pane-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-main);
}

.list-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-green);
    flex-shrink: 0;
}

/* 11. GRAPHIC MOCKUPS (CODE & INFO LIST) */
.pane-graphic {
    display: flex;
    justify-content: center;
}

/* Code Editor Graphics */
.code-editor-mockup {
    background: #090B10;
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.editor-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-glass);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.editor-header .dot.red { background-color: #EF4444; }
.editor-header .dot.yellow { background-color: #F59E0B; }
.editor-header .dot.green { background-color: #10B981; }

.editor-title {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-muted-dark);
    margin-left: 12px;
    font-weight: 500;
}

.editor-body {
    padding: 24px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
}

.editor-body pre {
    color: #E5E7EB;
}

.editor-body .keyword { color: #F472B6; }
.editor-body .string { color: #34D399; }
.editor-body .comment { color: #6B7280; }
.editor-body .property { color: #60A5FA; }

/* Features List Card Graphics */
.features-list-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.info-card-item:hover {
    border-color: var(--border-glass-hover);
    background: rgba(255, 255, 255, 0.04);
}

.info-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item-icon.green {
    background: rgba(16, 185, 129, 0.08);
    color: var(--primary-green);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.info-item-meta {
    display: flex;
    flex-direction: column;
}

.info-item-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.info-item-val {
    font-size: 15px;
    color: var(--text-main);
    font-weight: 700;
    font-family: var(--font-heading);
}

/* 12. PERFORMANCE STATS */
.stats-section {
    padding: 80px 0;
    background: rgba(255,255,255,0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFFFFF 30%, #9CA3AF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 13. CALL TO ACTION FORM BANNER */
.cta-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.glow-cta {
    bottom: -150px;
    right: 20%;
    width: 500px;
    height: 500px;
    background-color: var(--primary-green);
    opacity: 0.08;
}

.cta-container {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.cta-desc {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-form-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.cta-form {
    display: flex;
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 6px;
    gap: 8px;
}

.form-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    padding: 12px 18px;
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted-dark);
}

.cta-apps-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.store-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
}

.store-icon {
    width: 24px;
    height: 24px;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-sub {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

.store-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
}

/* 14. FOOTER AREA */
.footer-area {
    background: #04060A;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 80px;
    padding-bottom: 40px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(2, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-about {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    color: var(--primary-green);
    border-color: var(--border-glass-hover);
    background: rgba(16, 185, 129, 0.05);
}

.social-icon i {
    width: 18px;
    height: 18px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition-fast);
    width: fit-content;
}

.footer-link:hover {
    color: var(--primary-green);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    font-size: 13px;
    color: var(--text-muted-dark);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-policy-links {
    display: flex;
    gap: 24px;
}

.footer-policy-link {
    text-decoration: none;
    color: var(--text-muted-dark);
    transition: var(--transition-fast);
}

.footer-policy-link:hover {
    color: var(--primary-green);
}

/* 15. MOBILE MENU SIDE DRAWER */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100%;
    background: #080A10;
    border-left: 1px solid var(--border-glass);
    z-index: 200;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.6);
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.close-menu {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-link {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.mobile-link:hover {
    color: var(--primary-green);
}

/* 16. RESPONSIVE DESIGN MEDIA QUERIES */

/* Tablet & Smaller Screens */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tab-pane-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .pane-graphic {
        order: -1; /* Graphic floats to the top on mobile */
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile Screens */
@media (max-width: 768px) {
    .nav-links, .nav-actions .btn {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .navbar {
        padding: 16px 0;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .cta-form {
        flex-direction: column;
        background: none;
        border: none;
        padding: 0;
    }
    
    .form-input {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border-glass);
        border-radius: 12px;
        width: 100%;
        margin-bottom: 12px;
    }
    
    .cta-title {
        font-size: 32px;
    }
}
