:root {
    --bg: #060606;
    --panel: rgba(13, 13, 13, 0.86);
    --panel-soft: rgba(255, 255, 255, 0.06);
    --text: #f7f7f7;
    --muted: #c8c8c8;
    --orange: #ffa500;
    --orange-strong: #ff7a18;
    --line: rgba(255, 165, 0, 0.22);
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
    --radius: 8px;
    --header-height: 64px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    min-width: 320px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.92)),
        url('../imagens/site/E-D_fundo.jpg') center / cover fixed;
    color: var(--text);
    overflow-x: hidden;
    padding-top: var(--header-height);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1200;
    min-height: var(--header-height);
    background: rgba(8, 8, 8, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.header-nav {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    gap: 8px;
    width: min(100%, 1180px);
    min-height: var(--header-height);
    margin: 0 auto;
    padding: 8px 12px;
}

.menu-toggle,
.header-zed,
.btn,
#back-to-top {
    min-height: 44px;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 11px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--orange);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.brand-link {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.brand-link img {
    width: auto;
    height: clamp(34px, 9vw, 46px);
    max-width: min(54vw, 210px);
    object-fit: contain;
}

.header-zed {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    max-width: 44px;
    background: transparent;
    color: var(--orange);
}

.header-zed img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    width: min(320px, calc(100vw - 24px));
    padding: 10px;
    background: rgba(8, 8, 8, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.menu-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

.menu-panel ul {
    list-style: none;
}

.menu-panel a,
.menu-disabled {
    display: block;
    padding: 13px 12px;
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
}

.menu-panel a:hover,
.menu-panel a:focus-visible,
.menu-panel a.active {
    background: rgba(255, 165, 0, 0.14);
    color: var(--orange);
    outline: none;
}

.menu-disabled {
    color: rgba(255, 255, 255, 0.48);
}

.main-layout {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 0 16px 32px;
}

.content-column {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

section {
    scroll-margin-top: calc(var(--header-height) + 22px);
}

.hero-section,
.section-block {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(16, 16, 16, 0.86), rgba(7, 7, 7, 0.82));
    box-shadow: var(--shadow);
}

.hero-section {
    min-height: calc(100svh - var(--header-height));
    display: flex;
    align-items: center;
    padding: clamp(44px, 9vw, 96px) clamp(18px, 6vw, 72px);
}

.hero-copy {
    max-width: 780px;
}

.hero-logo {
    width: min(210px, 68vw);
    margin-bottom: 24px;
    padding: 8px;
    border: 2px solid var(--orange);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.42);
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--orange);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.12;
    letter-spacing: 0;
}

h1 {
    max-width: 820px;
    margin-bottom: 18px;
    font-size: clamp(2.05rem, 8vw, 4.7rem);
}

h2 {
    font-size: clamp(1.65rem, 5vw, 3rem);
}

h3 {
    font-size: 1.2rem;
}

p {
    color: var(--muted);
    font-size: 1rem;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 660px;
    font-size: clamp(1.03rem, 2vw, 1.22rem);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    padding: 12px 18px;
    text-decoration: none;
    font-weight: 800;
    text-align: center;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.btn-primary {
    background: linear-gradient(180deg, var(--orange), var(--orange-strong));
    color: #130d04;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.section-block {
    padding: clamp(28px, 6vw, 58px) clamp(16px, 5vw, 46px);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.section-heading p:last-child {
    margin-top: 10px;
}

.solution-grid,
.project-grid,
.review-grid {
    display: grid;
    gap: 16px;
}

.solution-card,
.project-card,
.review-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    background: var(--panel-soft);
}

.solution-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.card-marker,
.future-note,
.project-type {
    color: var(--orange);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.solution-card strong {
    color: var(--text);
}

.future-note {
    margin-top: auto;
    color: rgba(255, 165, 0, 0.72);
}

.project-card {
    display: grid;
    gap: 16px;
    padding: 16px;
}

.project-card img {
    width: 100%;
    height: clamp(150px, 22vw, 180px);
    object-fit: contain;
    padding: clamp(18px, 3vw, 24px);
    border: 1px solid rgba(255, 165, 0, 0.18);
    border-radius: var(--radius);
    background: #fffaf2;
    box-shadow: inset 0 0 0 1px rgba(9, 15, 35, 0.04);
}

#exemplos-praticos .project-card .project-card-media {
    width: 100%;
    height: clamp(150px, 22vw, 180px);
    padding: clamp(18px, 3vw, 24px);
    border: 1px solid rgba(255, 165, 0, 0.18);
    border-radius: 12px;
    background: #fffaf2;
    box-shadow: inset 0 0 0 1px rgba(9, 15, 35, 0.04);
    overflow: hidden;
}

#exemplos-praticos .project-card .project-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    object-fit: cover;
}

