/* style.css - MaIA Plus Landing Page — Dark Premium Redesign */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Dark Mode Palette */
    --bg-dark: #0F172A;
    --bg-surface: #1E293B;
    --bg-card: rgba(30, 41, 59, 0.6);
    --bg-card-solid: #1E293B;

    /* Brand */
    --brand-purple: #7C3AED;
    --brand-blue: #3B82F6;
    --brand-purple-glow: rgba(124, 58, 237, 0.35);

    /* CTA Gold */
    --cta-gold: #CA8A04;
    --cta-gold-light: #FBBF24;
    --cta-gold-glow: rgba(202, 138, 4, 0.4);

    /* Rubros */
    --rubro-basicos: #FBBF24;
    --rubro-lujos: #8B5CF6;
    --rubro-ahorro: #059669;
    --rubro-deudas: #F97316;

    /* Text */
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --text-dim: #64748B;

    /* Borders */
    --border-glass: rgba(148, 163, 184, 0.12);
    --border-glow: rgba(124, 58, 237, 0.3);

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #7C3AED 0%, #3B82F6 50%, #06B6D4 100%);
    --gradient-gold: linear-gradient(135deg, #CA8A04, #FBBF24);
    --gradient-surface: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 1) 100%);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

/* ============ UTILITIES ============ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

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

/* ============ GLASS ============ */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    font-family: inherit;
}

.btn-gold {
    background: var(--gradient-gold);
    color: #0F172A;
    box-shadow: 0 4px 14px var(--cta-gold-glow);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--cta-gold-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--border-glow);
}

.btn-promo {
    background: var(--gradient-gold);
    color: #0F172A;
    box-shadow: 0 4px 14px var(--cta-gold-glow);
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.btn-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--cta-gold-glow);
}

/* Pulse */
.pulse-btn {
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 var(--cta-gold-glow);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(202, 138, 4, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(202, 138, 4, 0);
    }
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1200px;
    padding: 0.75rem 1.5rem;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.brand-logo {
    height: 36px;
    width: auto;
    border-radius: 8px;
}

.logo .highlight {
    color: var(--cta-gold-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-cta {
    padding: 0.5rem 1.25rem !important;
    font-size: 0.85rem !important;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(59, 130, 246, 0.08), transparent);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.75rem;
    color: var(--cta-gold-light);
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(202, 138, 4, 0.1);
    border: 1px solid rgba(202, 138, 4, 0.25);
}

.badge svg {
    width: 14px;
    height: 14px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Mockup */
.img-col {
    padding: 0.5rem;
}

.mockup-img {
    width: 100%;
    height: 420px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-glass);
}

.mockup-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 2;
}

.mockup-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-dim);
    z-index: 1;
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    opacity: 0.4;
}

/* ============ STATS ============ */
.stats-section {
    padding: 5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
}

.stat-card h2 {
    font-size: 3.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

/* ============ CONOCE MAIA (Product Showcase) ============ */
.showcase-section {
    padding: 5rem 0;
}

.showcase-section .section-title {
    margin-bottom: 4rem;
}

.showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.showcase-item.reverse {
    direction: rtl;
}

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

.showcase-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.showcase-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.showcase-text .feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.showcase-text .feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.showcase-text .feature-list li svg {
    width: 18px;
    height: 18px;
    color: var(--cta-gold-light);
    flex-shrink: 0;
}

/* CSS-only Mockups */
.mockup-frame {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-glass);
    overflow: hidden;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.5);
}

.mockup-topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid var(--border-glass);
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-dim);
    opacity: 0.4;
}

.mockup-dot.red {
    background: #EF4444;
    opacity: 0.8;
}

.mockup-dot.yellow {
    background: #FBBF24;
    opacity: 0.8;
}

.mockup-dot.green {
    background: #22C55E;
    opacity: 0.8;
}

.mockup-body {
    padding: 1.25rem;
}

