/* ============================================
   ProyectaFin Landing — Styles
   Palette: Fintech Blue (Poppins)
   ============================================ */

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

:root {
    --blue: #3b82f6;
    --blue-hover: #2563eb;
    --blue-light: #eff6ff;
    --navy: #0f172a;
    --navy-light: #1e293b;
    --green: #10b981;
    --green-light: #ecfdf5;
    --purple: #8b5cf6;
    --purple-light: #8b5cf61a;
    --turquoise: #14b8a6;
    --turquoise-light: #14b8a61a;
    --orange: #f97316;
    --orange-light: #fff7ed;
    --red: #ef4444;
    --red-light: #fef2f2;
    --yellow: #f59e0b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --border: #e2e8f0;
    --page-bg: #f8fafc;
    --card-bg: #ffffff;
    --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--navy);
    background: var(--page-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

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

/* --- Gradient Text --- */
.gradient-text {
    background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    padding: 10px 24px;
    gap: 8px;
}
.btn-primary {
    background: var(--blue);
    color: #fff;
}
.btn-primary:hover {
    background: var(--blue-hover);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--blue);
    color: var(--blue);
}
.btn-white {
    background: #fff;
    color: var(--navy);
}
.btn-white:hover {
    background: var(--page-bg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 12px; }

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06); }
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--navy);
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s;
}

/* --- Hero --- */
.hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 500px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--gray-light);
}
.trust-avatars {
    display: flex;
}
.trust-avatars .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--page-bg);
    margin-right: -8px;
}
.hero-bg-glow {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* --- Dashboard Mock --- */
.hero-visual { perspective: 1000px; }
.dashboard-mock {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.4s ease;
}
.dashboard-mock:hover { transform: rotateY(0) rotateX(0); }
.mock-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--navy);
}
.mock-dots {
    display: flex;
    gap: 6px;
}
.mock-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
}
.mock-dots span:nth-child(2) { background: #f59e0b; }
.mock-dots span:nth-child(3) { background: #10b981; }
.mock-title {
    color: var(--gray-light);
    font-size: 12px;
    margin-left: auto;
}
.mock-body { padding: 20px; }
.mock-welcome {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--navy);
}
.mock-blue { color: var(--blue); }
.mock-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.mock-btn {
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 8px;
    background: var(--blue-light);
    color: var(--blue);
    font-weight: 600;
}
.mock-btn.accent {
    background: var(--blue);
    color: #fff;
}
/* --- Mock KPI Cards --- */
.mock-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.mock-kpi {
    background: var(--page-bg);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.kpi-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.kpi-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
}
.kpi-trend {
    font-size: 9px;
    font-weight: 600;
}
.kpi-trend.positive { color: var(--green); }
.kpi-trend.negative { color: var(--red); }

.mock-chart { margin-bottom: 14px; }
.chart-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 8px;
}
.chart-svg { width: 100%; height: auto; }
.mock-chat-bubble {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--blue-light);
    border-radius: 12px;
    padding: 12px 16px;
}
.chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chat-msg {
    font-size: 13px;
    color: var(--navy);
    line-height: 1.5;
    flex: 1;
}

/* Mock simulation buttons */
.mock-sim-buttons {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-shrink: 0;
}
.sim-btn-mock {
    font-size: 9px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.sim-btn-mock.simulate {
    background: var(--blue-light);
    color: var(--blue);
}
.sim-btn-mock.accept {
    background: var(--green-light);
    color: var(--green);
}
.mock-chat-bubble {
    flex-wrap: wrap;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}
.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-light);
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}
.section-header h2 {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.section-header p {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.7;
}

/* --- Features Grid --- */
.features { padding: 100px 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}
.feature-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
    border-color: transparent;
}
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-icon.blue { background: var(--blue-light); color: var(--blue); }
.feature-icon.purple { background: var(--purple-light); color: var(--purple); }
.feature-icon.green { background: var(--green-light); color: var(--green); }
.feature-icon.orange { background: var(--orange-light); color: var(--orange); }
.feature-icon.turquoise { background: var(--turquoise-light); color: var(--turquoise); }
.feature-icon.red { background: var(--red-light); color: var(--red); }
.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

/* --- AI Advisor --- */
.ai-advisor {
    padding: 100px 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}