.project-card h3,
.review-card h3 {
    margin-bottom: 6px;
}

.section-note {
    margin-top: 16px;
}

.zed-demo {
    display: grid;
    gap: 22px;
    align-items: center;
    overflow: hidden;
}

.zed-demo img {
    width: min(340px, 100%);
    justify-self: center;
    border-radius: var(--radius);
}

.review-grid {
    grid-template-columns: 1fr;
}

.review-card {
    padding: 20px;
}

.review-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-strong));
    color: #fff;
    font-weight: 800;
}

.review-top small {
    color: var(--muted);
}

.review-card p {
    font-style: italic;
}

.final-cta {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.16), rgba(8, 8, 8, 0.92) 52%);
}

.sidebar-spacer {
    position: relative;
    width: 0;
    height: 0;
    overflow: visible;
    pointer-events: none;
}

#back-to-top {
    position: fixed;
    right: 88px;
    bottom: 58px;
    z-index: 990;
    display: none;
    padding: 10px 14px;
    border-radius: var(--radius);
    background: var(--orange);
    color: #111;
    font-weight: 800;
}

#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    animation: introFade 1.6s forwards;
}

#splash-screen img {
    width: min(80vw, 500px);
}

@keyframes introFade {
    0% { opacity: 1; visibility: visible; }
    72% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

#zed-rail {
    position: fixed;
    top: 76px;
    right: 0;
    left: auto;
    z-index: 1000;
    width: 76px;
    height: 76px;
    display: flex;
    flex-direction: column;
    overflow: visible;
    pointer-events: auto;
    transition: width 0.32s ease, box-shadow 0.32s ease, transform 0.32s ease;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

#zed-launcher,
#zed-panel {
    pointer-events: auto;
}

#zed-launcher {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 76px;
    min-height: 76px;
    max-width: 76px;
    max-height: 76px;
    border: 1px solid rgba(255, 165, 0, 0.35);
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.92), rgba(0, 0, 0, 0.72));
    color: #fff;
    border-radius: 24px 0 0 24px;
    padding: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, width 0.32s ease, min-height 0.32s ease;
}

#zed-launcher img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    object-fit: contain;
    transition: transform 0.25s ease;
}

#zed-launcher img:hover {
    transform: scale(1.05);
}

.zed-launcher-copy {
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: flex-start;
    max-width: 0;
    overflow: hidden;
    text-align: left;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, max-width 0.3s ease, visibility 0s linear 0.3s;
}

.zed-launcher-copy span,
.zed-panel-header span {
    color: var(--orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.zed-launcher-copy strong {
    display: block;
    font-size: 16px;
    line-height: 1.2;
}

.zed-panel {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.96), rgba(18, 18, 18, 0.94));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0s linear 0.24s;
    border-top-left-radius: 0;
}

#zed-rail.is-open {
    width: min(420px, calc(100vw - 16px));
    height: min(80dvh, 720px);
    right: 0;
    bottom: 10px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

#zed-rail.is-open #zed-launcher {
    width: 100%;
    max-width: none;
    min-height: 60px;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 24px 14px 16px;
    border-radius: 24px 0 0 0;
    border-bottom: none;
    box-shadow: none;
}

#zed-rail.is-open .zed-launcher-copy {
    visibility: visible;
    max-width: 300px;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease, max-width 0.3s ease, visibility 0s;
}

