/* ========================================
   RESET & BASE
   ======================================== */

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

html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

:root {
    --violet: #8b5cf6;
    --violet-dark: #6d28d9;
    --violet-light: #a78bfa;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --shadow: rgba(139, 92, 246, 0.1);
    --shadow-hover: rgba(139, 92, 246, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    font-size: 15px;
}

/* ========================================
   BACKGROUND GRADIENT
   ======================================== */

.bg-gradient {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(109, 40, 217, 0.02) 0%, transparent 50%);
}

/* ========================================
   NAVIGATION
   ======================================== */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1002;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--violet) 0%, var(--violet-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.3s ease;
    position: relative;
    z-index: 1002;
}

.logo:hover {
    filter: brightness(0.85) saturate(1.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    z-index: 1002;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--violet);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

nav a:hover {
    color: var(--violet);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--violet);
    color: white;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    background: var(--violet-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.05);
    border-color: var(--violet);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.2);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    background: white;
    margin-top: auto;
}

.footer-link {
    color: var(--violet);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--violet-dark);
}

/* ========================================
   COOKIE BANNER
   ======================================== */

.cookie-banner {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    transform: translateX(120%);
    max-width: 480px;
    width: calc(100% - 4rem);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-banner.show {
    transform: translateX(0);
    opacity: 1;
}

.cookie-banner-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cookie-banner-text {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.cookie-banner-message h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    letter-spacing: -0.3px;
}

.cookie-banner-message p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-link {
    color: var(--violet);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-link:hover {
    color: var(--violet-dark);
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.625rem;
    margin-left: auto;
}

.cookie-btn {
    padding: 0.65rem 1.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.cookie-btn-reject {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.cookie-btn-reject:hover {
    background: rgba(139, 92, 246, 0.05);
    border-color: var(--violet);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.2);
}

.cookie-btn-accept {
    background: var(--violet);
    color: white;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.cookie-btn-accept:hover {
    background: var(--violet-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* ========================================
   MOBILE RESPONSIVE - COMMON
   ======================================== */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
        padding: 2rem;
    }

    nav ul.active {
        right: 0;
    }

    nav a {
        font-size: 1.3rem;
    }

    footer {
        padding: 2rem 1.5rem;
    }

    footer p {
        font-size: 0.85rem;
    }

    .footer-link {
        font-size: 0.8rem;
        display: inline-block;
        padding: 0.25rem 0;
    }

    .cookie-banner {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        width: calc(100% - 2rem);
        max-width: none;
        padding: 1.125rem 1.25rem;
    }

    .cookie-banner-text {
        gap: 0.75rem;
    }

    .cookie-icon {
        font-size: 1.3rem;
    }

    .cookie-banner-message h4 {
        font-size: 0.9rem;
    }

    .cookie-banner-message p {
        font-size: 0.8rem;
    }

    .cookie-banner-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .cookie-banner-buttons {
        margin-left: 0;
        width: 100%;
        order: 1;
    }

    .cookie-link {
        text-align: center;
        font-size: 0.775rem;
        order: 2;
        margin-top: 0.25rem;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
        padding: 0.7rem 1rem;
    }
}