/* ========================================
   VoiceCreate Premium Visual Refresh
   CSS-only layer: keeps the original HTML and JavaScript behavior intact.
======================================== */

:root {
    --primary: #8b5cf6;
    --primary-dark: #5b21b6;
    --primary-light: #c4b5fd;
    --secondary: #f43f8b;
    --accent: #22d3ee;
    --gold: #f6c768;

    --bg-dark: #06020f;
    --bg-card: rgba(255, 255, 255, 0.055);
    --bg-gradient:
        radial-gradient(circle at 18% 12%, rgba(139, 92, 246, 0.24), transparent 34%),
        radial-gradient(circle at 86% 18%, rgba(34, 211, 238, 0.14), transparent 32%),
        radial-gradient(circle at 50% 100%, rgba(244, 63, 139, 0.13), transparent 35%),
        linear-gradient(135deg, #05020c 0%, #0d061d 52%, #030108 100%);

    --text-primary: #fffaf2;
    --text-secondary: rgba(255, 250, 242, 0.78);
    --text-muted: rgba(255, 250, 242, 0.52);

    --container-width: 1180px;
    --section-padding: 112px 0;
    --glass: rgba(255, 255, 255, 0.065);
    --glass-border: rgba(255, 255, 255, 0.16);
    --glass-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
    --glow: 0 0 36px rgba(139, 92, 246, 0.44);
    --glow-strong: 0 0 70px rgba(139, 92, 246, 0.56);
}

html {
    background: #05020c;
}

body {
    background: var(--bg-gradient);
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

body::before {
    background:
        linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        var(--bg-gradient);
    background-size: 72px 72px, 72px 72px, cover;
    animation: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.06), transparent 22%),
        linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 100%);
}

#particles-js {
    background: transparent !important;
    opacity: 0.58;
}

#matrixRain {
    opacity: 0.08;
}

.floating-notes span {
    opacity: 0.16;
    filter: blur(0.2px) drop-shadow(0 0 12px rgba(139, 92, 246, 0.7));
}

/* Navigation */
.navbar {
    top: 16px;
    left: 50%;
    width: min(1280px, calc(100% - 28px));
    padding: 10px 0;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(8, 4, 18, 0.72) !important;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

.nav-container {
    padding: 0 10px 0 18px;
    gap: 18px;
}

.nav-logo {
    gap: 12px;
}

.logo-img {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.45);
}

