/* Landing page (templates/users/home.html). Loaded only by that page. */

/* Hide the base.html public navbar and override container constraint */
.public-navbar { display: none !important; }
.public-layout { padding-top: 0 !important; }
.public-layout > main.container { max-width: 100% !important; padding: 0 !important; margin: 0 !important; width: 100% !important; }

:root {
    --drop-primary: #2563eb;
    --drop-primary-dark: #1d4ed8;
    --drop-accent: #06b6d4;
    --drop-accent2: #8b5cf6;
    --drop-dark: #0f172a;
    --drop-gray: #64748b;
    --drop-light: #f1f5f9;
    --drop-glass: rgba(255, 255, 255, 0.08);
}
* { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    color: #1e293b;
    padding-top: 0 !important;
    overflow-x: hidden;
}

/* ── Navbar ── */
.lp-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1050;
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.lp-navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}
.lp-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff !important;
    letter-spacing: -0.5px;
}
.lp-navbar .navbar-brand img { filter: brightness(0) invert(1); }
.lp-navbar .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}
.lp-navbar .nav-link:hover { color: #fff !important; }
.lp-navbar .navbar-toggler { border-color: rgba(255,255,255,0.3); }
.lp-navbar .navbar-toggler-icon { filter: invert(1); }
.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    background: var(--drop-primary);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s;
}
.btn-nav-cta:hover { background: var(--drop-primary-dark); transform: translateY(-1px); }
.btn-nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 10px;
    padding: 0.5rem 1.25rem !important;
    border: none;
    background: rgba(255,255,255,0.08);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
}

/* ── Hero ── */
.hero {
    min-height: var(--app-viewport-height);
    background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 30%, #1d4ed8 70%, #06b6d4 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 7rem 0 5rem;
}
.hero-mesh {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(6,182,212,0.15), transparent),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(139,92,246,0.12), transparent),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(37,99,235,0.1), transparent);
    pointer-events: none;
}
.hero-grid {
    position: absolute; inset: 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: 60px 60px;
    pointer-events: none;
}
.hero-glow {
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    animation: glow-float 8s ease-in-out infinite;
}
.hero-glow-1 { background: rgba(6,182,212,0.2); top: -10%; right: -5%; }
.hero-glow-2 { background: rgba(139,92,246,0.15); bottom: -15%; left: -10%; animation-delay: -4s; }
@keyframes glow-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.1); }
}
.hero-content { position: relative; z-index: 2; }
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.04em;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(10px);
}
.hero-chip .dot {
    width: 8px; height: 8px;
    background: #34d399;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}
.hero h1 {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 1.25rem;
}
.hero h1 .gradient-text {
    background: linear-gradient(135deg, #67e8f9, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero .lead {
    color: rgba(255,255,255,0.7);
    font-size: 1.15rem;
    max-width: 520px;
    line-height: 1.7;
}
.btn-hero-primary {
    background: #fff;
    color: var(--drop-dark);
    border: none;
    border-radius: 14px;
    padding: 0.85rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.25); color: var(--drop-primary); }
.btn-hero-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 14px;
    padding: 0.85rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.2); color: #fff; border-color: rgba(255,255,255,0.4); }

/* Hero visual / floating dashboard mockup */
.hero-visual {
    position: relative;
    z-index: 2;
}
.hero-dashboard {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}
.dash-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-bar {
    height: 8px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.dash-metric-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}
.dash-metric-value { font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1; }
.dash-metric-label { font-size: 0.7rem; color: rgba(255,255,255,0.5); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.dash-chart {
    height: 80px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding-top: 0.75rem;
}
.dash-chart-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    min-height: 8px;
    transition: height 0.5s ease;
}

/* Floating badges around hero visual */
.float-badge {
    position: absolute;
    background: rgba(255,255,255,0.95);
    border-radius: 14px;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--drop-dark);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    animation: float-badge 4s ease-in-out infinite;
    z-index: 3;
}
.float-badge i { font-size: 1.1rem; }
.float-badge-1 { top: 15%; left: -30px; animation-delay: 0s; }
.float-badge-2 { bottom: 20%; right: -20px; animation-delay: -2s; }
.float-badge-3 { top: 55%; left: -40px; animation-delay: -1s; }
@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ── Wave divider ── */
.wave-divider {
    position: relative;
    margin-top: -2px;
}
.wave-divider svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Stats ── */
.stats-section {
    background: #fff;
    position: relative;
    z-index: 5;
}
.stat-card {
    text-align: center;
    padding: 2rem 1rem;
}
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--drop-primary), var(--drop-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 0.82rem;
    color: var(--drop-gray);
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

/* ── Section commons ── */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #eff6ff;
    color: var(--drop-primary);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--drop-dark);
    letter-spacing: -1px;
    line-height: 1.15;
}
.section-subtitle {
    color: var(--drop-gray);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0.75rem auto 0;
}

