:root {
    --bg-dark: #050505;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #ffffff;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Starfield Canvas */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    pointer-events: none;
    background-color: #000000; /* Deep black universe */
}

/* Soft Glows */
.glow-effect {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    border-radius: 50%;
    top: -300px;
    left: -200px;
    z-index: -1;
    pointer-events: none;
}

.glow-effect-2 {
    position: absolute;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    border-radius: 50%;
    bottom: -400px;
    right: -300px;
    z-index: -1;
    pointer-events: none;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 5rem;
    position: relative;
    z-index: 100;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a.btn-pill {
    color: var(--bg-dark);
    background-color: var(--text-main);
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
}

.nav-links a.btn-pill:hover {
    background-color: rgba(255, 255, 255, 0.85);
    transform: scale(1.03);
}

/* HERO */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    min-height: 45vh;
    padding: 8rem 2rem;
    text-align: center;
}

.hero-main-logo {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.75rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

/* CARDS GRID */
.grid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
    padding: 0 5rem 8rem;
    max-width: 1600px;
    margin: 0 auto;
}

.card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 28px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
    display: flex;
    flex-direction: column;
}

.card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3) { animation-delay: 0.6s; }

.card:hover {
    transform: translateY(-12px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    background: rgba(255, 255, 255, 0.05);
}

.card-image {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-image {
    transform: scale(1.05);
}

/* Subtle overlay to blend image into card */
.card-image::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Fix for sub-pixel rendering gaps */
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(5, 5, 5, 1) 0%, rgba(5, 5, 5, 0.8) 20%, transparent 100%);
    pointer-events: none;
}

.card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 2;
    margin-top: -30px; /* Bring content up into the gradient fade */
}

/* Remove fade and margin offset for SOL ViBE animated card */
.sol-vibe-card .card-image::after {
    display: none;
}

.sol-vibe-card .card-content {
    margin-top: 0;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.card-icon {
    width: 24px;
    height: 24px;
    color: var(--text-main);
}

.card-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.card-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    max-width: 100%;
}

.card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.btn-outline {
    display: inline-block;
    width: 100%;
    padding: 1.2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.02);
}

.btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-dark);
    border-color: var(--text-main);
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 5rem 2rem 6rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

.footer-subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.fw-bold {
    font-weight: 800;
    color: var(--text-main);
}

.footer-mission {
    font-size: 1.5rem;
    max-width: 650px;
    margin: 0 auto 4rem;
    color: var(--text-main);
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .navbar {
        padding: 2rem 3rem;
    }
    
    .grid-section {
        padding: 0 3rem 6rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero {
        padding: 4rem 1.5rem;
        min-height: 40vh;
    }
    
    .grid-section {
        padding: 0 1.5rem 5rem;
    }
    
    .card-image {
        height: 240px;
    }
}
