/* ===== RBXSMART Design System ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #05050a;
    --bg-elevated: #0b0b14;
    --card: rgba(255, 255, 255, 0.04);
    --card-border: rgba(168, 85, 247, 0.22);
    --text: #f4f4f8;
    --text-muted: rgba(220, 220, 240, 0.62);
    --purple: #a855f7;
    --purple-deep: #7c3aed;
    --magenta: #d946ef;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --grad: linear-gradient(90deg, #d946ef 0%, #a855f7 45%, #3b82f6 100%);
    --grad-btn: linear-gradient(90deg, #9333ea 0%, #7c3aed 50%, #2563eb 100%);
    --glow-purple: 0 0 28px rgba(168, 85, 247, 0.45);
    --glow-soft: 0 0 40px rgba(124, 58, 237, 0.25);
    --radius: 14px;
    --font: 'Outfit', system-ui, sans-serif;
    --font-display: 'Orbitron', 'Outfit', sans-serif;
    --nav-h: 76px;
    --container: 1180px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input {
    font-family: inherit;
}

/* ===== Background ===== */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: var(--bg);
}

.bg-mesh::before {
    content: '';
    position: absolute;
    inset: -40%;
    width: 180%;
    height: 180%;
    background:
        radial-gradient(ellipse 50% 40% at 20% 25%, rgba(168, 85, 247, 0.28), transparent 55%),
        radial-gradient(ellipse 45% 35% at 80% 20%, rgba(37, 99, 235, 0.22), transparent 50%),
        radial-gradient(ellipse 40% 40% at 55% 75%, rgba(217, 70, 239, 0.16), transparent 55%),
        radial-gradient(ellipse 35% 30% at 10% 80%, rgba(34, 211, 238, 0.1), transparent 50%);
    animation: auroraDrift 18s ease-in-out infinite;
}

.bg-mesh::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse at center, black 25%, transparent 78%);
    animation: gridPan 40s linear infinite;
}

@keyframes auroraDrift {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(4%, -3%) rotate(2deg) scale(1.05); }
    66% { transform: translate(-3%, 4%) rotate(-2deg) scale(0.98); }
}

@keyframes gridPan {
    0% { background-position: 0 0; }
    100% { background-position: 72px 72px; }
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
}

.orb-1 {
    width: 420px;
    height: 420px;
    background: #7c3aed;
    top: -8%;
    left: -6%;
    animation: orbFloat 22s ease-in-out infinite;
}

.orb-2 {
    width: 360px;
    height: 360px;
    background: #2563eb;
    top: 35%;
    right: -8%;
    animation: orbFloat 28s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #d946ef;
    bottom: 5%;
    left: 30%;
    animation: orbFloat 24s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.08); }
}

/* floating particles + scan streaks */
.fx-layer {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.fx-particle {
    position: absolute;
    bottom: -10px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c4b5fd;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.9);
    opacity: 0;
    animation: particleRise linear infinite;
}

.fx-streak {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.55), rgba(34, 211, 238, 0.5), transparent);
    opacity: 0;
    animation: streakSlide 9s ease-in-out infinite;
}

@keyframes particleRise {
    0% { transform: translateY(0) translateX(0) scale(0.6); opacity: 0; }
    12% { opacity: 0.85; }
    85% { opacity: 0.4; }
    100% { transform: translateY(-105vh) translateX(var(--drift, 20px)) scale(1.2); opacity: 0; }
}

@keyframes streakSlide {
    0%, 100% { transform: translateX(-30%) scaleX(0.4); opacity: 0; }
    40% { opacity: 0.55; }
    70% { transform: translateX(30%) scaleX(1); opacity: 0.2; }
}

.fx-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.06), transparent);
    animation: scanMove 11s linear infinite;
}

@keyframes scanMove {
    0% { top: -15%; }
    100% { top: 110%; }
}

/* CRT + cyber overlays */
.fx-crt {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.12) 2px,
            rgba(0, 0, 0, 0.12) 4px
        );
    opacity: 0.07;
    mix-blend-mode: multiply;
}

.fx-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 45%, rgba(5, 5, 10, 0.55) 100%);
}

