@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #0B0F19; /* Very dark blue, almost black */
    --bg-secondary: #111827; /* Slightly lighter dark blue for cards */
    --bg-tertiary: #1F2937; /* Hover states, subtle borders */
    
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    --accent-blue: #3B82F6;
    --accent-blue-hover: #2563EB;
    --accent-purple: #8B5CF6;
    
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-8 { margin-top: 4rem; }
.mb-8 { margin-bottom: 4rem; }

.text-gradient {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: white;
}
.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background-color: var(--bg-tertiary);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-gradient {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    color: white;
}
.btn-gradient:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* Header / Nav */
.site-header {
    background-color: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem; /* Prevents logo, nav, and auth from ever touching */
    max-width: 1400px; /* Give a bit more breathing room for a wide menu */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}
.logo img {
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

/* Cards */
.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-icon {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}
.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

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

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

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

.hero-features {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-feature i {
    color: var(--accent-blue);
}

.hero-image-container {
    position: relative;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    background-color: var(--bg-secondary);
}

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

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}
.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.footer-col ul li a:hover {
    color: var(--accent-blue);
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 4rem 0;
    }
    .hero h1 { font-size: 2.5rem; }
    .hero-actions { justify-content: center; }
    .hero-features { justify-content: center; flex-wrap: wrap; }
    .nav-links, .nav-auth { display: none; } /* Mobile menu needed */
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.type-writer {
    border-right: 2px solid var(--accent-blue);
    padding-right: 5px;
    animation: blink-cursor 0.75s step-end infinite;
}

@keyframes blink-cursor {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-blue); }
}

/* Dropdowns */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown .dropbtn {
    display: flex;
    align-items: center;
    gap: 4px;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-secondary);
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    z-index: 101;
    top: 100%;
    left: 0;
    padding: 0.5rem 0;
}
.dropdown-content a {
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem !important;
    display: block;
    font-size: 0.85rem !important;
}
.dropdown-content a:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary) !important;
}
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDropdown 0.2s ease-in-out;
}
@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -200px; /* Hidden initially */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background-color: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    z-index: 9999;
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.cookie-banner.show {
    bottom: 2rem;
}
.cookie-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}
.cookie-text {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
}
.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .cookie-banner {
        width: 95%;
        padding: 1.25rem;
        bottom: -300px;
    }
    .cookie-banner.show {
        bottom: 1rem;
    }
    .cookie-content { 
        flex-direction: column; 
        align-items: stretch; 
        text-align: center; 
        gap: 1.5rem;
    }
    .cookie-actions { 
        flex-direction: column; 
    }
    .cookie-actions .btn { 
        width: 100%; 
    }
}
