/* ==========================================================================
   TABLE OF CONTENTS
   1. CSS Variables & Theme Configuration
   2. Reset & Typography
   3. Base Layout & Components (Buttons, Glassmorphism, Badges)
   4. Navigation (Sticky & Mobile Hamburger)
   5. Hero Section & Animated Background Orbs
   6. Software Mockup UI (HTML/CSS Only Application Preview)
   7. Feature & Why Cards
   8. Pricing Tables
   9. Testimonials & FAQs
   10. Contact Form & Footer
   11. CSS Keyframe Animations & Responsive Breakpoints
   ========================================================================== */

:root {
    --bg-color: #0B0F19;
    --primary-color: #4F46E5;
    --secondary-color: #00D4FF;
    --accent-color: #7C3AED;
    --success-color: #22C55E;
    --warning-color: #F59E0B;
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover-border: rgba(79, 70, 229, 0.5);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.gradient-text {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mouse Glow Effect */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: opacity 0.3s ease;
}

/* Glassmorphism Reusable Component */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--glass-hover-border);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.15);
}

/* Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-main);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
}

.btn-large {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

.btn-full { width: 100%; }

/* 4. Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.85rem 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.logo-icon { font-size: 1.5rem; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.nav-link:hover { color: var(--text-main); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

/* 5. Hero Section */
.hero-section {
    position: relative;
    padding: 12rem 0 6rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: floatOrb 10s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
    opacity: 0.3;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-color);
    bottom: -150px;
    right: -100px;
    opacity: 0.25;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary-color);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 2rem;
    align-items: center;
}

.stat-item h3 {
    font-size: 2rem;
    display: inline-block;
}

.stat-plus, .stat-star {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
    margin: 0 auto;
}

/* 6. Pure HTML/CSS Software Preview Window */
.preview-section { padding: 4rem 0 8rem 0; }
.section-header { margin-bottom: 4rem; }
.section-title { font-size: 2.5rem; margin-bottom: 0.75rem; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; }

.app-window {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--glass-border);
}

.app-header {
    background: rgba(15, 23, 42, 0.9);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
}

.window-controls { display: flex; gap: 8px; }
.control { width: 12px; height: 12px; border-radius: 50%; }
.close { background-color: #EF4444; }
.minimize { background-color: #F59E0B; }
.maximize { background-color: #10B981; }

.app-title { font-size: 0.85rem; color: var(--text-muted); }
.app-status { font-size: 0.75rem; color: var(--success-color); display: flex; align-items: center; gap: 4px; }
.status-dot { width: 6px; height: 6px; background: var(--success-color); border-radius: 50%; }

.app-body { display: flex; min-height: 420px; background: #0F172A; }
.app-sidebar {
    width: 200px;
    border-right: 1px solid var(--glass-border);
    padding: 1rem;
    background: rgba(11, 15, 25, 0.5);
}

.sidebar-user { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1.5rem; }
.user-avatar { font-size: 1.5rem; }
.user-info strong { display: block; font-size: 0.85rem; }
.user-info small { color: var(--text-muted); font-size: 0.7rem; }

.sidebar-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-radius: 6px;
    transition: var(--transition-fast);
}

.sidebar-nav a.active, .sidebar-nav a:hover {
    background: rgba(79, 70, 229, 0.2);
    color: var(--text-main);
}

.app-main { flex: 1; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }

.app-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.metric-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 8px;
}

.metric-card span { font-size: 0.75rem; color: var(--text-muted); }
.metric-card h4 { font-size: 1.25rem; margin: 0.25rem 0; }
.text-success { color: var(--success-color); font-size: 0.75rem; }
.text-warning { color: var(--warning-color); font-size: 0.75rem; }

/* CSS Bar Chart */
.chart-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 8px;
}

.chart-header { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 1rem; }
.badge-sm { background: rgba(0, 212, 255, 0.1); color: var(--secondary-color); padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; }

.css-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    padding-top: 1rem;
}

.chart-bar {
    width: 12%;
    height: var(--height);
    background: rgba(79, 70, 229, 0.4);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: var(--transition-smooth);
}

