:root {
    --bg-color: #05070a;
    --card-bg: rgba(13, 20, 31, 0.7);
    --accent-blue: #00d2ff;
    --accent-glow: rgba(0, 210, 255, 0.5);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --gradient-primary: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-height: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Animation */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
}

.blob {
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: var(--accent-glow);
    border-radius: 50%;
    animation: move 20s infinite alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    background: rgba(0, 210, 255, 0.2);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    background: rgba(58, 123, 213, 0.2);
    animation-delay: -5s;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(10%, 10%) scale(1.1);
    }
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

/* Navigation */
nav {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Buttons */
.btn {
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);

}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-primary2 {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
    padding: 8px 24px !important;
}

.btn-primary2:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-outline:hover {
    background: rgba(0, 210, 255, 0.1);
}

/* Hero Section */
.hero {
    padding: calc(var(--nav-height) + 60px) 5% 60px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 90vh;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: -20px;
    border: 1px solid var(--accent-glow);
    border-radius: 40px;
    z-index: -1;
    opacity: 0.3;
}

/* Login Page Specific */
.centered-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 48px;
    text-align: center;
}

.auth-card img {
    width: 80px;
    margin-bottom: 24px;
}

.auth-card h2 {
    margin-bottom: 12px;
}

.auth-card p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Animation Loader */
.loader-container {
    text-align: center;
}

.neural-network {
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
    position: relative;
}

.node {
    width: 10px;
    height: 10px;
    background: var(--accent-blue);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 15px var(--accent-blue);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Dashboard */
.dashboard-header {
    margin-top: calc(var(--nav-height) + 20px);
    padding: 0 5%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-glow);
}

.product-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: #1a202c;
    border-radius: 16px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.product-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.download-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.mobile-concept-image {
    display: none;
}

.nav-corner-btn {
    position: absolute;
    top: 8px;
    /* Vertically centered in 70px desktop nav */
    right: 5%;
    z-index: 100;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-corner-btn {
        top: 20px !important;
        /* Proper centering/placement for mobile 90px nav */
    }

    :root {
        --nav-height: 90px;
        /* Taller nav config for bigger logo */
    }

    /* Hero Responsive */
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: calc(var(--nav-height) + 60px);
        /* More space from top */
        padding-bottom: 40px;
        gap: 40px;
        min-height: 60vh;
        /* Reduce min-height since image is gone */
        display: flex;
        /* Switch to flex to center the content vertically */
        align-items: center;
        justify-content: center;
    }

    .hero-image {
        display: none !important;
        /* Hide image on first page */
    }

    .mobile-concept-image {
        display: block !important;
        /* Show in Learn More section */
        margin-bottom: 40px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-top: 20px;
        /* shift the whole chunk slightly lower */
    }

    .hero-content h1 {
        font-size: 2.8rem;
        margin-bottom: 25px;
        /* lower the text away from the title */
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 40px;
        /* more margin separating buttons from the text */
        line-height: 1.7;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        /* Stack vertically for a nicer, bolder mobile touch */
        align-items: center;
        width: 100%;
        max-width: 280px;
        /* Prevents button from getting insanely wide if stretched */
        margin: 0 auto;
        /* centers the container */
        gap: 18px;
        /* precise spacing between the two buttons */
    }

    .hero-btns .btn {
        width: 100%;
        /* Stretch uniformly within the 280px width */
    }

    /* Nav Responsive */
    nav {
        padding: 5px 15px 0 15px;
        /* Added 5px top padding for extra breathing room above logo */
    }

    .logo-container {
        gap: 8px !important;
        /* give the bigger logo a bit of space */
    }

    .logo-container img {
        width: 75px !important;
        height: 75px !important;
        /* Restore a much larger logo size */
    }

    .logo-text {
        font-size: 1.7rem !important;
        /* Almost same height ratio as logo */
        letter-spacing: 0px !important;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    /* Concept & Grid Responsive */
    .product-grid {
        grid-template-columns: 1fr;
        padding: 20px 15px;
    }

    .auth-card {
        padding: 30px 20px;
    }

    #concept .glass {
        padding: 30px 15px !important;
    }

    /* Dashboard Header */
    .dashboard-header {
        text-align: center;
        padding: 0 15px;
    }
}

/* Specific Phone Height Adjustments for Player */
@media (max-width: 768px) {
    .player-bar {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-areas: "info btn" !important;
        padding: 15px 15px 25px 15px !important;
        gap: 12px !important;
        height: auto !important;
    }

    .player-info {
        grid-area: info !important;
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    .player-controls {
        display: contents !important;
    }

    .player-btns {
        grid-area: btn !important;
        justify-content: flex-end !important;
    }

    .progress-wrapper {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: 8px !important;
        border-radius: 0 !important;
    }

    .progress-wrapper .progress-fill {
        border-radius: 0 !important;
    }

    .player-bar>div:last-child {
        display: none !important;
    }

    .product-grid.player-active {
        padding-bottom: 160px !important;
    }
}