/* Scalapo v2 — Navbar + Home Hero (from prototype) */
body.has-sp-nav,
body.has-sp-nav button {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.has-sp-nav h1,
body.has-sp-nav h2,
body.has-sp-nav h3,
body.has-sp-nav h4,
body.has-sp-nav h5,
body.has-sp-nav h6 {
    font-family: 'Inter', sans-serif;
}

:root {
    --sp-black: #080808;
    --sp-g1: #111;
    --sp-g2: #1a1a1a;
    --sp-g3: #2a2a2a;
    --sp-g4: #444;
    --sp-g5: #888;
    --sp-g6: #bbb;
    --sp-white: #f5f5f0;
    --sp-lime: #D4FF00;
    --sp-r: 4px;
    --sp-rl: 8px;
    --sp-t: 180ms ease;
}

/* ── NAVBAR ── */
.sp-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--sp-g2);
    background: rgba(8, 8, 8, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sp-nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    height: 64px;
    gap: 18px;
}

.sp-logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--sp-white);
    text-decoration: none;
    justify-self: center;
}

.sp-logo span {
    color: var(--sp-lime);
}

.sp-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-links > li > a,
.sp-links .sp-dd-trigger {
    font-size: 13px;
    font-weight: 500;
    color: var(--sp-g5);
    padding: 8px 13px;
    border-radius: var(--sp-r);
    transition: color var(--sp-t), background var(--sp-t);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
    background: none;
    border: none;
    font-family: inherit;
}

.sp-links > li > a:hover,
.sp-links .sp-dd-trigger:hover {
    color: var(--sp-white);
    background: var(--sp-g2);
}

.sp-ni {
    position: relative;
}

/* Invisible bridge so the menu stays open while moving the cursor down */
.sp-ni::after {
    content: '';
    position: absolute;
    left: -8px;
    right: -8px;
    top: 100%;
    height: 14px;
    z-index: 199;
}

.sp-dd {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 270px;
    margin-top: 8px;
    background: var(--sp-g1);
    border: 1px solid var(--sp-g3);
    border-radius: var(--sp-rl);
    padding: 8px;
    display: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    z-index: 200;
}

.sp-dd-split {
    gap: 0;
    min-width: 540px;
    padding: 0;
}

.sp-dd-col {
    flex: 1;
    min-width: 0;
    padding: 8px;
}

.sp-dd-col-secondary {
    border-left: 1px solid var(--sp-g3);
}

.sp-dd-plain {
    gap: 0 !important;
}

.sp-ni.sp-dd-open .sp-chev {
    transform: rotate(180deg);
}

.sp-dd a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--sp-r);
    color: var(--sp-g6) !important;
    font-size: 13px;
    text-decoration: none;
    background: transparent !important;
}

.sp-dd a:hover {
    background: var(--sp-g2) !important;
    color: var(--sp-white) !important;
}

.sp-di {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.sp-dt strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--sp-white);
    margin-bottom: 2px;
}

.sp-dd a .sp-dt span {
    display: block;
    font-size: 11px;
    color: var(--sp-g5);
    line-height: 1.4;
    font-weight: 400;
}

.sp-chev {
    font-size: 10px;
    color: var(--sp-g5);
    transition: transform var(--sp-t);
}

.sp-ni.sp-dd-open .sp-dd {
    display: block;
}

.sp-ni.sp-dd-open .sp-dd-split {
    display: flex;
}

.sp-ncta {
    font-size: 13px !important;
    font-weight: 700 !important;
    background: var(--sp-lime) !important;
    color: #000 !important;
    padding: 9px 18px !important;
    border-radius: var(--sp-r) !important;
}

.sp-ncta:hover {
    opacity: 0.9;
    color: #000 !important;
    background: var(--sp-lime) !important;
}

.sp-ham {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
}

.sp-ham span {
    width: 22px;
    height: 2px;
    background: var(--sp-white);
    border-radius: 2px;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sp-ham.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.sp-ham.active span:nth-child(2) {
    opacity: 0;
}

.sp-ham.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.sp-mob {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--sp-black);
    z-index: 999;
    overflow-y: auto;
    padding: 24px;
    flex-direction: column;
    gap: 4px;
}

.sp-mob.open {
    display: flex;
}

.sp-mob a {
    font-size: 15px;
    font-weight: 600;
    color: var(--sp-g6);
    padding: 11px 14px;
    border-radius: var(--sp-r);
    text-decoration: none;
}