.chart-bar.active-bar { background: linear-gradient(to top, var(--primary-color), var(--secondary-color)); }
.chart-bar::after {
    content: attr(data-label);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Mock Table */
.table-container { overflow-x: auto; }
.mock-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.8rem; }
.mock-table th, .mock-table td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--glass-border); }
.mock-table th { color: var(--text-muted); font-weight: 500; }

.pill { padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; }
.pill-success { background: rgba(34, 197, 94, 0.15); color: var(--success-color); }
.pill-pending { background: rgba(245, 158, 11, 0.15); color: var(--warning-color); }

/* 7. Features Grid */
.features-section { padding: 6rem 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card { padding: 2rem; }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Timeline */
.why-section { padding: 6rem 0; }
.timeline { display: flex; flex-direction: column; gap: 2rem; max-width: 800px; margin: 0 auto; position: relative; }
.timeline-item { display: flex; gap: 1.5rem; align-items: flex-start; }
.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
    margin-top: 1.5rem;
}

.timeline-content { flex: 1; padding: 1.5rem 2rem; }
.timeline-step { font-size: 0.8rem; color: var(--secondary-color); font-weight: 700; }

/* 8. Pricing Section */
.pricing-section { padding: 6rem 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }

.pricing-card { padding: 2.5rem; position: relative; display: flex; flex-direction: column; }
.pricing-card.popular { border-color: var(--primary-color); box-shadow: 0 0 30px rgba(79, 70, 229, 0.2); }

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.price { font-size: 3rem; font-family: var(--font-heading); font-weight: 800; margin: 1rem 0; }
.price sup { font-size: 1.5rem; top: -1em; }
.price span { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }

.price-features { list-style: none; margin-bottom: 2rem; flex: 1; }
.price-features li { margin-bottom: 0.75rem; font-size: 0.9rem; color: var(--text-muted); }
.price-features li.disabled { opacity: 0.4; text-decoration: line-through; }

/* 9. Testimonials & FAQ */
.testimonials-section { padding: 6rem 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card { padding: 2rem; }
.stars { color: #F59E0B; margin-bottom: 1rem; }
.testimonial-author { margin-top: 1.5rem; }
.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author small { color: var(--text-muted); font-size: 0.8rem; }

.faq-section { padding: 6rem 0; }
.faq-accordion { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { padding: 0; overflow: hidden; }

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer { padding: 0 1.5rem 1.25rem 1.5rem; color: var(--text-muted); display: none; font-size: 0.95rem; }
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-icon { font-size: 1.2rem; transition: var(--transition-fast); }

/* 10. Contact Form Section */
.cta-section { padding: 6rem 0; }
.cta-card { padding: 4rem 2rem; max-width: 700px; margin: 0 auto; }
.contact-form { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.form-status { margin-top: 1rem; font-size: 0.9rem; }

/* Footer */
.footer { border-top: 1px solid var(--glass-border); padding: 4rem 0 2rem 0; background: rgba(11, 15, 25, 0.95); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 1rem; max-width: 300px; }
.footer-links h4, .footer-social h4 { font-size: 0.95rem; margin-bottom: 1rem; }
.footer-links a { display: block; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.5rem; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--text-main); }
.social-icons { display: flex; gap: 0.75rem; }

.css-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition-fast);
}

.css-social-icon:hover { background: var(--primary-color); border-color: var(--primary-color); }
.footer-bottom { border-top: 1px solid var(--glass-border); padding-top: 2rem; color: var(--text-muted); font-size: 0.8rem; }

/* 11. Keyframe Animations & Media Queries */
@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Desktop vs Mobile Toggle */
.mobile-only { display: none; }
.desktop-only { display: inline-flex; }

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero-title { font-size: 2.75rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .stat-divider { display: none; }
    .app-body { flex-direction: column; }
    .app-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--glass-border); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(11, 15, 25, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transition: var(--transition-smooth);
    }

    .nav-menu.active { left: 0; }
    .hero-title { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }
    .app-metrics { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}