/* === DESIGN TOKENS === */
:root {
    --indigo: #6366f1;
    --indigo-dark: #4f46e5;
    --indigo-darker: #4338ca;
    --indigo-light: #a5b4fc;
    --indigo-bg: #eef2ff;
    --violet: #8b5cf6;
    --violet-bg: #f5f3ff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --green: #22c55e;
    --green-dark: #16a34a;
    --green-bg: #dcfce7;
    --yellow: #f59e0b;
    --yellow-bg: #fef3c7;
    --red: #ef4444;
    --red-bg: #fef2f2;
    --cyan: #06b6d4;
    --cyan-bg: #ecfeff;
    --radius: 16px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-padding-top: 60px; }
section[id] { scroll-margin-top: 60px; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--slate-800);
    background: var(--slate-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* === FOCUS === */
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

/* === NAV === */
nav {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226,232,240,0.6);
    padding: 14px 0; position: sticky; top: 0; z-index: 100;
}
nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 900; font-size: 20px; color: var(--indigo); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-icon {
    width: 32px; height: 32px; background: var(--indigo); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 900; font-size: 16px;
}
.logo span { color: var(--slate-800); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--slate-600); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--indigo); }
.nav-links a.active { color: var(--indigo-dark); font-weight: 700; }
.nav-cta {
    background: var(--indigo) !important; color: white !important;
    padding: 8px 20px; border-radius: 8px;
    font-weight: 600 !important; transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--indigo-dark) !important; transform: translateY(-1px); }

/* === HAMBURGER === */
.hamburger {
    display: none; background: none; border: none; cursor: pointer;
    padding: 8px; z-index: 110; min-width: 44px; min-height: 44px; width: 44px; height: 44px; position: relative;
}
.hamburger .bar {
    display: block; width: 22px; height: 2px; background: var(--slate-700);
    border-radius: 2px; position: absolute; left: 9px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hamburger .bar:nth-child(1) { top: 11px; }
.hamburger .bar:nth-child(2) { top: 19px; }
.hamburger .bar:nth-child(3) { top: 27px; }
.hamburger.open .bar:nth-child(1) { top: 19px; transform: rotate(45deg); }
.hamburger.open .bar:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.hamburger.open .bar:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 768px) {
    nav { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--slate-200); }
    .hamburger { display: block; }
    .nav-links {
        display: flex; position: fixed; top: 53px; left: 0; right: 0; bottom: 0;
        background: #fff;
        flex-direction: column; align-items: center; justify-content: flex-start;
        padding-top: 48px;
        gap: 8px; z-index: 105;
        overflow-y: auto;
        opacity: 0; visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }
    .nav-links.open { opacity: 1; visibility: visible; }
    .nav-links a { font-size: 18px; padding: 12px 24px; width: 100%; text-align: center; }
    .nav-links a:hover { background: var(--slate-50); }
    .nav-cta { font-size: 16px !important; padding: 12px 28px !important; margin-top: 16px; width: auto !important; }
}

/* === FOOTER === */
footer {
    background: var(--slate-900); color: var(--slate-400); padding: 48px 0;
}
.footer-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .logo-icon { width: 28px; height: 28px; font-size: 14px; border-radius: 6px; }
.footer-brand span { font-weight: 700; font-size: 16px; color: white; }
footer a { color: var(--indigo-light); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: white; }
.footer-links { display: flex; gap: 24px; font-size: 14px; align-items: center; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 24px; padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap; gap: 16px;
}
@media (max-width: 768px) {
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-payments { justify-content: center; }
}

/* === ANIMATIONS === */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* === UTILITY === */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 0 24px 24px;
    animation: cookie-slide-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) 1s both;
}
@keyframes cookie-slide-up {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}
.cookie-banner.hidden {
    animation: cookie-slide-down 0.35s cubic-bezier(0.4, 0, 1, 1) forwards;
    pointer-events: none;
}
@keyframes cookie-slide-down {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(100%); }
}
.cookie-inner {
    max-width: 860px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(15,23,42,0.12), 0 2px 8px rgba(15,23,42,0.06);
}
.cookie-icon { flex-shrink: 0; }
.cookie-text { flex: 1; }
.cookie-text p {
    font-size: 13px;
    color: var(--slate-600);
    line-height: 1.5;
    margin: 0;
}
.cookie-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-link {
    font-size: 12px;
    color: var(--slate-400);
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
    transition: color 0.2s;
}
.cookie-link:hover { color: var(--indigo); }
.cookie-btn-reject {
    padding: 8px 16px;
    border: 1.5px solid var(--slate-200);
    border-radius: 8px;
    background: white;
    color: var(--slate-600);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.cookie-btn-reject:hover { background: var(--slate-50); border-color: var(--slate-300); }
.cookie-btn-accept {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    background: var(--indigo);
    color: white;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(99,102,241,0.25);
    white-space: nowrap;
}
.cookie-btn-accept:hover { background: var(--indigo-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.35); }
@media (max-width: 768px) {
    .cookie-inner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 12px;
    }
    .cookie-actions { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .cookie-banner { padding: 0 12px 12px; }
    .cookie-actions { flex-wrap: wrap; }
    .cookie-link { width: 100%; text-align: center; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