.fx-hex {
    position: absolute;
    width: var(--size, 40px);
    height: var(--size, 40px);
    opacity: 0.35;
    border: 1.5px solid rgba(168, 85, 247, 0.55);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
    animation: hexDrift var(--dur, 14s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.fx-hex.alt {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.3);
}

@keyframes crtFlicker {
    0%, 94%, 100% { opacity: 0.32; }
    95% { opacity: 0.18; }
    96% { opacity: 0.4; }
}

@keyframes hexDrift {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 0.25; }
    40% { transform: translate(var(--mx, 30px), var(--my, -40px)) rotate(40deg) scale(1.15); opacity: 0.55; }
    70% { transform: translate(calc(var(--mx, 30px) * -0.5), calc(var(--my, -40px) * 0.4)) rotate(-20deg) scale(0.9); opacity: 0.35; }
}

@keyframes bitFall {
    0% { transform: translateY(-10vh); opacity: 0; }
    15% { opacity: 0.7; }
    100% { transform: translateY(110vh); opacity: 0; }
}

.page {
    position: relative;
    z-index: 2;
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
    .fx-layer,
    .orb,
    .bg-mesh::before,
    .bg-mesh::after,
    .hero-title,
    .badge,
    .btn-primary,
    .brand-mark,
    .hero-rbxl {
        animation: none !important;
    }
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(5, 5, 10, 0.72);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.navbar-inner {
    max-width: var(--container);
    margin: 0 auto;
    height: 100%;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.65));
    animation: logoBob 3.2s ease-in-out infinite;
}

@keyframes logoBob {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    40% { transform: translateY(-3px) rotate(-4deg) scale(1.06); }
    70% { transform: translateY(1px) rotate(3deg) scale(0.98); }
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 14px rgba(168, 85, 247, 0.35));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    transition: color 0.25s, text-shadow 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    text-shadow: 0 0 16px rgba(168, 85, 247, 0.55);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    border: none;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad-btn);
    color: #fff;
    box-shadow: var(--glow-purple), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
    animation: neonPulse 2.8s ease-in-out infinite;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    animation: btnShine 3.5s ease-in-out infinite;
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.75), 0 0 12px rgba(34, 211, 238, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:active {
    transform: translateY(1px) scale(0.97);
}

@keyframes neonPulse {
    0%, 100% { box-shadow: 0 0 22px rgba(168, 85, 247, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
    50% { box-shadow: 0 0 34px rgba(168, 85, 247, 0.7), 0 0 10px rgba(34, 211, 238, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
}

@keyframes btnShine {
    0%, 60%, 100% { left: -120%; }
    75% { left: 140%; }
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(168, 85, 247, 0.45);
    box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.08);
}

.btn-ghost:hover {
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.25);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 28px;
    font-size: 0.88rem;
    border-radius: 12px;
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    padding: calc(var(--nav-h) + 48px) 28px 72px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #e9d5ff;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.35);
    margin-bottom: 22px;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
    animation: badgeBlink 3.8s ease-in-out infinite;
}

.badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 10px #22d3ee;
    animation: liveDot 1.2s ease-in-out infinite;
}

@keyframes badgeBlink {
    0%, 100% { box-shadow: 0 0 16px rgba(168, 85, 247, 0.2); border-color: rgba(168, 85, 247, 0.35); }
    50% { box-shadow: 0 0 28px rgba(34, 211, 238, 0.35); border-color: rgba(34, 211, 238, 0.55); }
}

@keyframes liveDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.65); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
    text-transform: uppercase;
    position: relative;
    animation: titleIdle 5s ease-in-out infinite;
}

.hero-title.glitch,
.tool-hero h1.glitch {
    position: relative;
    text-shadow:
        0 0 22px rgba(168, 85, 247, 0.42),
        0 0 52px rgba(124, 58, 237, 0.22);
}

.hero-title.glitch::before,
.hero-title.glitch::after,
.tool-hero h1.glitch::before,
.tool-hero h1.glitch::after {
    content: none;
}

.hero-title .grad {
    background: var(--grad);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradShift 4s ease-in-out infinite;
}

@keyframes titleIdle {
    0%, 100% { filter: drop-shadow(0 0 0 transparent); }
    50% { filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.35)); }
}

@keyframes gradShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

@keyframes glitchA {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-3px, 1px); }
    94% { transform: translate(3px, -1px); }
    96% { transform: translate(-2px, 2px); }
}

