: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;
}

.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;
}

.hero-canvas {
    position: relative;
    overflow: hidden;
    background-color: #212529;
    background-image:
        radial-gradient(64% 78% at 78% 42%, rgba(149, 233, 19, 0.16) 0%, rgba(149, 233, 19, 0.05) 42%, rgba(33, 37, 41, 0) 76%),
        radial-gradient(40% 50% at 18% 12%, rgba(148, 163, 184, 0.08) 0%, rgba(33, 37, 41, 0) 70%),
        linear-gradient(to right, rgba(255, 255, 255, 0.038) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.038) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 56px 56px, 56px 56px;
}

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

.hero-route-flow {
    stroke-dasharray: 10 14;
    animation: uniRouteDash 18s linear infinite;
}

.hero-route-flow-fast {
    stroke-dasharray: 6 12;
    animation: uniRouteDash 11s linear infinite;
}

.hero-hub-pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: uniHubPulse 3.6s ease-out infinite;
}

.hero-cube-float {
    animation: uniCubeFloat 7.5s ease-in-out infinite;
}

.hero-cube-float-delayed {
    animation: uniCubeFloat 9s ease-in-out 1.8s infinite;
}

@keyframes uniRouteDash {
    to {
        stroke-dashoffset: -240;
    }
}

@keyframes uniHubPulse {
    0% {
        transform: scale(0.85);
        opacity: 0.72;
    }
    70% {
        transform: scale(1.9);
        opacity: 0;
    }
    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

@keyframes uniCubeFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

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: #95E913;
    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[type="range"].uni-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #E2E8F0;
    outline: none;
}

input[type="range"].uni-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #95E913;
    border: 3px solid #212529;
    box-shadow: 0 2px 8px rgba(33, 37, 41, 0.18);
    cursor: pointer;
    transition: transform 0.18s ease;
}

input[type="range"].uni-range::-webkit-slider-thumb:hover {
    transform: scale(1.08);
}

input[type="range"].uni-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #95E913;
    border: 3px solid #212529;
    box-shadow: 0 2px 8px rgba(33, 37, 41, 0.18);
    cursor: pointer;
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

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

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

html[data-a11y="on"] .reveal,
html[data-a11y="on"] .surface-card {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
}
