/* SUPERVITY / BOOSTLY FLAT BENTO DESIGN */

:root {
    --font-base: "Inter", "Montserrat", "Helvetica Neue", Arial, sans-serif;
    
    /* Color Palette */
    --bg-page: #F4F4F6;
    --color-black: #0D0D0D;
    --color-white: #FFFFFF;
    --color-neon: #C2FF1C; /* Matching the reference image */
    --color-gray-light: #EBEBEB;
    --text-primary: #0D0D0D;
    --text-secondary: #555555;
    
    --radius-pill: 999px;
    --radius-card: 32px;
    --radius-card-small: 20px;
    
    --container-width: 1280px;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-base);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

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

/* Layout App Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 24px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 32px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: var(--radius-pill);
    margin-bottom: 40px;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.05), -10px -10px 30px #ffffff, inset 1px 1px 0px rgba(255,255,255,1);
    border: 1px solid rgba(0,0,0,0.03);
}

.logo img { height: 24px; display: block; }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--color-black); cursor: pointer; }

.nav-links { display: flex; gap: 32px; font-weight: 500; font-size: 0.95rem; }
.nav-links a { color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover { color: var(--color-black); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    gap: 8px;
    text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(2px); }

.btn-black { 
    background: linear-gradient(145deg, #2e313b, #272a31);
    color: var(--color-white);
    box-shadow: 4px 4px 10px rgba(0,0,0,0.3), inset 1px 1px 1px rgba(255,255,255,0.1), inset -1px -1px 1px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}
.btn-black:hover { 
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3), inset 1px 1px 1px rgba(255,255,255,0.1), inset -1px -1px 1px rgba(0,0,0,0.5); 
}
.btn-black:active {
    box-shadow: inset 4px 4px 8px rgba(0,0,0,0.6), inset -4px -4px 8px rgba(255,255,255,0.05);
}

.btn-neon { 
    background: linear-gradient(145deg, #c4ff1a, #a2e004);
    color: var(--color-black); 
    box-shadow: 4px 4px 10px rgba(181, 251, 5, 0.4), inset 1px 1px 1px rgba(255,255,255,0.5), inset -1px -1px 1px rgba(0,0,0,0.2);
    border: 1px solid #99d404;
}
.btn-neon:hover { 
    box-shadow: 2px 2px 5px rgba(181, 251, 5, 0.4), inset 1px 1px 1px rgba(255,255,255,0.5), inset -1px -1px 1px rgba(0,0,0,0.2); 
}
.btn-neon:active {
    box-shadow: inset 4px 4px 8px rgba(0,0,0,0.2), inset -4px -4px 8px rgba(255,255,255,0.4);
}

.btn-white { 
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    color: var(--color-black); 
    box-shadow: 4px 4px 10px rgba(0,0,0,0.05), inset 1px 1px 1px rgba(255,255,255,1), inset -1px -1px 1px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.5); 
}
.btn-white:hover {
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05), inset 1px 1px 1px rgba(255,255,255,1), inset -1px -1px 1px rgba(0,0,0,0.05);
}
.btn-white:active {
    box-shadow: inset 4px 4px 8px rgba(0,0,0,0.1), inset -4px -4px 8px #ffffff;
}

/* Typography Extras */
.highlight-pill {
    background: linear-gradient(145deg, #c4ff1a, #a2e004);
    padding: 4px 20px;
    border-radius: var(--radius-pill);
    color: var(--color-black);
    display: inline-block;
    transform: rotate(-2deg);
    box-shadow: 4px 4px 10px rgba(181, 251, 5, 0.3), inset 1px 1px 1px rgba(255,255,255,0.5);
    border: 1px solid #99d404;
}
.highlight-pill-dark { 
    background: linear-gradient(145deg, #2e313b, #272a31);
    color: var(--color-white); 
    box-shadow: 4px 4px 10px rgba(0,0,0,0.3), inset 1px 1px 1px rgba(255,255,255,0.1);
    border: 1px solid #1a1c22;
}

/* Hero Section */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.hero-text { max-width: 500px; }
.hero-text h1 { font-size: clamp(3rem, 5vw, 4.2rem); margin-bottom: 24px; }
.hero-text p { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Bento Cards (Flat Style) */
.bento-grid {
    display: grid;
    gap: 20px;
}

.card {
    border-radius: var(--radius-card);
    padding: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-white { 
    background: linear-gradient(145deg, #ffffff, #f0f0f0); 
    color: var(--color-black); 
    box-shadow: 10px 10px 30px rgba(0,0,0,0.05), -10px -10px 30px #ffffff, inset 1px 1px 0px rgba(255,255,255,1);
    border: 1px solid rgba(0,0,0,0.03) !important;
}
.card-black { 
    background: linear-gradient(145deg, #2e313b, #272a31); 
    color: var(--color-white); 
    box-shadow: 10px 10px 30px rgba(0,0,0,0.15), inset 1px 1px 0px rgba(255,255,255,0.05);
    border: 1px solid #1a1c22 !important;
}
.card-neon { 
    background: linear-gradient(145deg, #c4ff1a, #a2e004); 
    color: var(--color-black); 
    box-shadow: 10px 10px 30px rgba(181, 251, 5, 0.2), inset 1px 1px 0px rgba(255,255,255,0.5);
    border: 1px solid #99d404 !important;
}

/* Hero Bento Right Side */
.hero-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 180px;
}
.hero-bento .card-main { grid-column: span 2; padding: 0; }
.hero-bento .card-small { justify-content: space-between; }

/* Spline Container */
.spline-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    pointer-events: auto; /* Allow interaction */
}

/* Aggressive Watermark Hider */
.spline-watermark-hider {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 60px;
    background-color: var(--bg-page);
    pointer-events: none;
    z-index: 20;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}
.stat-card {
    background: var(--color-white);
    border-radius: var(--radius-card-small);
    padding: 24px;
    text-align: left;
}
.stat-card h3 { font-size: 2.5rem; margin-bottom: 8px; }
.stat-card p { margin: 0; font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }

/* Section Title */
.section-header {
    margin-bottom: 40px;
}
.section-header h2 { font-size: 3rem; }

/* Content Bento Grid */
.content-bento {
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: minmax(300px, auto);
    margin-bottom: 80px;
}
.content-bento-2 {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(300px, auto);
    margin-bottom: 80px;
}
.content-bento .span-2 { grid-column: span 2; }
.content-bento .span-3 { grid-column: span 3; }
.content-bento .row-2 { grid-row: span 2; }

/* Steps / Grid 3 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-neon);
    line-height: 1;
    margin-bottom: 16px;
}
.card-black .step-number { color: var(--color-white); opacity: 0.2; }

/* FAQ Accordion */
.faq-wrap { border-bottom: 1px solid var(--color-gray-light); padding: 24px 0; }
.card-black .faq-wrap { border-bottom: 1px solid #333; }
.faq-wrap:last-child { border-bottom: none; }
.faq-q { font-weight: 600; font-size: 1.2rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q svg { width: 24px; height: 24px; transition: transform 0.3s; color: var(--color-neon); }
.card-white .faq-q svg { color: var(--color-black); }
details[open] .faq-q svg { transform: rotate(45deg); }
.faq-a { padding-top: 16px; color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; }
.card-black .faq-a { color: #aaa; }

/* Card specific styles */
.card-title { font-size: 1.8rem; margin-bottom: 16px; }
.card-p { font-size: 1.05rem; opacity: 0.8; margin-bottom: 0; line-height: 1.6; }
.card-black .card-p { color: #A0A0A0; }

/* Features List inside card */
.feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.feature-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 1.1rem; }
.circle-icon { width: 32px; height: 32px; background: var(--color-neon); color: #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.card-neon .circle-icon { background: #000; color: var(--color-neon); }

/* Circular Tactile Button embedded in cards */
.card-action-btn {
    position: absolute;
    top: 32px; right: 32px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    box-shadow:  4px 4px 8px rgba(0,0,0,0.1), -4px -4px 8px #ffffff, inset 1px 1px 2px rgba(255,255,255,1), inset -1px -1px 2px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.5);
    color: var(--color-black);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}
.card-black .card-action-btn { 
    background: linear-gradient(145deg, #2e313b, #272a31);
    box-shadow:  4px 4px 8px rgba(0,0,0,0.5), -4px -4px 8px rgba(255,255,255,0.05), inset 1px 1px 1px rgba(255,255,255,0.1), inset -1px -1px 1px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--color-white); 
}
.card-neon .card-action-btn { 
    background: linear-gradient(145deg, #2e313b, #272a31) !important;
    box-shadow:  4px 4px 8px rgba(0,0,0,0.3), -4px -4px 8px rgba(255,255,255,0.4), inset 1px 1px 1px rgba(255,255,255,0.2), inset -1px -1px 1px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-neon) !important; 
}

.card-action-btn:hover { 
    transform: translateY(2px);
    box-shadow:  2px 2px 4px rgba(0,0,0,0.1), -2px -2px 4px #ffffff, inset 1px 1px 2px rgba(255,255,255,1), inset -1px -1px 2px rgba(0,0,0,0.05);
}
.card-black .card-action-btn:hover {
    box-shadow:  2px 2px 4px rgba(0,0,0,0.5), -2px -2px 4px rgba(255,255,255,0.05), inset 1px 1px 1px rgba(255,255,255,0.1), inset -1px -1px 1px rgba(0,0,0,0.5);
}
.card-neon .card-action-btn:hover {
    box-shadow:  2px 2px 4px rgba(0,0,0,0.3), -2px -2px 4px rgba(255,255,255,0.4), inset 1px 1px 1px rgba(255,255,255,0.2), inset -1px -1px 1px rgba(0,0,0,0.5);
}

.card-action-btn:active {
    transform: translateY(4px);
    box-shadow: inset 4px 4px 8px rgba(0,0,0,0.1), inset -4px -4px 8px #d1d1d1 !important;
}
.card-black .card-action-btn:active, .card-neon .card-action-btn:active {
    box-shadow: inset 4px 4px 8px rgba(0,0,0,0.6), inset -4px -4px 8px rgba(255,255,255,0.05) !important;
}

/* Footer */
.footer {
    margin-top: 80px;
    background: var(--color-black);
    color: var(--color-white);
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    padding: 80px 40px 40px;
    text-align: center;
}
.footer h2 { font-size: clamp(3rem, 5vw, 5rem); margin-bottom: 40px; }
.footer .highlight-pill { color: var(--color-black); }

/* Responsive */
@media (max-width: 1024px) {
    .hero-wrapper { grid-template-columns: 1fr; text-align: center; }
    .hero-text { margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .hero-bento { grid-template-rows: 300px 180px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .content-bento, .grid-3 { grid-template-columns: 1fr 1fr; }
    .content-bento-2 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .desktop-cta { display: none !important; }
    .mobile-cta { display: inline-flex !important; margin-top: 16px; }
    .mobile-menu-btn { display: block; }
    .header { position: relative; }
    .nav-links { 
        display: none; 
        position: absolute;
        top: 70px; 
        left: 0; 
        right: 0;
        background: linear-gradient(145deg, #ffffff, #f0f0f0);
        box-shadow: 10px 10px 30px rgba(0,0,0,0.1), inset 1px 1px 0px rgba(255,255,255,1);
        border: 1px solid rgba(0,0,0,0.03);
        border-radius: var(--radius-card);
        flex-direction: column;
        padding: 24px;
        z-index: 100;
        gap: 16px;
    }
    .nav-links.active { display: flex; }
    .hero-bento { grid-template-columns: 1fr; grid-template-rows: auto; }
    .hero-bento .card-main { grid-column: span 1; height: 300px; }
    .content-bento, .grid-3, .content-bento-2 { grid-template-columns: 1fr; }
    .content-bento .span-2, .content-bento .span-3 { grid-column: span 1; }
    .stats-bar { grid-template-columns: 1fr; }
}

/* ==========================================================================
   NOOXIA AI Chat Widget
   ========================================================================== */
.glass-panel {
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* FAB — verde lima forzado vía CSS, sin depender de Tailwind */
#noa-chat-fab {
    background-color: #B5FB05 !important;
}
#noa-chat-fab:hover {
    background-color: #A1E004 !important;
}
/* Pulse ring */
#noa-chat-fab > span:first-child {
    background-color: rgba(181, 251, 5, 0.4) !important;
}
/* Ícono del FAB — negro sobre lima */
#noa-chat-fab > .material-icons-round {
    color: #0D0D10 !important;
}
/* Botón de envío */
#noa-chat-submit {
    background-color: #B5FB05 !important;
    color: #0D0D10 !important;
}
#noa-chat-submit:hover {
    background-color: #A1E004 !important;
}
/* Avatar en el header */
#noa-chat-window .w-10 {
    background-color: rgba(181, 251, 5, 0.2) !important;
    border-color: rgba(181, 251, 5, 0.3) !important;
}
#noa-chat-window .w-10 .material-icons-round {
    color: #B5FB05 !important;
}
/* "En línea" — lime */
#noa-chat-window .text-xs.text-nx-primary {
    color: #B5FB05 !important;
}

/* Tooltip — siempre oscuro para que el texto blanco sea legible en ambos modos */
#noa-chat-fab > div {
    background: #2B2E37 !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
#noa-chat-fab > div > div {
    background: #2B2E37 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Modo claro — correcciones de contraste */
@media (prefers-color-scheme: light) {
    /* Panel del chat: fondo claro con blur */
    .glass-panel {
        background: rgba(237, 241, 255, 0.96);
    }

    /* Header: texto oscuro sobre fondo claro */
    #noa-chat-window > div:first-child {
        background: rgba(237, 241, 255, 0.98) !important;
    }
    #noa-chat-window > div:first-child h4 {
        color: #0D0D10 !important;
    }

    /* Área de mensajes: quitar el overlay negro */
    #noa-chat-messages {
        background: rgba(245, 248, 255, 0.85) !important;
    }

    /* Burbujas de respuesta del bot */
    #noa-chat-messages [class*="rounded-tl-sm"] {
        background: rgba(226, 232, 248, 0.95) !important;
        border-color: rgba(0, 0, 0, 0.08) !important;
        color: #0D0D10 !important;
    }

    /* Input de texto */
    #noa-chat-input {
        background: rgba(255, 255, 255, 0.9) !important;
        color: #0D0D10 !important;
        border-color: rgba(0, 0, 0, 0.15) !important;
    }
    #noa-chat-input::placeholder {
        color: #6B7280 !important;
    }

    /* Scrollbar en modo claro */
    .scrollbar-custom::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.15);
    }
    .scrollbar-custom::-webkit-scrollbar-thumb:hover {
        background-color: rgba(181, 251, 5, 0.6);
    }
}

#noa-chat-window.open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

#noa-chat-fab.chat-open {
    transform: scale(0) rotate(90deg);
    opacity: 0;
    pointer-events: none;
}

.scrollbar-custom::-webkit-scrollbar { width: 6px; }
.scrollbar-custom::-webkit-scrollbar-track { background: transparent; }
.scrollbar-custom::-webkit-scrollbar-thumb { background-color: rgba(255,255,255,0.1); border-radius: 20px; }
.scrollbar-custom::-webkit-scrollbar-thumb:hover { background-color: rgba(181,251,5,0.5); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.3s ease-out forwards; }

.typing-dot {
    display: inline-block;
    width: 6px; height: 6px;
    background-color: #9CA3AF;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40%           { transform: scale(1); }
}