.logo-text {
    background: linear-gradient(90deg, #ffffff, #c4b5fd 48%, #f6c768);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 800;
}

.nav-links {
    gap: 6px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.nav-links a,
.lang-toggle {
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.15;
}

.nav-links a:not(.btn-invite):not(.btn-support) {
    padding: 10px 11px;
    color: rgba(255, 250, 242, 0.76);
    font-size: 15px;
}

.nav-links a:not(.btn-invite):not(.btn-support):hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.btn-support,
.btn-invite,
.btn,
.lang-toggle {
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 14px 34px rgba(0, 0, 0, 0.22);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-invite,
.btn-primary {
    background: linear-gradient(135deg, #f6c768 0%, #f43f8b 45%, #8b5cf6 100%) !important;
    color: #fff !important;
}

.btn-support,
.btn-secondary,
.lang-toggle {
    background: rgba(255, 255, 255, 0.065) !important;
    color: #fff !important;
    backdrop-filter: blur(18px);
}

.btn-support,
.btn-invite {
    padding: 12px 19px !important;
    min-height: 48px;
}

.btn-invite {
    min-width: 116px;
}

.btn-support {
    min-width: 118px;
}

.lang-toggle {
    min-width: 82px;
    padding: 12px 14px !important;
    gap: 6px;
}

/* Hero */
.hero {
    max-width: 1240px;
    min-height: 100svh;
    padding-top: 150px;
    gap: 48px;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 110px auto auto 50%;
    width: min(980px, 92vw);
    height: 520px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(3, 2, 8, 0.82);
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    flex: 1.08;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 250, 242, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.badge-dot {
    background: #34d399;
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.8);
}

.hero-title {
    font-size: clamp(54px, 8vw, 108px);
    line-height: 0.92;
    letter-spacing: -0.075em;
    margin-bottom: 28px;
}

.gradient-text {
    background: linear-gradient(90deg, #ffffff 0%, #c4b5fd 34%, #22d3ee 66%, #f6c768 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 24px 55px rgba(139, 92, 246, 0.35));
}

.subtitle {
    display: inline-block;
    margin-top: 8px;
    font-size: clamp(28px, 4.2vw, 54px);
    font-weight: 600;
    color: rgba(255, 250, 242, 0.92);
    letter-spacing: -0.055em;
}

.hero-description {
    max-width: 640px;
    color: rgba(255, 250, 242, 0.78);
    font-size: 18px;
    line-height: 1.9;
}

.hero-buttons {
    align-items: center;
}

.btn {
    border-radius: 999px;
    padding: 15px 26px;
}

.btn:hover {
    transform: translateY(-4px);
}

.btn-secondary:hover,
.btn-support:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 620px;
}

.hero-stats .stat,
.stat-box,
.feature-card,
.bot-card,
.command-item,
.music-panel-demo,
.showcase-feature,
.dash-card,
.vlb-entry,
.faq-item,
.changelog-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.088), rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.hero-stats .stat {
    padding: 18px 18px;
    border-radius: 22px;
    text-align: left;
}

.stat-number,
.stat-text,
.stat-value,
.vc-value,
.ping-value {
    color: #f6c768;
    background: linear-gradient(135deg, #f6c768, #c4b5fd, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: rgba(255, 250, 242, 0.56);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-image {
    flex: 0.92;
}

.mascot-wrapper {
    width: min(500px, 42vw);
    height: min(500px, 42vw);
}

.hero-mascot-full {
    filter: drop-shadow(0 24px 55px rgba(139, 92, 246, 0.38)) drop-shadow(0 0 28px rgba(34, 211, 238, 0.18));
}

.ring-1,
.ring-2 {
    opacity: 0.76;
}

.mascot-glow-bg {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.48) 0%, rgba(34, 211, 238, 0.18) 36%, transparent 70%);
}

/* Sections */
section {
    position: relative;
}

.section-header {
    margin-bottom: 56px;
}

.section-title {
    font-size: clamp(36px, 5.2vw, 68px);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.section-subtitle {
    color: rgba(255, 250, 242, 0.66);
}

.section-header::after {
    height: 3px;
    background: linear-gradient(90deg, transparent, #22d3ee, #8b5cf6, #f6c768, transparent);
}

.features,
.bots,
.commands,
.showcase,
.live-dashboard,
.voice-leaderboard,
.faq,
.changelog,
.stats-section,
.cta {
    max-width: var(--container-width);
}

.feature-card,
.bot-card,
.command-item,
.faq-item,
.changelog-item {
    border-radius: 28px;
}

.feature-card {
    padding: 34px;
}

.feature-icon,
.bot-avatar,
.stat-icon,
.dash-icon,
.panel-icon {
    filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.55));
}

.feature-card:hover,
.bot-card:hover,
.command-item:hover,
.faq-item:hover,
.changelog-item:hover,
.vlb-entry:hover {
    border-color: rgba(196, 181, 253, 0.48);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42), 0 0 48px rgba(139, 92, 246, 0.22);
}

.bots-container {
    gap: 24px;
}

.bot-card {
    width: 310px;
    padding: 34px;
}

.bot-card::before,
.dash-card::before {
    opacity: 0.18;
}

.warning-badge {
    border-radius: 999px;
    background: rgba(246, 199, 104, 0.12);
    border-color: rgba(246, 199, 104, 0.38);
    color: #f6d48c;
}

.command-item {
    min-height: 74px;
}

.command-item code {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
}

.command-item span {
    white-space: normal;
    color: rgba(255, 250, 242, 0.74);
}

/* Demo panels and dashboard */
.music-panel-demo,
.dash-card {
    border-radius: 30px;
}

.panel-progress,
.progress-bg,
.vlb-progress-bg {
    background: rgba(255, 255, 255, 0.08);
}

.progress-fill,
.progress-bar,
.vlb-progress-fill {
    background: linear-gradient(90deg, #22d3ee, #8b5cf6, #f43f8b);
}

.live-badge {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vlb-custom-select {
    min-width: min(360px, 92vw);
}

.vlb-select-trigger,
.vlb-select-options {
    border-radius: 20px;
    background: rgba(12, 7, 24, 0.84);
    border-color: rgba(255, 255, 255, 0.16);
}

.vlb-entry {
    border-radius: 22px;
}

.vlb-rank {
    border-radius: 16px;
}

.vlb-rank-1 {
    background: linear-gradient(135deg, #fff3b0, #f6c768);
}

.faq-question {
    color: #fff;
}

.faq-answer p,
.changelog-content li {
    color: rgba(255, 250, 242, 0.72);
}

.changelog-version {
    background: linear-gradient(135deg, #22d3ee, #8b5cf6, #f43f8b);
    box-shadow: 0 0 28px rgba(139, 92, 246, 0.32);
}

.stats-container {
    gap: 18px;
}

.stat-box {
    border-radius: 28px;
}

.cta {
    width: min(1180px, calc(100% - 40px));
    margin: 80px auto;
    border-radius: 42px;
    background:
        radial-gradient(circle at 18% 10%, rgba(34, 211, 238, 0.2), transparent 32%),
        radial-gradient(circle at 80% 20%, rgba(244, 63, 139, 0.2), transparent 36%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--glass-shadow);
}

.cta-content h2 {
    font-size: clamp(34px, 5vw, 64px);
    letter-spacing: -0.055em;
}

.footer {
    width: min(1120px, calc(100% - 40px));
    margin: 88px auto 52px;
    padding: 46px 24px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(8, 4, 18, 0.72), rgba(8, 4, 18, 0.48));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.scroll-to-top {
    background: linear-gradient(135deg, #8b5cf6, #f43f8b);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 36px rgba(139, 92, 246, 0.36);
}

/* Mobile polish */
@media (max-width: 900px) {
    .navbar {
        top: 10px;
        width: calc(100% - 20px);
        border-radius: 24px;
    }

    .nav-links.active {
        top: 74px;
        border-radius: 24px;
        background: rgba(8, 4, 18, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
    }

    .hero {
        grid-template-columns: 1fr;
        flex-direction: column;
        padding-top: 128px;
        text-align: center;
    }

    .hero-description,
    .hero-stats {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .hero-stats .stat {
        text-align: center;
    }

    .mascot-wrapper {
        width: min(360px, 88vw);
        height: min(360px, 88vw);
    }
}

@media (max-width: 560px) {
    :root {
        --section-padding: 78px 0;
    }

    .hero-title {
        font-size: clamp(48px, 15vw, 74px);
    }

    .subtitle {
        font-size: clamp(25px, 8vw, 36px);
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .features-grid,
    .commands-grid {
        grid-template-columns: 1fr;
    }

    .command-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ========================================
   MotionSites-inspired composition pass
   Richer background, tighter layout, scroll motion, and premium spacing.
======================================== */

body {
    isolation: isolate;
}

#particles-js::before,
#particles-js::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: -1;
}

#particles-js::before {
    width: 56vw;
    height: 56vw;
    left: -18vw;
    top: 16vh;
    border-radius: 999px;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.12), transparent 9%),
        radial-gradient(circle at 52% 45%, rgba(139, 92, 246, 0.44), transparent 42%),
        radial-gradient(circle at 70% 62%, rgba(34, 211, 238, 0.18), transparent 34%);
    filter: blur(34px);
    animation: vcAuroraDrift 18s ease-in-out infinite alternate;
}

#particles-js::after {
    width: 48vw;
    height: 48vw;
    right: -14vw;
    top: 54vh;
    border-radius: 999px;
    background:
        radial-gradient(circle at 42% 38%, rgba(246, 199, 104, 0.24), transparent 28%),
        radial-gradient(circle at 55% 58%, rgba(244, 63, 139, 0.34), transparent 46%);
    filter: blur(48px);
    animation: vcAuroraDrift 22s ease-in-out infinite alternate-reverse;
}

body::before {
    animation: vcGridFloat 28s linear infinite;
}

body::after {
    background:
        linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.03) 22%, transparent 44%),
        radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.085), transparent 25%),
        radial-gradient(circle at 60% 52%, rgba(139, 92, 246, 0.09), transparent 30%),
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.42) 100%);
    animation: vcLightSweep 16s ease-in-out infinite alternate;
}