/* Dashboard Mockup */
.mock-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mock-kpi {
    background: rgba(15, 23, 42, 0.5);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    border: 1px solid var(--border-glass);
}

.mock-kpi-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mock-kpi-value {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 2px;
}

.mock-kpi-value.income {
    color: #22C55E;
}

.mock-kpi-value.expense {
    color: #EF4444;
}

.mock-kpi-value.balance {
    color: var(--cta-gold-light);
}

.mock-chart-area {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mock-donut {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--rubro-basicos) 0% 40%,
            var(--rubro-lujos) 40% 65%,
            var(--rubro-ahorro) 65% 80%,
            var(--rubro-deudas) 80% 100%);
    position: relative;
    flex-shrink: 0;
}

.mock-donut::after {
    content: '';
    position: absolute;
    inset: 25px;
    border-radius: 50%;
    background: var(--bg-surface);
}

.mock-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mock-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mock-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Chat Mockup */
.mock-chat-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 280px;
}

.mock-msg {
    max-width: 80%;
    padding: 0.625rem 0.875rem;
    border-radius: 14px;
    font-size: 0.8rem;
    line-height: 1.5;
}

.mock-msg.user {
    background: var(--brand-purple);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.mock-msg.bot {
    background: rgba(15, 23, 42, 0.5);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-glass);
}

.mock-msg .confirm-card {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.72rem;
}

.mock-chat-input {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.625rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 100px;
    border: 1px solid var(--border-glass);
}

.mock-chat-input span {
    flex: 1;
    font-size: 0.75rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
}

.mock-chat-input .mock-send {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-purple);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-chat-input .mock-send svg {
    width: 14px;
    height: 14px;
    color: white;
}

/* Budget Mockup */
.mock-budgets {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.mock-budget-item {
    background: rgba(15, 23, 42, 0.5);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    border: 1px solid var(--border-glass);
}

.mock-budget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.8rem;
}

.mock-budget-header .cat-name {
    font-weight: 600;
}

.mock-budget-header .cat-amount {
    color: var(--text-dim);
    font-size: 0.72rem;
}

.mock-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
}

.mock-progress-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 1s ease;
}

.mock-goal {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    border: 1px solid var(--border-glass);
    margin-top: 0.875rem;
}

.mock-goal-ring {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid var(--border-glass);
    border-top-color: var(--rubro-ahorro);
    border-right-color: var(--rubro-ahorro);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--rubro-ahorro);
}

.mock-goal-info {
    font-size: 0.75rem;
}

.mock-goal-info .goal-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.mock-goal-info .goal-progress {
    color: var(--text-dim);
    font-size: 0.7rem;
}

/* ============ FEATURES ============ */
.features-section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

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

.feature-card {
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.1);
    border-color: var(--border-glow);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(124, 58, 237, 0.12);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-purple);
    margin-bottom: 1.25rem;
}

.icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============ TESTIMONIALS ============ */
.testimonials-section {
    padding: 5rem 0;
}

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

.testimonial-card {
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
}

.stars {
    display: flex;
    gap: 3px;
    margin-bottom: 1.25rem;
}

.star-icon {
    width: 18px;
    height: 18px;
    color: var(--text-dim);
}

.star-icon.filled {
    color: var(--cta-gold-light);
    fill: var(--cta-gold-light);
}

.quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    opacity: 0.07;
    color: var(--brand-purple);
}

.quote-icon i,
.quote-icon svg {
    width: 40px;
    height: 40px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-glass);
    padding-top: 1rem;
}

.testimonial-author strong {
    color: var(--text-main);
    font-size: 0.95rem;
}

.testimonial-author span {
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ============ PRICING ============ */
.pricing-section {
    padding: 5rem 0;
}

.pricing-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
}

.pricing-card h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.pricing-card>p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.launch-promo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(202, 138, 4, 0.05);
    border: 1px solid rgba(202, 138, 4, 0.15);
    border-radius: var(--radius-lg);
}

