:root {
    color-scheme: light;
    --bg: #f5f7fb;
    --paper: #ffffff;
    --text: #111827;
    --muted: #5d6678;
    --soft: #8b95a8;
    --line: #e2e7ef;
    --line-strong: #cbd4e1;
    --accent: #0f9f84;
    --accent-strong: #124be8;
    --accent-soft: #e8f7f4;
    --error: #b42318;
    --success: #087443;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        linear-gradient(135deg, rgba(18, 75, 232, 0.09) 0%, transparent 34%),
        linear-gradient(315deg, rgba(15, 159, 132, 0.12) 0%, transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #f5f7fb 58%, #eef3f8 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

a {
    color: inherit;
    text-decoration: none;
}

.ambient {
    position: fixed;
    inset: auto 0 0;
    z-index: -1;
    height: 48vh;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(17, 24, 39, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, transparent, #000);
}

.site-shell {
    width: min(1120px, calc(100% - 48px));
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero {
    width: 100%;
    padding: 34px 0 48px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(72px, 11vw, 132px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
}

.brand img {
    width: 38px;
    height: 38px;
}

.domain {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 160ms ease;
}

.domain:hover {
    color: var(--text);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    gap: clamp(54px, 8vw, 104px);
    align-items: start;
}

.hero-copy {
    max-width: 690px;
    padding-top: 10px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 24px;
    font-size: clamp(3.2rem, 7.4vw, 6.25rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0;
}

.lead {
    max-width: 610px;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: clamp(1.12rem, 1.8vw, 1.34rem);
    font-weight: 400;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 30px;
}

.primary-link,
.secondary-link {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 0 20px;
    font-size: 0.96rem;
    font-weight: 700;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.primary-link {
    background: linear-gradient(135deg, var(--text), #1d4ed8);
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(29, 78, 216, 0.18);
}

.primary-link:hover {
    transform: translateY(-1px);
}

.secondary-link {
    border: 1px solid var(--line-strong);
    color: var(--text);
    background: rgba(255, 255, 255, 0.72);
}

.secondary-link:hover {
    border-color: var(--text);
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-list span {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 13px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
    font-weight: 560;
}

.contact-panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82)),
        var(--paper);
    box-shadow: 0 28px 80px rgba(21, 33, 58, 0.12);
    backdrop-filter: blur(18px);
}

.panel-header {
    margin-bottom: 22px;
}

.panel-header h2 {
    max-width: 360px;
    margin-bottom: 12px;
    font-size: clamp(1.6rem, 2.4vw, 2.12rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
}

.panel-header p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

.signal-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.signal-strip span {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
}

.form-drawer {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.form-drawer summary {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 12px;
    padding: 0 16px;
    color: #ffffff;
    background: var(--text);
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.form-drawer summary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.14);
}

.form-drawer summary span:last-child {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.13);
    font-size: 1.35rem;
    line-height: 1;
}

.form-drawer[open] summary {
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--text), var(--accent-strong));
}

.form-drawer[open] summary span:first-child {
    font-size: 0;
}

.form-drawer[open] summary span:first-child::after {
    content: "Ocultar formulário";
    font-size: 0.96rem;
}

.form-drawer[open] summary span:last-child {
    transform: rotate(45deg);
}

.contact-form {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 7px;
}

label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 620;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 14px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
    min-height: 126px;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: rgba(15, 159, 132, 0.72);
    box-shadow: 0 0 0 4px rgba(15, 159, 132, 0.11);
}

button {
    min-height: 50px;
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    background: linear-gradient(135deg, var(--text), var(--accent-strong));
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

button:hover {
    background: #000000;
    box-shadow: 0 16px 34px rgba(17, 19, 18, 0.14);
    transform: translateY(-1px);
}

.notice {
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    background: #ffffff;
    font-size: 0.92rem;
    line-height: 1.5;
}

.notice-sent {
    border-color: rgba(8, 116, 67, 0.22);
    color: var(--success);
}

.notice-error {
    border-color: rgba(180, 35, 24, 0.22);
    color: var(--error);
}

.hidden-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 900px) {
    .site-shell {
        align-items: flex-start;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .contact-panel {
        max-width: 560px;
    }
}

@media (max-width: 560px) {
    .site-shell {
        width: min(100% - 24px, 1120px);
    }

    .hero {
        padding-top: 24px;
    }

    .topbar {
        margin-bottom: 60px;
    }

    h1 {
        font-size: 2.85rem;
    }

    .lead {
        font-size: 1.08rem;
    }

    .hero-actions a {
        width: 100%;
    }

    .contact-panel {
        padding: 22px;
        border-radius: 16px;
    }

    .signal-strip {
        grid-template-columns: 1fr;
    }
}
