/* ==================================================
   MARNIX CRM — LANDING PAGE PREMIUM
   Paleta: Blue #121e38 · Slate #0F172A · Fundo #F8FAFC
   Tipografia: Inter
================================================== */

/* ------------------------------------------
   RESET & BASE
------------------------------------------ */
.landing-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1E293B;
    background: #F8FAFC;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* ------------------------------------------
   HEADER
------------------------------------------ */
.landing-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1050;
    padding: 16px 0;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}
.landing-header.scrolled {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 24px rgba(0,0,0,0.04);
    padding: 10px 0;
}
.landing-header .container { max-width: 1300px; }

.landing-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: inherit;
}
.landing-logo-dot {
    width: 12px; height: 12px; border-radius: 3px;
    background: #121e38;
    box-shadow: 0 0 16px rgba(37,99,235,0.45);
    flex-shrink: 0;
}
.landing-logo-text {
    font-size: 20px; font-weight: 800;
    letter-spacing: -0.4px; color: #0F172A; line-height: 1;
}

.landing-nav-link {
    text-decoration: none; color: #475569; font-size: 14px;
    font-weight: 500; padding: 8px 14px; border-radius: 8px;
    transition: all 0.18s ease;
}
.landing-nav-link:hover { color: #0F172A; background: rgba(37,99,235,0.06); }

.landing-nav-badge {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.4px; background: #E2E8F0; color: #64748B;
    padding: 2px 7px; border-radius: 999px; margin-left: 4px;
}

/* Buttons */
.landing-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 10px 22px; border-radius: 10px;
    font-size: 14px; font-weight: 600; letter-spacing: -0.1px;
    text-decoration: none; transition: all 0.2s ease;
    cursor: pointer; border: none; white-space: nowrap;
}
.landing-btn-primary {
    background: #121e38; color: #fff;
    box-shadow: 0 1px 2px rgba(37,99,235,0.18), 0 4px 12px rgba(37,99,235,0.22);
}
.landing-btn-primary:hover {
    background: linear-gradient(135deg, #121e38, #1d4ed8); color: #fff; transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37,99,235,0.22), 0 8px 24px rgba(37,99,235,0.28);
}
.landing-btn-outline {
    background: linear-gradient(135deg, #58b5ae, #121e38); color: #fff; border: none;
}
.landing-btn-outline:hover {
    background: linear-gradient(135deg, #4da59e, #26706f); color: #fff; transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(44,128,127,0.22), 0 8px 24px rgba(44,128,127,0.28);
}
.landing-btn-lg { padding: 14px 30px; border-radius: 12px; font-size: 15px; }

/* ------------------------------------------
   HERO
------------------------------------------ */
.landing-hero {
    padding: 150px 0 100px; position: relative; overflow: hidden;
    background:
        radial-gradient(ellipse 80% 70% at 20% 30%, rgba(37,99,235,0.07), transparent 60%),
        radial-gradient(ellipse 60% 60% at 80% 50%, rgba(59,130,246,0.04), transparent 60%),
        #F8FAFC;
}
.landing-hero .container { max-width: 1300px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid #E2E8F0; border-radius: 999px;
    padding: 6px 16px; font-size: 13px; font-weight: 500;
    color: #475569; margin-bottom: 28px;
    box-shadow: 0 1px 2px rgba(15,23,42,0.03);
}
.hero-badge-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #22C55E;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%,100%{opacity:1} 50%{opacity:0.45}
}

.hero-title {
    font-size: clamp(36px,5.5vw,58px); font-weight: 800;
    line-height: 1.08; letter-spacing: -1.4px;
    color: #0F172A; margin-bottom: 24px;
}
.hero-subtitle {
    font-size: clamp(15px,1.8vw,18px); line-height: 1.55;
    color: #64748B; max-width: 520px; margin-bottom: 36px;
}
.hero-actions {
    display: flex; align-items: center; gap: 14px;
    flex-wrap: wrap; margin-bottom: 32px;
}
.hero-checks { display: flex; flex-direction: column; gap: 10px; }
.hero-check {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: #64748B; font-weight: 500;
}
.hero-check i { color: #121e38; font-size: 14px; }

/* ------------------------------------------
   MOCKUP ILLUSTRATION
------------------------------------------ */
.hero-mockup {
    position: relative; display: flex; align-items: center;
    justify-content: center; min-height: 440px;
}
.mockup-stage { position: relative; width: 100%; max-width: 580px; perspective: 1000px; }
.mockup-window {
    background: #fff; border: 1px solid #E2E8F0; border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 8px 32px rgba(15,23,42,0.07), 0 24px 64px rgba(15,23,42,0.05);
    overflow: hidden; transform: rotateY(-3deg) rotateX(2deg);
    transition: transform 0.4s ease;
}
.mockup-window:hover { transform: rotateY(0deg) rotateX(0deg); }
.mockup-titlebar {
    background: #F8FAFC; border-bottom: 1px solid #E2E8F0;
    padding: 14px 18px; display: flex; align-items: center; gap: 10px;
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot:nth-child(1){background:#EF4444}
.mockup-dot:nth-child(2){background:#121e38}
.mockup-dot:nth-child(3){background:#22C55E}
.mockup-search { flex:1; height:28px; border-radius:7px; background:#E2E8F0; opacity:0.6; }
.mockup-body { padding: 18px; display: flex; gap: 14px; }
.mockup-sidebar {
    width: 48px; background: #F8FAFC; border-radius: 10px;
    display: flex; flex-direction: column; gap: 8px;
    padding: 10px 8px; flex-shrink: 0;
}
.mockup-side-icon { width:32px; height:32px; border-radius:8px; background:#E2E8F0; }
.mockup-side-icon.active { background:#121e38; }
.mockup-content { flex:1; display:flex; flex-direction:column; gap:12px; }
.mockup-stats-row { display:flex; gap:10px; }
.mockup-stat-card {
    flex:1; background:#F8FAFC; border-radius:10px;
    padding:12px; border:1px solid #F1F5F9;
}
.mockup-stat-bar {
    height:6px; border-radius:3px; background:#E2E8F0;
    margin-top:8px; overflow:hidden;
}
.mockup-stat-fill { height:100%; border-radius:3px; background:#121e38; }
.mockup-stat-fill.w60{width:60%} .mockup-stat-fill.w80{width:80%} .mockup-stat-fill.w45{width:45%}
.mockup-kanban-row { display:flex; gap:10px; }
.mockup-column {
    flex:1; background:#F8FAFC; border-radius:10px;
    padding:10px; border:1px solid #F1F5F9;
}
.mockup-col-header {
    font-size:10px; font-weight:700; color:#64748B;
    text-transform:uppercase; letter-spacing:0.5px; margin-bottom:8px;
}
.mockup-card {
    background:#fff; border:1px solid #F1F5F9; border-radius:8px;
    padding:10px; margin-bottom:8px;
    box-shadow:0 1px 2px rgba(15,23,42,0.03);
}
.mockup-card-line { height:4px; border-radius:2px; background:#E2E8F0; margin-bottom:6px; }
.mockup-card-line.short{width:60%} .mockup-card-line.xshort{width:35%}
.mockup-card-badge {
    display:inline-block; height:16px; border-radius:4px;
    padding:0 8px; font-size:9px; font-weight:700; line-height:16px; margin-top:6px;
}
.mockup-card-badge.teal{background:rgba(37,99,235,0.12);color:#121e38}
.mockup-card-badge.blue{background:rgba(59,130,246,0.10);color:#3B82F6}
.mockup-card-badge.amber{background:rgba(37,99,235,0.10);color:#121e38}
.mockup-float-chart {
    position:absolute; top:10px; right:-20px; background:#fff;
    border:1px solid #E2E8F0; border-radius:12px; padding:12px 14px;
    box-shadow:0 8px 32px rgba(15,23,42,0.08); z-index:2;
    display:flex; align-items:flex-end; gap:5px; height:64px;
}
.mockup-float-bar { width:6px; border-radius:3px 3px 0 0; background:#121e38; }

/* ------------------------------------------
   SECTION BASE
------------------------------------------ */
.landing-section { padding: 100px 0; }
.landing-section .container { max-width: 1300px; }
.section-label {
    display: inline-block; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.4px;
    color: #121e38; margin-bottom: 16px;
}
.section-title {
    font-size: clamp(28px,3.5vw,40px); font-weight: 800;
    letter-spacing: -0.8px; color: #0F172A; margin-bottom: 16px; line-height: 1.2;
}
.section-desc {
    font-size: 16px; color: #64748B; max-width: 560px; line-height: 1.6;
}

/* ------------------------------------------
   RECURSOS
------------------------------------------ */
.recursos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.recurso-card {
    background: #fff; border: 1px solid #E2E8F0; border-radius: 16px;
    padding: 28px; transition: all 0.25s ease; position: relative; overflow: hidden;
}
.recurso-card::before {
    content:''; position:absolute; top:0; left:0; right:0; height:3px;
    background:linear-gradient(90deg,#121e38,#1d4ed8);
    opacity:0; transition:opacity 0.25s ease; border-radius:16px 16px 0 0;
}
.recurso-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(15,23,42,0.06);
    border-color: #CBD5E1;
}
.recurso-card:hover::before { opacity: 1; }
.recurso-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 20px;
    background: rgba(37,99,235,0.08); color: #121e38;
}
.recurso-card h3 {
    font-size: 17px; font-weight: 700; color: #0F172A;
    margin-bottom: 8px; letter-spacing: -0.2px;
}
.recurso-card p {
    font-size: 14px; color: #64748B; line-height: 1.55; margin: 0;
}

/* ------------------------------------------
   DIFERENCIAIS
------------------------------------------ */
.diferenciais-bg {
    background: #fff; border-top: 1px solid #F1F5F9; border-bottom: 1px solid #F1F5F9;
}
.diferenciais-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.diferencial-item {
    display: flex; align-items: center; gap: 14px;
    padding: 22px 28px; transition: background 0.18s ease;
}
.diferencial-item:hover { background: #F8FAFC; }
.diferencial-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0;
    background: rgba(37,99,235,0.08); color: #121e38;
}
.diferencial-label {
    font-size: 14px; font-weight: 600; color: #0F172A;
    letter-spacing: -0.1px;
}

/* ------------------------------------------
   ESTATÍSTICAS
------------------------------------------ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card {
    text-align: center; padding: 36px 20px;
    background: #fff; border: 1px solid #E2E8F0; border-radius: 16px;
    transition: all 0.25s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(15,23,42,0.05); }
.stat-number {
    font-size: clamp(32px,4vw,48px); font-weight: 800;
    letter-spacing: -1.2px; color: #121e38; margin-bottom: 8px;
}
.stat-label {
    font-size: 14px; color: #64748B; font-weight: 500;
}

/* ------------------------------------------
   SEGURANÇA
------------------------------------------ */
.seguranca-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.seguranca-card {
    background: #fff; border: 1px solid #E2E8F0; border-radius: 16px;
    padding: 24px; transition: all 0.25s ease;
}
.seguranca-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(15,23,42,0.05); }
.seguranca-card-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; margin-bottom: 14px;
    background: rgba(37,99,235,0.08); color: #121e38;
}
.seguranca-card h4 {
    font-size: 15px; font-weight: 700; color: #0F172A;
    margin-bottom: 6px; letter-spacing: -0.1px;
}
.seguranca-card p {
    font-size: 13px; color: #64748B; line-height: 1.5; margin: 0;
}

/* ------------------------------------------
   CTA FINAL
------------------------------------------ */
.cta-section {
    padding: 100px 0;
    background:
        radial-gradient(ellipse 50% 80% at 50% 100%, rgba(37,99,235,0.08), transparent 60%),
        #F8FAFC;
}
.cta-section .container { max-width: 1300px; }
.cta-card {
    background: #0F172A; border-radius: 24px; padding: 72px 48px;
    text-align: center; position: relative; overflow: hidden;
}
.cta-card::before {
    content:''; position:absolute; top:-50%; left:-50%; width:200%; height:200%;
    background:
        radial-gradient(circle at 30% 60%, rgba(37,99,235,0.15), transparent 50%),
        radial-gradient(circle at 70% 40%, rgba(59,130,246,0.08), transparent 50%);
    pointer-events: none;
}
.cta-title {
    font-size: clamp(28px,4vw,44px); font-weight: 800;
    letter-spacing: -1px; color: #fff; margin-bottom: 16px;
    position: relative;
}
.cta-subtitle {
    font-size: 16px; color: rgba(255,255,255,0.6);
    max-width: 500px; margin: 0 auto 36px; position: relative;
}
.cta-actions {
    display: flex; align-items: center; justify-content: center;
    gap: 14px; flex-wrap: wrap; position: relative;
}
.cta-actions .landing-btn-outline {
    color: #fff; border-color: rgba(255,255,255,0.2);
}
.cta-actions .landing-btn-outline:hover {
    border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.06);
    color: #fff;
}

/* ------------------------------------------
   FOOTER
------------------------------------------ */
.landing-footer {
    background: #fff; border-top: 1px solid #E2E8F0;
    padding: 60px 0 32px;
}
.landing-footer .container { max-width: 1300px; }
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-logo-dot {
    width: 10px; height: 10px; border-radius: 3px; background: #121e38;
}
.footer-logo-text { font-size: 16px; font-weight: 800; color: #0F172A; }
.footer-desc {
    font-size: 13px; color: #64748B; line-height: 1.6; max-width: 280px;
}
.footer-heading {
    font-size: 13px; font-weight: 700; color: #0F172A;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px;
}
.footer-link {
    display: block; text-decoration: none; font-size: 14px; color: #64748B;
    padding: 4px 0; transition: color 0.15s ease;
}
.footer-link:hover { color: #121e38; }
.footer-bottom {
    border-top: 1px solid #F1F5F9; padding-top: 20px; margin-top: 40px;
    text-align: center; font-size: 13px; color: #94A3B8;
}

/* ------------------------------------------
   ANIMATIONS — Intersection Observer
------------------------------------------ */
.fade-up {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in {
    opacity: 0;
    transition: opacity 0.7s ease;
}
.fade-in.visible { opacity: 1; }

/* stagger children */
.stagger > * { opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
.stagger.visible > *:nth-child(1) { opacity:1; transform:translateY(0); transition-delay:0s; }
.stagger.visible > *:nth-child(2) { opacity:1; transform:translateY(0); transition-delay:0.08s; }
.stagger.visible > *:nth-child(3) { opacity:1; transform:translateY(0); transition-delay:0.16s; }
.stagger.visible > *:nth-child(4) { opacity:1; transform:translateY(0); transition-delay:0.24s; }
.stagger.visible > *:nth-child(5) { opacity:1; transform:translateY(0); transition-delay:0.32s; }
.stagger.visible > *:nth-child(6) { opacity:1; transform:translateY(0); transition-delay:0.40s; }

/* ------------------------------------------
   RESPONSIVE
------------------------------------------ */
@media (max-width: 1199.98px) {
    .recursos-grid { grid-template-columns: repeat(2, 1fr); }
    .diferenciais-grid { grid-template-columns: repeat(2, 1fr); }
    .seguranca-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991.98px) {
    .landing-hero { padding: 130px 0 60px; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-checks { align-items: center; }
    .hero-mockup { min-height: 320px; margin-top: 40px; }
    .mockup-float-chart { right: 0; top: -10px; }
    .recursos-grid { grid-template-columns: 1fr 1fr; }
    .landing-section { padding: 64px 0; }
    .cta-card { padding: 48px 28px; }
}

@media (max-width: 767.98px) {
    .landing-nav { display: none; }
    .landing-hero { padding: 120px 0 48px; }
    .hero-title { font-size: 32px; letter-spacing: -0.8px; }
    .recursos-grid { grid-template-columns: 1fr; }
    .diferenciais-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .seguranca-grid { grid-template-columns: 1fr; }
    .mockup-float-chart { display: none; }
    .mockup-window { transform: none; }
    .cta-card { padding: 40px 20px; border-radius: 20px; }
    .cta-title { font-size: 26px; }
}

@media (max-width: 575.98px) {
    .diferenciais-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .landing-btn { width: 100%; }
    .cta-actions { flex-direction: column; width: 100%; }
    .cta-actions .landing-btn { width: 100%; }
}