@keyframes vcAuroraDrift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(8vw, -5vh, 0) scale(1.13);
    }
}

@keyframes vcGridFloat {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 72px 144px, 144px 72px, 0 0;
    }
}

@keyframes vcLightSweep {
    0% {
        opacity: 0.72;
        transform: translateX(-2vw);
    }

    100% {
        opacity: 1;
        transform: translateX(2vw);
    }
}

/* Layout rhythm */
.features,
.bots,
.commands,
.showcase,
.live-dashboard,
.voice-leaderboard,
.faq,
.changelog,
.stats-section {
    width: min(1180px, calc(100% - 40px));
    padding: 120px 0;
}

.stats-section,
.showcase,
.bots,
.voice-leaderboard {
    width: 100%;
    max-width: none;
    padding-left: max(20px, calc((100vw - 1180px) / 2));
    padding-right: max(20px, calc((100vw - 1180px) / 2));
}

.stats-section {
    margin: 40px 0 60px;
    padding-top: 104px;
    padding-bottom: 112px;
    background:
        radial-gradient(55% 95% at 18% 50%, rgba(139, 92, 246, 0.23), transparent 62%),
        radial-gradient(50% 90% at 88% 50%, rgba(244, 63, 139, 0.16), transparent 58%),
        linear-gradient(90deg, rgba(9, 4, 18, 0.2), rgba(255, 255, 255, 0.035), rgba(9, 4, 18, 0.1));
    border-block: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.stats-section::before {
    content: "LIVE SYSTEM METRICS";
    display: block;
    margin: 0 auto 38px;
    width: fit-content;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 250, 242, 0.58);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.stats-section::after {
    content: "";
    position: absolute;
    inset: 28% -8% auto auto;
    width: 42vw;
    height: 220px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.12), rgba(246, 199, 104, 0.1), rgba(244, 63, 139, 0.15));
    filter: blur(42px);
    animation: vcPanelFloat 8s ease-in-out infinite alternate;
}

