:root {
    --bg: #f5f5f8;
    --bg-alt: #ffffff;
    --card-bg: #ffffff;
    --primary: #e53935;
    --primary-soft: rgba(229, 57, 53, 0.08);
    --text: #1f2933;
    --text-soft: #6b7280;
    --border: #e5e7eb;
    --radius: 12px;
    --shadow-soft: 0 14px 30px rgba(15, 23, 42, 0.08);
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    scroll-behavior: smooth;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Layout base */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 72px 0;
    background: var(--bg);
}

.section-alt {
    background: #ffffff;
}

.section h2 {
    font-size: 1.9rem;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-soft);
    max-width: 640px;
    margin-bottom: 32px;
}

.mt-lg {
    margin-top: 32px;
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #ff8a65, #e53935 60%, #b71c1c 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.logo-mark i {
    font-size: 1.1rem;
}

.logo-text {
    font-size: 1.05rem;
}

/* Nav */
.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.9rem;
}

.nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-soft);
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.nav a i {
    font-size: 1rem;
}

.nav a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.btn-nav {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(229, 57, 53, 0.4);
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.08), rgba(255, 255, 255, 0.9));
}

/* Hero */
.hero {
    padding: 72px 0 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 45%, #f3f4f6 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.1rem, 3vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 12px;
    color: #111827;
}

.hero p {
    color: var(--text-soft);
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.hero-actions .btn-primary i,
.hero-actions .btn-secondary i {
    font-size: 1rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    font-size: 0.87rem;
    color: var(--text-soft);
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.9);
}

.hero-meta i {
    font-size: 1rem;
    color: var(--primary);
}

/* Hero card/painel */
.hero-panel {
    display: flex;
    justify-content: flex-end;
}

.hero-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 20px 18px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #e5e7eb;
    max-width: 340px;
    font-size: 0.9rem;
}

.hero-card h2 {
    margin-top: 0;
    font-size: 1.15rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #111827;
}

.hero-card h2 i {
    font-size: 1.2rem;
    color: var(--primary);
}

.hero-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    color: var(--text-soft);
}

.hero-card li::before {
    content: "• ";
    color: var(--primary);
}

.hero-card-note {
    font-size: 0.8rem;
    color: var(--text-soft);
}

/* Botões */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}

.btn-primary i,
.btn-secondary i {
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #e53935, #ff7043);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(229, 57, 53, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(229, 57, 53, 0.45);
}

.btn-secondary {
    border: 1px solid #d1d5db;
    color: #111827;
    background: #ffffff;
}

.btn-secondary:hover {
    background: #f9fafb;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-soft);
    font-size: 0.95rem;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #111827;
}

.card h3 i {
    font-size: 1.2rem;
    color: var(--primary);
}

.card p {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-soft);
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.list li {
    margin-bottom: 6px;
}

.list li::before {
    content: "▸ ";
    color: var(--primary);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.step {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid #e5e7eb;
    font-size: 0.9rem;
    box-shadow: var(--shadow-soft);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 6px;
}

.step h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #111827;
}

.step h3 i {
    font-size: 1.1rem;
    color: var(--primary);
}

/* FAQ */
.faq details {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 8px;
    font-size: 0.9rem;
    box-shadow: var(--shadow-soft);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #111827;
}

.faq summary i {
    font-size: 1rem;
    color: var(--primary);
}

.faq summary::-webkit-details-marker {
    display: none;
}

/* Contato */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: flex-start;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    font-size: 0.93rem;
    color: var(--text-soft);
}

.contact-info li {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info i {
    font-size: 1rem;
    color: var(--primary);
}

.contact-form {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-soft);
}

.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    font-size: 0.88rem;
}

.field label {
    margin-bottom: 4px;
    color: var(--text-soft);
}

.field input,
.field textarea {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    padding: 8px 9px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--text);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(229, 57, 53, 0.25);
}

.form-feedback {
    font-size: 0.82rem;
    margin-top: 8px;
}

/* Footer */
.footer {
    border-top: 1px solid #e5e7eb;
    padding: 16px 0 20px;
    background: #ffffff;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-soft);
}

.footer-small {
    font-size: 0.78rem;
}

/* Responsividade */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-panel {
        justify-content: flex-start;
        margin-top: 12px;
    }
    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
    }
    .grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }
    .steps {
        grid-template-columns: minmax(0, 1fr);
    }
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .nav {
        gap: 12px;
        font-size: 0.82rem;
    }
}

@media (max-width: 640px) {
    .topbar-inner {
        gap: 12px;
    }
    .nav {
        display: none; /* pode trocar por um menu hamburguer depois */
    }
    .hero {
        padding-top: 56px;
    }
}
