html {
    scroll-behavior: smooth;
}

body {
    background: #0A0A0F;
}

.gradient-text {
    background: linear-gradient(135deg, #8B7DFF 0%, #00D9A3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glow-brand {
    box-shadow: 0 0 0 1px rgba(108, 92, 231, .25), 0 24px 60px -20px rgba(108, 92, 231, .55);
}

.card-grad {
    background: radial-gradient(120% 120% at 0% 0%, rgba(108, 92, 231, .12) 0%, rgba(22, 22, 31, 0) 55%), #16161F;
}

.mesh {
    background:
        radial-gradient(50% 50% at 15% 10%, rgba(108, 92, 231, .22) 0%, transparent 60%),
        radial-gradient(45% 45% at 85% 20%, rgba(0, 217, 163, .16) 0%, transparent 60%);
}

.ring-pulse {
    animation: ring 2.4s cubic-bezier(.4, 0, .6, 1) infinite;
}

@keyframes ring {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .35;
        transform: scale(.85);
    }
}

.marquee {
    animation: slide 28s linear infinite;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: all .7s cubic-bezier(.16, 1, .3, 1);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.grid-faint {
    background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 56px 56px;
}

/* navbar scroll behavior */
#navWrap {
    transition: margin-top .3s ease, padding .3s ease;
}

#navBar {
    transition: border-radius .3s ease, background-color .3s ease, box-shadow .3s ease;
}

#appHeader.scrolled #navWrap {
    margin-top: 0;
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
}

#appHeader.scrolled #navBar {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    background: rgba(10, 10, 15, .92);
    box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .6);
}

#appHeader.scrolled #navInner {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

#appHeader.scrolled #mobileMenu {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
}

@media (min-width:640px) {
    #appHeader.scrolled #navInner {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.nav-link.nav-active {
    background: rgba(108, 92, 231, .18);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(108, 92, 231, .35);
}

.nav-link.nav-active i {
    color: #8B7DFF;
}

.m-link.nav-active {
    background: rgba(108, 92, 231, .18);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(108, 92, 231, .35);
}

.m-link.nav-active i {
    color: #8B7DFF;
}

/* staggered hero load-in */
.rise {
    opacity: 0;
    transform: translateY(28px);
    animation: rise .8s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rise-1 {
    animation-delay: .05s;
}

.rise-2 {
    animation-delay: .18s;
}

.rise-3 {
    animation-delay: .31s;
}

.rise-4 {
    animation-delay: .44s;
}

.rise-5 {
    animation-delay: .57s;
}

.rise-6 {
    animation-delay: .70s;
}

.pop {
    opacity: 0;
    transform: translateY(36px) scale(.96);
    animation: pop 1s cubic-bezier(.16, 1, .3, 1) .35s forwards;
}

@keyframes pop {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.typch {
    display: inline-block;
    opacity: 0;
    transform: translateY(14px);
    animation: typch .55s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes typch {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.float-y {
    animation: floaty 5s ease-in-out infinite;
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .marquee,
    .ring-pulse,
    .float-y {
        animation: none;
    }

    .rise,
    .pop,
    .typch {
        opacity: 1;
        transform: none;
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

.codeblock {
    background: #0a0a0f;
    border: 1px solid #23232F;
    border-radius: 14px;
    overflow: hidden;
}

.codeblock pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #d6dce6;
}

.tok-key {
    color: #8B7DFF
}

/* JSON keys — purple */
.tok-str {
    color: #00D9A3
}

/* strings — mint/green */
.tok-num {
    color: #F5B14C
}

/* numbers — amber */
.tok-com {
    color: #6b6b7a;
    font-style: italic
}

.faq-item .faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.faq-item.open .faq-a {
    max-height: 400px;
}

.faq-item.open .faq-ic {
    transform: rotate(45deg);
}

.faq-ic {
    transition: transform .25s ease;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .faq-item .faq-a {
        transition: none;
    }
}

/* legal / policy pages */
.legal { color: #9A9AAB; font-size: 15px; line-height: 1.7; }
.legal > p { margin-bottom: 16px; }
.legal h2 {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #EDEDF2;
    margin: 32px 0 12px;
}
.legal h2:first-child,
.legal > p:first-child { margin-top: 0; }
.legal ul {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}
.legal ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
}
.legal ul li::before {
    content: "›";
    position: absolute;
    left: 6px;
    color: #8B7DFF;
    font-weight: 700;
}
.legal strong { color: #EDEDF2; font-weight: 600; }
.legal a { color: #8B7DFF; }
.legal a:hover { text-decoration: underline; }
.legal code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background: #1c1c27;
    color: #EDEDF2;
    padding: 1px 6px;
    border-radius: 5px;
}