@keyframes glitchB {
    0%, 88%, 100% { transform: translate(0); }
    91% { transform: translate(3px, 0); }
    93% { transform: translate(-3px, -1px); }
    97% { transform: translate(2px, 1px); }
}

.hero-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 420px;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 65%);
    filter: blur(10px);
    animation: pulseGlow 4s ease-in-out infinite;
}

.hero-visual::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 2px dashed rgba(34, 211, 238, 0.35);
    animation: ringSpin 12s linear infinite;
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.2), inset 0 0 24px rgba(34, 211, 238, 0.12);
}

.hero-rings {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.25);
    animation: ringSpin 18s linear infinite reverse;
}

.hero-rings::before,
.hero-rings::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(217, 70, 239, 0.3);
}

.hero-rings::before {
    inset: 28px;
    animation: ringSpin 10s linear infinite;
}

.hero-rings::after {
    inset: 56px;
    border-style: dashed;
    border-color: rgba(34, 211, 238, 0.35);
    animation: ringSpin 7s linear infinite reverse;
}

.hero-spark {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 12px #a855f7, 0 0 22px #22d3ee;
    animation: sparkPop 2.4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes ringSpin {
    to { transform: rotate(360deg); }
}

@keyframes sparkPop {
    0%, 100% { transform: scale(0.4); opacity: 0.3; }
    50% { transform: scale(1.3); opacity: 1; }
}

.hero-rbxl {
    width: min(420px, 92%);
    position: relative;
    z-index: 1;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.55));
    animation: floatY 5.5s ease-in-out infinite;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-10px) rotate(-1.5deg) scale(1.02); }
    50% { transform: translateY(-16px) rotate(0deg) scale(1.04); }
    75% { transform: translateY(-8px) rotate(1.5deg) scale(1.01); }
}

/* ===== Sections ===== */
.section {
    padding: 80px 28px;
    max-width: var(--container);
    margin: 0 auto;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--purple);
    text-align: center;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 750;
    text-align: center;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 68px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 999px;
    background: var(--grad);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.6);
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
}

/* ===== Block panels (cyber HUD frames) ===== */
.panel {
    position: relative;
    background:
        linear-gradient(180deg, rgba(124, 58, 237, 0.06), rgba(37, 99, 235, 0.03)),
        rgba(9, 8, 17, 0.45);
    border: 1.5px solid rgba(168, 85, 247, 0.38);
    border-radius: 20px;
    padding: 26px;
    box-shadow:
        inset 0 0 34px rgba(124, 58, 237, 0.12),
        0 12px 40px rgba(5, 5, 12, 0.5);
}

.panel::before,
.tool-panel::before,
.video-panel::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 24px;
    height: 24px;
    border-top: 2px solid var(--cyan);
    border-left: 2px solid var(--cyan);
    border-top-left-radius: 8px;
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.7));
    pointer-events: none;
    z-index: 2;
}

.panel::after,
.tool-panel::after,
.video-panel::after {
    content: '';
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-bottom: 2px solid var(--magenta);
    border-right: 2px solid var(--magenta);
    border-bottom-right-radius: 8px;
    filter: drop-shadow(0 0 6px rgba(217, 70, 239, 0.7));
    pointer-events: none;
    z-index: 2;
}

/* ===== Stats ===== */
.stats-section {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px 44px;
}

.stats-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 30px 20px;
}

.stat-card {
    padding: 8px 22px;
    text-align: center;
    position: relative;
    border-left: 1px solid rgba(168, 85, 247, 0.16);
    transition: transform 0.3s ease;
}

.stat-card:first-child {
    border-left: none;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card:hover .stat-icon {
    transform: scale(1.12);
    filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.75));
}

.stat-icon {
    width: 38px;
    height: 38px;
    margin: 0 auto 12px;
    color: var(--purple);
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
}

@keyframes iconJiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    30% { transform: rotate(-8deg) scale(1.08); }
    60% { transform: rotate(6deg) scale(1.02); }
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== Partners ===== */
.partners-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.partner-card {
    flex: 1 1 190px;
    max-width: 300px;
    min-height: 104px;
    padding: 20px 24px;
    background: var(--card);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
}

.partner-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: none;
}

.partner-card:hover {
    transform: translateY(-6px) scale(1.05) rotate(1deg);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: var(--glow-soft);
}