.sp-mob a:hover {
    color: var(--sp-white);
    background: var(--sp-g2);
}

.sp-mob-sec {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sp-g3);
    padding: 14px 14px 4px;
}

.sp-mob-sub {
    padding-left: 28px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* ── HERO ── */
.sp-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--sp-black);
}

#hcanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.sp-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 80px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sp-heyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sp-lime);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-heyebrow::before,
.sp-heyebrow::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--sp-lime);
}

.sp-hlogo {
    margin-bottom: 28px;
    filter: drop-shadow(0 0 30px rgba(212, 255, 0, 0.4)) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.9));
    animation: spLogoGlow 4s ease-in-out infinite;
}

.sp-hlogo-float {
    animation: spLogoFloat 4s ease-in-out infinite;
    will-change: transform;
}

.sp-hlogo img,
.sp-hlogo svg,
.sp-logo-svg {
    display: block;
    max-width: min(340px, 90vw);
    height: auto;
}

@keyframes spLogoFloat {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes spLogoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(212, 255, 0, 0.3)) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.9));
    }
    50% {
        filter: drop-shadow(0 0 45px rgba(212, 255, 0, 0.7)) drop-shadow(0 16px 32px rgba(0, 0, 0, 0.9));
    }
}

.sp-hh1 {
    font-size: clamp(26px, 4.5vw, 50px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--sp-white);
    max-width: 700px;
    margin-bottom: 16px;
}

.sp-hh1 em {
    font-style: normal;
    color: var(--sp-lime);
}

.sp-hsub {
    font-size: 16px;
    line-height: 1.65;
    color: var(--sp-g5);
    max-width: 520px;
    margin-bottom: 32px;
}

.sp-hbtns {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.sp-bp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    background: var(--sp-lime);
    color: #000;
    padding: 14px 28px;
    border-radius: var(--sp-r);
    border: none;
    text-decoration: none;
    transition: background var(--sp-t), transform var(--sp-t);
    font-family: inherit;
    cursor: pointer;
}

.sp-bp:hover {
    background: #d4ff30;
    transform: translateY(-2px);
    color: #000;
}

.sp-bp.is-loading {
    pointer-events: none;
    opacity: 0.85;
    cursor: wait;
}

.sp-bp .sp-btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: sp-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes sp-spin {
    to { transform: rotate(360deg); }
}

.sp-bs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    color: var(--sp-white);
    padding: 14px 28px;
    border-radius: var(--sp-r);
    border: 1px solid var(--sp-g3);
    text-decoration: none;
    transition: border-color var(--sp-t), background var(--sp-t);
    font-family: inherit;
    cursor: pointer;
}

.sp-bs:hover {
    border-color: var(--sp-g5);
    background: var(--sp-g2);
    color: var(--sp-white);
}

/* ── TICKER ── */
.sp-tick {
    border-top: 1px solid var(--sp-g2);
    border-bottom: 1px solid var(--sp-g2);
    background: var(--sp-g1);
    overflow: hidden;
    padding: 12px 0;
}

.sp-tick-track {
    display: flex;
    align-items: center;
    width: max-content;
    min-width: max-content;
    flex-shrink: 0;
    animation: spTick 28s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.sp-tick-track:hover {
    animation-play-state: paused;
}

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

.sp-ti {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sp-g4);
    padding: 0 32px;
}

.sp-ti .dot {
    color: var(--sp-lime);
}

/* body offset for fixed nav on inner pages */
body.has-sp-nav {
    padding-top: 64px;
}

body.has-sp-nav.is-home {
    padding-top: 0;
}

body.has-sp-nav.is-home .sp-hero {
    margin-top: 0;
    padding-top: 0;
}

@media (max-width: 900px) {
    .sp-hbtns {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 680px) {
    .sp-nav-inner {
        display: flex;
        justify-content: space-between;
    }

    .sp-logo {
        justify-self: auto;
    }

    .sp-links {
        display: none;
    }

    .sp-ham {
        display: flex;
    }
}

/* Keep hero logo + ticker running even when global reduced-motion resets animations */
@media (prefers-reduced-motion: reduce) {
    .sp-hlogo {
        animation: spLogoGlow 4s ease-in-out infinite !important;
    }

    .sp-hlogo-float {
        animation: spLogoFloat 4s ease-in-out infinite !important;
    }

    .sp-tick-track {
        animation: spTick 28s linear infinite !important;
    }
}
