/* ==========================================================================
   SETUP RAIZ — PÁGINA PONTE (RESPONSIVIDADE TOTAL: MOBILE, TABLET & DESKTOP)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,700;1,800&family=Space+Grotesk:wght@600;700;800&display=swap');

:root {
    /* Cores do Tema Claro (Editorial — Fiel aos posts do Instagram) */
    --bg-page: #F6F7F9;
    --bg-page-mesh: radial-gradient(circle at 15% 15%, rgba(255, 85, 0, 0.06) 0px, transparent 450px),
                    radial-gradient(circle at 85% 85%, rgba(0, 200, 255, 0.06) 0px, transparent 450px);
    --bg-card: #FFFFFF;
    --bg-card-subtle: #F3F4F6;
    --bg-badge: #F1F3F5;
    
    --text-primary: #0F1117;
    --text-secondary: #525866;
    --text-muted: #868E96;
    
    --border-light: rgba(15, 17, 23, 0.08);
    --border-focus: rgba(255, 85, 0, 0.4);
    
    --accent-orange: #FF5500;
    --accent-orange-hover: #E04B00;
    --accent-orange-subtle: rgba(255, 85, 0, 0.08);
    --accent-cyan: #00B8D9;
    
    --whatsapp-green: #25D366;
    --whatsapp-glow: rgba(37, 211, 102, 0.18);
    --telegram-blue: #229ED9;
    --telegram-glow: rgba(34, 158, 217, 0.18);

    --shadow-card: 0 4px 16px -2px rgba(0, 0, 0, 0.05), 0 1px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 10px 26px -3px rgba(0, 0, 0, 0.08), 0 3px 10px -1px rgba(0, 0, 0, 0.04);
    --radius-xl: 18px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    --transition-fast: 0.16s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modo Escuro */
[data-theme="dark"] {
    --bg-page: #090A0D;
    --bg-page-mesh: radial-gradient(circle at 15% 15%, rgba(255, 85, 0, 0.09) 0px, transparent 500px),
                    radial-gradient(circle at 85% 85%, rgba(0, 200, 255, 0.09) 0px, transparent 500px);
    --bg-card: #12141A;
    --bg-card-subtle: #181B23;
    --bg-badge: #1E222D;
    
    --text-primary: #F8F9FA;
    --text-secondary: #9DA4B2;
    --text-muted: #626A7A;
    
    --border-light: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(255, 85, 0, 0.5);
    
    --shadow-card: 0 6px 24px -4px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 14px 34px -4px rgba(0, 0, 0, 0.65);
}

/* Reset Básico & Estilos Globais */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    background-image: var(--bg-page-mesh);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.4;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 0;
    overflow: hidden; /* No mobile: tela única sem rolagem */
}

/* Custom Scrollbar Suave */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==========================================================================
   ESTRUTURA BASE (MOBILE-FIRST: SMARTPHONES ATÉ 639px)
   ========================================================================== */

.page-wrapper {
    width: 100%;
    max-width: 440px;
    height: 100%;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(10px, 2vh, 18px) 16px clamp(12px, 2.5vh, 20px);
    box-sizing: border-box;
    gap: clamp(8px, 1.6vh, 14px);
    transition: all 0.3s ease;
}

/* 1. Barra de Topo */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-shrink: 0;
}

.top-brand-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #10B981;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    background-color: #10B981;
    animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.6); opacity: 0; }
}

.top-actions {
    display: flex;
    gap: 6px;
}

.icon-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

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

/* 2. Perfil e Logo */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-container {
    position: relative;
    width: 64px;
    height: 64px;
    transition: width 0.3s ease, height 0.3s ease;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #0A0B0E;
    box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.18);
    border: 2.5px solid var(--bg-card);
}

.brand-badge-verified {
    position: absolute;
    bottom: -1px;
    right: -1px;
    background: #00C8FF;
    color: #FFFFFF;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
    box-shadow: 0 2px 5px rgba(0, 200, 255, 0.35);
}

.brand-badge-verified svg {
    width: 11px;
    height: 11px;
}

