@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #10B981;
    --secondary: #059669;
    --accent: #34D399;
    --background: #0B0F1A;
    --card-bg: rgba(17, 24, 39, 0.7);
}

/* Base Styles */
body {
    background: var(--background);
    font-family: 'Inter', sans-serif;
    color: #E2E8F0;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Navigation */
.nav-blur {
    background: rgba(11, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 80px;
    display: flex;
    align-items: center;
}

/* Hero Section */
.hero-gradient {
    background: 
        radial-gradient(circle at 10% 50%, rgba(16, 185, 129, 0.15), transparent 30%),
        radial-gradient(circle at 90% 50%, rgba(16, 185, 129, 0.1), transparent 30%);
    position: relative;
}

/* Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Feature Icons */
.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.glass-card:hover .feature-icon {
    background: rgba(16, 185, 129, 0.2);
    transform: scale(1.1);
}

/* Highlight Box */
.highlight-box {
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
    border-radius: 8px;
}

/* Forms */
.custom-input {
    width: 100%;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.custom-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.custom-input::placeholder {
    color: #9CA3AF;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Loading States */
.btn-loading {
    position: relative;
    cursor: wait;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success States */
.btn-success {
    background: #059669 !important;
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-blur {
        padding: 0.75rem 0;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    .glass-card {
        margin: 0.5rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .hidden-1fr {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .grid {
        grid-template-columns: 1fr !important;
    }

    .order-1 {
        order: 0;
    }

    .order-2 {
        order: 0;
    }

}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Focus States */
:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4);
}

/* Selection Color */
::selection {
    background: var(--primary);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Mobile Menu Styles */
.mobile-menu {
    transform: translateY(-100%);
    transition: all 0.3s ease;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    z-index: 49;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

/* Hamburger Animation */
.hamburger, .close {
    transition: all 0.3s ease;
}

/* Responsive Design for Various Devices */
/* Apple Watch / Small Devices */
@media screen and (max-width: 320px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 0.5rem;
    }

    h1.text-7xl {
        font-size: 2rem;
    }

    .glass-card {
        padding: 0.75rem;
    }
}

/* VR Headsets / Ultra Wide */
@media screen and (min-width: 2560px) {
    html {
        font-size: 18px;
    }

    .container {
        max-width: 2000px;
    }
}

/* Foldable Devices */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* Portrait Tablets */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Landscape Phones */
@media screen and (max-height: 480px) and (orientation: landscape) {
    .mobile-menu {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .hero-gradient {
        padding-top: 4rem;
    }
}