:root {
    --charcoal: #050506;
    --onyx: #0a0b0d;
    --onyx-deep: #000000;
    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-prominent: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-muted: #6b7280;
}

@font-face {
    font-family: 'Inter';
    src: url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
}

@font-face {
    font-family: 'Playfair Display';
    src: url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,400;1,500;1,600&display=swap');
}

body {
    background-color: var(--charcoal);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Dark Card Classes */
.glass-panel {
    background: var(--onyx);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.glass-panel:hover {
    background: #14161b;
    border-color: var(--border-prominent);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

.moon-card {
    background: var(--onyx);
    border: 1px solid var(--border-subtle);
    border-radius: 32px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    /* Moonlight reflection */
    overflow: hidden;
    position: relative;
}

.moon-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Typography */
.text-huge {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.font-serif-italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, #a1a1aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-eclipse {
    background: #000000;
    color: #ffffff;
    padding: 0.85rem 2.5rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.btn-eclipse::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.btn-eclipse:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.btn-eclipse:hover::after {
    opacity: 1;
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--eclipse-border);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--eclipse-border);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Landing Elements */
.glow-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--eclipse-glow);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #60a5fa;
    margin-bottom: 2rem;
}

.icon-box {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--eclipse-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 24px;
}

.bento-card {
    grid-column: span 12;
}

@media (min-width: 768px) {
    .bento-card.col-4 {
        grid-column: span 4;
    }

    .bento-card.col-8 {
        grid-column: span 8;
    }

    .bento-card.col-6 {
        grid-column: span 6;
    }
}

/* Background Effects */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #050506;
    overflow: hidden;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 10;
    opacity: 0.04;
    pointer-events: none;
    background-image: 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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.07;
    pointer-events: none;
    background-size: 80px 80px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.tech-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    opacity: 0.15;
    pointer-events: none;
    animation: tech-drift linear infinite;
}

@keyframes tech-drift {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }

    20% {
        opacity: 0.15;
    }

    80% {
        opacity: 0.15;
    }

    100% {
        transform: translate(100px, -100px) scale(1.5);
        opacity: 0;
    }
}

.bg-mesh .blob {
    position: absolute;
    width: 70vw;
    height: 70vh;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    animation: flux-drift 25s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
    pointer-events: none;
}

.blob-1 {
    top: -15%;
    left: -10%;
    background: #4f46e5;
    /* Indigo */
    animation-delay: 0s;
}

.blob-2 {
    bottom: -15%;
    right: -10%;
    background: #0ea5e9;
    /* Cyan */
    animation-duration: 35s;
    animation-delay: -5s;
}

.blob-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #7c3aed;
    /* Violet */
    width: 50vw;
    height: 50vh;
    animation-duration: 45s;
    animation-delay: -10s;
    opacity: 0.08;
}

@keyframes flux-drift {
    0% {
        transform: translate(0%, 0%) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(10%, 15%) scale(1.1) rotate(5deg);
    }

    66% {
        transform: translate(-5%, 10%) scale(0.9) rotate(-5deg);
    }

    100% {
        transform: translate(15%, -5%) scale(1.05) rotate(0deg);
    }
}