.brand-titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 3.5vw, 1.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-transform: uppercase;
    line-height: 1.1;
}

.brand-tagline {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* 3. Headline & Copy */
.intro-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 4px;
    flex-shrink: 0;
}

.headline-text {
    font-size: clamp(1.05rem, 3.8vw, 1.25rem);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.highlight-orange {
    color: var(--accent-orange);
    display: inline-block;
}

.sub-description {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

/* 4. CTAs Principais */
.cta-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    flex-shrink: 0;
}

.action-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-smooth);
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.action-card:active {
    transform: scale(0.98);
}

/* Card WhatsApp */
.action-card.whatsapp {
    border-color: rgba(37, 211, 102, 0.28);
}

.action-card.whatsapp:hover {
    border-color: var(--whatsapp-green);
    box-shadow: 0 8px 24px -3px var(--whatsapp-glow);
}

/* Card Telegram */
.action-card.telegram {
    border-color: rgba(34, 158, 217, 0.28);
}

.action-card.telegram:hover {
    border-color: var(--telegram-blue);
    box-shadow: 0 8px 24px -3px var(--telegram-glow);
}

.card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.action-card:hover .card-icon-wrapper {
    transform: scale(1.06);
}

.action-card.whatsapp .card-icon-wrapper {
    background: rgba(37, 211, 102, 0.12);
    color: var(--whatsapp-green);
}

.action-card.telegram .card-icon-wrapper {
    background: rgba(34, 158, 217, 0.12);
    color: var(--telegram-blue);
}

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

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: left;
}

.card-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-badge {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 1px 6px;
    border-radius: var(--radius-full);
}

.badge-whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #138E41;
}

[data-theme="dark"] .badge-whatsapp {
    color: #4ADE80;
}

.badge-telegram {
    background: rgba(34, 158, 217, 0.15);
    color: #0E7490;
}

[data-theme="dark"] .badge-telegram {
    color: #38BDF8;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.card-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-card-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.action-card:hover .card-arrow {
    background: var(--text-primary);
    color: var(--bg-card);
    transform: translateX(2px);
}

.card-arrow svg {
    width: 14px;
    height: 14px;
}

/* 5. Diferenciais de Confiança (Pílulas no Mobile) */
.trust-pills-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    flex-shrink: 0;
}

.trust-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 6px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-secondary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.trust-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-orange);
}

.trust-icon-box svg {
    width: 13px;
    height: 13px;
}

.trust-content {
    display: flex;
    flex-direction: column;
}

.trust-label {
    font-size: 0.68rem;
    font-weight: 700;
}

.trust-desc {
    display: none; /* Oculto no celular para preservar tela única */
}

/* 6. Rodapé */
.footer-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
}

.footer-quote {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-orange);
    letter-spacing: -0.01em;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all var(--transition-fast);
}

.footer-social-link:hover {
    color: #E1306C;
    border-color: rgba(225, 48, 108, 0.4);
    background: rgba(225, 48, 108, 0.06);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(225, 48, 108, 0.12);
}

.footer-social-link:active {
    transform: scale(0.97);
}

.footer-social-link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.footer-social-link:hover svg {
    transform: scale(1.1);
}

/* Toast de Notificação */
.toast-notice {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0F1117;
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

[data-theme="dark"] .toast-notice {
    background: #FFFFFF;
    color: #0F1117;
}

.toast-notice.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notice svg {
    width: 15px;
    height: 15px;
    color: #10B981;
}

/* ==========================================================================
   FALLBACK PARA TELAS COM ALTURA REDUZIDA (< 560px ou MODO PAISAGEM)
   ========================================================================== */
@media (max-height: 560px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        align-items: flex-start;
        padding: 16px 0;
    }
    .page-wrapper {
        height: auto;
        max-height: none;
    }
}

/* ==========================================================================
   ADAPTAÇÃO TABLET & TELAS MÉDIAS (min-width: 640px)
   ========================================================================== */
