/* =========================================================
   ICV-Cut Landing — app.css
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue: #0b3f91;
    --blue-dark: #072966;
    --blue-deeper: #061f4d;
    --blue-soft: #eef4ff;
    --blue-mid: #1a4a8a;
    --yellow: #f5c518;
    --yellow-hover: #e0b400;
    --text: #111827;
    --text-muted: #4b5563;
    --border: #e5e7eb;
    --bg: #ffffff;
    --bg-soft: #f7f9fb;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
    --header-h: 76px;
    --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --container: 1240px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 1000;
    background: var(--blue);
    color: #fff;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
}

.skip-link:focus {
    top: 16px;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.header-content {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.brand img {
    width: 148px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a:not(.button) {
    font-weight: 500;
    color: #374151;
    text-decoration: none;
}

.main-nav a:not(.button):hover {
    color: var(--blue);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--blue);
}

/* ---------- Buttons ---------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    min-height: 48px;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.button-primary {
    background: var(--blue);
    color: #ffffff;
}

.button-primary:hover {
    background: var(--blue-dark);
}

.button-secondary {
    border-color: var(--blue);
    color: var(--blue);
    background: transparent;
}

.button-secondary:hover {
    background: var(--blue-soft);
}

.button-whatsapp {
    background: var(--yellow);
    color: var(--blue-deeper);
}

.button-whatsapp:hover {
    background: var(--yellow-hover);
}

/* ---------- Shared section pieces ---------- */
.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow-light {
    color: var(--yellow);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.section-heading h2,
.split-content h2,
.cta-final h2 {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text);
}

