/* SQARME HOME CSS - Complete Styles */

/* ===== VARIABLES ===== */
:root {
    --primary: #0A73FF;
    --primary-dark: #0557C9;
    --secondary: #2CD8D5;
    --accent: #FF8A00;
    --success: #00E676;
    --bg-light: #F8FAFC;
    --text-light: #1E293B;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
}

body.dark {
    --bg-light: #0F1419;
    --text-light: #F1F5F9;
    --glass-bg: rgba(15, 20, 25, 0.7);
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

/* ===== BACKGROUND ===== */
.animated-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(10, 115, 255, 0.1) 0%, rgba(44, 216, 213, 0.08) 50%, rgba(255, 138, 0, 0.05) 100%);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    z-index: -2;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.particle-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

/* ===== NAVIGATION ===== */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px 32px;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
}

.logo-icon {
    font-size: 28px;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
    opacity: 0.8;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-link {
    text-decoration: none;
    color: var(--text-light);
    font-size: 15px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.btn-link:hover {
    background: rgba(10, 115, 255, 0.1);
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(10, 115, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.theme-toggle {
    background: rgba(10, 115, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: var(--primary);
    transform: rotate(180deg);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 60px;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 32px;
    border: 1px solid var(--glass-border);
    color: var(--primary);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 22px);
    opacity: 0.85;
    margin-bottom: 48px;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-cta.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 24px rgba(10, 115, 255, 0.35);
}

.btn-cta.primary:hover {
    transform: translateY(-3px);
}

.btn-cta.secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    border: 2px solid var(--glass-border);
}

.btn-cta.secondary:hover {
    border-color: var(--primary);
    background: rgba(10, 115, 255, 0.1);
}

.live-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-icon {
    font-size: 32px;
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    opacity: 0.7;
}

/* ===== SECTIONS ===== */
.features,
.experience,
.demo-section,
.pricing {
    padding: 120px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    opacity: 0.7;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: all 0.4s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 115, 255, 0.2);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-demo {
    margin-top: 24px;
    padding: 20px;
    background: rgba(10, 115, 255, 0.05);
    border-radius: var(--radius-sm);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-marker {
    position: absolute;
    left: -49px;
    top: 0;
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    box-shadow: 0 0 0 8px var(--bg-light), 0 4px 12px rgba(10, 115, 255, 0.3);
}

.timeline-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 32px;
}

.timeline-content h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 12px;
}

.timeline-visual {
    margin-top: 20px;
    font-size: 32px;
}

/* ===== DEMO ===== */
.interactive-demo {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    display: flex;
    overflow: hidden;
    min-height: 400px;
}

.demo-sidebar {
    width: 200px;
    background: rgba(10, 115, 255, 0.05);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-btn {
    background: transparent;
    border: none;
    padding: 16px;
    text-align: left;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
    color: var(--text-light);
}

.demo-btn:hover,
.demo-btn.active {
    background: var(--primary);
    color: white;
}

.demo-preview {
    flex: 1;
    padding: 40px;
}

.demo-content {
    display: none;
}

.demo-content.active {
    display: block;
}

.demo-widgets {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.demo-widget {
    background: rgba(10, 115, 255, 0.1);
    padding: 24px;
    border-radius: var(--radius-sm);
    flex: 1;
    min-width: 150px;
}

.demo-task {
    padding: 16px;
    background: rgba(10, 115, 255, 0.05);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.demo-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(10, 115, 255, 0.05);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

/* ===== PRICING ===== */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    font-weight: 600;
}

.switch {
    position: relative;
    width: 60px;
    height: 32px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 34px;
    transition: 0.4s;
}

.slider::before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
    transition: 0.4s;
}

input:checked + .slider {
    background: var(--primary);
}

input:checked + .slider::before {
    transform: translateX(28px);
}

.save-badge {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 48px;
    transition: all 0.4s;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 115, 255, 0.2);
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.plan-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    background: rgba(10, 115, 255, 0.1);
    color: var(--primary);
}

.plan-badge.popular {
    background: var(--primary);
    color: white;
}

.plan-price {
    margin-bottom: 32px;
}

.currency {
    font-size: 24px;
}

.amount {
    font-size: 56px;
    font-weight: 800;
    color: var(--primary);
}

.amount-text {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
}

.period {
    font-size: 18px;
    opacity: 0.7;
}

.plan-features {
    list-style: none;
    margin-bottom: 32px;
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.plan-btn {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    background: rgba(10, 115, 255, 0.1);
    color: var(--primary);
    transition: all 0.3s;
}

.plan-btn:hover {
    transform: translateY(-2px);
}

.plan-btn.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 24px rgba(10, 115, 255, 0.3);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 60px 40px 32px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}

.link-group a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 12px;
    opacity: 0.7;
    transition: all 0.3s;
}

.link-group a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .glass-nav {
        padding: 12px 20px;
    }
    
    .main-nav {
        display: none;
    }
    
    .hero {
        padding: 100px 20px 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 40px;
    }
    
    .interactive-demo {
        flex-direction: column;
    }
    
    .demo-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ANIMATIONS ===== */
.fade-in,
.fade-in-delay,
.fade-in-delay-2,
.fade-in-delay-3 {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}