/* =========================================================
   IpChronus — sistema de design
   Paleta extraída da marca: azul-noite + ciano de sinal.
   Tipografia: Space Grotesk (títulos) + Inter (texto).
   ========================================================= */

:root {
    /* cor */
    --navy-950: #030e24;
    --navy-900: #06265e;
    --navy-800: #0a3374;
    --navy-700: #123f8c;
    --cyan-500: #00afef;
    --cyan-400: #3ec6f7;
    --cyan-100: #e2f6ff;
    --ink: #0b1930;
    --muted: #5b6b84;
    --line: #e1e8f2;
    --bg: #f6f9fc;
    --surface: #ffffff;

    /* tipografia */
    --font-display: "Space Grotesk", "Segoe UI", sans-serif;
    --font-text: "Inter", "Segoe UI", sans-serif;

    /* forma */
    --radius-s: 4px;
    --radius-m: 8px;
    --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-text);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--muted); max-width: 62ch; }

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

.wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--navy-900); color: #fff; padding: 10px 16px;
    z-index: 200; border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 2px solid var(--cyan-500);
    outline-offset: 2px;
}

/* ---------- botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-text);
    font-weight: 600;
    font-size: .95rem;
    padding: 13px 22px;
    border-radius: var(--radius-s);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--primary { background: var(--cyan-500); color: #04182e; }
.btn--primary:hover { background: var(--cyan-400); }

.btn--outline { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--outline:hover { border-color: #fff; }

.btn--accent { background: var(--navy-900); color: #fff; }
.btn--accent:hover { background: var(--navy-800); }

.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--navy-700); }

.btn--small { padding: 9px 16px; font-size: .85rem; }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(246,249,252,.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header__row {
    display: flex; align-items: center; gap: 28px;
    height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__name { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--navy-900); }
.brand__name strong { font-weight: 700; }

.nav__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: 6px;
}
.nav__list > li > a, .nav__dropdown-trigger {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px; border-radius: var(--radius-s);
    font-weight: 500; font-size: .95rem; color: var(--ink);
    background: none; border: none; cursor: pointer; font-family: var(--font-text);
}
.nav__list > li > a:hover,
.nav__dropdown-trigger:hover,
.nav__list > li > a.is-active,
.nav__has-dropdown.is-active > .nav__dropdown-trigger { color: var(--navy-900); background: rgba(6,38,94,.06); }

.nav__caret { width: 14px; height: 14px; transition: transform .15s ease; }
.nav__has-dropdown { position: relative; }
.nav__dropdown {
    position: absolute; top: calc(100% + 10px); left: 50%;
    transform: translate(-50%, 6px);
    width: 460px; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius-m);
    box-shadow: 0 18px 40px rgba(6,20,50,.14);
    padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav__has-dropdown:hover .nav__dropdown,
.nav__has-dropdown:focus-within .nav__dropdown {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}
.nav__has-dropdown:hover .nav__caret { transform: rotate(180deg); }

.nav__dropdown-item {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 10px; border-radius: var(--radius-s); font-size: .85rem;
}
.nav__dropdown-item:hover, .nav__dropdown-item.is-active { background: var(--cyan-100); }
.nav__dropdown-item strong { display: block; font-size: .88rem; margin-bottom: 2px; }
.nav__dropdown-item small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.nav__dropdown-icon { flex: none; width: 30px; height: 30px; border-radius: var(--radius-s);
    background: var(--navy-900); color: var(--cyan-400); display: flex; align-items: center; justify-content: center; }
.nav__dropdown-icon svg { width: 16px; height: 16px; }

.nav__cta-mobile { display: none; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
    .nav__cta-desktop { display: none; }
    .nav-toggle {
        display: block;
        position: relative;
        width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius-s);
        background: #fff;
    }
    .nav-toggle span {
        position: absolute; left: 9px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
        transition: transform .2s ease, opacity .2s ease;
    }
    .nav-toggle span:nth-child(1) { top: 13px; }
    .nav-toggle span:nth-child(2) { top: 19px; }
    .nav-toggle span:nth-child(3) { top: 25px; }
    .nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .nav {
        position: fixed; inset: 72px 0 0 0; background: var(--surface);
        transform: translateX(100%); transition: transform .25s ease;
        overflow-y: auto; padding: 10px 0 40px;
    }
    .nav.is-open { transform: translateX(0); }
    .nav__list { flex-direction: column; align-items: stretch; padding: 0 16px; gap: 4px; }
    .nav__list > li > a, .nav__dropdown-trigger { width: 100%; justify-content: space-between; padding: 14px; }
    .nav__dropdown {
        position: static; width: auto; transform: none; opacity: 1; visibility: visible;
        pointer-events: auto; display: none; grid-template-columns: 1fr; box-shadow: none;
        border: none; padding: 0 0 0 8px;
    }
    .nav__has-dropdown.is-open .nav__dropdown { display: grid; }
    .nav__cta-mobile { display: block; margin-top: 10px; padding: 0 4px; }
    .nav__cta-mobile .btn { width: 100%; justify-content: center; }
}

/* ---------- hero ---------- */
.hero {
    background: radial-gradient(120% 140% at 100% 0%, var(--navy-800) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}
.hero__row {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px;
    align-items: center; padding: 76px 24px 84px;
}
.hero__eyebrow { color: var(--cyan-400); font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.15rem); color: #fff; max-width: 15ch; }
.hero p.lead { color: #c8d6ea; font-size: 1.1rem; max-width: 46ch; }
.hero__actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero__meta { margin-top: 46px; display: flex; gap: 32px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px; }
.hero__meta div strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: #fff; }
.hero__meta div span { color: #93a6c4; font-size: .85rem; }

.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; }

.path-flow { stroke-dasharray: 6 10; animation: flow 2.4s linear infinite; }
.path-flow.d2 { animation-delay: .4s; }
.path-flow.d3 { animation-delay: .8s; }
.path-flow.d4 { animation-delay: 1.2s; }
@keyframes flow { to { stroke-dashoffset: -160; } }

.node-pulse { animation: pulse 2.6s ease-in-out infinite; transform-origin: center; }
.node-pulse.d2 { animation-delay: .5s; }
.node-pulse.d3 { animation-delay: 1s; }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .path-flow, .node-pulse { animation: none !important; }
}

@media (max-width: 860px) {
    .hero__row { grid-template-columns: 1fr; padding: 44px 20px 56px; }
    .hero__art { order: -1; max-width: 320px; margin: 0 auto; }
}

/* ---------- seções genéricas ---------- */
.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark {
    background: radial-gradient(120% 140% at 100% 0%, var(--navy-800) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
    color: #fff;
}
.section--dark p { color: #b7c6de; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section__head { max-width: 640px; margin-bottom: 48px; }
.section__kicker { color: var(--navy-700); font-weight: 600; font-size: .95rem; margin-bottom: 10px; }
.section--dark .section__kicker { color: var(--cyan-400); }
.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- grade de produtos (cartão "bloco de conector") ---------- */
.product-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden;
}
.product-card {
    background: var(--surface); padding: 30px 26px; position: relative;
    border-left: 3px solid transparent;
    transition: border-color .15s ease, background-color .15s ease;
}
.product-card:hover { border-left-color: var(--cyan-500); background: #fbfdff; }
.product-card__icon {
    width: 42px; height: 42px; border-radius: var(--radius-s);
    background: var(--navy-900); color: var(--cyan-400);
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.product-card__icon svg { width: 22px; height: 22px; }
.product-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.product-card p { font-size: .92rem; margin-bottom: 16px; }
.product-card__link { font-size: .88rem; font-weight: 600; color: var(--navy-800); display: inline-flex; align-items: center; gap: 6px; }
.product-card__link svg { width: 15px; height: 15px; transition: transform .15s ease; }
.product-card__link:hover svg { transform: translateX(3px); }

@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .product-grid { grid-template-columns: 1fr; } }

/* ---------- diferenciais ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.diff-item__num {
    width: 44px; height: 44px; border-radius: var(--radius-s);
    background: var(--navy-900); color: var(--cyan-400);
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.diff-item__num svg { width: 22px; height: 22px; }
.diff-item h3 { font-size: 1.1rem; }
.diff-item p { font-size: .92rem; }
@media (max-width: 780px) { .diff-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- lista de recursos (usada nas páginas de produto) ---------- */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; color: var(--ink); }
.feature-list svg { width: 20px; height: 20px; flex: none; color: var(--cyan-500); margin-top: 1px; }
.panel .feature-list li { color: #eaf1fb; }
.panel .feature-list svg { color: var(--cyan-400); }

/* ---------- duas colunas (texto + arte lateral) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.panel {
    background: var(--navy-900); color: #fff; border-radius: var(--radius-m);
    padding: 34px; position: relative; overflow: hidden;
}
.panel h3 { color: #fff; }
.panel p { color: #b7c6de; }
.panel--cyan { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); }

/* ---------- faixa CTA ---------- */
.cta-band {
    background: var(--navy-900);
    border-radius: var(--radius-m);
    margin: 0 24px;
    padding: 56px 48px;
    color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; font-size: 1.7rem; }
.cta-band p { color: #b7c6de; margin: 0; }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: #9fb0cc; padding-top: 64px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.site-footer__brand p { font-size: .9rem; margin: 14px 0 18px; max-width: 30ch; }
.site-footer .brand__name { color: #fff; }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__social a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-s); display: flex; align-items: center; justify-content: center; }
.site-footer__social svg { width: 16px; height: 16px; }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contact svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--cyan-400); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 24px; font-size: .82rem; }

@media (max-width: 900px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .cta-band { flex-direction: column; align-items: flex-start; margin: 0 16px; padding: 36px 28px; }
}
@media (max-width: 560px) {
    .site-footer__grid { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
}

/* ---------- página interna (header simples) ---------- */
.page-hero {
    background: var(--navy-900); color: #fff; padding: 64px 0 56px;
}
.page-hero__kicker { color: var(--cyan-400); font-weight: 600; margin-bottom: 10px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); max-width: 22ch; }
.page-hero p { color: #c8d6ea; max-width: 60ch; font-size: 1.05rem; }
.breadcrumb { font-size: .85rem; color: #93a6c4; margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }

/* ---------- foto real (sobrepõe a base do hero escuro) ---------- */
.photo-banner {
    margin: -48px 24px 0;
    position: relative;
    z-index: 2;
}
.photo-banner img {
    width: 100%;
    height: auto
    object-fit: cover;
    border-radius: var(--radius-m);
    box-shadow: 0 24px 50px rgba(6, 20, 50, .18);
    border: 4px solid var(--bg);
}
.photo-banner figcaption {
    margin-top: 14px;
    font-size: .85rem;
    color: var(--muted);
    max-width: 640px;
}
@media (max-width: 640px) {
    .photo-banner { margin: -32px 16px 0; }
    .photo-banner img { max-height: 260px; }
}

/* ---------- carrossel de depoimentos ---------- */
.testimonial-carousel { position: relative; padding: 0 56px; }
.testimonial-slide { display: none; }
.testimonial-slide.is-active { display: block; animation: testimonial-fade .5s ease; }
@keyframes testimonial-fade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .testimonial-slide.is-active { animation: none; }
}

.testimonial-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5; padding: 0;
    box-shadow: 0 8px 20px rgba(3, 14, 36, .25);
    color: var(--navy-900);
    transition: background-color .15s ease, transform .15s ease;
}
.testimonial-arrow:hover { background: var(--cyan-100); }
.testimonial-arrow svg { width: 20px; height: 20px; }
.testimonial-arrow--prev { left: 0; }
.testimonial-arrow--next { right: 0; }
.testimonial-arrow--prev svg { transform: scaleX(-1); }

@media (max-width: 640px) {
    .testimonial-carousel { padding: 0 40px; }
    .testimonial-arrow { width: 34px; height: 34px; }
    .testimonial-arrow svg { width: 16px; height: 16px; }
}

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
    padding: 30px 26px; text-align: center; color: var(--ink);
}
.testimonial-card__logo {
    width: 128px; height: 128px; border-radius: 50%; object-fit: cover;
    margin: 0 auto 20px; border: 2px solid var(--line); display: block;
}
.testimonial-card__logo--vazio {
    display: flex; align-items: center; justify-content: center;
    background: var(--navy-900); color: var(--cyan-400);
    font-family: var(--font-display); font-weight: 700; font-size: 2.4rem;
}
.testimonial-card__nome { display: block; font-size: 1rem; color: var(--ink); }
.testimonial-card__produto {
    display: inline-block; margin: 7px 0 16px; padding: 4px 12px; border-radius: 999px;
    background: var(--cyan-100); color: var(--navy-800); font-size: .75rem; font-weight: 600;
}
.testimonial-card .testimonial-card__texto { font-style: italic; color: var(--muted); font-size: .92rem; margin: 0; }

.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.testimonial-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--line);
    border: none; cursor: pointer; padding: 0;
}
.testimonial-dot.is-active { background: var(--cyan-500); }
.section--dark .testimonial-dot { background: rgba(255, 255, 255, .3); }
.section--dark .testimonial-dot.is-active { background: var(--cyan-400); }

/* ---------- formulário de contato ---------- */
.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
input, textarea, select {
    width: 100%; font-family: var(--font-text); font-size: .95rem;
    padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s);
    background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { border-color: var(--cyan-500); }
textarea { resize: vertical; min-height: 120px; }

.alert { padding: 14px 16px; border-radius: var(--radius-s); font-size: .92rem; margin-bottom: 20px; }
.alert--ok { background: #e4f8ec; color: #1a7a45; border: 1px solid #b6e6c8; }
.alert--err { background: #fdecec; color: #a4231f; border: 1px solid #f5c3c1; }

/* ---------- utilitários ---------- */
.eyebrow-off {} /* marcador: propositalmente não usamos rótulos em versalete no projeto */