.partner-card:hover::after {
    animation: cardSwipe 0.7s ease;
}

@keyframes cardSwipe {
    to { transform: translateX(120%); }
}

.partner-card img {
    height: 72px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    opacity: 0.92;
    filter: brightness(1.15);
    transition: opacity 0.25s, filter 0.25s, transform 0.25s;
}

.partner-card:hover img {
    opacity: 1;
    filter: brightness(1.25);
    transform: scale(1.04);
}

.partner-name {
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 1.15rem;
    color: #fff;
}

/* ===== Showcase ===== */
.showcase {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.showcase-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: var(--glow-purple);
    background: #111;
}

.showcase-frame img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.showcase-copy h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.showcase-copy p {
    color: var(--text-muted);
    margin-bottom: 22px;
}

.showcase-link {
    color: #c4b5fd;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s, gap 0.2s;
}

.showcase-link:hover {
    color: #fff;
    gap: 10px;
}

/* ===== Feature CTA ===== */
.feature-cta {
    margin: 20px auto 80px;
    max-width: var(--container);
    padding: 0 28px;
}

.feature-cta-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 32px 36px;
    border-radius: 18px;
    background: linear-gradient(120deg, rgba(124, 58, 237, 0.22), rgba(37, 99, 235, 0.15));
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: var(--glow-purple);
    position: relative;
    overflow: hidden;
}

.feature-cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 50%, rgba(217, 70, 239, 0.2), transparent 45%);
    pointer-events: none;
}

.feature-cta-icon {
    width: 88px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.6));
}

.feature-cta-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.feature-cta-text h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.feature-cta-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.feature-cta .btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* ===== Tools grid ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 22px 22px 20px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s, box-shadow 0.3s;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad);
    opacity: 0.4;
    transition: opacity 0.3s, box-shadow 0.3s;
}

.tool-card:hover::before {
    opacity: 1;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.7);
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 18px 44px rgba(5, 5, 12, 0.5), 0 0 30px rgba(124, 58, 237, 0.2);
}

.tool-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-btn);
    box-shadow: var(--glow-purple);
    color: #fff;
    flex-shrink: 0;
}

.tool-status {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.tool-status.is-live {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.4);
    background: rgba(74, 222, 128, 0.1);
}

.tool-status.is-beta {
    color: #22d3ee;
    border-color: rgba(34, 211, 238, 0.4);
    background: rgba(34, 211, 238, 0.1);
}

.tool-status.is-soon {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.1);
}

.tool-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.tool-feats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tool-feats span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #c4b5fd;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.09);
    border: 1px solid rgba(168, 85, 247, 0.22);
}

.tool-card .btn {
    width: 100%;
    margin-top: auto;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid rgba(168, 85, 247, 0.15);
    padding: 56px 28px 28px;
    background: rgba(0, 0, 0, 0.25);
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-social h4 {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
    color: #fff;
}

.footer-bottom {
    max-width: var(--container);
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(168, 85, 247, 0.14);
    text-align: center;
}

.footer-bottom .footer-copy {
    color: rgba(220, 220, 240, 0.42);
    font-size: 0.8rem;
}

.footer-brand .brand {
    margin-bottom: 14px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    max-width: 260px;
}

.footer-copy {
    color: rgba(220, 220, 240, 0.4);
    font-size: 0.8rem;
}

.footer-col h4 {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
    color: #fff;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.socials {
    display: flex;
    gap: 12px;
}

.socials a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.socials a:hover {
    border-color: var(--purple);
    box-shadow: var(--glow-soft);
}

/* ===== Tool page ===== */
.tool-page {
    padding: calc(var(--nav-h) + 40px) 28px 80px;
    max-width: 860px;
    margin: 0 auto;
}

.tool-hero {
    text-align: center;
    margin-bottom: 40px;
}

.tool-hero .hero-rbxl {
    width: 180px;
    margin: 0 auto 18px;
}

.tool-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 12px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-hero p {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
}

.tool-panel {
    position: relative;
    background: var(--card);
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--glow-soft);
    margin-bottom: 24px;
}

.field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #c4b5fd;
    margin-bottom: 10px;
}

.input-row {
    display: flex;
    gap: 12px;
}