.ai-advisor::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.ai-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.ai-text .section-tag {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue);
}
.ai-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}
.ai-text > p {
    font-size: 16px;
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 32px;
}
.ai-capabilities {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ai-capabilities li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.ai-capabilities li svg { flex-shrink: 0; margin-top: 2px; }
.ai-capabilities li span { font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.ai-capabilities li strong { color: #fff; }

/* Chat Window */
.chat-window {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--navy-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.chat-header-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}
.chat-header span:nth-child(2) {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}
.chat-status {
    font-size: 12px;
    color: var(--gray-light) !important;
    font-weight: 400 !important;
    margin-left: auto;
}
.chat-messages { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.msg { border-radius: 14px; padding: 12px 16px; font-size: 14px; line-height: 1.6; max-width: 90%; }
.user-msg {
    background: var(--blue);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.ai-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.ai-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ai-response {
    background: var(--page-bg);
    border-radius: 14px;
    border-top-left-radius: 4px;
    padding: 16px;
}
.ai-response p {
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 12px;
}
.ai-metric {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
}
.ai-metric.good { background: var(--green-light); color: var(--green); }
.ai-metric.moderate { background: var(--orange-light); color: var(--orange); }
.ai-metric strong { color: inherit; }
/* AI simulation action buttons in chat */
.ai-sim-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 8px;
}
.ai-sim-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 8px;
    cursor: default;
}
.ai-sim-btn.simulate {
    background: var(--blue-light);
    color: var(--blue);
}
.ai-sim-btn.accept {
    background: var(--green-light);
    color: var(--green);
}
.ai-sim-btn.discard {
    background: var(--red-light);
    color: var(--red);
}
.ai-disclaimer {
    display: block;
    font-size: 11px;
    color: var(--gray-light);
    margin-top: 10px;
    line-height: 1.4;
}

/* --- How It Works --- */
.how-it-works { padding: 100px 0; }
.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.step-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    flex: 1;
    max-width: 320px;
    transition: all 0.3s ease;
}
.step-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
    border-color: transparent;
}
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.step-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}
.step-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}
.step-connector {
    display: flex;
    align-items: center;
    padding: 0 8px;
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 0;
}
.cta-inner {
    position: relative;
    background: linear-gradient(160deg, var(--navy) 0%, #1e40af 100%);
    border-radius: var(--radius-lg);
    padding: 80px 60px;
    text-align: center;
    overflow: hidden;
}
.cta-glow {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
    pointer-events: none;
}
.cta-inner h2 {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
}
.cta-inner p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
    position: relative;
}
.cta-actions { position: relative; }

/* --- Footer --- */
.footer {
    background: var(--navy);
    padding: 60px 0 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand .logo span { color: #fff; }
.footer-desc {
    font-size: 14px;
    color: var(--gray-light);
    line-height: 1.7;
    margin-top: 12px;
    max-width: 320px;
}
.footer-links {
    display: flex;
    gap: 60px;
    justify-content: flex-end;
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}
.footer-col a {
    font-size: 14px;
    color: var(--gray-light);
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 0;
    gap: 24px;
}
.footer-bottom p {
    font-size: 13px;
    color: var(--gray);
}
.disclaimer {
    max-width: 480px;
    text-align: right;
    font-size: 12px !important;
    line-height: 1.6;
    color: var(--gray) !important;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero h1 { font-size: 42px; }
    .section-header h2 { font-size: 32px; }
    .ai-text h2 { font-size: 30px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .hero { padding: 100px 0 60px; }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero h1 { font-size: 34px; }
    .hero-subtitle { font-size: 16px; }
    .dashboard-mock { transform: none; }
    .mock-kpi-row { grid-template-columns: repeat(2, 1fr); }
    .mock-sim-buttons { display: none; }

    .nav-links { display: none; }
    .nav-cta { display: none; }
    .hamburger { display: flex; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--card-bg);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

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

    .steps-grid {
        flex-direction: column;
        gap: 16px;
    }
    .step-connector {
        transform: rotate(90deg);
    }
    .step-card { max-width: 100%; }

    .cta-inner {
        padding: 60px 24px;
    }
    .cta-inner h2 { font-size: 28px; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-links { justify-content: flex-start; }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
    }
    .disclaimer { text-align: left; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .section-header h2 { font-size: 26px; }
    .cta-inner h2 { font-size: 24px; }
}
