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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow-x: hidden;
    position: relative;
}

/* Three.js Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Glass Morphism Effect */
.navbar, .feature-card, .hero .image-placeholder, .footer, .badge, .btn-secondary {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(12px);
    position: fixed;
    width: 90%;
    left: 5%;
    top: 20px;
    border-radius: 60px;
    padding: 0.8rem 2rem;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.logo img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #a5f3fc;
    transform: translateY(-2px);
}

.signup-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    padding: 0.65rem 1.75rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.signup-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger to X animation */
.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-open .mobile-menu-overlay {
    display: block;
    opacity: 1;
}

/* Mobile Sidebar - Glass Morphism */
.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    height: 100vh;
    background: rgba(20, 30, 50, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    padding: 100px 28px 32px;
    gap: 12px;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-open .mobile-menu-sidebar {
    right: 0;
}

.mobile-menu-sidebar a {
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.mobile-menu-sidebar a:hover {
    color: #a5f3fc;
    padding-left: 10px;
    border-bottom-color: #60a5fa;
}

.mobile-menu-sidebar .mobile-signup {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: white !important;
    padding: 14px 20px;
    border-radius: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding: 180px 5% 100px;
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    color: white;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.3) !important;
    color: #a5f3fc;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.highlight {
    color: #a5f3fc;
    text-shadow: 0 0 20px rgba(165, 243, 252, 0.5);
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: white !important;
    color: #1f2937 !important;
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    background: #f0f0f0 !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
}

/* Hero Image */
.image-placeholder {
    width: 100%;
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

/* Features Section */
.features {
    padding: 100px 5%;
    position: relative;
    z-index: 1;
}

.features-container {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.features-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.features-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 2rem;
    text-align: left;
    transition: all 0.3s ease;
    color: white;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: white;
}

.feature-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(12px);
    color: #94a3b8;
    padding: 60px 5% 30px;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
}

.footer-links-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

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

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

.footer-column ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .navbar {
        width: 95%;
        left: 2.5%;
        padding: 0.8rem 1.5rem;
    }

    .hero {
        padding: 150px 5% 80px;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .image-placeholder {
        height: 300px;
    }

    .features-title {
        font-size: 2rem;
    }

    .features-subtitle {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-links-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .logo span {
        font-size: 1.25rem;
    }

    .hero-content h1 {
        font-size: 1.875rem;
    }
}