.tool-input {
    flex: 1;
    min-width: 0;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.35);
    background: rgba(5, 5, 12, 0.75);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    caret-color: #a855f7;
    font-size: 1.15rem;
    letter-spacing: 0.22em;
    /* native OS UI font renders solid round password dots reliably */
    font-family: 'Segoe UI', Tahoma, Verdana, system-ui, -apple-system, sans-serif;
    outline: none;
    box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.08);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tool-input::placeholder {
    color: rgba(220, 220, 240, 0.35);
    -webkit-text-fill-color: rgba(220, 220, 240, 0.35);
    letter-spacing: normal;
    font-family: var(--font);
}

.tool-input:focus {
    border-color: rgba(168, 85, 247, 0.75);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12), var(--glow-soft);
}

.tool-input::-ms-reveal,
.tool-input::-ms-clear {
    display: none;
}

.game-found {
    margin-top: 22px;
    display: none;
}

.game-found.show {
    display: block;
    animation: fadeUp 0.35s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-found-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #86efac;
    margin-bottom: 10px;
}

.game-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(134, 239, 172, 0.25);
}

.game-thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: #1a1a28;
    flex-shrink: 0;
}

.game-meta h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-meta h4 svg {
    color: #4ade80;
    flex-shrink: 0;
}

.game-meta p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.game-meta .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: #c4b5fd;
}

.video-panel {
    position: relative;
    background: var(--card);
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--glow-soft);
}

.video-panel h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.video-thumb {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.25);
    cursor: pointer;
    aspect-ratio: 16 / 9;
    background: #111;
}

.video-thumb img,
.video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(5, 5, 12, 0.85));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px;
    text-align: center;
}

.video-play {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: none;
    background: var(--grad-btn);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-purple);
    cursor: pointer;
    transition: transform 0.25s;
}

.video-thumb:hover .video-play {
    transform: scale(1.08);
}

.video-caption {
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
    max-width: 420px;
}

/* ===== Modal / notifications ===== */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-modal.open {
    display: flex;
}

.video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 3, 8, 0.9);
    backdrop-filter: blur(10px);
}

.video-modal-content {
    position: relative;
    z-index: 1;
    width: min(1000px, 92%);
}

.video-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.35);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#tutorialVideo {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: var(--glow-purple);
}

.custom-notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    transition: top 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 320px;
    max-width: 92vw;
}

.custom-notification.show {
    top: 28px;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    background: rgba(10, 10, 18, 0.92);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 14px;
    backdrop-filter: blur(16px);
    box-shadow: var(--glow-soft);
}

.custom-notification.success .notification-content {
    border-color: rgba(74, 222, 128, 0.4);
}

.custom-notification.error .notification-content {
    border-color: rgba(248, 113, 113, 0.45);
}

.notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.custom-notification.success .notification-icon { color: #4ade80; }
.custom-notification.error .notification-icon { color: #f87171; }

/* ===== 404 ===== */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-h) + 40px) 28px 80px;
}

.error-code {
    font-family: var(--font-display);
    font-size: clamp(5rem, 16vw, 9rem);
    font-weight: 800;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.4));
    margin-bottom: 12px;
}

.error-page h1 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.error-page p {
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 420px;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: calc(var(--nav-h) + 32px);
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-visual {
        min-height: 280px;
        order: -1;
    }

    .stats-panel {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card:nth-child(odd) {
        border-left: none;
    }

    .stat-card:nth-child(n+3) {
        border-top: 1px solid rgba(168, 85, 247, 0.16);
        margin-top: 10px;
        padding-top: 18px;
    }

    .showcase {
        grid-template-columns: 1fr;
    }

    .feature-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(5, 5, 10, 0.96);
        border-bottom: 1px solid rgba(168, 85, 247, 0.2);
        padding: 12px 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 14px 28px;
        width: 100%;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-cta-desktop {
        display: none;
    }
}

@media (max-width: 640px) {
    .stats-panel {
        grid-template-columns: 1fr;
    }

    .stat-card {
        border-left: none;
    }

    .stat-card:nth-child(n+2) {
        border-top: 1px solid rgba(168, 85, 247, 0.16);
        margin-top: 8px;
        padding-top: 16px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .input-row {
        flex-direction: column;
    }

    .game-card {
        flex-direction: column;
        text-align: center;
    }

    .game-meta h4 {
        justify-content: center;
    }

    .game-meta .tags {
        justify-content: center;
    }
}

/* ============================================================
   LAYOUT V2 — Sidebar shell + dashboard / bento (new structure)
   ============================================================ */
.app-shell {
    position: relative;
    min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 248px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
    background: linear-gradient(180deg, rgba(14, 10, 26, 0.92), rgba(7, 6, 14, 0.92));
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border-right: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 2px 0 40px rgba(5, 5, 12, 0.55);
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px 18px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.14);
}

.sidebar-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.sidebar-nav a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.8;
}