.badge-promo {
    background: var(--gradient-gold);
    color: #0F172A;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 100px;
    border: none;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.old-price {
    color: var(--text-dim);
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: baseline;
}

.old-price .amount {
    font-size: 1.75rem;
    color: inherit;
}

.price {
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.new-price {
    margin-bottom: 0;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cta-gold-light);
}

.amount {
    font-size: 3.75rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--cta-gold-light);
}

.period {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-left: 6px;
}

.countdown-timer {
    background: var(--bg-surface);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(239, 68, 68, 0.3);
    text-align: center;
    width: 100%;
}

.timer-label {
    color: #EF4444 !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.25rem !important;
}

.timer-display {
    font-family: 'IBM Plex Sans', monospace;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 2px;
}

/* ============ FAQ ============ */
.faq-section {
    padding: 5rem 0;
}

.faq-container {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.faq-question svg,
.faq-question i {
    transition: transform 0.3s ease;
    color: var(--brand-purple);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.faq-item.active .faq-question svg,
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.25rem;
}

.faq-item.active .faq-answer {
    max-height: 250px;
    padding-bottom: 1.25rem;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============ FOOTER ============ */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 3rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo img {
    height: 28px;
    width: auto;
    border-radius: 6px;
}

.footer-links a {
    color: var(--text-dim);
    margin-left: 1.5rem;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-main);
}

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

/* ============ CHAT WIDGET ============ */
.chat-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand-purple);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px var(--brand-purple-glow);
    transition: transform 0.2s;
    color: white;
}

.floating-btn:hover {
    transform: scale(1.08);
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 var(--brand-purple-glow);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(124, 58, 237, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
    }
}

.chat-panel {
    width: 360px;
    height: 480px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.6);
    transform-origin: bottom right;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-glass);
}

.chat-header {
    padding: 14px 16px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    margin-left: 8px;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.close-btn:hover {
    color: var(--text-main);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    display: flex;
}

.message.user {
    justify-content: flex-end;
}

.message.bot {
    justify-content: flex-start;
}

.msg-content {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.message.user .msg-content {
    background: var(--brand-purple);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.bot .msg-content {
    background: var(--bg-surface);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-glass);
}

.chat-input-area {
    padding: 12px;
    border-top: 1px solid var(--border-glass);
}

.chat-input-area form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input-area input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 100px;
    border: 1px solid var(--border-glass);
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
}

.chat-input-area input:focus {
    border-color: var(--brand-purple);
}

.chat-input-area input::placeholder {
    color: var(--text-dim);
}

.send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-purple);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.2s;
}

.send-btn:hover {
    background: #6D28D9;
}

.send-btn svg {
    width: 16px;
    height: 16px;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
}

.typing-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dim);
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============ VIDEO SECTION ============ */
.video-section {
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 10;
}

.video-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glow);
    padding: 0;
    background: #000;
    aspect-ratio: 16 / 9;
}

.demo-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: calc(var(--radius-xl) - 1px);
}

/* ============ SCROLL ANIMATIONS ============ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero p {
        max-width: 100%;
    }

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

    .img-col {
        max-width: 500px;
        margin: 0 auto;
    }

    .showcase-item,
    .showcase-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .showcase-text {
        text-align: center;
    }

    .showcase-text .feature-list {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .video-section {
        padding: var(--space-lg) 0;
    }

    .video-container {
        border-radius: var(--radius-md);
    }

    .demo-video {
        border-radius: calc(var(--radius-md) - 1px);
    }

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

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

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .stat-card h2 {
        font-size: 2.5rem;
    }

    .mock-kpis {
        grid-template-columns: 1fr;
    }

    .mock-chart-area {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

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

    .footer-links a {
        margin-left: 0;
    }

    .chat-panel {
        width: calc(100vw - 48px);
        height: 440px;
    }
}

@media (max-width: 375px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .pricing-card {
        padding: 2rem 1.25rem;
    }

    .amount {
        font-size: 3rem;
    }
}