:root {
    --primary: #4a90d9;
    --accent: #00d4aa;
    --bg: #050508;
    --bg-elevated: rgba(30, 30, 40, 0.5);
    --bg-card: rgba(26, 26, 36, 0.4);
    --border: rgba(255, 255, 255, 0.08);
    --text: #f0f0f5;
    --text-secondary: #8888a0;
    --radius: 12px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --glow-primary: rgba(74, 144, 217, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Noise texture overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

#log-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
    /* Subtle background */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    width: 28px;
    height: 28px;
}

.nav-title {
    font-weight: 600;
    font-size: 1.1rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--text);
}

.github-link {
    display: flex;
    align-items: center;
}

/* Hero */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 6rem;
    position: relative;
    overflow: hidden;
}

/* Old ambient lights removed for Canvas simulation */



.hero-content {
    max-width: 720px;
    text-align: center;
}

.hero-logo {
    width: auto;
    height: auto;
    max-width: 420px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(74, 144, 217, 0.3));
    animation: float 6s ease-in-out infinite;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #b0b0d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn-primary {
    padding: 0.875rem 2.5rem;
    background: var(--accent);
    color: #050508;
    font-weight: 600;
    border-radius: 100px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.5);
}

.btn-secondary {
    padding: 0.875rem 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-weight: 500;
    border-radius: 100px;
    transition: all 0.2s;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text);
}

.hero-install {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.hero-install code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent);
}

/* Sections */
section {
    padding: 6rem 2rem;
}

.section-header {
    max-width: 600px;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Features */
.features {
    background: var(--bg-elevated);
}

.feature-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    border-color: rgba(74, 144, 217, 0.5);
    box-shadow: 0 10px 40px -10px rgba(74, 144, 217, 0.2);
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Install */
.install {
    max-width: 800px;
    margin: 0 auto;
}

.install-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.install-card {
    background: var(--bg-elevated);
    border: var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.install-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.lang-badge {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.install-card pre {
    padding: 1rem;
    margin: 0;
    background: transparent;
}

.install-card code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent);
}

.code-block {
    background: rgba(18, 18, 26, 0.8);
    border: var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.code-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.code-block pre {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text);
}

.code-block .kw {
    color: #c792ea;
}

.code-block .st {
    color: #c3e88d;
}

.code-block .nu {
    color: #f78c6c;
}

.code-block .cm {
    color: #546e7a;
}

/* Philosophy */
.philosophy-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.philosophy-card {
    text-align: center;
    padding: 2rem;
}

.philosophy-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.philosophy-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Resources */
.resources {
    background: var(--bg-elevated);
}

.resource-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.resource-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.resource-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.1);
}

.resource-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.resource-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.footer-logo {
    width: 24px;
    height: 24px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }

    nav {
        gap: 1rem;
    }

    .hero {
        padding: 6rem 1rem 4rem;
    }

    .install-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}