/* CORE VARIABLES (Consumer Tech Theme) */
:root {
    --bg-dark: #030305;
    --bg-panel: #0E0E11;
    --accent-cyan: #00e5ff;
    --accent-violet: #7c3aed;
    --text-main: #F0F4F8;
    /* Refined off-white */
    --text-muted: #888888;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --card-hover: rgba(255, 255, 255, 0.06);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    /* Updated Font Stack */
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* UTILITIES */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ANIMATIONS */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aurora-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* NAVIGATION (Minimal & Standardized) */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 24px 0;
    background: rgba(3, 3, 5, 0.8);
    backdrop-filter: blur(16px);
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

nav .container {
    display: flex;
    align-items: center;
}

/* Adjusted alignment */

.logo-img {
    height: 42px;
    /* Increased constraint */
    width: auto;
    object-fit: contain;
    margin-right: 40px;
    /* Spacer */
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 24px;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

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

/* Ensure links align */

/* HERO SECTION */
.hero {
    position: relative;
    padding: 220px 0 160px;
    text-align: center;
    overflow: hidden;
}

/* Animated Gradient Background */
.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 800px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(0, 229, 255, 0.1) 40%, rgba(3, 3, 5, 0) 70%);
    filter: blur(80px);
    z-index: -1;
    animation: aurora-shift 10s ease infinite;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    /* Tighter line-height */
    letter-spacing: -0.03em;
    /* Tighter tracking */
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Standard property for cross-browser */
    background-clip: text;
    /* Standard */
    color: transparent;
    /* Fallback */
    animation: fade-up 0.8s ease-out;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 48px;
    animation: fade-up 0.8s ease-out 0.2s backwards;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    animation: fade-up 0.8s ease-out 0.4s backwards;
}

.cta-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}

/* SECTIONS & BENTO GRID */
.showcase {
    padding: 0 0 120px;
}

.section-label {
    text-align: center;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    margin-bottom: 60px;
    display: block;
}

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

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 320px);
    }
}

/* CARD STYLES */
.card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card::before {
    /* Glow effect from top */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0.5;
}

.card:hover {
    transform: translateY(-4px);
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Grid Placements */
.card-large {
    grid-column: span 1;
    grid-row: span 1;
}

@media (min-width: 768px) {
    .card-large {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.card-medium {
    grid-column: span 1;
    grid-row: span 1;
}

.card-small {
    grid-column: span 1;
    grid-row: span 1;
}

/* Card Content */
.card-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 99px;
    width: fit-content;
    margin-bottom: 20px;
}

.tag-live {
    background: rgba(0, 229, 255, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 229, 255, 0.3);
}

.tag-beta {
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-violet);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.card h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.05rem;
}

.card-visual {
    flex-grow: 1;
    margin-top: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
    border-radius: 12px;
    min-height: 100px;
}

/* Large card specific */
.card-large h3 {
    font-size: 2.5rem;
}

.card-large p {
    max-width: 80%;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 40px;
}

/* HAMBURGER MENU */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .logo-img {
        margin-right: 0;
    }

    nav .container {
        justify-content: space-between;
        width: 100%;
        align-items: center;
    }

    /* Center logo on mobile if no links */
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(3, 3, 5, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        padding: 20px 0;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
        /* Show when active */
    }

    .nav-link {
        margin: 16px 0;
        font-size: 1.1rem;
    }
}