:root {
    /* Color Palette */
    --bg-color: #f8fafc; /* Lighter background */
    --surface-color: rgba(255, 255, 255, 0.7); /* Slightly transparent white for glass effect */
    --border-color: #e2e8f0;
    --primary: #a855f7;
    --primary-glow: rgba(168, 85, 247, 0.6); /* Stronger glow for light bg */
    --secondary: #06b6d4;
    --secondary-glow: rgba(6, 182, 212, 0.6);
    --text-main: #0f172a; /* Dark text for contrast */
    --text-muted: #64748b;
    --accent-gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    
    /* Layout */
    --max-width: 1200px;
    --border-radius: 16px;
    --sidebar-width: 280px;
    
    /* Animations */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

/* Background Effects */
.blob {
    position: fixed;
    width: 600px;
    height: 600px;
    background: var(--primary-glow);
    filter: blur(100px); /* Slightly less blur to make color pop */
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: move-blobs 15s infinite alternate ease-in-out; /* Faster movement */
}

.blob-1 { top: -100px; left: -100px; }
.blob-2 { bottom: -100px; right: -100px; background: var(--secondary-glow); animation-delay: -7s; }

@keyframes move-blobs {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20vw, 10vh) scale(1.2); }
    66% { transform: translate(-10vw, 20vh) scale(0.8); }
    100% { transform: translate(10vw, -10vh) scale(1.1); }
}

/* Reveal Transitions */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Glassmorphism Components */
.glass-card {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05); /* Added subtle shadow */
}

.glass-card:hover {
    border-color: rgba(0, 0, 0, 0.1); /* Darker border on hover for light theme */
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
    transform: scale(1.05);
}

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

.btn-outline:hover {
    background: var(--surface-color);
    border-color: var(--text-muted);
}

/* Hero Section */
.hero {
    padding: 10rem 2rem 6rem;
    text-align: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Main Grid */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 1.5rem;
}

.bento-item {
    grid-column: span 12;
}

@media (min-width: 768px) {
    .bento-item.medium { grid-column: span 6; }
    .bento-item.large { grid-column: span 8; }
    .bento-item.small { grid-column: span 4; }
}

/* Footer */
footer {
    padding: 6rem 2rem 4rem;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.5); /* Light footer */
    backdrop-filter: blur(10px);
    margin-top: 8rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    text-align: left;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

input, textarea, select {
    width: 100%;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--surface-color);
    border-right: 1px solid var(--border-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1001; /* Above main content */
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 3rem;
    min-height: 100vh;
}

@media (max-width: 900px) {
    .main-content {
        margin-left: 0;
        padding-top: 5rem;
    }
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
    background: rgba(0, 0, 0, 0.05); /* Adjusted for light theme */
    color: var(--primary);
    font-weight: 600;
}

.user-tag {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

/* =================== RESPONSIVE =================== */

/* Hamburger toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    background: var(--accent-gradient);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--primary-glow);
}

@media (max-width: 900px) {
    .sidebar-toggle { display: flex; }
    
    .sidebar {
        position: fixed !important;
        left: -320px;
        top: 0;
        width: var(--sidebar-width);
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
        box-shadow: 4px 0 25px rgba(0,0,0,0.15);
    }
    .sidebar.open { left: 0; }
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 1040;
    }
    .sidebar-overlay.open { display: block; }
    
    .main-content {
        padding: 1.5rem;
        padding-top: 4rem;
    }
    
    .hero {
        padding-top: 6rem !important;
    }
    .hero h1 { font-size: 2rem !important; }
    
    nav .nav-links { display: none; }

    footer .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .bento-grid {
        grid-template-columns: 1fr !important;
    }

    .ideas-grid {
        grid-template-columns: 1fr !important;
    }

    .pricing-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .main-content { padding: 1rem; padding-top: 4rem; }
    h1 { font-size: 1.5rem !important; }
    .glass-card { padding: 1.25rem; }
}