.sidebar-nav a:hover {
    color: #fff;
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.28);
}

.sidebar-nav a.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.22), rgba(37, 99, 235, 0.12));
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: inset 0 0 18px rgba(168, 85, 247, 0.15);
}

.sidebar-nav a.active svg {
    opacity: 1;
    color: var(--cyan);
    filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.6));
}

.sidebar-foot {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-cta {
    width: 100%;
}

.sidebar-foot .socials {
    justify-content: center;
}

.sidebar-copy {
    text-align: center;
    color: rgba(220, 220, 240, 0.4);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

/* ---- Main area ---- */
.main {
    margin-left: 248px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 32px;
    background: rgba(6, 6, 12, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.12);
}

.topbar-status {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
    animation: liveDot 1.4s ease-in-out infinite;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    transition: color 0.2s;
}

.topbar-back:hover {
    color: #fff;
}

.chip {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #c4b5fd;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.08);
}

.btn-sm {
    padding: 9px 15px;
    font-size: 0.72rem;
    border-radius: 9px;
}

.main-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    flex: 1;
}

[id] {
    scroll-margin-top: 84px;
}

/* ---- Hero v2 (command-bar hero) ---- */
.hero-v2 {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    padding: 46px 0 34px;
}

.hero-v2-copy .badge {
    margin-bottom: 20px;
}

.hero-v2-copy .hero-title {
    font-size: clamp(2rem, 3.6vw, 3.1rem);
    text-align: left;
    margin-bottom: 16px;
}

.hero-v2-copy .hero-sub {
    margin-bottom: 26px;
}

.cmd {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    border-radius: 14px;
    background: rgba(4, 4, 10, 0.85);
    border: 1px solid rgba(34, 211, 238, 0.3);
    box-shadow: inset 0 0 26px rgba(34, 211, 238, 0.06), 0 10px 30px rgba(5, 5, 12, 0.5);
    font-family: var(--font-display);
    max-width: 540px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.cmd:hover {
    border-color: rgba(34, 211, 238, 0.6);
    box-shadow: 0 0 26px rgba(34, 211, 238, 0.25);
    transform: translateY(-2px);
}

.cmd-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.cmd-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.cmd-dots i:nth-child(1) { background: #ff5f57; }
.cmd-dots i:nth-child(2) { background: #febc2e; }
.cmd-dots i:nth-child(3) { background: #28c840; }

.cmd-line {
    flex: 1;
    min-width: 0;
    font-size: 0.82rem;
    color: rgba(220, 220, 240, 0.78);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmd-prompt { color: var(--cyan); }
.cmd-arg { color: #c4b5fd; }

.cmd-line::after {
    content: '\2588';
    color: var(--cyan);
    margin-left: 2px;
    animation: caretBlink 1.1s steps(1) infinite;
}

@keyframes caretBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.cmd-run {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    padding: 7px 12px;
    border-radius: 8px;
    background: var(--grad-btn);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.5);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hero-tags .tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(168, 85, 247, 0.22);
    background: rgba(255, 255, 255, 0.03);
}

.hero-v2 .hero-visual {
    min-height: 340px;
}

/* ---- KPI stat strip ---- */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 6px;
}

.kpi {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(9, 8, 17, 0.5);
    border: 1px solid rgba(168, 85, 247, 0.2);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.kpi:hover {
    transform: translateY(-3px);
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: var(--glow-soft);
}

.kpi-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--purple);
}

.kpi-icon svg { width: 22px; height: 22px; }
.kpi-value {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.1;
}

.kpi-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ---- Bento grid ---- */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    padding: 26px 0 8px;
}

.tile {
    position: relative;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.07), rgba(37, 99, 235, 0.03)), rgba(9, 8, 17, 0.5);
    border: 1px solid rgba(168, 85, 247, 0.26);
    border-radius: 18px;
    padding: 26px;
    overflow: hidden;
}

.tile-tag {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--purple);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.b-feature { grid-column: span 4; }
.b-eco { grid-column: span 2; }
.bento .tool-card { grid-column: span 2; margin: 0; }
.b-showcase { grid-column: span 6; }

.b-feature {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(120deg, rgba(124, 58, 237, 0.24), rgba(37, 99, 235, 0.14)), rgba(9, 8, 17, 0.5);
    border-color: rgba(168, 85, 247, 0.4);
}

.b-feature .feature-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.b-feature .tool-icon {
    margin-bottom: 0;
    width: 46px;
    height: 46px;
    animation: none;
}

.b-feature h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.b-feature p {
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 540px;
}

.b-feature .btn { align-self: flex-start; }

.b-eco {
    display: flex;
    flex-direction: column;
}

.b-eco .tile-title {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.eco-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.eco-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    min-height: 52px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(168, 85, 247, 0.18);
    transition: transform 0.2s, border-color 0.2s;
}

.eco-item:hover {
    transform: translateX(4px);
    border-color: rgba(168, 85, 247, 0.45);
}

.eco-item img {
    height: 28px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: brightness(1.15);
}

.b-showcase .showcase { align-items: stretch; }
.b-showcase .showcase-frame img { height: 100%; min-height: 260px; }
.b-showcase .showcase-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---- Main footer ---- */
.main-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 32px;
    margin-top: 26px;
    border-top: 1px solid rgba(168, 85, 247, 0.12);
    background: rgba(0, 0, 0, 0.25);
}

