:where(body, button, input, select, textarea) {
    letter-spacing: 0.012em;
    font-kerning: normal;
}

:where(h1, h2, h3, h4, h5, h6, .font-display) {
    letter-spacing: 0.022em;
}
body {
    background-color: #FFFFFF;
    color: #212529;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

.logo-wordmark {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-canvas {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 38%, rgba(12, 142, 244, 0.22), transparent 48%),
        radial-gradient(circle at 16% 84%, rgba(12, 142, 244, 0.09), transparent 42%),
        linear-gradient(to right, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
        #212529;
    background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px, 100% 100%;
}

.hero-bg-art {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

@keyframes routeFlow {
    from {
        stroke-dashoffset: 180;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes hubPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.24);
        opacity: 0.26;
    }
}

.hero-route-flow {
    stroke-dasharray: 10 10;
    animation: routeFlow 9s linear infinite;
}

.hero-route-fast {
    stroke-dasharray: 8 12;
    animation: routeFlow 5.8s linear infinite;
}

.hero-hub-pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: hubPulse 3.2s ease-in-out infinite;
}

.arch-grid-subtle {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
}

.trade-grid-light {
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.032) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.032) 1px, transparent 1px);
    background-size: 40px 40px;
}

details > summary::-webkit-details-marker {
    display: none;
}

details[open] .faq-plus {
    transform: rotate(45deg);
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--d, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-item {
    position: relative;
    padding-bottom: 2px;
    transition: color 0.2s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background-color: #0C8EF4;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-item:hover::after,
.nav-item.is-active::after {
    transform: scaleX(1);
}

.surface-card {
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.26s ease;
}

.surface-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.10);
}

input.qty-clean::-webkit-outer-spin-button,
input.qty-clean::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input.qty-clean[type="number"] {
    -moz-appearance: textfield;
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .surface-card,
    .nav-item::after,
    .hero-route-flow,
    .hero-route-fast,
    .hero-hub-pulse {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

html[data-a11y="on"] .reveal,
html[data-a11y="on"] .surface-card,
html[data-a11y="on"] .hero-route-flow,
html[data-a11y="on"] .hero-route-fast,
html[data-a11y="on"] .hero-hub-pulse {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
}

html[data-a11y="on"][data-a11y-decor="hide"] .hero-bg-art {
    display: none !important;
}
