:root {
    --bg-color: #030305;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent: #5865F2;
    --accent-glow: rgba(88, 101, 242, 0.5);

    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(10, 10, 12, 0.6);
    --glass-highlight: rgba(255, 255, 255, 0.05);

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ... existing styles ... */

.text-gradient {
    /* Premium Animated Gradient - Deep Blurple to White/Cyan */
    background: linear-gradient(to right,
            #fff 20%,
            #a5b4fc 30%,
            #5865F2 70%,
            #fff 80%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Overlays for depth and texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    z-index: 0;
    pointer-events: none;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 0;
    pointer-events: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 2rem;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    transition: all 0.3s ease;
}

.nav-content:hover {
    background: rgba(15, 15, 15, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.nav-logo {
    height: 28px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn-download {
    background: var(--text-primary);
    color: black;
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-download:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 10;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.chip-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.hero-heading {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}



.hero-subtext {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    font-weight: 300;
    text-align: center;
    /* Enforce centralization */
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-primary);
    color: black;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary-lg:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary-lg {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.btn-secondary-lg:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.icon {
    width: 20px;
    height: 20px;
}

/* Bento Grid */
.bento-section {
    padding: 4rem 2rem 8rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    scroll-margin-top: 120px;
    /* Fix scroll offset */
}

.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: var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: all 0.4s ease;
}

.bento-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.bento-card:hover::before {
    opacity: 1;
}

.card-large {
    grid-column: span 2;
}

.card-tall {
    grid-row: span 2;
}

.card-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    font-weight: 600;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Visuals inside cards */
.visual-latency {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle at bottom right, rgba(88, 101, 242, 0.2), transparent 70%);
}

.visual-clarity {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.5));
}

/* Footer */
.footer {
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.footer-glass {
    width: 100%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.02);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    opacity: 0.7;
}

.footer-logo img {
    filter: grayscale(1);
}

.footer-links p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
.mustrelax-signature {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-style: italic;
    color: #fff;
    margin-left: 0.3rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow:
        0 0 5px #d946ef,
        0 0 10px #d946ef,
        0 0 20px #a855f7,
        0 0 40px #6366f1;
    animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        text-shadow:
            0 0 5px #d946ef,
            0 0 10px #d946ef,
            0 0 20px #a855f7;
    }

    100% {
        text-shadow:
            0 0 10px #d946ef,
            0 0 20px #d946ef,
            0 0 40px #a855f7,
            0 0 60px #6366f1;
    }
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .card-large,
    .card-tall {
        grid-column: auto;
        grid-row: auto;
        min-height: 250px;
    }

    .hero-heading {
        font-size: 3.5rem;
    }
}

/* Coming Soon Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Transparent background so the Dark Mode Shader is visible behind it */
    background: transparent;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Corruption / Transition Effects */
.corrupt {
    animation: corruption 0.3s steps(2) infinite;
    /* RGB Split Base */
    text-shadow: 2px 0 #ff00c1, -2px 0 #00fff9;
}

.vanish {
    opacity: 0;
    filter: blur(20px);
    transform: scale(0.95);
    pointer-events: none;
    transition: all 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes corruption {
    0% {
        transform: translate(2px, -2px) skew(0deg);
        filter: hue-rotate(0deg);
    }

    20% {
        transform: translate(-2px, 2px) skew(5deg);
        filter: invert(1);
    }

    40% {
        transform: translate(3px, 1px) skew(-5deg);
        filter: hue-rotate(90deg) blur(2px);
    }

    60% {
        transform: translate(-1px, -3px) skew(2deg);
        filter: invert(0);
    }

    80% {
        transform: translate(1px, 3px) skew(-2deg);
        filter: hue-rotate(-90deg);
    }

    100% {
        transform: translate(0) skew(0);
        filter: none;
    }
}

/* Coming Soon Mode adjustments */
body.coming-soon-mode {
    overflow: hidden;
    /* Lock scroll */
}

/* Ensure Hero Text stays visible and centered during transition */
body.coming-soon-mode .hero-heading {
    position: relative;
    z-index: 1000;
    transition: color 1s ease;
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.8);
}

body.coming-soon-mode .hero-subtext {
    z-index: 1000;
    transition: all 1s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
    animation: power-on 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes power-on {
    0% {
        opacity: 0;
        transform: scaleY(0.005) scaleX(0);
        filter: brightness(5);
    }

    30% {
        opacity: 1;
        transform: scaleY(0.005) scaleX(1);
        filter: brightness(5);
    }

    60% {
        transform: scaleY(1.2) scaleX(1);
    }

    100% {
        transform: scaleY(1) scaleX(1);
        filter: brightness(1);
    }
}

.spotlight {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 10%, #000 70%);
    pointer-events: none;
}

.overlay-content {
    text-align: center;
    z-index: 2;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.overlay.active .overlay-content {
    transform: scale(1);
    opacity: 1;
}

.overlay h2 {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: 0.1em;
    position: relative;
}

.overlay p {
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 100px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.3s;
}

.btn-close:hover {
    background: white;
    color: black;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(38px, 9999px, 83px, 0);
    }

    20% {
        clip: rect(12px, 9999px, 95px, 0);
    }

    40% {
        clip: rect(69px, 9999px, 2px, 0);
    }

    60% {
        clip: rect(98px, 9999px, 16px, 0);
    }

    80% {
        clip: rect(27px, 9999px, 99px, 0);
    }

    100% {
        clip: rect(51px, 9999px, 7px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(26px, 9999px, 23px, 0);
    }

    20% {
        clip: rect(89px, 9999px, 14px, 0);
    }

    40% {
        clip: rect(13px, 9999px, 68px, 0);
    }

    60% {
        clip: rect(76px, 9999px, 88px, 0);
    }

    80% {
        clip: rect(4px, 9999px, 45px, 0);
    }

    100% {
        clip: rect(67px, 9999px, 29px, 0);
    }
}