/*
 * home.css — landing page moderna do Pit Stop Inteligente.
 * Single-file por enquanto (a página é grande mas o CSS é coeso).
 * Tudo em mobile-first.
 */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --success: #10b981;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --bg-page: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 18px -8px rgba(15, 23, 42, 0.18);
    --shadow-lg: 0 24px 48px -16px rgba(37, 99, 235, 0.35);
    --radius: 12px;
    --radius-lg: 20px;
    --gradient-hero: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #4338ca 100%);
}

* { box-sizing: border-box; }

.home-body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--gray-800);
    background: var(--bg-page);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: var(--primary); text-decoration: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Skip link (acessibilidade) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    z-index: 1000;
    transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* =========================================================
 * HEADER
 * ========================================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid transparent;
    transition: all 0.25s ease;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
}
.logo i {
    color: var(--primary);
    font-size: 1.35rem;
}
.logo strong { font-weight: 800; }

.logo-light, .logo-light strong { color: #fff; }
.logo-light i                   { color: var(--primary-light); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.nav-menu > a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.92rem;
    transition: color 0.2s;
    position: relative;
}
.nav-menu > a:not(.btn-login-header):not(.btn-cta-header):hover {
    color: var(--primary);
}
.nav-menu > a:not(.btn-login-header):not(.btn-cta-header)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s;
}
.nav-menu > a:not(.btn-login-header):not(.btn-cta-header):hover::after {
    transform: scaleX(1);
}

.btn-login-header {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    color: var(--gray-700);
    font-weight: 600;
    transition: all 0.2s;
}
.btn-login-header:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-cta-header {
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cta-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px -10px rgba(37, 99, 235, 0.65);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--gray-800);
    font-size: 1.35rem;
    cursor: pointer;
}

/* =========================================================
 * HERO
 * ========================================================= */
.hero-section {
    position: relative;
    padding: 11rem 0 5rem;
    overflow: hidden;
    background:
        radial-gradient(at 20% 20%, rgba(96, 165, 250, 0.18), transparent 55%),
        radial-gradient(at 80% 90%, rgba(16, 185, 129, 0.15), transparent 60%),
        var(--bg-page);
}

