/* ==========================================================================
   DANi - Design System & Stylesheet (Vanilla CSS)
   ========================================================================== */

:root {
    --bg-color: #060913;
    --bg-gradient: radial-gradient(circle at 10% 20%, rgba(79, 172, 254, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.03) 0%, transparent 50%);
    --card-bg: rgba(13, 18, 33, 0.75);
    --border-color: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(0, 242, 254, 0.25);

    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --accent-primary: #00f2fe;
    /* Neon Cyan */
    --accent-secondary: #4facfe;
    /* Royal Blue */
    --accent-violet: #8a2be2;
    /* Purple */

    --gradient-primary: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    --gradient-glow: rgba(0, 242, 254, 0.12);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Typography Utilities */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* Header & Navigation */
header.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    background: rgba(6, 9, 19, 0.7);
    padding: 16px 0;
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
}

.logo-img {
    height: 36px;
    width: 36px;
    object-fit: contain;
    border-radius: 10px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--accent-primary);
}

/* Buttons & CTAs */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    gap: 10px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #060913;
    border: none;
    box-shadow: 0 8px 30px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 242, 254, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 54px;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* WhatsApp Simulator Demo */
.demo-wrapper {
    position: relative;
}

.demo-wrapper::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 60%);
    z-index: -1;
    filter: blur(40px);
}

.phone-mockup {
    background: #090e1a;
    border: 12px solid #1a2235;
    border-radius: 40px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    aspect-ratio: 9 / 19;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.phone-header {
    background: #111827;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.phone-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--accent-primary);
    overflow: hidden;
}

.phone-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.phone-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-status {
    font-size: 11px;
    color: #10b981;
    font-weight: 500;
}

.verified-badge {
    color: #3b82f6;
    display: flex;
    align-items: center;
}

.phone-chat {
    flex: 1;
    background: #0b0f19;
    background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 16px 16px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

/* Chat Bubbles */
.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 13px;
    position: relative;
    box-shadow: var(--shadow-sm);
    animation: bubble-fade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(10px);
}

.chat-bubble.sent {
    background: #1e293b;
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-bubble.received {
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-bubble.sent.audio-bubble-container {
    background: #1e293b;
    padding: 10px 12px 10px 14px;
    border-radius: 18px 18px 4px 18px;
    max-width: 280px;
    width: 250px;
}

.whatsapp-audio-bubble {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.audio-control {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.audio-control:hover {
    transform: scale(1.1);
}

.audio-content-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.audio-waveform {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 20px;
    width: 100%;
}

.audio-waveform span {
    width: 1.5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 1px;
    display: inline-block;
}

.audio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--text-muted);
}

.audio-time-status {
    display: flex;
    align-items: center;
    gap: 4px;
}

.audio-status {
    color: #38bdf8;
    display: flex;
    align-items: center;
}

.audio-right-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.audio-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.audio-mic-badge {
    position: absolute;
    bottom: -2px;
    left: -2px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #1e293b;
    border: 1.5px solid #1e293b;
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.chat-time {
    display: block;
    font-size: 9px;
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
}

.chat-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--accent-primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    margin-top: 8px;
    font-weight: 600;
    cursor: pointer;
}

.chat-input-area {
    background: #111827;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border-color);
}

.chat-input-placeholder {
    flex: 1;
    background: #1f2937;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.chat-send-icon {
    color: var(--accent-primary);
}

/* Features Grid */
.features-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.features-header h2 {
    font-size: 38px;
    margin-bottom: 16px;
}

.features-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px 32px;
    border-radius: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px -5px rgba(0, 242, 254, 0.08);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(79, 172, 254, 0.08);
    border: 1px solid rgba(79, 172, 254, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-primary);
    font-size: 24px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #ffffff;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-grid.pricing-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 48px;
    position: relative;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
}

.pricing-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.pricing-card.premium {
    border: 1px solid rgba(0, 242, 254, 0.2);
    background: radial-gradient(circle at 100% 0%, rgba(79, 172, 254, 0.05) 0%, var(--card-bg) 60%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.premium::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    z-index: -1;
    opacity: 0.25;
}

.pricing-popular-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--gradient-primary);
    color: #060913;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card.highlight {
    border: 1px solid rgba(0, 242, 254, 0.3);
    background:
        radial-gradient(circle at 0% 100%, rgba(0, 242, 254, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(79, 172, 254, 0.12) 0%, transparent 50%),
        var(--card-bg);
    box-shadow: 0 20px 50px rgba(0, 242, 254, 0.12), 0 0 0 1px rgba(0, 242, 254, 0.08);
}

.pricing-card.highlight::after {
    opacity: 0.4;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.pricing-desc {
    color: #d1d5db;
    font-size: 14px;
    margin-bottom: 24px;
    min-height: 45px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.pricing-price-sub {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 24px;
    min-height: 20px;
    display: flex;
    align-items: center;
}

.pricing-price span {
    font-size: 14px;
    color: #d1d5db;
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    flex: 1;
}

.pricing-features li {
    font-size: 14px;
    color: #e2e8f0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li::before {
    content: '✅';
}

.pricing-features li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
}

.pricing-features li.disabled::before {
    content: '✕';
    color: var(--text-muted);
}

.pricing-discount-badge {
    font-size: 14px !important;
    font-weight: 800 !important;
    padding: 8px 18px !important;
    background: linear-gradient(135deg, #10b981, #34d399) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 4px 28px rgba(16, 185, 129, 0.65); }
}

.pricing-savings {
    font-size: 13px;
    color: #10b981;
    font-weight: 600;
    margin-bottom: 24px;
    margin-top: -16px;
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-trigger {
    width: 100%;
    padding: 24px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 18px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    padding: 0 24px;
}

.faq-content p {
    color: var(--text-secondary);
    font-size: 14px;
    padding-bottom: 24px;
    line-height: 1.6;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-primary);
}

.faq-item.active .faq-content {
    max-height: 500px;
    /* arbitrary height for animation transition */
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* Footer legal pages list */
footer.site-footer {
    border-top: 1px solid var(--border-color);
    background: rgba(3, 5, 11, 0.8);
    padding: 60px 0 40px 0;
    font-size: 14px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #ffffff;
    font-size: 18px;
}

.footer-copy {
    color: var(--text-muted);
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--accent-primary);
}

/* Animations */
@keyframes bubble-fade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adaptations */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-content h1 {
        font-size: 44px;
    }

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

    .pricing-grid.pricing-grid-3 {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .nav-menu {
        display: flex;
        gap: 0;
    }

    /* Esconde os links de navegação, mas mantém o botão TESTAR */
    .nav-menu li:not(:last-child) {
        display: none;
    }

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

    .pricing-grid,
    .pricing-grid.pricing-grid-3 {
        grid-template-columns: 1fr;
        max-width: 450px;
    }

    .banner-overlay {
        padding: 24px;
    }

    .banner-overlay-content h3 {
        font-size: 24px;
    }

    .banner-img-container {
        height: 280px;
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 12px;
    }
}