:root {
    /* Cyber/Modern Palette */
    --bg-main: #030712;
    --bg-sec: #0f172a;
    --text-primary: #f8fafc;
    --text-sec: #94a3b8;

    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;

    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-highlight: rgba(255, 255, 255, 0.03);

    --radius-lg: 1.5rem;
    --radius-md: 1rem;

    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Background Gradients */
.ambient-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(60px);
    opacity: 0.4;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    animation: float 10s ease-in-out infinite;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--accent-blue);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--accent-purple);
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 20px);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 0.75rem 1.5rem;

    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.nav-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-cta {
    display: flex;
    gap: 0.75rem;
}

.btn {
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.btn-glow {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    border: none;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 1rem 4rem;
    position: relative;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 4.5rem;
    /* Default from previous inline style */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}



.gradient-text {
    background: linear-gradient(to right, #38bdf8, #818cf8, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-sec);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Bento Grid */
.bento-section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
}

.bento-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.bento-card.span-2 {
    grid-column: span 2;
}

.bento-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    z-index: 10;
}

.bento-card p {
    color: var(--text-sec);
    font-size: 0.95rem;
    z-index: 10;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
}

/* Card Visuals (Abstract) */
.card-visual {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
    transition: opacity 0.3s;
}

.bento-card:hover .card-visual {
    opacity: 0.2;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-sec);
}

/* Mobile */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-card.span-2 {
        grid-column: span 1;
    }

    .bento-card {
        min-height: auto;
        /* Allow auto height for content */
        padding: 1.5rem;
        /* Disable heavy hover effects on mobile */
        transform: none !important;
        transition: none !important;
    }

    .navbar {
        width: 92%;
        padding: 0.5rem 1rem;
        top: 1rem;
        backdrop-filter: blur(8px);
        /* Reduce blur for performance */
        -webkit-backdrop-filter: blur(8px);
    }

    .nav-brand img {
        height: 40px !important;
        /* Smaller logo on mobile */
    }

    .nav-brand div {
        display: flex !important;
        /* Force display flex to override any potential hiding */
    }

    .nav-brand span:first-child {
        font-size: 1rem !important;
        /* Smaller title */
    }

    .nav-brand span:last-child {
        font-size: 0.6rem !important;
        /* Smaller badge */
    }

    .hero {
        padding-top: 7rem;
        /* Reduce top padding */
    }

    .hero h1 {
        font-size: 2rem;
        /* Explicit mobile font size, slightly larger than 1.8 for readability but smaller than 2.5 */
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .btn-glow {
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
        width: 100%;
        /* Full width button on mobile */
        justify-content: center;
    }

    /* Optimize background blobs for mobile */
    .blob {
        filter: blur(40px);
        opacity: 0.3;
    }
}