:root {
    --bg: #ffffff;
    --text: #1e1e24;
}

.dark {
    --bg: #0a0a0c;
    --text: #ffffff;
}

body {
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

::-webkit-scrollbar { display: none; }

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: auto;
}

.glass-nav {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
}

.dark .glass-nav {
    background: rgba(10, 10, 12, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-gradient-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, var(--bg) 100%);
}

.capability-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 32px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dark .capability-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.capability-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.gradient-text {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.95;
    will-change: transform, opacity, filter;
}

.section-label {
    font-size: 11px;
    letter-spacing: 0.25em;
    font-weight: 700;
    text-transform: uppercase;
    color: #0284c7;
}

.brand-logo {
    height: 40px;
    opacity: 0.5;
    transition: opacity 0.4s ease, transform 0.4s ease;
    filter: grayscale(100%);
}

.dark .brand-logo { filter: grayscale(100%) invert(1); }

.brand-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.dark .brand-logo:hover { filter: grayscale(0%) invert(0); }

.menu-btn {
    background: #0284c7;
    color: white;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background: #1e3a8a;
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(2, 132, 199, 0.3);
}

.services-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card { min-width: 320px; flex-shrink: 0; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-inner {
    display: flex;
    gap: 4rem;
    animation: marquee 25s linear infinite;
}

.marquee-inner:hover { animation-play-state: paused; }

.mixer-blob {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: grab;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

@media (min-width: 768px) {
    .mixer-blob {
        width: 72px;
        height: 72px;
        border: 4px solid white;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
}

.mixer-blob:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.mixer-blob.active {
    border-color: #38bdf8;
    transform: scale(1.2);
}

.result-swatch {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 6px solid white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transition: background-color 0.5s ease;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.dark .mobile-menu-overlay { background: rgba(10, 10, 12, 0.98); }
.mobile-menu-overlay.active { opacity: 1; pointer-events: auto; }

.palette-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    min-height: 160px;
}

@media (min-width: 768px) {
    .palette-grid-item { border-radius: 32px; min-height: auto; }
}

.punch-card { perspective: 1200px; }

.punch-card-inner {
    border-radius: 32px;
    overflow: hidden;
    transition: box-shadow 0.5s ease;
    transform-style: preserve-3d;
}

.punch-card-inner.punched {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.faq-item { border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.dark .faq-item { border-bottom-color: rgba(255, 255, 255, 0.06); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 0;
}

.faq-answer.open { max-height: 300px; padding: 16px 0; }

.faq-toggle-icon { transition: transform 0.4s ease; }
.faq-item.active .faq-toggle-icon { transform: rotate(45deg); }

.review-table {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.05);
    position: relative;
    flex-shrink: 0;
}

.dark .review-table {
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.review-card {
    position: absolute;
    width: 280px;
    padding: 24px;
    border-radius: 24px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    z-index: 5;
}

.dark .review-card {
    background: #141418;
    border-color: rgba(255, 255, 255, 0.06);
}

.nock-footer {
    position: relative;
    padding: 120px 0 60px 0;
    overflow: hidden;
}

.light .nock-footer { background: #ffffff; color: #1e1e24; }
.dark .nock-footer { background: linear-gradient(180deg, #0f0f12 0%, #0a0a0c 100%); color: #ffffff; }

.light .nock-footer a { color: rgba(30, 30, 36, 0.6); }
.light .nock-footer a:hover { color: #0284c7; }
.dark .nock-footer a { color: rgba(255, 255, 255, 0.7); }
.dark .nock-footer a:hover { color: #38bdf8; }

.light .nock-footer .footer-heading { color: #1e1e24; }
.light .nock-footer .footer-sub { color: rgba(30, 30, 36, 0.4); }
.dark .nock-footer .footer-heading { color: #ffffff; }
.dark .nock-footer .footer-sub { color: rgba(255, 255, 255, 0.4); }

.footer-bg-text {
    position: absolute;
    bottom: -5%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32vw;
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.05em;
    pointer-events: none;
    z-index: 0;
    text-transform: lowercase;
}

.light .footer-bg-text { color: rgba(0, 0, 0, 0.03); }
.dark .footer-bg-text { color: rgba(255, 255, 255, 0.03); }

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
