/* ========================================
   HERO SECTION - ESTILO MODERNO 2 COLUNAS
   Inspirado em Tailwind, clean e profissional
   ======================================== */

/* ===== ESTRUTURA BASE ===== */
.section-hero {
    position: relative;
    overflow: visible;
    background: var(--bg-primary);
    isolation: isolate;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
}

.hero-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.section-hero .section-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* ===== GRID DE FUNDO SUTIL ===== */
.hero-grid-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

[data-theme="light"] .hero-grid-pattern {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* ===== EFEITOS DE BRILHO (GLOW) - REMOVIDOS ===== */
.hero-glow {
    display: none;
}

/* ===== LAYOUT GRID - OCUPANDO 100% DA SEÇÃO ===== */
.hero-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    height: 100%;
}

/* ===== COLUNA ESQUERDA - VOLTA PARA ALINHAMENTO À ESQUERDA ===== */
.hero-content-left {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3vh, 1.75rem);
    max-width: 100%;
    margin: 0 auto;
}

.hero-content-left > * {
    margin-bottom: 0;
}

/* ===== BADGE ===== */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    margin-bottom: clamp(1.5rem, 3vh, 2rem);
    animation: fadeInDown 0.8s ease-out;
}

[data-theme="light"] .hero-badge {
    background: rgba(224, 242, 254, 0.8);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.1);
}

.badge-icon {
    font-size: 1rem;
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #22d3ee;
    letter-spacing: 0.3px;
}

[data-theme="light"] .badge-text {
    color: #0891b2;
    font-weight: 700;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== TÍTULO PRINCIPAL - FONTE MENOR ===== */
.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: clamp(1rem, 2.5vh, 1.5rem);
    color: var(--text-primary);
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    display: inline-block;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== SUBTÍTULO ===== */
.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: clamp(2rem, 4vh, 2.5rem);
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

[data-theme="light"] .hero-subtitle {
    color: #475569;
}

[data-theme="light"] .hero-subtitle {
    color: #64748b;
}

/* ===== BOTÕES CTA - EMPILHADOS VERTICALMENTE ===== */
.hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
    margin-bottom: clamp(2rem, 4vh, 2.5rem);
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary .btn-arrow {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.4);
    color: var(--text-primary);
    border: 2px solid rgba(71, 85, 105, 0.6);
    position: relative;
}

[data-theme="light"] .btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(148, 163, 184, 0.4);
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
    background: rgba(51, 65, 85, 0.6);
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

[data-theme="light"] .btn-secondary:hover {
    background: white;
    border-color: #2563eb;
    color: #2563eb;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
}

/* ===== DIFERENCIAIS (FEATURES) - COLUNA ÚNICA NA DIREITA ===== */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    max-width: 100%;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

/* Remove o span de 2 colunas já que agora é lista vertical */
.hero-features .feature-item:nth-child(3) {
    grid-column: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 0.875rem;
    transition: all 0.3s ease;
}

[data-theme="light"] .feature-item {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(203, 213, 225, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.feature-item:hover {
    transform: translateX(8px);
    border-color: #22d3ee;
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.15);
    background: rgba(51, 65, 85, 0.5);
}

[data-theme="light"] .feature-item:hover {
    background: white;
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.2);
    border-color: #22d3ee;
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: #22d3ee;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
    font-weight: 500;
}

[data-theme="light"] .feature-item span {
    color: #334155;
}

/* ===== COLUNA DIREITA: CTAs E FEATURES ===== */
.hero-content-right {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vh, 3rem);
    justify-content: center;
    padding: clamp(1.5rem, 3vh, 2rem);
}

.hero-dashboard-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 1.75rem;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.55));
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
    animation: fadeInRight 0.8s ease-out 0.4s backwards;
    z-index: 0;
}

.hero-dashboard-card::before {
    content: '';
    position: absolute;
    inset: -45% -25% 50% -40%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.38) 0%, rgba(59, 130, 246, 0) 65%);
    pointer-events: none;
    opacity: 0.9;
    z-index: 0;
}

.hero-dashboard-card::after {
    content: '';
    position: absolute;
    inset: auto -20% -45% 35%;
    height: 60%;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.32) 0%, rgba(6, 182, 212, 0) 68%);
    pointer-events: none;
    opacity: 0.7;
    z-index: 0;
}

[data-theme="light"] .hero-dashboard-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.92));
    border-color: rgba(148, 163, 184, 0.26);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.dashboard-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 1;
}

.dashboard-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.2);
    color: rgba(191, 219, 254, 0.95);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.dashboard-chip svg {
    width: 16px;
    height: 16px;
}

[data-theme="light"] .dashboard-chip {
    background: rgba(59, 130, 246, 0.14);
    color: #2563eb;
}

.dashboard-update {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.75);
}

[data-theme="light"] .dashboard-update {
    color: rgba(71, 85, 105, 0.8);
}

.dashboard-highlight {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.35rem 1.25rem 1.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.24), rgba(6, 182, 212, 0.18));
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    overflow: hidden;
    z-index: 1;
}

.dashboard-highlight::after {
    content: '';
    position: absolute;
    inset: 55% -25% -45% 10%;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.32) 0%, rgba(15, 23, 42, 0) 70%);
    pointer-events: none;
    opacity: 0.7;
}

[data-theme="light"] .dashboard-highlight {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.14), rgba(6, 182, 212, 0.1));
    border-color: rgba(148, 163, 184, 0.18);
}

.highlight-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(226, 232, 240, 0.85);
}

[data-theme="light"] .highlight-top {
    color: rgba(51, 65, 85, 0.85);
}

.highlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.35);
    color: #22d3ee;
    font-size: 0.75rem;
    font-weight: 600;
}

.highlight-badge::before {
    content: '+';
}

[data-theme="light"] .highlight-badge {
    background: rgba(224, 242, 254, 0.75);
    color: #0ea5e9;
}

.highlight-value {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #f8fafc;
}

[data-theme="light"] .highlight-value {
    color: #0f172a;
}

.highlight-subtitle {
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.5;
}

[data-theme="light"] .highlight-subtitle {
    color: rgba(51, 65, 85, 0.78);
}

.highlight-chart {
    position: relative;
    width: 100%;
    height: 110px;
}

.highlight-chart svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.highlight-chart path {
    fill: none;
    stroke: url(#heroHighlightGradient);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.highlight-chart circle {
    fill: #22d3ee;
}

[data-theme="light"] .highlight-chart circle {
    fill: #0ea5e9;
}

.dashboard-metrics-grid {
    display: grid;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.dashboard-metric {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    z-index: 1;
}

[data-theme="light"] .dashboard-metric {
    background: rgba(248, 250, 252, 0.8);
    border-color: rgba(203, 213, 225, 0.6);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.metric-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.metric-label {
    font-weight: 600;
    color: rgba(226, 232, 240, 0.9);
}

[data-theme="light"] .metric-label {
    color: #1e293b;
}

.metric-value {
    font-weight: 700;
    color: #38bdf8;
}

[data-theme="light"] .metric-value {
    color: #2563eb;
}

.metric-bar {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
    overflow: hidden;
}

.metric-fill {
    position: absolute;
    inset: 0;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    border-radius: inherit;
    transition: width 0.6s ease;
}

.metric-footer {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.metric-footer span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.metric-footer.positive {
    color: #34d399;
}

.metric-footer.neutral {
    color: rgba(226, 232, 240, 0.75);
}

[data-theme="light"] .metric-footer.neutral {
    color: rgba(100, 116, 139, 0.85);
}

.metric-footer.positive::before {
    content: '▲';
    font-size: 0.6rem;
}

.metric-footer.negative {
    color: #f87171;
}

.metric-footer.negative::before {
    content: '▼';
    font-size: 0.6rem;
}

.metric-note {
    font-weight: 500;
}

.metric-status {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.metric-status.positive {
    color: #34d399;
}

[data-theme="light"] .metric-status.positive {
    color: #059669;
}

.metric-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.15);
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.75rem;
}

[data-theme="light"] .metric-status-pill {
    background: rgba(16, 185, 129, 0.18);
    color: #047857;
}

.status-indicator {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22d3ee;
}

.status-indicator.pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #22d3ee;
    animation: pulseDot 2.2s ease-out infinite;
}

[data-theme="light"] .status-indicator {
    background: #0ea5e9;
}

.metric-bubbles {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.metric-bubbles span {
    width: var(--size);
    height: var(--size);
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.18);
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.2));
}

[data-theme="light"] .metric-bubbles span {
    background: rgba(37, 99, 235, 0.14);
}

@keyframes pulseDot {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    70% {
        transform: scale(2.2);
        opacity: 0;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator-modern {
    position: absolute;
    bottom: clamp(2rem, 4vh, 3rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.6;
    animation: fadeIn 1s ease-out 1.5s backwards;
    z-index: 10;
}

[data-theme="light"] .scroll-indicator-modern {
    opacity: 0.5;
}

.scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { top: 6px; opacity: 1; }
    50% { top: 16px; opacity: 0.3; }
}

.scroll-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.6; }
}

/* ===== RESPONSIVO TABLET ===== */
@media (max-width: 1100px) {
    .hero-wrapper {
        height: auto;
        min-height: auto;
    }
    
    .hero-layout-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        min-height: auto;
        height: auto;
    }
    
    .hero-content-left {
        text-align: center;
    }
    
    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-content-right {
        padding: 0;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-ctas {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-primary,
    .btn-secondary {
        flex: 1;
        min-width: 200px;
    }
    
    .hero-features {
        max-width: 100%;
    }
}

/* ===== RESPONSIVO MOBILE ===== */
@media (max-width: 768px) {
    .section-hero {
        min-height: auto;
        height: auto;
        padding: 0;
        overflow-x: hidden;
    }
    
    .hero-wrapper {
        height: auto;
        min-height: auto;
        padding: 6rem 0 3rem;
    }
    
    .section-hero .section-content {
        padding: 0 1.25rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero-layout-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0;
        min-height: auto;
        height: auto;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero-content-left {
        text-align: center;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
        max-width: fit-content;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 0 0.5rem;
    }
    
    .hero-content-right {
        padding: 0;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero-dashboard-card {
        max-width: 100%;
        margin: 0 auto;
        padding: clamp(1.25rem, 3vw, 1.5rem);
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 0.875rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Features em lista vertical no mobile */
    .hero-features {
        max-width: 100%;
        margin: 0 auto;
        overflow-x: hidden;
    }
    
    .feature-item {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        max-width: 100%;
    }
    
    .feature-item:hover {
        transform: translateX(4px);
    }
    
    /* Scroll indicator escondido no mobile */
    .scroll-indicator-modern {
        display: none;
    }
    
    /* Garantir que efeitos de fundo não causem overflow */
    .hero-grid-pattern {
        overflow: hidden;
    }
    
    .hero-dashboard-card::before,
    .hero-dashboard-card::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .feature-item span {
        font-size: 0.875rem;
    }
}
