@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

body {
    background-color: var(--off-white);
    color: var(--grey-700);
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--grey-100);
    z-index: 1000;
    transition: var(--transition-med);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--grey-900);
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--blue-500);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.logo-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.logo-text span {
    color: var(--blue-500);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    position: relative;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--grey-400);
    transition: var(--transition-fast);
    padding: var(--space-xs) 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--blue-500);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-500);
    transition: var(--transition-fast);
    border-radius: 1px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-cart {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grey-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--grey-100);
    transition: var(--transition-fast);
    color: var(--grey-500);
}

.nav-cart svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-cart:hover {
    border-color: var(--blue-500);
    color: var(--blue-500);
    background: var(--blue-50);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: var(--blue-500);
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transform: scale(0);
    transition: var(--transition-fast);
}

.cart-count.visible {
    transform: scale(1);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: var(--space-sm);
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--grey-600);
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--grey-900);
    color: var(--grey-300);
    padding: var(--space-4xl) 0 var(--space-xl);
    margin-top: var(--space-4xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer-brand .logo-icon {
    background: var(--blue-500);
}

.footer-brand p {
    color: var(--grey-400);
    font-size: 0.88rem;
    max-width: 280px;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.footer-col a {
    display: block;
    font-size: 0.88rem;
    color: var(--grey-400);
    padding: 5px 0;
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--blue-300);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--grey-400);
}

/* ===== SECTION ===== */
.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--grey-900);
    margin-bottom: var(--space-sm);
}

.section-header h2 span {
    color: var(--blue-500);
}

.section-header p {
    color: var(--grey-400);
    font-size: 0.95rem;
    max-width: 480px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 11px 24px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--blue-500);
    color: var(--white);
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    background: var(--blue-600);
    box-shadow: var(--shadow-blue-lg);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--blue-500);
    border: 1.5px solid var(--blue-500);
}

.btn-secondary:hover {
    background: var(--blue-50);
    transform: translateY(-1px);
}

.btn-ghost {
    background: var(--white);
    color: var(--grey-600);
    border: 1px solid var(--grey-200);
}

.btn-ghost:hover {
    border-color: var(--blue-500);
    color: var(--blue-500);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 0.95rem;
}

.btn-danger-outline {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-danger-outline:hover {
    background: var(--danger-bg);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-power), transform 0.6s var(--ease-power);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-2xl);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.3rem;
        color: var(--grey-700);
    }

    .mobile-toggle {
        display: flex;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}