/* ===========================================================================
   FuturrsoftAI Labs — V2 Premium Design System
   Inspired by: Jitter.video, Stripe, Linear, Framer
   Theme: Vibrant light + bold typography + kinetic energy
   =========================================================================== */

/* ── Tokens ── */
:root {
    --white: #ffffff;
    --bg: #fafafa;
    --bg-subtle: #f3f3f5;
    --bg-muted: #e8e8ed;

    --text-primary: #0a0a0a;
    --text-secondary: #52525b;
    --text-muted: #a1a1aa;

    --purple: #7C3AED;
    --purple-light: #EDE9FE;
    --purple-glow: rgba(124, 58, 237, 0.12);
    --blue: #2563EB;
    --blue-light: #DBEAFE;
    --cyan: #0891B2;
    --cyan-light: #CFFAFE;

    --gradient-main: linear-gradient(135deg, #7C3AED 0%, #2563EB 50%, #0891B2 100%);
    --gradient-purple: linear-gradient(135deg, #7C3AED, #A855F7);
    --gradient-blue: linear-gradient(135deg, #2563EB, #3B82F6);
    --gradient-cyan: linear-gradient(135deg, #0891B2, #06B6D4);
    --gradient-cta: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);

    --border: #e4e4e7;
    --border-hover: #d4d4d8;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 60px rgba(124,58,237,0.15);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --container: 1180px;
    --section-gap: clamp(5rem, 12vw, 9rem);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

::selection {
    background: var(--purple-light);
    color: var(--purple);
}

/* ── Container ── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    border-radius: var(--radius-pill);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--white);
    padding: 0.65rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active { transform: translateY(0); }

.btn-purple {
    background: var(--gradient-purple);
    box-shadow: 0 4px 20px rgba(124,58,237,0.25);
}
.btn-purple:hover {
    box-shadow: 0 8px 30px rgba(124,58,237,0.35);
    transform: translateY(-2px);
}

.btn-cyan {
    background: var(--gradient-cyan);
    box-shadow: 0 4px 20px rgba(8,145,178,0.25);
}
.btn-cyan:hover {
    box-shadow: 0 8px 30px rgba(8,145,178,0.35);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.65rem 1.5rem;
    border: 1.5px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-ghost-light {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    padding: 0.65rem 1.5rem;
    border: 1.5px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
}
.btn-ghost-light:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.btn-white {
    background: var(--white);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.btn-sm { padding: 0.5rem 1.15rem; font-size: 0.85rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }

/* ── Nav ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0.85rem 0;
    transition: all 0.35s var(--ease-out);
}

.nav--scrolled {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 101;
}

.logo-mark {
    display: flex;
    transition: transform 0.3s var(--ease-spring);
}
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }

.logo-text {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple);
    border-radius: 1px;
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}
.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(30px);
    z-index: 99;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}
.mobile-overlay.active { display: flex; }
.mobile-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7rem 0 4rem;
    text-align: center;
    overflow: hidden;
    background: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(124,58,237,0.06) 0%, rgba(37,99,235,0.04) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-announcement {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem 0.4rem 0.65rem;
    background: var(--purple-light);
    border: 1px solid rgba(124,58,237,0.1);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--purple);
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    opacity: 0;
    transform: translateY(20px);
    animation: reveal 0.7s var(--ease-out) 0.1s forwards;
}

.hero-announcement:hover {
    background: rgba(124,58,237,0.12);
    transform: translateY(-1px);
}

.announcement-dot {
    width: 7px;
    height: 7px;
    background: var(--purple);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(124,58,237,0.4); }
    50% { opacity: 0.8; transform: scale(1.2); box-shadow: 0 0 0 6px rgba(124,58,237,0); }
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 0.8s var(--ease-out) 0.2s forwards;
}

.hero-title-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 0.8s var(--ease-out) 0.35s forwards;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 0.8s var(--ease-out) 0.5s forwards;
}

.hero-social-proof {
    opacity: 0;
    transform: translateY(20px);
    animation: reveal 0.8s var(--ease-out) 0.65s forwards;
}

.trusted-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.hero-visual {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 850px;
    margin: 2rem auto 0;
    padding: 0 1.5rem;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    animation: reveal-scale 1s var(--ease-out) 0.6s forwards;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl);
}

.hero-image-glow {
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-xl);
    background: var(--gradient-main);
    z-index: -1;
    opacity: 0.5;
    filter: blur(20px);
}

@keyframes reveal {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-scale {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Marquee ── */
.marquee-section {
    padding: 2rem 0;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
}

.marquee-content {
    display: flex;
    gap: 3rem;
    animation: marquee-scroll 30s linear infinite;
    padding-right: 3rem;
}

.marquee-item {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Section Utilities ── */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--purple);
    background: var(--purple-light);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Products Section ── */
.products {
    padding: var(--section-gap) 0;
    background: var(--white);
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s var(--ease-out);
    overflow: visible;
}

.product-showcase.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-showcase:last-child { margin-bottom: 0; }

.product-showcase--reverse { direction: rtl; }
.product-showcase--reverse > * { direction: ltr; }

.product-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
}

.product-tag--blue {
    background: var(--blue-light);
    color: var(--blue);
}
.product-tag--purple {
    background: var(--purple-light);
    color: var(--purple);
}
.product-tag--cyan {
    background: var(--cyan-light);
    color: var(--cyan);
}

.product-name {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.product-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.feature-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #DCFCE7;
    color: #16A34A;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.product-visual {
    position: relative;
}

.product-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.product-showcase:hover .product-image {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* ── How It Works ── */
.how-it-works {
    padding: var(--section-gap) 0;
    background: var(--bg);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step-card {
    flex: 1;
    max-width: 320px;
    padding: 2.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s var(--ease-out);
    opacity: 0;
    transform: translateY(40px);
}

.step-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-card:hover {
    border-color: var(--purple);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--purple);
    transform: translateY(-6px);
}

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 4rem;
    color: var(--border);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--purple);
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
    background: var(--purple-light);
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
}

.step-icon {
    color: var(--purple);
    margin-bottom: 1.25rem;
    display: inline-flex;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── Capabilities ── */
.capabilities {
    padding: 4rem 0;
    background: var(--white);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.capability-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-out);
    opacity: 0;
    transform: translateY(30px);
}

.capability-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.capability-card:hover {
    border-color: var(--purple);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.capability-value {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -2px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.capability-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ── Tech Section ── */
.tech-section {
    padding: var(--section-gap) 0;
    background: var(--bg);
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.tech-pill {
    padding: 0.55rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out);
    cursor: default;
}

.tech-pill:hover {
    border-color: var(--purple);
    color: var(--purple);
    background: var(--purple-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

/* ── CTA ── */
.cta {
    padding: var(--section-gap) 0;
    background: var(--white);
}

.cta-card {
    position: relative;
    background: var(--gradient-cta);
    border-radius: var(--radius-xl);
    padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
    text-align: center;
    overflow: hidden;
    color: var(--white);
}

.cta-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 70%);
    pointer-events: none;
}

.cta-card .section-tag {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.1);
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 1rem;
    position: relative;
}

.cta-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    position: relative;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
}

/* ── Footer ── */
.footer {
    padding: 4rem 0 2rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 280px;
    line-height: 1.6;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s;
}
.footer-link:hover { color: var(--text-primary); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Scroll Reveal ── */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .product-showcase {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .product-showcase--reverse { direction: ltr; }

    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .step-connector { display: none; }
    .step-card { max-width: 100%; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-actions .btn { display: none; }
    .mobile-toggle { display: flex; }

    .hero-title { letter-spacing: -2px; }

    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; max-width: 320px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .capabilities-grid { grid-template-columns: 1fr; }
    .hero-title { letter-spacing: -1.5px; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Loading Animation for smooth entrance ── */
body.loading * {
    animation-play-state: paused !important;
}

/* ── Demo Dropdown (Recommendation Engine) ── */
.demo-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.demo-dropdown-wrapper .btn {
    gap: 0.5rem;
}

.dropdown-chevron {
    transition: transform 0.3s var(--ease-out);
    flex-shrink: 0;
}

.demo-dropdown-wrapper.open .dropdown-chevron {
    transform: rotate(180deg);
}

.demo-dropdown {
    position: absolute;
    bottom: calc(100% + 0.6rem);
    top: auto;
    left: 0;
    min-width: 280px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(124,58,237,0.08);
    padding: 0.5rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(8px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}

.demo-dropdown-wrapper.open .demo-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.demo-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    transition: background 0.2s, transform 0.2s var(--ease-out);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

.demo-dropdown-item:hover {
    background: var(--purple-light);
    transform: translateX(4px);
}

.dropdown-icon {
    font-size: 1.4rem;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.demo-dropdown-item:hover .dropdown-icon {
    background: rgba(124,58,237,0.12);
}

.demo-dropdown-item span:not(.dropdown-icon) {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.demo-dropdown-item strong {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
}

.demo-dropdown-item small {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
}

