/* ==========================================================================
   CSS Variables & Theme
   ========================================================================== */
:root {
    /* Color Palette */
    --bg: #030712;
    --card-bg: rgba(17, 24, 39, 0.4); /* Hex #111827 with opacity */
    --card-border: rgba(255, 255, 255, 0.08);
    --primary: #0EA5E9;
    --secondary: #38BDF8;
    --accent: #2563EB;
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-sm { margin-top: 1rem; }
.mt-xl { margin-top: 4rem; }
.p-xl { padding: 4rem; }

.gradient-text {
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
}

/* ==========================================================================
   Layout & Grid System
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section { padding: 8rem 0; }
.min-h-screen { min-height: 100vh; }
.flex-center { display: flex; align-items: center; justify-content: center; }

.grid {
    display: grid;
    gap: 2rem;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ==========================================================================
   Glassmorphism Components
   ========================================================================== */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links a {
    margin: 0 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.nav-links a:hover { color: var(--text-main); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--primary);
    color: var(--bg);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-main);
}
.btn-outline:hover { background: var(--card-bg); transform: translateY(-2px); }

/* ==========================================================================
   Specific Sections
   ========================================================================== */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary);
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}
.glow-top-left { top: -200px; left: -200px; }
.glow-bottom-right { bottom: -200px; right: -200px; }

.hero h1 { font-size: 4.5rem; letter-spacing: -0.02em; }
.hero .subheadline { font-size: 1.2rem; margin-bottom: 2.5rem; }
.btn-group { display: flex; gap: 1rem; justify-content: center; }

.app-card { padding: 2rem; transition: var(--transition-smooth); }
.app-card:hover { transform: translateY(-5px); border-color: rgba(14, 165, 233, 0.3); }
.app-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.stats-grid { display: flex; justify-content: space-around; text-align: center; flex-wrap: wrap; }
.stats-grid h3 { font-size: 3rem; margin-bottom: 0.5rem; }

.timeline { padding: 3rem; position: relative; }
.timeline::before {
    content: ''; position: absolute; left: 50px; top: 3rem; bottom: 3rem; width: 2px;
    background: var(--card-border);
}
.timeline-item { position: relative; padding-left: 80px; margin-bottom: 3rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
    position: absolute; left: 19px; top: 5px; width: 14px; height: 14px;
    border-radius: 50%; background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.footer { border-top: 1px solid var(--card-border); border-radius: 0; }
.footer-links a { display: block; margin-bottom: 0.8rem; color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); }