@keyframes vcPanelFloat {
    0% {
        transform: translateY(-10px) rotate(-5deg);
    }

    100% {
        transform: translateY(18px) rotate(5deg);
    }
}

.stats-container {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat-box {
    min-height: 210px;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 30px 22px;
}

.stat-box:nth-child(even) {
    transform: translateY(28px);
}

.stat-icon {
    font-size: 42px;
    margin-bottom: 16px;
}

.stat-value {
    font-size: clamp(34px, 4.5vw, 58px);
    line-height: 1;
}

.stat-box::before,
.feature-card::before,
.bot-card::after,
.music-panel-demo::before,
.dash-card::after,
.vlb-entry::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.11) 45%, transparent 70%);
    opacity: 0;
    transform: translateX(-80%);
    transition: opacity 0.3s ease;
}

.stat-box:hover::before,
.feature-card:hover::before,
.bot-card:hover::after,
.music-panel-demo:hover::before,
.dash-card:hover::after,
.vlb-entry:hover::after {
    opacity: 1;
    animation: vcCardShine 1.2s ease;
}

@keyframes vcCardShine {
    to {
        transform: translateX(80%);
    }
}

/* Showcase: make the demo feel designed, not sparse */
.showcase {
    background:
        radial-gradient(70% 90% at 50% 10%, rgba(99, 102, 241, 0.22), transparent 62%),
        linear-gradient(180deg, transparent, rgba(26, 32, 76, 0.38), transparent);
}

.showcase-container {
    display: grid;
    grid-template-columns: minmax(320px, 1.08fr) minmax(280px, 0.92fr);
    gap: 40px;
    max-width: 980px;
    margin: 0 auto;
}

.music-panel-demo {
    width: 100%;
    min-height: 330px;
    padding: 34px;
}

.panel-progress {
    height: 14px;
    margin: 28px 0 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible;
}

.panel-progress .progress-fill,
.progress-fill {
    height: 100%;
    border-radius: inherit;
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.5);
}

