/* ── Tokens ─────────────────────────────────── */
:root {
    --triv-purple: #5B4FE8;
    --triv-purple2: #7C6FCD;
    --triv-yellow: #FFD93D;
    --triv-coral: #FF6B6B;
    --triv-teal: #4ECDC4;
    --triv-dark: #0D0B1E;
    --triv-dark2: #16122E;
    --triv-muted: rgba(220,215,255,.45);
    --triv-border: rgba(91,79,232,.25);
}

/* ── Reset & base ────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background: var(--triv-dark);
    color: #e8e4ff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

/* ── Animated grid bg ────────────────────────── */
.triv-grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(rgba(91,79,232,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(91,79,232,.07) 1px, transparent 1px);
    background-size: 52px 52px;
    animation: gridDrift 24s linear infinite;
}

@keyframes gridDrift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 52px 52px;
    }
}

/* ── Orb glows ───────────────────────────────── */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .2;
    z-index: 0;
    animation: orbFloat 9s ease-in-out infinite;
    pointer-events: none;
}

.orb-1 {
    width: 560px;
    height: 560px;
    background: var(--triv-purple);
    top: -160px;
    left: -160px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--triv-teal);
    bottom: -100px;
    right: -100px;
    animation-delay: -4s;
}

.orb-3 {
    width: 260px;
    height: 260px;
    background: var(--triv-coral);
    top: 55%;
    left: 52%;
    opacity: .12;
    animation-delay: -7s;
}

@keyframes orbFloat {
    0%,100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-28px) scale(1.05);
    }
}

/* ── Floating particles ──────────────────────── */
.particle {
    position: fixed;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: particleRise linear infinite;
    z-index: 1;
}

@keyframes particleRise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(.5);
    }

    10% {
        opacity: .55;
    }

    90% {
        opacity: .25;
    }

    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(1.2);
    }
}

/* ── Wrapper ─────────────────────────────────── */
.triv-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Top bar ─────────────────────────────────── */
.triv-topbar {
    border-bottom: 1px solid rgba(255,255,255,.06);
    backdrop-filter: blur(10px);
    background: rgba(13,11,30,.55);
}

    .triv-topbar .nav-brand {
        font-family: 'Bebas Neue', sans-serif;
        font-size: 1.8rem;
        letter-spacing: 1px;
        color: #fff;
        text-decoration: none;
        line-height: 1;
    }

        .triv-topbar .nav-brand span {
            color: var(--triv-purple2);
        }

.brand-tagline {
    font-size: .62rem;
    letter-spacing: 4px;
    color: var(--triv-purple2);
    text-transform: uppercase;
}

/* ── Hero ────────────────────────────────────── */
.triv-hero {
    flex: 1;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(91,79,232,.15);
    border: 1px solid var(--triv-border);
    color: var(--triv-purple2);
    font-size: .7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 100px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--triv-yellow);
    animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink {
    0%,100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .35;
        transform: scale(.65);
    }
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.8rem, 11vw, 7.5rem);
    line-height: .95;
    letter-spacing: 1px;
    color: #fff;
}

    .hero-title .accent {
        color: var(--triv-yellow);
    }

.hero-sub {
    font-size: 1rem;
    font-weight: 300;
    color: var(--triv-muted);
    line-height: 1.75;
}

/* ── Countdown ───────────────────────────────── */
.count-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    padding: 18px 12px 12px;
    transition: border-color .3s;
    min-width: 80px;
}

    .count-card:hover {
        border-color: rgba(91,79,232,.5);
    }

.count-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.8rem;
    line-height: 1;
    color: #fff;
}

.count-lbl {
    font-size: .6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--triv-muted);
    margin-top: 4px;
}

.count-sep {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.4rem;
    color: rgba(255,255,255,.18);
    align-self: flex-start;
    padding-top: 18px;
}

/* ── Email form ──────────────────────────────── */
.triv-input {
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 13px 18px !important;
    transition: border-color .25s, background .25s !important;
}

    .triv-input::placeholder {
        color: var(--triv-muted);
    }

    .triv-input:focus {
        box-shadow: none !important;
        border-color: rgba(91,79,232,.6) !important;
        background: rgba(91,79,232,.08) !important;
    }

.triv-btn {
    background: var(--triv-purple) !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600 !important;
    font-size: .9rem !important;
    padding: 13px 28px !important;
    color: #fff !important;
    transition: background .2s, transform .15s !important;
    white-space: nowrap;
}

    .triv-btn:hover {
        background: #6C62F0 !important;
        transform: translateY(-1px);
    }

    .triv-btn:active {
        transform: translateY(0) !important;
    }

.confirm-msg {
    display: none;
    color: var(--triv-teal);
    font-size: .9rem;
    align-items: center;
    gap: 8px;
}

    .confirm-msg.show {
        display: flex;
        justify-content: center;
    }

/* ── Social icons ────────────────────────────── */
.social-ico {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    color: var(--triv-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s, transform .15s;
}

    .social-ico:hover {
        border-color: var(--triv-purple);
        color: #fff;
        background: rgba(91,79,232,.15);
        transform: translateY(-2px);
    }

/* ── Globe SVG icon ──────────────────────────── */
.logo-globe {
    flex-shrink: 0;
}

/* ── Progress bar ────────────────────────────── */
.dev-progress {
    height: 4px !important;
    background: rgba(255,255,255,.07) !important;
    border-radius: 100px;
}

    .dev-progress .progress-bar {
        background: linear-gradient(90deg, var(--triv-purple), var(--triv-teal)) !important;
        border-radius: 100px;
        animation: progressGrow 2.5s cubic-bezier(.16,1,.3,1) both;
    }

@keyframes progressGrow {
    from {
        width: 0 !important;
    }
}

/* ── Bottom footer ───────────────────────────── */
.triv-footer {
    border-top: 1px solid rgba(255,255,255,.06);
    backdrop-filter: blur(10px);
    background: rgba(13,11,30,.6);
    font-size: .72rem;
    color: var(--triv-muted);
    letter-spacing: .5px;
}

    .triv-footer a {
        color: var(--triv-purple2);
        text-decoration: none;
    }

        .triv-footer a:hover {
            color: #fff;
        }

/* ── Animations on load ──────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(32px);
    animation: fadeUp .85s cubic-bezier(.16,1,.3,1) forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: .1s;
}

.delay-2 {
    animation-delay: .2s;
}

.delay-3 {
    animation-delay: .32s;
}

.delay-4 {
    animation-delay: .44s;
}

.delay-5 {
    animation-delay: .56s;
}

.delay-6 {
    animation-delay: .68s;
}

.delay-7 {
    animation-delay: .80s;
}

/* ── Deco route (corner) ─────────────────────── */
.deco-corner {
    position: fixed;
    top: 80px;
    right: 36px;
    opacity: .2;
    z-index: 5;
    pointer-events: none;
}

@media (max-width: 576px) {
    .deco-corner {
        display: none;
    }

    .count-num {
        font-size: 2.1rem;
    }

    .count-card {
        min-width: 62px;
        padding: 12px 8px 8px;
    }
}