/* ── Features ── */
.features-section { padding: 6rem 0; background: var(--drop-light); }
.feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem 1.75rem;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--drop-primary), var(--drop-accent));
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(37,99,235,0.1);
    border-color: transparent;
}
.feature-card:hover::before { opacity: 1; }
.feature-icon-wrap {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: transform 0.3s;
}
.feature-card:hover .feature-icon-wrap { transform: scale(1.1); }
.fi-blue { background: #dbeafe; color: var(--drop-primary); }
.fi-cyan { background: #cffafe; color: var(--drop-accent); }
.fi-violet { background: #ede9fe; color: var(--drop-accent2); }
.fi-emerald { background: #d1fae5; color: #059669; }
.feature-card h5 { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--drop-dark); }
.feature-card p { color: var(--drop-gray); font-size: 0.92rem; margin: 0; line-height: 1.6; }

/* ── How it works ── */
.how-section { padding: 6rem 0; background: #fff; }
.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}
.step-number {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--drop-primary), var(--drop-accent));
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 25px rgba(37,99,235,0.25);
}
.step-card h5 { font-weight: 700; margin-bottom: 0.5rem; color: var(--drop-dark); }
.step-card p { color: var(--drop-gray); font-size: 0.9rem; }
.step-connector {
    position: absolute;
    top: 28px;
    right: -15%;
    width: 30%;
    height: 2px;
    background: linear-gradient(90deg, var(--drop-primary), var(--drop-accent));
    opacity: 0.3;
}
@media (max-width: 767px) { .step-connector { display: none; } }

/* ── Testimonials ── */
.testimonials-section { padding: 6rem 0; background: var(--drop-light); }
.testimonial-card {
    background: #fff;
    border: none;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: all 0.3s;
    position: relative;
}
.testimonial-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); transform: translateY(-4px); }
.testimonial-card .quote-icon {
    font-size: 2.5rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--drop-primary), var(--drop-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    position: absolute;
    top: 1.25rem; right: 1.5rem;
}
.testimonial-card .stars { color: #fbbf24; font-size: 0.85rem; margin-bottom: 1rem; }
.testimonial-card .quote { color: #475569; font-size: 0.95rem; line-height: 1.7; font-style: italic; }
.avatar {
    width: 48px; height: 48px;
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.95rem; margin: 0; color: var(--drop-dark); }
.testimonial-role { font-size: 0.8rem; color: var(--drop-gray); margin: 0; }

/* ── Pricing ── */
.pricing-section { padding: 6rem 0; background: #fff; }
.pricing-card {
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    background: #fff;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.35s;
    position: relative;
}
.pricing-card:hover { border-color: #cbd5e1; }
.pricing-card.featured {
    border-color: var(--drop-primary);
    box-shadow: 0 20px 60px rgba(37,99,235,0.15);
    transform: scale(1.03);
}
.pricing-card.featured:hover { transform: scale(1.05); }
.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--drop-primary), #0e7490);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem 1.25rem;
    border-radius: 999px;
    white-space: nowrap;
}
.pricing-plan-name { font-weight: 700; font-size: 1.1rem; color: var(--drop-dark); }
.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--drop-dark);
    line-height: 1;
    margin: 1rem 0;
}
.pricing-price small { font-size: 1rem; font-weight: 400; color: var(--drop-gray); }
.pricing-desc { font-size: 0.88rem; color: var(--drop-gray); }
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0;
}
.pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.92rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.pricing-features li i { color: #34d399; flex-shrink: 0; font-size: 1rem; }
.btn-pricing {
    width: 100%;
    border-radius: 14px;
    padding: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
}
.btn-pricing-primary {
    background: var(--drop-primary);
    color: #fff;
    border: none;
}
.btn-pricing-primary:hover { background: var(--drop-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,99,235,0.3); }
.btn-pricing-outline {
    background: transparent;
    color: var(--drop-dark);
    border: 2px solid #e2e8f0;
}
.btn-pricing-outline:hover { border-color: var(--drop-primary); color: var(--drop-primary); transform: translateY(-2px); }

/* ── CTA Final ── */
.cta-final {
    padding: 6rem 0;
    background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 50%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}
.cta-final::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(6,182,212,0.15), transparent),
        radial-gradient(ellipse 50% 50% at 80% 20%, rgba(139,92,246,0.1), transparent);
    pointer-events: none;
}
.cta-final h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}
.cta-final p { color: rgba(255,255,255,0.7); font-size: 1.1rem; }

/* ── Footer ── */
.site-footer {
    background: var(--drop-dark);
    color: #94a3b8;
    font-size: 0.88rem;
    padding: 3rem 0 2rem;
}
.site-footer .brand {
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}
.site-footer .brand img { filter: brightness(0) invert(1); }
.site-footer a { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 2rem;
    padding-top: 1.5rem;
}

/* ── Scroll reveal animation ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 991px) {
    .hero { min-height: auto; padding: 8rem 0 4rem; }
    .hero-visual { margin-top: 3rem; }
    .float-badge { display: none; }
}
@media (max-width: 575px) {
    .lp-navbar .container {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }
    .lp-navbar .navbar-brand {
        font-size: 1.25rem;
    }
    .lp-navbar .nav-link {
        padding: 0.45rem 0.8rem !important;
        font-size: 0.84rem;
    }
    .btn-nav-cta {
        min-height: 38px;
        padding: 0.5rem 0.9rem;
        font-size: 0.84rem;
    }
    .btn-nav-login {
        min-height: 38px;
        padding: 0.5rem 0.9rem !important;
        font-size: 0.84rem;
    }
    .stat-number { font-size: 2rem; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-4px); }
}

/* ── Accessibility ── */
.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1100;
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    background: #fff;
    color: var(--drop-dark);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
#conteudo:focus { outline: none; }

/* Two-tone ring: the white halo shows on dark sections, the blue on light ones. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible {
    outline: 3px solid var(--drop-primary-dark);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #fff;
}
/* Bootstrap swaps in undefined hover colours on keyboard focus; keep each button's own. */
.btn-hero-primary:focus-visible { background: #fff; color: var(--drop-dark); }
.btn-hero-secondary:focus-visible { background: rgba(255,255,255,0.1); color: #fff; }
.btn-nav-cta:focus-visible { background: var(--drop-primary); color: #fff; }
.btn-pricing-primary:focus-visible { background: var(--drop-primary); color: #fff; }
.btn-pricing-outline:focus-visible { background: transparent; color: var(--drop-dark); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}
