:root {
    --cy: #00E5FF;
    --vi: #A855F7;
    --mg: #FF2D55;
    --ng: #00FF88;
    --ink-900: #08080d;
    --ink-800: #0a0a0f;
    --ink-700: #0f0f17;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ink-800);
    color: #fff;
    font-family: 'Inter',system-ui,sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: rgba(0,229,255,.35);
    color: #fff;
}

/* ---------- Animated mesh gradient backdrop ---------- */
.mesh-bg {
    position: fixed;
    inset: -20%;
    z-index: -3;
    filter: blur(80px) saturate(140%);
    opacity: .55;
    pointer-events: none;
}

.mesh-bg .blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
    will-change: transform;
}

.blob.b1 {
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle,#00E5FF 0%, transparent 60%);
    top: -10%;
    left: -10%;
    animation: drift1 22s ease-in-out infinite alternate;
}

.blob.b2 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle,#A855F7 0%, transparent 60%);
    top: 20%;
    right: -20%;
    animation: drift2 26s ease-in-out infinite alternate;
}

.blob.b3 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle,#FF2D55 0%, transparent 60%);
    bottom: -10%;
    left: 20%;
    animation: drift3 30s ease-in-out infinite alternate;
    opacity: .6;
}

.blob.b4 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle,#00FF88 0%, transparent 60%);
    bottom: 10%;
    right: 10%;
    animation: drift4 28s ease-in-out infinite alternate;
    opacity: .35;
}

@keyframes drift1{
    0% {
        transform: translate(0,0) scale(1);
    }

    100% {
        transform: translate(15vw,10vh) scale(1.2);
    }
}

@keyframes drift2{
    0% {
        transform: translate(0,0) scale(1);
    }

    100% {
        transform: translate(-20vw,15vh) scale(1.1);
    }
}

@keyframes drift3{
    0% {
        transform: translate(0,0) scale(1);
    }

    100% {
        transform: translate(10vw,-15vh) scale(1.25);
    }
}

@keyframes drift4{
    0% {
        transform: translate(0,0) scale(1);
    }

    100% {
        transform: translate(-12vw,-8vh) scale(1.15);
    }
}

/* Noise overlay */
.noise {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .25 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/></svg>");
    opacity: .06;
    mix-blend-mode: overlay;
}

/* Vignette */
.vignette {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(120% 80% at 50% 30%, transparent 50%, rgba(0,0,0,.55) 100%);
}

/* ---------- Glassmorphism ---------- */
.glass {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
    border: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.glass-strong {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(24px) saturate(160%);
}

/* ---------- Gradient text ---------- */
.grad-text {
    background: linear-gradient(100deg, #fff 0%, #00E5FF 30%, #A855F7 55%, #FF2D55 80%, #fff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradMove 8s linear infinite;
}

.grad-text-cool {
    background: linear-gradient(100deg, #fff 0%, #00E5FF 40%, #A855F7 70%, #fff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradMove 9s linear infinite;
}

.grad-text-warn {
    background: linear-gradient(100deg, #fff 0%, #FF2D55 45%, #A855F7 75%, #fff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradMove 8s linear infinite;
}

.grad-text-safe {
    background: linear-gradient(100deg, #fff 0%, #00FF88 40%, #00E5FF 70%, #fff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradMove 9s linear infinite;
}

@keyframes gradMove{
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* ---------- Buttons ---------- */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .95rem 1.6rem;
    border-radius: 9999px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: #04111a;
    background: linear-gradient(120deg,#00E5FF 0%, #A855F7 100%);
    box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 10px 40px -10px rgba(0,229,255,.6), 0 10px 40px -15px rgba(168,85,247,.55);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
    overflow: hidden;
    isolation: isolate;
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,transparent 0%, rgba(255,255,255,.5) 50%, transparent 100%);
    transform: translateX(-120%);
    transition: transform .8s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.08);
    box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 18px 60px -12px rgba(0,229,255,.85), 0 18px 60px -15px rgba(168,85,247,.7);
}

.btn-primary:hover::before {
    transform: translateX(120%);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .95rem 1.6rem;
    border-radius: 9999px;
    font-weight: 500;
    color: #fff;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.14);
    transition: all .25s ease;
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255,255,255,.08);
    border-color: rgba(0,229,255,.45);
    box-shadow: 0 0 30px -10px rgba(0,229,255,.5);
    transform: translateY(-2px);
}

/* ---------- Pulse for CTA ---------- */
.pulse-glow {
    animation: pulseGlow 2.4s ease-in-out infinite;
}

@keyframes pulseGlow{
    0%,
    100% {
        box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 0 0 0 rgba(0,229,255,.5), 0 10px 40px -10px rgba(0,229,255,.6);
    }

    50% {
        box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 0 0 18px rgba(0,229,255,0), 0 20px 60px -10px rgba(168,85,247,.75);
    }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* ---------- Risk cards (shake on hover) ---------- */
.risk-card {
    position: relative;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.risk-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,45,85,.4), transparent 40%, rgba(168,85,247,.3));
    -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 1px;
    opacity: 0;
    transition: opacity .3s ease;
}

.risk-card:hover {
    animation: shakeAlarm .55s ease;
    border-color: rgba(255,45,85,.5)!important;
    box-shadow: 0 25px 60px -25px rgba(255,45,85,.55);
}

.risk-card:hover::after {
    opacity: 1;
}

@keyframes shakeAlarm{
    0%,
    100% {
        transform: translate(0,0);
    }

    15% {
        transform: translate(-2px,1px) rotate(-.4deg);
    }

    30% {
        transform: translate(2px,-1px) rotate(.4deg);
    }

    45% {
        transform: translate(-2px,0) rotate(-.3deg);
    }

    60% {
        transform: translate(2px,1px) rotate(.3deg);
    }

    75% {
        transform: translate(-1px,-1px) rotate(-.2deg);
    }
}

/* ---------- Solution cards ---------- */
.sol-card {
    position: relative;
    transition: transform .35s ease, border-color .3s ease, box-shadow .35s ease;
}

.sol-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,255,136,.35)!important;
    box-shadow: 0 25px 60px -25px rgba(0,255,136,.45), 0 25px 60px -30px rgba(0,229,255,.35);
}

