/* ==========================================================================
   CSS DESIGN SYSTEM - ALLADIN TRADING IA
   ========================================================================== */

/* 1. VARIÁVEIS E CONFIGURAÇÕES GLOBAIS */
:root {
    --bg-primary: #070B12;
    --bg-secondary: #0D1320;
    --bg-card: #101827;
    --blue-primary: #2F80FF;
    --blue-light: #60A5FA;
    --blue-dark: #1D4ED8;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-active: rgba(47, 128, 255, 0.4);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
    --shadow-blue-glow: 0 12px 30px rgba(47, 128, 255, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 2. CLASSES UTILITÁRIAS E REUTILIZÁVEIS */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.bg-sec {
    background-color: var(--bg-secondary);
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 99px;
    background: rgba(47, 128, 255, 0.08);
    border: 1px solid rgba(47, 128, 255, 0.2);
    color: var(--blue-light);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 64px auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* 3. BOTÕES E MICRO-INTERAÇÕES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--blue-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(47, 128, 255, 0.3);
}

.btn-primary:hover {
    background: #4690FF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 128, 255, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

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

.btn-white {
    background: #ffffff;
    color: var(--bg-primary);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

.btn-white:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    gap: 8px;
}

.btn-icon {
    transition: transform 0.3s ease;
}

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

/* 4. HEADER FIXO */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1000;
    background: rgba(7, 11, 18, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo-area {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
    line-height: 1.1;
}

.logo-main {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.logo-sub {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--blue-primary);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-btn .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 999;
    padding: 120px 32px 40px 32px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
    border-left: 1px solid var(--border-subtle);
}

.mobile-drawer.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.mobile-nav-link:hover {
    color: var(--text-primary);
    padding-left: 8px;
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.mobile-btn {
    width: 100%;
}

/* Hamburgher active animation */
.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* 5. HERO PRINCIPAL */
.section-hero {
    padding: 160px 0 100px 0;
    overflow: hidden;
    position: relative;
}

.section-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(47,128,255,0.08) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-left {
    display: flex;
    flex-direction: column;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.hero-indicators {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 32px;
}

.indicator-card {
    display: flex;
    flex-direction: column;
}

.indicator-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.indicator-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Coluna Direita - Monitor */
.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.monitor-wrapper {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.monitor-subtext {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
}

.monitor-container {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.monitor-header {
    height: 38px;
    background: #0b101b;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
}

.monitor-dots {
    display: flex;
    gap: 6px;
}

.monitor-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.monitor-dots .red { background-color: #ef4444; }
.monitor-dots .yellow { background-color: #f59e0b; }
.monitor-dots .green { background-color: #10b981; }

.monitor-address {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 4px 16px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.monitor-screen {
    position: relative;
    padding-bottom: 65%; /* aspect ratio 16:10 */
    background: #080c14;
}

.placeholder-gif-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    overflow: hidden;
}

.glow-effect {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(47,128,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.placeholder-logo {
    margin-bottom: 16px;
    animation: pulseLogo 3s infinite ease-in-out;
}

@keyframes pulseLogo {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 4px rgba(47,128,255,0.1)); }
    50% { transform: translateY(-6px); filter: drop-shadow(0 0 12px rgba(47,128,255,0.4)); }
}

.placeholder-gif-container h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.placeholder-gif-container p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    max-width: 320px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 4px 10px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-pulse {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulseBadge 1.5s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}


/* 6. GRID GERAL DE CARDS (SEÇÕES COM 4 COLUNAS) */
.grid-4-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* 7. SEÇÃO "O QUE É O ALLADIN" & CARDS */
.section-about {
    padding: 100px 0;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 32px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.card-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(47, 128, 255, 0.05);
    border: 1px solid rgba(47, 128, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.35;
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* HOVER EFEITO OBRIGATÓRIO NOS CARDS */
.card:hover, .market-card:hover, .inst-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-blue-glow);
    border-color: var(--blue-primary);
}


/* 8. SEÇÃO "COMO FUNCIONA" (TIMELINE) */
.section-how {
    padding: 100px 0;
}

.how-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
}

.how-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.timeline-visual-decoration {
    margin-top: 40px;
    height: 180px;
    border-left: 1px dashed var(--border-subtle);
    position: relative;
    padding-left: 24px;
    display: flex;
    align-items: center;
}

.glowing-line {
    position: absolute;
    left: -1px;
    top: 0;
    width: 2px;
    height: 50%;
    background: linear-gradient(to bottom, var(--blue-primary), transparent);
    box-shadow: 0 0 10px var(--blue-primary);
    animation: flowLine 4s infinite linear;
}

@keyframes flowLine {
    0% { top: 0%; }
    100% { top: 100%; }
}

.how-right {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.timeline-step {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px 32px;
    position: relative;
    transition: var(--transition-smooth);
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 32px;
    width: 15px;
    height: 15px;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    transform: rotate(45deg);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.step-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--blue-primary);
}

.step-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}


/* 9. SEÇÃO PLATAFORMA (MOCKUP DASHBOARD) */
.section-platform {
    padding: 100px 0;
}

.platform-container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
    align-items: center;
}

.platform-left {
    display: flex;
    flex-direction: column;
}

.platform-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.mini-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 20px;
    transition: var(--transition-smooth);
}

.mini-feature-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-blue-glow);
    border-color: var(--blue-primary);
}

.mini-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mini-card-header h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

.mini-feature-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Mockup CSS/SVG do Dashboard */
.platform-right {
    display: flex;
    justify-content: center;
}

.dashboard-mockup {
    width: 100%;
    background: #090e18;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dash-header {
    height: 48px;
    background: #0c1220;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.dash-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--blue-primary);
    box-shadow: 0 0 6px var(--blue-primary);
}

.dash-user-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

.dash-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-light));
}

.dash-body {
    display: grid;
    grid-template-columns: 140px 1fr;
    min-height: 380px;
}

/* Sidebar */
.dash-sidebar {
    background: #0a0f1b;
    border-right: 1px solid var(--border-subtle);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dash-menu-item:hover, .dash-menu-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.dash-menu-item.active {
    border-left: 2px solid var(--blue-primary);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Content */
.dash-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #080c15;
}

.dash-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.dash-metric-card {
    background: #0c1220;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.m-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.m-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 6px;
}

.m-trend {
    font-size: 0.65rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.m-trend.positive { color: #10b981; }
.m-trend.neutral { color: var(--text-secondary); }
.m-trend.safe { color: var(--blue-light); }

/* Chart Card */
.dash-chart-card {
    background: #0c1220;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.chart-title {
    font-size: 0.75rem;
    font-weight: 600;
}

.chart-legend {
    display: flex;
    align-items: center;
}

.leg-item {
    font-size: 0.65rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.leg-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.leg-dot.bg-blue { background-color: var(--blue-primary); }

.chart-wrapper {
    height: 100px;
}

.chart-dates {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.6rem;
    color: var(--text-secondary);
}

/* Bottom Grid */
.dash-bottom-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 16px;
}

.dash-table-card, .dash-distribution-card {
    background: #0c1220;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px;
}

.card-subtitle-small {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.65rem;
}

.dash-table th, .dash-table td {
    padding: 6px 8px;
    text-align: left;
}

.dash-table th {
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 1px solid var(--border-subtle);
}

.dash-table td {
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.dash-table tr:last-child td {
    border-bottom: none;
}

.dash-table td.bold {
    font-weight: 600;
}

.text-green { color: #10b981; }
.text-red { color: #ef4444; }

.status-pill {
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 600;
}

.status-success {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
}

.status-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

/* Distribution donut */
.dist-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-top: 8px;
}

.donut-chart {
    transform: rotate(-90deg);
}

.dist-legend {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dist-leg-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dist-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.dist-dot.bg-primary { background-color: var(--blue-primary); }
.dist-dot.bg-light-blue { background-color: var(--blue-light); }
.dist-dot.bg-dark-blue { background-color: var(--blue-dark); }

.dist-label {
    font-size: 0.6rem;
    color: var(--text-secondary);
}


/* 10. SEÇÃO MERCADOS */
.section-markets {
    padding: 100px 0;
}

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

.market-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.market-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(47, 128, 255, 0.05);
    border: 1px solid rgba(47, 128, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--blue-light);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
}

.market-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.market-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}


/* 11. SEÇÃO INSTITUCIONAL */
.section-institutional {
    padding: 100px 0;
}

.inst-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 28px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.inst-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.inst-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(96, 165, 250, 0.05);
    border: 1px solid rgba(96, 165, 250, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inst-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
}

.inst-card-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}


/* 12. SEÇÃO COMPARATIVO */
.section-comparison {
    padding: 100px 0;
}

.table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 48px;
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th, .comparison-table td {
    padding: 20px 24px;
}

.comparison-table th {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
}

.th-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.th-content.text-blue {
    color: var(--blue-primary);
}

.comparison-table td {
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 0.95rem;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.feature-name {
    font-weight: 600;
    color: #ffffff;
}

.bad-item {
    color: var(--text-secondary);
}

.good-item {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding-left: 36px;
}

.good-item::before {
    content: '✓';
    position: absolute;
    left: 24px;
    color: var(--blue-light);
    font-weight: 800;
}

/* Coluna destacada */
.comparison-table td:nth-child(3) {
    background-color: rgba(47, 128, 255, 0.015);
}


/* 13. FAQ (ACCORDION) */
.section-faq {
    padding: 100px 0;
}

.faq-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
}

.faq-left {
    display: flex;
    flex-direction: column;
}

.faq-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.01);
}

.faq-toggle {
    color: var(--blue-light);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

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

/* Active accordion styles */
.faq-item.active {
    border-color: var(--blue-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg); /* vira um sinal de X se for um + */
}

.faq-item.active .faq-answer {
    max-height: 250px;
    opacity: 1;
    padding-bottom: 24px;
}


/* 14. CTA FINAL */
.section-cta {
    padding: 60px 0 100px 0;
}

.cta-card {
    position: relative;
    background: linear-gradient(135deg, var(--blue-primary) 0%, #172554 100%);
    border-radius: 16px;
    padding: 64px 48px;
    text-align: center;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(96,165,250,0.2) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.cta-desc {
    font-size: 1.05rem;
    color: rgba(248, 250, 252, 0.85);
    margin-bottom: 40px;
}


/* 15. FOOTER */
.footer {
    background-color: #04070c;
    border-top: 1px solid var(--border-subtle);
    padding: 80px 0 40px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 280px;
}

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

.footer-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.footer-list a:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.03);
    padding-top: 40px;
}

.footer-bottom-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.disclaimer {
    max-width: 800px;
    font-size: 0.7rem;
    color: rgba(148, 163, 184, 0.6);
    line-height: 1.5;
}


/* 16. CLASSES DE REVEAL AO SCROLL */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}


/* ==========================================================================
   RESPONSIVIDADE (BREAKPOINTS)
   ========================================================================== */

/* 1. TABLET / SCREEN DESKTOP MENORES (1024px) */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 32px auto;
    }

    .hero-buttons {
        justify-content: center;
        margin-bottom: 40px;
    }

    .hero-right {
        order: 2; /* coloca monitor abaixo do texto no mobile */
    }

    .monitor-wrapper {
        align-items: center;
        max-width: 600px;
    }

    .grid-4-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

    .how-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .timeline-visual-decoration {
        display: none;
    }

    .platform-container {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .faq-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* 2. MOBILE (768px) */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .header {
        height: 70px;
    }

    .nav-menu, .header-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-indicators {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

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

    .platform-cards-grid {
        grid-template-columns: 1fr;
    }

    .dash-body {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        display: none; /* Simplifica no mobile */
    }

    .dash-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-bottom-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table th, .comparison-table td {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    .good-item {
        padding-left: 20px;
    }

    .good-item::before {
        left: 8px;
    }

    .cta-card {
        padding: 40px 24px;
    }

    .cta-title {
        font-size: 1.85rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* 3. MOBILE PEQUENO (480px) */
@media (max-width: 480px) {
    .hero-indicators {
        grid-template-columns: 1fr;
    }

    .dash-metrics {
        grid-template-columns: 1fr;
    }

    .comparison-table th:nth-child(2), 
    .comparison-table td:nth-child(2) {
        display: none; /* Oculta a coluna manual em telas muito pequenas para legibilidade */
    }
}
