/* Professional Landing Page for libr0 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ========================================
   VARIABLES & RESET
   ======================================== */

:root {
    --rust-orange: #CE422B;
    --rust-orange-light: #E86C52;
    --rust-orange-dark: #A53522;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #8a8a8a;
    --bg-subtle: #fafafa;
    --border-color: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    background: #ffffff;
}

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1000;
    background:
        radial-gradient(circle at 30% 20%, rgba(206, 66, 43, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(206, 66, 43, 0.02) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    animation: subtleShift 15s ease-in-out infinite;
}

@keyframes subtleShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -999;
    background-image: radial-gradient(circle, rgba(206, 66, 43, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: dotPattern 40s linear infinite;
    opacity: 0.4;
}

@keyframes dotPattern {
    0% { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

#memory-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -998;
    pointer-events: none;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    text-align: center;
    padding: 120px 40px 80px;
    margin-bottom: 80px;
}

.logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    display: block;
    animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.title {
    font-size: 4rem;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: var(--rust-orange);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    line-height: 1.4;
}

.description {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ========================================
   BUTTONS
   ======================================== */

.actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--rust-orange);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(206, 66, 43, 0.2);
}

.btn-primary:hover {
    background: var(--rust-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(206, 66, 43, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    border: 1.5px solid #e5e5e5;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    border-color: var(--rust-orange);
    color: var(--rust-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.125rem;
    border-radius: 10px;
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats {
    display: flex;
    justify-content: center;
    gap: 100px;
    padding: 60px 40px;
    margin: 0 0 80px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(250, 250, 250, 0.5);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rust-orange);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */

.content-section {
    margin-bottom: 100px;
}

.content-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-intro {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 800px;
}

/* ========================================
   FEATURE CARDS
   ======================================== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin: 60px 0;
}

.feature-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(206, 66, 43, 0.3);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--rust-orange);
}

.feature-card h3 {
    color: var(--text-primary);
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.feature-card h3 a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.2s;
}

.feature-card h3 a:hover {
    color: var(--rust-orange);
}

.feature-card p {
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.feature-card code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    background: rgba(206, 66, 43, 0.08);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--rust-orange-dark);
}

/* ========================================
   PHILOSOPHY SECTION
   ======================================== */

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin: 60px 0;
}

.philosophy-item {
    padding: 32px;
    background: white;
    border-left: 4px solid var(--rust-orange);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.philosophy-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.philosophy-item h4 {
    color: var(--rust-orange);
    margin: 0 0 12px 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.philosophy-item p {
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta {
    text-align: center;
    padding: 80px 40px;
    margin: 100px 0 60px;
}

.cta h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 32px 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .hero {
        padding: 80px 20px 60px;
    }

    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .description {
        font-size: 1rem;
    }

    .stats {
        gap: 40px;
        flex-direction: column;
        padding: 40px 24px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .cta {
        padding: 60px 20px;
    }
}