.section-heading p,
.split-content > p {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.section-heading-light h2,
.section-heading-light p {
    color: #fff;
}

.section-heading-light p {
    color: rgba(255, 255, 255, 0.86);
}

.section-closing {
    margin-top: 40px;
    text-align: center;
    font-weight: 700;
    color: var(--blue);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-closing-light {
    color: var(--yellow);
}

.emphasis {
    margin-top: 20px;
    font-weight: 700;
    color: var(--blue);
}

.split-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 56px;
}

.split-grid-reverse {
    grid-template-columns: 1.1fr 0.9fr;
}

.split-content {
    max-width: 560px;
}

.feature-list {
    margin-top: 24px;
    display: grid;
    gap: 10px;
}

.feature-list li {
    position: relative;
    padding-left: 22px;
    color: var(--text-muted);
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
}

.media-frame {
    margin: 0;
}

.media-frame img,
.step-card img,
.corte-card img {
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: #fff;
}

.media-frame figcaption,
.step-card figcaption,
.hero-media figcaption {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.media-frame-wide {
    margin-top: 40px;
}

.media-frame-dark img {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.media-frame-dark figcaption {
    color: rgba(255, 255, 255, 0.8);
}

.problem-card,
.mini-card,
.eco-card,
.compare-card,
.compat-card,
.corte-card {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.problem-card h3,
.mini-card h3,
.eco-card h3,
.compare-card h3,
.compat-card h3,
.corte-card h3 {
    color: var(--blue);
    font-size: 1.2rem;
}

.problem-card p,
.mini-card p,
.eco-card p,
.compat-card p,
.corte-card p {
    margin-top: 12px;
    color: var(--text-muted);
}

/* ---------- Hero ---------- */
.hero {
    padding: 96px 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(245, 197, 24, 0.12), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 55%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 64px;
}

.hero-content {
    max-width: 580px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text);
}

.hero-description {
    margin-top: 24px;
    max-width: 620px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero-proof-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 28px;
}

.hero-proof-list li {
    color: #374151;
    font-size: 0.92rem;
    font-weight: 600;
}

.hero-proof-list li::before {
    content: "✓ ";
    color: var(--blue);
}

.hero-media img {
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* ---------- Problems ---------- */
.problems {
    padding: 96px 0;
    background: var(--bg-soft);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

/* ---------- Panel overview ---------- */
.panel-overview,
.otimizador,
.multiplicador,
.caixas,
.codigos,
.credibilidade,
.faq {
    padding: 96px 0;
    background: #fff;
}

.otimizador .split-content .button {
    margin-top: 28px;
}

.otimizador-main-media .proof-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.proof-chips li,
.chip-list li {
    padding: 8px 14px;
    background: var(--blue-soft);
    color: var(--blue);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
}

.feature-mini-grid,
.mode-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.mode-grid {
    grid-template-columns: 1fr;
    margin-top: 28px;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

/* ---------- Optimizer flow ---------- */
.otimizador-flow,
.dxf,
.automacoes,
.ecossistema,
.compatibilidade,
.comparacao {
    padding: 96px 0;
    background: var(--bg-soft);
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.step-card {
    margin: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.step-card img {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.step-card figcaption {
    padding: 18px 20px 22px;
    display: grid;
    gap: 6px;
}

.step-number {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--blue-deeper);
    font-weight: 800;
    font-size: 0.85rem;
}

/* ---------- Arquivo de corte ---------- */
.arquivo-corte,
.fluxo {
    padding: 96px 0;
    background:
        linear-gradient(180deg, var(--blue-deeper) 0%, var(--blue-dark) 100%);
    color: #fff;
}

.corte-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.corte-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

.corte-card h3 {
    margin-top: 18px;
    color: #fff;
}

.corte-card .corte-meta {
    margin-top: 6px;
    color: var(--yellow);
    font-weight: 700;
    font-size: 0.92rem;
}

.corte-card p {
    color: rgba(255, 255, 255, 0.82);
}

.corte-card img {
    border: 0;
    box-shadow: none;
    background: transparent;
}

.arquivo-corte .media-frame-dark {
    margin-top: 40px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- DXF flow ---------- */
.flow-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.flow-inline li {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-weight: 700;
    color: var(--blue);
}

.flow-inline li:not(:last-child)::after {
    content: "→";
    color: var(--text-muted);
    font-weight: 500;
}

.compat-note {
    margin-top: 18px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.compat-note-light {
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- Two cards / ecosystem ---------- */
.two-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.eco-card-highlight {
    border-color: rgba(245, 197, 24, 0.7);
    box-shadow: inset 0 0 0 1px rgba(245, 197, 24, 0.35);
}

/* ---------- Fluxo steps ---------- */
.flow-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.flow-steps li {
    padding: 24px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
}

.flow-num {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--blue-deeper);
    font-weight: 800;
    margin-bottom: 14px;
}

.flow-steps h3 {
    color: #fff;
    font-size: 1.1rem;
}

.flow-steps p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* ---------- Comparação ---------- */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}

.compare-card ul {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.compare-card li {
    position: relative;
    padding-left: 20px;
    color: var(--text-muted);
}

.compare-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 700;
}

.compare-card-muted {
    background: #f3f4f6;
}

.compare-card-accent {
    background: var(--blue-soft);
    border-color: #c7d7f5;
}

.compare-card-accent li::before {
    content: "✓";
    color: var(--blue);
}

/* ---------- Trust / compat ---------- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.compat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.path-note {
    margin-top: 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.path-note strong {
    display: inline-block;
    margin-top: 8px;
    color: var(--blue);
}

/* ---------- FAQ ---------- */
.faq-wrap {
    max-width: 860px;
}

.faq-list {
    margin-top: 40px;
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: transparent;
    border: 0;
    text-align: left;
    font: inherit;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
}

.faq-icon {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
    transform: rotate(-135deg);
}

.faq-panel {
    padding: 0 20px 18px;
}

.faq-panel p {
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-panel[hidden] {
    display: none;
}

/* ---------- CTA final ---------- */
.cta-final {
    padding: 112px 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 197, 24, 0.16), transparent 30%),
        linear-gradient(160deg, var(--blue) 0%, var(--blue-deeper) 100%);
    color: #fff;
    text-align: center;
}

.cta-final-inner {
    max-width: 760px;
}

.cta-logo {
    width: 200px;
    margin: 0 auto 24px;
}

.cta-final h2 {
    color: #fff;
}

.cta-final p {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
}

.cta-final .button {
    margin-top: 28px;
}

.cta-micro {
    margin-top: 14px !important;
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #041533;
    color: rgba(255, 255, 255, 0.86);
    padding: 72px 0 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
}

.footer-brand img {
    width: 170px;
    margin-bottom: 18px;
}

.footer-brand p,
.footer-legal p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.footer-title {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 16px;
}

.footer-nav {
    display: grid;
    gap: 10px;
}

.footer-nav a,
.site-footer a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

.footer-nav a:hover,
.site-footer a:hover {
    color: var(--yellow);
}

.footer-note {
    margin-top: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    gap: 8px;
    font-size: 0.88rem;
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    text-decoration: none;
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

.whatsapp-float:hover {
    filter: brightness(1.05);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .ecosystem-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .compat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .flow-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 20px;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 16px 30px rgba(17, 24, 39, 0.08);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 14px 4px;
        border-bottom: 1px solid var(--border);
    }

    .main-nav .header-cta {
        margin-top: 12px;
        border-bottom: 0;
    }

    .hero,
    .problems,
    .panel-overview,
    .otimizador,
    .otimizador-flow,
    .arquivo-corte,
    .multiplicador,
    .dxf,
    .caixas,
    .codigos,
    .automacoes,
    .ecossistema,
    .fluxo,
    .comparacao,
    .credibilidade,
    .compatibilidade,
    .faq,
    .cta-final {
        padding: 72px 0;
    }

    .hero-grid,
    .split-grid,
    .split-grid-reverse,
    .problem-grid,
    .step-grid,
    .corte-grid,
    .compare-grid,
    .two-card-grid,
    .trust-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .split-content {
        max-width: none;
    }

    .split-grid-reverse .media-frame {
        order: 2;
    }

    .hero-media {
        order: 2;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 40px, var(--container));
    }

    .hero {
        padding: 48px 0 64px;
    }

    .hero h1 {
        font-size: 2.35rem;
    }

    .hero-description,
    .section-heading p,
    .split-content > p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button,
    .cta-final .button,
    .split-content .button {
        width: 100%;
    }

    .hero-proof-list {
        flex-direction: column;
        gap: 8px;
    }

    .feature-mini-grid,
    .ecosystem-grid,
    .compat-grid,
    .flow-steps,
    .mode-grid {
        grid-template-columns: 1fr;
    }

    .flow-inline li {
        width: 100%;
        justify-content: space-between;
    }

    .whatsapp-float {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        width: 52px;
        height: 52px;
    }

    .cta-final {
        padding: 80px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