.time {
    color: rgba(255, 250, 242, 0.88);
    font-weight: 800;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.panel-controls {
    margin-top: 24px;
}

.control-btn {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 28px rgba(0, 0, 0, 0.28);
}

.control-btn.play {
    transform: scale(1.22);
    background: linear-gradient(135deg, #8b5cf6, #f43f8b);
}

.showcase-features {
    display: grid;
    gap: 20px;
}

.showcase-feature {
    min-height: 112px;
    border-radius: 24px;
    padding: 24px;
}

/* Music bot cards: align actions and premium CTAs */
.bots {
    background:
        radial-gradient(44% 70% at 50% 30%, rgba(139, 92, 246, 0.2), transparent 64%),
        linear-gradient(180deg, rgba(23, 29, 69, 0.5), rgba(8, 4, 18, 0.08));
}

.bots-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bot-card {
    width: auto;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.bot-card .bot-status {
    margin-right: auto;
}

.bot-card .btn-bot {
    min-width: 150px;
    text-align: center;
    border-radius: 999px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.grizz-btn {
    background: linear-gradient(135deg, #f6c768, #b86919) !important;
}

.panda-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(139,92,246,0.36)) !important;
}

.icebear-btn {
    background: linear-gradient(135deg, #a7f3ff, #60a5fa) !important;
}

/* Scroll-to-top: compact premium button */
.scroll-to-top {
    left: auto !important;
    right: 28px !important;
    bottom: 34px !important;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 0;
    line-height: 1;
    transform: translateY(100px);
    z-index: 2000;
}

.scroll-to-top.visible {
    transform: translateY(0) !important;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.06) !important;
}

.scroll-to-top::before {
    content: "↑";
    font-size: 28px;
    font-weight: 900;
}

.scroll-to-top::after {
    content: "TOP";
    position: absolute;
    bottom: -20px;
    color: rgba(255, 250, 242, 0.72);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

/* Scroll reveal effects added by redesign.js */
.vc-reveal {
    opacity: 0;
    transform: translateY(42px) scale(0.985);
    filter: blur(10px);
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--vc-delay, 0ms);
}

.vc-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.section-header.vc-reveal {
    transform: translateY(28px) scale(0.99);
}

.feature-card.vc-reveal,
.bot-card.vc-reveal,
.command-item.vc-reveal,
.stat-box.vc-reveal {
    transform: translateY(55px) scale(0.96);
}

.feature-card.vc-reveal.is-visible,
.bot-card.vc-reveal.is-visible,
.command-item.vc-reveal.is-visible,
.stat-box.vc-reveal.is-visible {
    transform: translateY(0) scale(1);
}

/* More intentional wide compositions */
.features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card:nth-child(1),
.feature-card:nth-child(4) {
    transform-origin: center left;
}

.feature-card:nth-child(3),
.feature-card:nth-child(6) {
    transform-origin: center right;
}

.live-dashboard .dashboard-grid {
    gap: 22px;
}

@media (min-width: 901px) {
    .hero {
        min-height: 980px;
    }

    .hero-content {
        padding-top: 20px;
    }
}

@media (max-width: 980px) {
    .stats-container,
    .bots-container,
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .showcase-container {
        grid-template-columns: 1fr;
    }

    .stat-box:nth-child(even) {
        transform: none;
    }
}

@media (max-width: 640px) {
    .stats-container,
    .bots-container,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-section,
    .showcase,
    .bots,
    .voice-leaderboard {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Full-screen opaque video background requested by user */
.vc-video-background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

body {
    background: transparent;
}

body > :not(.vc-video-background) {
    position: relative;
    z-index: 1;
}

body::before,
body::after,
#particles-js::before,
#particles-js::after {
    display: none;
}

#particles-js {
    background: transparent !important;
    opacity: 0;
}

#matrixRain,
.floating-notes {
    opacity: 0;
}

/* Ping graph fix: keep the canvas readable instead of a blown-out purple block */
.ping-graph {
    padding: 28px !important;
}

.ping-graph .dash-content {
    overflow: hidden;
}

#pingChart {
    display: block;
    width: 100% !important;
    height: 150px !important;
    margin-top: 14px;
    border-radius: 22px;
    background: rgba(5, 2, 12, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ping-value {
    width: fit-content;
    padding: 4px 0;
    font-size: clamp(34px, 5vw, 56px) !important;
    line-height: 1;
}

.dashboard-stale .live-badge {
    background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.42) !important;
}

.dashboard-stale .section-subtitle {
    color: #fcd34d !important;
}

/* Final bug-fix pass: compact footer, fixed back-to-top, crisp latency graph */
.footer {
    width: min(920px, calc(100% - 56px)) !important;
    margin: 64px auto 48px !important;
    padding: 34px 28px !important;
    border-radius: 30px !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
        rgba(7, 3, 16, 0.62) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(18px) saturate(135%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
}

.footer-content {
    display: grid;
    justify-items: center;
    gap: 10px;
}

.footer-logo {
    margin-bottom: 2px !important;
}

.footer p,
.footer-links,
.copyright {
    margin: 0 !important;
}

.footer-links {
    flex-wrap: wrap;
    gap: 10px 14px !important;
}

.scroll-to-top,
button#scrollToTop.scroll-to-top {
    position: fixed !important;
    left: auto !important;
    right: max(22px, env(safe-area-inset-right)) !important;
    bottom: max(30px, env(safe-area-inset-bottom)) !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: grid !important;
    place-items: center !important;
    z-index: 99999 !important;
}

.scroll-to-top:not(.visible) {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translate3d(0, 22px, 0) scale(0.92) !important;
}

.scroll-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate3d(0, 0, 0) scale(1) !important;
}

.scroll-to-top:hover {
    transform: translate3d(0, -4px, 0) scale(1.06) !important;
}

.scroll-to-top::after {
    display: none !important;
}

.ping-graph {
    max-width: 1180px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.ping-graph .dash-content {
    border-radius: 28px;
}

#pingChart {
    height: 132px !important;
    max-height: 132px !important;
    image-rendering: auto;
}

@media (max-width: 640px) {
    .footer {
        width: calc(100% - 32px) !important;
        margin-top: 42px !important;
        padding: 28px 18px !important;
    }

    .scroll-to-top,
    button#scrollToTop.scroll-to-top {
        right: 16px !important;
        bottom: 18px !important;
    }
}