@media (min-width: 640px) {
    .page-wrapper {
        max-width: 580px;
        padding: 20px 24px;
        gap: 16px;
    }
    .logo-container {
        width: 72px;
        height: 72px;
    }
    .brand-name {
        font-size: 1.4rem;
    }
    .headline-text {
        font-size: 1.35rem;
    }
    .sub-description {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   ADAPTAÇÃO DESKTOP, NOTEBOOKS & TELAS LARGAS (min-width: 768px)
   ========================================================================== */
@media (min-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow-y: auto;
        padding: 40px 20px;
        align-items: center;
    }

    /* Card Central Imponente e Harmonioso */
    .page-wrapper {
        max-width: 760px;
        height: auto;
        max-height: none;
        background: var(--bg-card);
        border: 1.5px solid var(--border-light);
        border-radius: 28px;
        padding: 36px 42px;
        box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.07),
                    0 0 0 1px var(--border-light);
        gap: 24px;
    }

    [data-theme="dark"] .page-wrapper {
        box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.7),
                    0 0 0 1px rgba(255, 255, 255, 0.05);
    }

    /* Top Nav no Desktop */
    .top-brand-indicator {
        padding: 6px 14px;
        font-size: 0.78rem;
    }
    .icon-btn {
        width: 38px;
        height: 38px;
    }

    /* Perfil no Desktop */
    .profile-section {
        gap: 12px;
    }
    .logo-container {
        width: 82px;
        height: 82px;
    }
    .brand-badge-verified {
        width: 24px;
        height: 24px;
    }
    .brand-badge-verified svg {
        width: 13px;
        height: 13px;
    }
    .brand-name {
        font-size: 1.65rem;
    }
    .brand-tagline {
        font-size: 0.76rem;
        letter-spacing: 0.2em;
    }

    /* Headline Editorial no Desktop */
    .intro-box {
        gap: 8px;
        max-width: 600px;
        margin: 0 auto;
    }
    .headline-text {
        font-size: 1.55rem;
        line-height: 1.32;
    }
    .sub-description {
        font-size: 0.92rem;
        line-height: 1.5;
    }

    /* 🌟 CTAs em 2 COLUNAS LADO A LADO NO DESKTOP 🌟 */
    .cta-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
        margin: 4px 0;
    }

    .action-card {
        padding: 18px 20px;
        border-radius: 20px;
    }
    .action-card:hover {
        transform: translateY(-4px);
    }
    .card-icon-wrapper {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }
    .card-icon-wrapper svg {
        width: 26px;
        height: 26px;
    }
    .card-title {
        font-size: 1.05rem;
    }
    .card-subtitle {
        font-size: 0.78rem;
    }
    .card-arrow {
        width: 32px;
        height: 32px;
    }

    /* 🌟 DIFERENCIAIS EM 3 COLUNAS EXPANDIDAS NO DESKTOP 🌟 */
    .trust-pills-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        white-space: normal;
    }

    .trust-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        border-radius: 16px;
        background: var(--bg-card-subtle);
        border: 1px solid var(--border-light);
        gap: 8px;
        white-space: normal;
        text-align: left;
    }

    .trust-item:hover {
        border-color: var(--border-focus);
        transform: translateY(-2px);
    }

    .trust-icon-box {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: var(--accent-orange-subtle);
    }
    .trust-icon-box svg {
        width: 18px;
        height: 18px;
    }

    .trust-label {
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--text-primary);
    }

    .trust-desc {
        display: block;
        font-size: 0.75rem;
        color: var(--text-secondary);
        line-height: 1.4;
        margin-top: 2px;
    }

    /* Rodapé no Desktop */
    .footer-section {
        padding-top: 16px;
    }
    .footer-quote {
        font-size: 0.82rem;
    }
    .footer-social-link {
        font-size: 0.82rem;
        padding: 6px 14px;
    }
}

/* ==========================================================================
   ADAPTAÇÃO MONITORES GRANDES & ULTRAWIDE (min-width: 1200px)
   ========================================================================== */
@media (min-width: 1200px) {
    .page-wrapper {
        max-width: 820px;
        padding: 42px 48px;
        gap: 28px;
    }
}