.main-foot .footer-copy {
    color: rgba(220, 220, 240, 0.45);
    font-size: 0.8rem;
}

.foot-status {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

/* ---- Tool page v2 (two-column) ---- */
.tool-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 24px;
    align-items: start;
    padding: 40px 0 20px;
}

.tool-head { margin-bottom: 22px; }
.tool-head .badge { margin-bottom: 16px; }

.tool-head h1 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 12px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-head p {
    color: var(--text-muted);
    max-width: 560px;
}

.tool-aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.steps {
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.steps li {
    position: relative;
    counter-increment: step;
    padding-left: 42px;
    color: var(--text-muted);
    font-size: 0.9rem;
    min-height: 30px;
    display: flex;
    align-items: center;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--grad-btn);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.45);
}

.steps li b { color: #fff; font-weight: 700; }

/* ---- Responsive v2 ---- */
@media (max-width: 1024px) {
    .sidebar {
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: 62px;
        padding: 0 18px;
        border-right: none;
        border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    }

    .sidebar-head {
        padding: 0;
        margin: 0;
        border: none;
        flex: 1;
    }

    .sidebar-body {
        position: absolute;
        top: 62px;
        left: 0;
        right: 0;
        display: none;
        flex: none;
        gap: 8px;
        padding: 12px 16px 16px;
        background: rgba(6, 6, 13, 0.98);
        border-bottom: 1px solid rgba(168, 85, 247, 0.2);
        max-height: calc(100vh - 62px);
        overflow-y: auto;
    }

    .sidebar-body.open { display: flex; }
    .menu-toggle { display: inline-flex; }
    .sidebar-foot { margin-top: 6px; }

    .main {
        margin-left: 0;
        padding-top: 62px;
    }

    .topbar { top: 62px; }

    .hero-v2 { grid-template-columns: 1fr; }
    .hero-v2 .hero-visual { order: -1; min-height: 260px; }

    .stat-strip { grid-template-columns: repeat(2, 1fr); }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .b-feature,
    .b-eco,
    .bento .tool-card,
    .b-showcase { grid-column: span 2; }

    .tool-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .topbar { padding: 12px 18px; }
    .topbar .chip { display: none; }
    .main-inner { padding: 0 18px; }

    .stat-strip { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr; }
    .b-feature,
    .b-eco,
    .bento .tool-card,
    .b-showcase { grid-column: auto; }

    .b-showcase .showcase { grid-template-columns: 1fr; }
    .cmd-line { font-size: 0.74rem; }
    .main-foot { flex-direction: column; gap: 10px; text-align: center; }
}