.hero-bg .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    animation: float 12s ease-in-out infinite;
}
.hero-bg .orb-1 { width: 320px; height: 320px; background: #93c5fd; top: 10%; left: -10%; }
.hero-bg .orb-2 { width: 260px; height: 260px; background: #6ee7b7; bottom: 10%; right: -8%; animation-delay: -4s; }
.hero-bg .orb-3 { width: 180px; height: 180px; background: #fcd34d; top: 50%; left: 50%; opacity: 0.35; animation-delay: -8s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(20px, -25px); }
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.hero-text { max-width: 580px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-dark);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.hero-text h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 1.1rem 0 1.2rem;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text p {
    font-size: 1.05rem;
    color: var(--gray-500);
    margin: 0 0 1.75rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    color: var(--gray-700);
    font-size: 0.88rem;
}
.hero-checklist i {
    color: var(--success);
    margin-right: 0.4rem;
}

/* Botões do hero (e padrão da página) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 0.95rem;
    text-decoration: none;
}
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.btn-primary {
    background: var(--gradient-hero);
    color: #fff;
    box-shadow: 0 14px 28px -12px rgba(37, 99, 235, 0.55);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px -14px rgba(37, 99, 235, 0.65);
}

.btn-outline {
    background: #fff;
    color: var(--gray-800);
    border: 1px solid var(--gray-200);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.full-width { width: 100%; }

/* Mockup do hero */
.hero-image {
    position: relative;
    perspective: 1200px;
}

.hero-mockup {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: rotateY(-6deg) rotateX(4deg);
    overflow: hidden;
    animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
    0%, 100% { transform: rotateY(-6deg) rotateX(4deg) translateY(0); }
    50%      { transform: rotateY(-6deg) rotateX(4deg) translateY(-10px); }
}

.mockup-header {
    background: var(--gray-100);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    border-bottom: 1px solid var(--gray-200);
}
.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fca5a5;
}
.mockup-dot:nth-child(2) { background: #fcd34d; }
.mockup-dot:nth-child(3) { background: #86efac; }
.mockup-title {
    margin-left: auto;
    font-size: 0.78rem;
    color: var(--gray-500);
    font-weight: 600;
}

.mockup-body { padding: 1.4rem; }

.mockup-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}
.mockup-kpi {
    background: linear-gradient(180deg, #eff6ff, #fff);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 0.8rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: flex-start;
}
.mockup-kpi strong { font-size: 1.1rem; color: var(--gray-900); }
.mockup-kpi small  { font-size: 0.7rem; color: var(--gray-500); }

.mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    height: 130px;
    padding: 0.5rem 0.25rem 0;
    border-top: 1px dashed var(--gray-200);
}
.mockup-chart .bar {
    flex: 1;
    height: var(--h);
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    border-radius: 6px 6px 0 0;
    transform-origin: bottom;
    animation: barRise 1.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}
.mockup-chart .bar:nth-child(1) { animation-delay: 0.1s; }
.mockup-chart .bar:nth-child(2) { animation-delay: 0.2s; }
.mockup-chart .bar:nth-child(3) { animation-delay: 0.3s; }
.mockup-chart .bar:nth-child(4) { animation-delay: 0.4s; }
.mockup-chart .bar:nth-child(5) { animation-delay: 0.5s; }
.mockup-chart .bar:nth-child(6) { animation-delay: 0.6s; }
.mockup-chart .bar:nth-child(7) { animation-delay: 0.7s; }

@keyframes barRise {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

.floating-card {
    position: absolute;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 0.7rem 1rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    animation: floatY 5s ease-in-out infinite;
}
.floating-card i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    font-size: 0.95rem;
}
.floating-card strong { display: block; font-size: 0.85rem; color: var(--gray-900); }
.floating-card small  { font-size: 0.7rem; color: var(--gray-500); }

.floating-card-1 { top: 8%; left: -4%; animation-delay: -1s; }
.floating-card-2 { bottom: 10%; right: -2%; animation-delay: -3s; }
.floating-card-2 i {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

/* =========================================================
 * STATS
 * ========================================================= */
.stats-section {
    background: var(--gray-900);
    color: #fff;
    padding: 3rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat strong {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(180deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}
.stat span {
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* =========================================================
 * FEATURES
 * ========================================================= */
.features-section { padding: 5rem 0; background: var(--gray-50); }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}
.section-title p {
    color: var(--gray-500);
    font-size: 1.05rem;
    margin: 0 auto;
    max-width: 580px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.feature-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--gray-900);
}
.feature-card p {
    margin: 0;
    color: var(--gray-500);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* =========================================================
 * COMO FUNCIONA
 * ========================================================= */
.how-section { padding: 5rem 0; }

.how-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.how-step {
    background: linear-gradient(180deg, #fff, #f8fafc);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.25s;
    position: relative;
}
.how-step:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.how-num {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--gradient-hero);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px -12px rgba(37, 99, 235, 0.65);
}

.how-step h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    color: var(--gray-900);
}
.how-step p { margin: 0; color: var(--gray-500); font-size: 0.92rem; }

/* =========================================================
 * PLANOS
 * ========================================================= */
.plans-section { padding: 5rem 0; background: var(--gray-50); }

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.plan-card-public {
    background: #fff;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transition: all 0.25s;
}
.plan-card-public:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.plan-card-public.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(180deg, #eff6ff, #fff 50%);
}

.plan-card-public h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--gray-900);
}
.plan-price-public {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.05;
}
.plan-price-public small {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-left: 0.25rem;
}
.plan-card-public ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--gray-700);
    font-size: 0.93rem;
}
.plan-card-public ul i {
    color: var(--success);
    margin-right: 0.5rem;
}
.plan-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================================
 * CTA FINAL
 * ========================================================= */
.final-cta {
    padding: 5rem 0;
    background: var(--gradient-hero);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(at 30% 30%, rgba(255, 255, 255, 0.15), transparent 60%);
    pointer-events: none;
}
.final-cta-inner {
    text-align: center;
    position: relative;
}
.final-cta-inner h2 {
    color: #fff;
    margin: 0 0 0.5rem;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
}
.final-cta-inner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin: 0 auto 2rem;
    max-width: 560px;
}

.final-cta-inner .btn-primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.35);
}
.final-cta-inner .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 38px -12px rgba(0, 0, 0, 0.45);
    background: #f1f5f9;
}

/* =========================================================
 * FOOTER
 * ========================================================= */
.main-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 3.5rem 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
}
.footer-grid h4 {
    color: #fff;
    margin: 0 0 0.8rem;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.footer-grid a {
    color: var(--gray-400);
    font-size: 0.88rem;
    transition: color 0.2s;
}
.footer-grid a:hover { color: #fff; }
.footer-tagline { font-size: 0.88rem; margin: 0.6rem 0 0; }
.footer-copy {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gray-500);
}

/* =========================================================
 * ANIMAÇÕES UTILITÁRIAS
 * ========================================================= */
.fade-in-up,
.fade-in-right,
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in-right { transform: translateX(30px); }

.fade-in-up    { animation: fadeUp 0.7s ease-out forwards; }
.fade-in-right { animation: fadeUp 0.7s ease-out forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translate(0, 0); }
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
 * RESPONSIVO
 * ========================================================= */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-image { max-width: 460px; margin: 0 auto; }
    .floating-card-1 { left: 0%; }
    .floating-card-2 { right: 0%; }

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

@media (max-width: 768px) {
    .menu-toggle { display: inline-flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fff;
        padding: 1.25rem 1.5rem 1.5rem;
        box-shadow: var(--shadow-md);
        align-items: stretch;
        gap: 0.85rem;
    }
    .main-header.menu-open .nav-menu { display: flex; }
    .btn-login-header,
    .btn-cta-header { width: 100%; justify-content: center; }

    .hero-section { padding: 9rem 0 3rem; }
    .hero-text p  { font-size: 0.95rem; }

    .floating-card-1, .floating-card-2 { display: none; }

    .features-section, .how-section, .plans-section, .final-cta {
        padding: 3.5rem 0;
    }
}

@media (max-width: 480px) {
    .hero-checklist { gap: 0.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid  { gap: 1.25rem; }
    .stat strong { font-size: 1.8rem; }
}