.sol-card:hover .sol-icon {
    transform: scale(1.08) rotate(-3deg);
    filter: drop-shadow(0 0 12px rgba(0,255,136,.55));
}

.sol-icon {
    transition: all .4s ease;
}

/* ---------- Pricing card (popular) ---------- */
.price-card {
    transition: transform .35s ease, box-shadow .35s ease, border-color .3s ease;
}

.price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px -25px rgba(0,229,255,.45);
}

.price-popular {
    transform: scale(1.04);
    border-color: transparent!important;
}

.price-popular:hover {
    transform: scale(1.05) translateY(-6px);
}

.price-popular::before {
    content: "";
    position: absolute;
    inset: -1.5px;
    border-radius: inherit;
    background: conic-gradient(from var(--a,0deg), #00E5FF, #A855F7, #FF2D55, #00E5FF);
    z-index: -1;
    animation: spinBorder 6s linear infinite;
}

@property --a{
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes spinBorder{
    to {
        --a: 360deg;
    }
}

/* ---------- Trust ticker / marquee ---------- */
.marquee {
    display: flex;
    gap: 3rem;
    animation: marquee 38s linear infinite;
    white-space: nowrap;
    width: max-content;
}

@keyframes marquee{
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ---------- Orbs in hero ---------- */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: .45;
    pointer-events: none;
    animation: floatY 9s ease-in-out infinite alternate;
}

@keyframes floatY{
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-30px);
    }
}

/* ---------- Terminal ---------- */
.terminal {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .78rem;
    line-height: 1.65;
    color: #9fb0c8;
}

.terminal .cmd {
    color: #00E5FF;
}

.terminal .warn {
    color: #FF2D55;
}

.terminal .ok {
    color: #00FF88;
}

.terminal .mute {
    color: #5b6480;
}

.blink {
    animation: blink 1s steps(2) infinite;
}

@keyframes blink{
    50% {
        opacity: 0;
    }
}

/* ---------- Section dividers ---------- */
.section-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}

/* ---------- Accordion ---------- */
details.faq {
    border-bottom: 1px solid rgba(255,255,255,.08);
}

details.faq[open] summary .plus {
    transform: rotate(45deg);
    color: #00E5FF;
}

details.faq summary {
    list-style: none;
    cursor: pointer;
}

details.faq summary::-webkit-details-marker {
    display: none;
}

details.faq .plus {
    transition: transform .35s ease, color .3s ease;
}

details.faq .answer {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .5s ease, opacity .4s ease, padding .4s ease;
}

details.faq[open] .answer {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 1.4rem;
}

/* ---------- Step timeline ---------- */
.step-line {
    position: absolute;
    top: 34px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(0,229,255,.0), rgba(0,229,255,.45) 15%, rgba(168,85,247,.5) 50%, rgba(0,255,136,.45) 85%, transparent);
    z-index: 0;
}

.step-line::after {
    content: "";
    position: absolute;
    top: -1px;
    height: 4px;
    width: 14%;
    background: linear-gradient(90deg, rgba(0,229,255,0), #00E5FF, rgba(168,85,247,0));
    filter: blur(2px);
    animation: stepFlow 4s linear infinite;
}

@keyframes stepFlow{
    from {
        left: -15%;
    }

    to {
        left: 115%;
    }
}

/* ---------- Cursor glow on hero ---------- */
.cursor-glow {
    position: absolute;
    pointer-events: none;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,229,255,.18), transparent 60%);
    transform: translate(-50%,-50%);
    transition: opacity .3s ease;
    opacity: 0;
    z-index: 1;
}

/* ---------- Mobile drawer ---------- */
.drawer {
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.2,.7,.2,1);
}

.drawer.open {
    transform: translateX(0);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: transform .3s ease, opacity .3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Counter glow ---------- */
.stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -.03em;
    background: linear-gradient(180deg, #fff, #B4B4C8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 60px rgba(0,229,255,.25);
}

/* Hide scrollbar in horizontal marquee container */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    scrollbar-width: none;
}

/* Subtle border-gradient utility */
.ring-grad {
    position: relative;
    background-clip: padding-box;
}

.ring-grad::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0,229,255,.5), rgba(168,85,247,.5));
    -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .7rem;
    border-radius: 9999px;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    color: #cfd2e3;
    font-family: 'JetBrains Mono', monospace;
}

/* Glow dot */
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}