/*
 * Landing Page (Home) conforme template/index.php.
 * - Sem CSS inline; todas as classes aqui.
 */

/* --- Header (páginas públicas) --- */
.landing-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    z-index: 1000;
}

.landing-header .header-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--slate-900);
    font-weight: 800;
    font-size: 1.5rem;
}

.landing-header .logo-box {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 1.2rem;
}

.landing-header .logo-img {
    display: block;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.landing-header nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.landing-header nav ul a {
    text-decoration: none;
    color: var(--slate-600);
    font-weight: 600;
    transition: color 0.2s;
}

.landing-header nav ul a:hover {
    color: var(--primary);
}

.landing-header .header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.landing-header .login-link {
    text-decoration: none;
    color: var(--slate-900);
    font-weight: 600;
}

.landing-header .btn {
    padding: 14px 28px;
    font-weight: 700;
}

.landing-header .btn-primary:hover {
    transform: translateY(-2px);
}

/* --- Hero --- */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e1f0ff 100%);
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title span {
    background: linear-gradient(to right, var(--primary), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.125rem;
    color: var(--slate-600);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
}

.hero-btns .btn {
    padding: 14px 28px;
    font-weight: 700;
}

.hero-btns .btn-primary:hover {
    transform: translateY(-2px);
}

.hero-btns .btn-outline .material-symbols-outlined {
    color: var(--primary);
    margin-right: 8px;
}

.hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 32px;
    border: 1px solid rgba(19, 127, 236, 0.2);
    text-transform: none;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.badge-problem {
    background: #fef2f2;
    color: var(--danger);
    border-color: #fee2e2;
}

/* --- Mockup --- */
.mockup-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.mockup-bg {
    position: absolute;
    inset: 0;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.15;
    transform: translateY(40px);
}

.mockup {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16/9;
    display: grid;
    grid-template-columns: 200px 1fr;
    overflow: hidden;
}

.mockup-sidebar {
    background: var(--slate-50);
    border-right: 1px solid var(--slate-200);
    padding: 20px;
}

.mockup-placeholder {
    height: 12px;
    background: var(--slate-200);
    border-radius: 2px;
    margin-bottom: 12px;
}

.mockup-placeholder.w-80 { width: 80%; }
.mockup-placeholder.w-60 { width: 60%; }
.mockup-placeholder.w-70 { width: 70%; }
.mockup-placeholder.w-40 { width: 40%; }
.mockup-placeholder.mb-20 { margin-bottom: 20px; }

.mockup-main {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mockup-header {
    height: 48px;
    background: var(--slate-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
}

.mockup-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 100%;
}

.mockup-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 16px;
}

.mockup-card-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mockup-card-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--success);
    text-align: center;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 120px;
    gap: 8px;
}

.chart-bars .bar {
    width: 100%;
    background: var(--primary-light);
    border-radius: 4px 4px 0 0;
    border: 1px solid rgba(19, 127, 236, 0.2);
}

.chart-bars .bar.bar-h-40 { height: 40%; }
.chart-bars .bar.bar-h-70 { height: 70%; }
.chart-bars .bar.bar-h-50 { height: 50%; }
.chart-bars .bar.bar-h-90 { height: 90%; }
.chart-bars .bar.bar-h-65 { height: 65%; }
.chart-bars .bar.bar-primary {
    height: 90%;
    background: var(--primary);
}

/* --- Trusted by --- */
.trusted-by {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--slate-200);
}

.trusted-by p {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--slate-400);
    margin-bottom: 32px;
}

.logo-grid {
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
    opacity: 0.6;
    filter: grayscale(1);
}

.logo-grid span {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--slate-400);
}

/* --- Problem section --- */
.problem-section {
    background: var(--bg-white);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.problem-icon-box {
    width: 48px;
    height: 48px;
    background: #fef2f2;
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.check-list {
    list-style: none;
    margin-top: 32px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 500;
    color: var(--slate-700);
}

.check-list .material-symbols-outlined {
    color: var(--danger);
    font-size: 20px;
}

.visual-problem {
    position: relative;
    background: var(--slate-50);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--slate-200);
}

.visual-problem-inner {
    opacity: 0.3;
}

.card-dashed {
    padding: 40px;
    background: var(--slate-50);
    border-style: dashed;
    border-radius: var(--radius-lg);
}

.visual-problem .card-stack-item {
    height: 80px;
    background: white;
    margin-bottom: 16px;
    border: 1px solid var(--slate-200);
    border-radius: 4px;
}

.visual-problem .card-stack-item.rotate-left { transform: rotate(-2deg); }
.visual-problem .card-stack-item.rotate-right { transform: rotate(3deg); }

.solution-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--primary-light);
    width: 80%;
}

/* --- How it works --- */
.how-it-works {
    background: var(--slate-50);
}

.how-it-works p {
    margin-bottom: 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.step-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 8rem;
    font-weight: 800;
    color: var(--slate-100);
    z-index: 0;
    line-height: 1;
}

.step-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.step-card h3,
.step-card p {
    position: relative;
    z-index: 1;
}

/* --- FAQ --- */
.faq {
    background: var(--slate-50);
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq details {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq summary {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '\e5cf';
    font-family: 'Material Symbols Outlined';
    font-size: 24px;
    transition: transform 0.3s;
}

.faq details[open] summary::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--slate-600);
}

/* --- Footer (landing) --- */
.landing-footer {
    padding: 80px 0 40px;
    background: var(--bg-white);
    border-top: 1px solid var(--slate-200);
}

.landing-footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.landing-footer .footer-col-main .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--slate-900);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.landing-footer .footer-col-main .logo-box {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 1.2rem;
}

.landing-footer .footer-col-main .logo-img {
    display: block;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.landing-footer .footer-desc {
    max-width: 300px;
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

.landing-footer .social-links {
    display: flex;
    gap: 16px;
}

.landing-footer .social-links a {
    color: var(--slate-400);
    transition: color 0.2s;
}

.landing-footer .social-links a:hover {
    color: var(--primary);
}

.landing-footer .footer-col h4 {
    font-size: 1rem;
    margin-bottom: 24px;
    color: var(--slate-900);
}

.landing-footer .footer-col ul {
    list-style: none;
}

.landing-footer .footer-col ul li {
    margin-bottom: 12px;
}

.landing-footer .footer-col ul a {
    text-decoration: none;
    color: var(--slate-500);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.landing-footer .footer-col ul a:hover {
    color: var(--primary);
}

.landing-footer .footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--slate-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--slate-500);
}

.landing-footer .status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing-footer .status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

/* --- Responsivo --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.75rem; }
    .hero-btns { flex-direction: column; align-items: center; }
    .hero-btns .btn { width: 100%; max-width: 320px; }
    .two-col,
    .landing-footer .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .hero-title { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    .landing-header nav { display: none; }
    .landing-header .header-actions { display: none; }
    .mockup-sidebar { display: none; }
    .mockup { grid-template-columns: 1fr; }
    .landing-footer .footer-grid { grid-template-columns: 1fr; }
}