#zed-rail.is-open .zed-panel {
    margin-top: -1px;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0s;
    box-shadow: none;
}

.zed-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 16px 12px;
    background: linear-gradient(180deg, rgba(255, 165, 0, 0.17), rgba(255, 165, 0, 0.06));
    border-bottom: 1px solid rgba(255, 165, 0, 0.16);
    flex-shrink: 0;
}

.zed-panel-header strong {
    display: none;
}

#zed-close {
    padding: 0;
    margin-top: -4px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.zed-messages {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 14px;
    scroll-behavior: smooth;
}

.zed-message {
    max-width: 88%;
    padding: 11px 12px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.zed-message-bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.zed-message-user {
    align-self: flex-end;
    background: linear-gradient(180deg, var(--orange), #ffb840);
    color: #16110a;
    font-weight: 800;
}

.zed-input-shell {
    flex-shrink: 0;
    padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 165, 0, 0.12);
}

.zed-label {
    display: none;
}

#zed-input {
    width: 100%;
    min-height: 64px;
    resize: vertical;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    padding: 12px 14px;
    outline: none;
    font-size: 14px;
}

#zed-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.zed-action-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.zed-action-row button {
    flex: 1;
    padding: 12px 14px;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

#zed-send {
    background: var(--orange);
    color: #111;
}

#zed-voice {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

#zed-voice.recording {
    background: #dc2626;
    border-color: #ef4444;
}

.zed-action-row button:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.zed-status {
    min-height: 18px;
    margin-top: 10px;
    color: #cbd5e1;
    font-size: 12px;
}

.zed-inline-trigger {
    cursor: pointer;
}

body.zed-open {
    overflow: hidden;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 18px;
    background-color: rgba(10, 10, 10, 0.92);
    color: #fff;
    border-top: 1px solid var(--line);
    font-size: 14px;
    text-align: center;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.footer-legal a {
    color: inherit;
    text-decoration: none;
}

.footer-legal a:hover,
.footer-legal a:focus-visible,
.legal-document a:hover,
.legal-document a:focus-visible {
    color: var(--orange);
    outline: none;
}

.legal-hero {
    min-height: auto;
}

.legal-document {
    max-width: 900px;
}

.legal-document h2 {
    margin-top: 30px;
    margin-bottom: 12px;
    font-size: clamp(1.35rem, 3.6vw, 2rem);
}

.legal-document h2:first-child {
    margin-top: 0;
}

.legal-document p + p,
.legal-document ul + p,
.legal-document p + ul {
    margin-top: 12px;
}

.legal-document ul {
    margin-left: 20px;
    color: var(--muted);
}

.legal-document li + li {
    margin-top: 6px;
}

.legal-document a {
    color: var(--text);
    font-weight: 700;
}

@media (min-width: 560px) {
    .header-nav {
        grid-template-columns: 56px 1fr 56px;
        padding-inline: 18px;
    }

    .hero-actions .btn {
        width: auto;
    }

    footer {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .main-layout {
        padding-inline: 24px;
    }

    .solution-grid,
    .review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-card {
        grid-template-columns: 220px 1fr;
        align-items: center;
    }

    .zed-demo {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
    }

    #zed-rail {
        top: 76px;
        height: calc(100vh - 76px);
    }

    #zed-rail.is-open {
        height: calc(100dvh - 96px);
        top: 76px;
        bottom: 20px;
    }

    #zed-rail.is-open .zed-panel {
        border-radius: 0 0 0 24px;
    }
}

@media (min-width: 1024px) {
    .solution-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .project-card {
        grid-template-columns: 170px 1fr;
    }
}

@media (max-width: 520px) {
    .hero-actions,
    .zed-action-row {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    #back-to-top {
        right: 78px;
        bottom: 54px;
    }
}

@media (max-width: 480px) {
    #zed-rail.is-open {
        top: 0;
        right: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
    }

    #zed-rail.is-open #zed-launcher,
    #zed-rail.is-open .zed-panel {
        border-radius: 0;
    }
}
