/* ==================== CORE VARIABLES ==================== */
:root {
    --bg-color: #f8fafc;
    --surface: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --primary: #0f172a;
    --primary-hover: #334155;
    --accent-purple: #9333ea;
    --accent-blue: #3b82f6;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-glass: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --font-main: 'Inter', sans-serif;
    --spring: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--text-dark); background: var(--bg-color); -webkit-tap-highlight-color: transparent; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ==================== SHARED LANDING/UPDATES BACKGROUND ==================== */
.landing-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Super Modern Mesh Gradient Background */
    background-image: 
        radial-gradient(at 10% 10%, rgba(147, 51, 234, 0.12) 0px, transparent 50%),
        radial-gradient(at 90% 10%, rgba(59, 130, 246, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 90%, rgba(16, 185, 129, 0.12) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Navigation */
.landing-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 5%; max-width: 1200px; margin: 0 auto; width: 100%;
}
.nav-brand { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: 14px; font-weight: 600; color: var(--text-muted); transition: color 0.2s; display: flex; align-items: center; gap: 6px; }
.nav-link:hover { color: var(--primary); }

/* ==================== GLOBAL BUTTON COMPONENTS ==================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--radius-lg); font-size: 14px; font-weight: 600;
    transition: all 0.2s ease;
}
.btn:active { transform: scale(0.96); }
.btn-xl { padding: 16px 32px; font-size: 16px; border-radius: 50px; }
.btn-primary { background: var(--primary); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: rgba(255,255,255,0.5); border: 1px solid var(--border); color: var(--text-dark); backdrop-filter: blur(8px); }
.btn-outline:hover { background: rgba(255,255,255,0.9); }

/* ==================== GLASS CARD COMPONENT ==================== */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glass);
    transition: transform 0.3s var(--spring);
}

/* ==================== INDEX.HTML (LANDING) STYLES ==================== */
.landing-container { max-width: 1000px; margin: 0 auto; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-content { max-width: 700px; animation: slideUp 0.8s var(--spring) forwards; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge { display: inline-block; padding: 6px 16px; background: rgba(147, 51, 234, 0.1); color: var(--accent-purple); border-radius: 50px; font-size: 13px; font-weight: 700; margin-bottom: 24px; border: 1px solid rgba(147, 51, 234, 0.2); }
.hero-content h1 { font-size: clamp(40px, 8vw, 64px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 24px; }
.text-gradient { background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: clamp(16px, 4vw, 18px); color: var(--text-muted); margin-bottom: 40px; line-height: 1.6; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 80px; width: 100%; text-align: left; animation: slideUp 0.8s var(--spring) 0.2s forwards; opacity: 0; }
.features-grid .glass-card:hover { transform: translateY(-5px); }
.feature-icon { width: 48px; height: 48px; background: var(--surface); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--accent-purple); box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ==================== UPDATES.HTML (CHANGELOG) STYLES ==================== */
.changelog-header { text-align: center; padding: 40px 20px; animation: slideUp 0.6s var(--spring) forwards; }
.changelog-header h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; color: var(--text-dark); margin-bottom: 12px; letter-spacing: -1px; }
.changelog-header p { color: var(--text-muted); font-size: 16px; max-width: 500px; margin: 0 auto; }

.timeline { position: relative; max-width: 600px; margin: 0 auto; padding: 20px 20px 80px; }
.timeline::before { content: ''; position: absolute; left: 34px; top: 0; bottom: 0; width: 2px; background: rgba(148, 163, 184, 0.3); }

.timeline-item { position: relative; margin-bottom: 40px; padding-left: 60px; animation: slideUp 0.5s var(--spring) forwards; opacity: 0; }
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }

.timeline-dot { position: absolute; left: 23px; top: 0; width: 24px; height: 24px; border-radius: 50%; background: #e0e7ff; border: 4px solid var(--bg-color); box-shadow: 0 0 0 1px var(--border); display: flex; align-items: center; justify-content: center; z-index: 2; }
.timeline-item.latest .timeline-dot { background: var(--accent-purple); box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.2); border: 2px solid white; }

.timeline-date { font-size: 13px; font-weight: 700; color: var(--accent-purple); margin-bottom: 8px; display: block; text-transform: uppercase; letter-spacing: 1px; }

/* Adjust glass-card specifically for timeline */
.timeline-content.glass-card { padding: 24px; border-radius: 16px; }
.timeline-content h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.badge { background: rgba(147, 51, 234, 0.1); color: var(--accent-purple); font-size: 11px; padding: 4px 10px; border-radius: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid rgba(147, 51, 234, 0.2); }

.timeline-content ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.timeline-content li { font-size: 14px; color: var(--text-dark); display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.timeline-content li strong { color: #0f172a; }
.timeline-content li i { color: #10b981; font-size: 18px; margin-top: 1px; flex-shrink: 0; }

/* ==================== MOBILE ADJUSTMENTS ==================== */
@media (max-width: 600px) {
    /* Hide text links on landing page to save space */
    .nav-links .nav-link { display: none; }
    
    /* Hero Section Fixes */
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }

    /* Timeline Mobile Fixes */
    .changelog-header { padding: 30px 15px 20px; }
    .timeline { padding: 10px 15px 60px; }
    
    /* Shift the vertical line closer to the left edge */
    .timeline::before { left: 20px; }
    
    /* Scale down the dots and align them with the new line */
    .timeline-dot { left: 11px; width: 20px; height: 20px; }
    
    /* Reduce the left padding so the cards have more width */
    .timeline-item { padding-left: 44px; margin-bottom: 30px; }
    
    /* Squeeze the padding inside the glass cards */
    .timeline-content.glass-card { padding: 20px 16px; }
    
    /* Adjust font sizes for smaller screens */
    .timeline-content h3 { font-size: 16px; flex-wrap: wrap; gap: 8px; }
    .timeline-date { font-size: 11px; margin-bottom: 6px; }
    .timeline-content li { font-size: 13px; }
}