/* =========================================================
   NOVAERA CODE — PÁGINA INICIAL
   Estilos exclusivos da home (carregados só no index.php).
   Usa os tokens de css/style.css: funciona nos temas claro e
   escuro e respeita "movimento reduzido" (data-motion="off"
   zera animações e transições globalmente).
   Interações em js/home.js.
   ========================================================= */

/* ---------- TOPO ---------- */
.hero-x {
    --mx: 70%;
    --my: 30%;
    position: relative;
    padding-top: calc(var(--header-h) + env(safe-area-inset-top) + clamp(2.5rem, 1.5rem + 4vw, 5rem));
    padding-bottom: clamp(3.5rem, 2.5rem + 4vw, 6rem);
    overflow: hidden;
    isolation: isolate;
}

/* Grade de fundo */
.hero-x-backdrop {
    position: absolute;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background:
        radial-gradient(60% 55% at 65% 10%, var(--brand-soft), transparent 70%),
        linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 56px 56px;
    -webkit-mask-image: radial-gradient(85% 75% at 60% 30%, #000 25%, transparent 80%);
    mask-image: radial-gradient(85% 75% at 60% 30%, #000 25%, transparent 80%);
}

/* Luz que segue o cursor e acende a grade por onde passa (js/home.js) */
.hero-x-spot {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(560px circle at var(--mx) var(--my), color-mix(in srgb, var(--brand) 13%, transparent), transparent 62%);
    transition: opacity 500ms var(--ease);
}

.hero-x-spot::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(color-mix(in srgb, var(--brand) 50%, transparent) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(90deg, color-mix(in srgb, var(--brand) 50%, transparent) 1px, transparent 1px) 0 0 / 56px 56px;
    -webkit-mask-image: radial-gradient(220px circle at var(--mx) var(--my), #000, transparent 72%);
    mask-image: radial-gradient(220px circle at var(--mx) var(--my), #000, transparent 72%);
}

.hero-x.is-lit .hero-x-spot {
    opacity: 1;
}

/* Brilho suave atrás da vitrine */
.hero-x-aurora {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.hero-x-aurora i {
    position: absolute;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, var(--brand-solid), transparent 66%);
    filter: blur(70px);
    animation: home-aurora 18s ease-in-out infinite alternate;
}

.hero-x-aurora i:first-child {
    top: -14%;
    right: -6%;
    width: min(48vw, 640px);
    opacity: 0.26;
}

.hero-x-aurora i:last-child {
    top: 42%;
    right: 26%;
    width: min(28vw, 380px);
    opacity: 0.14;
    animation-duration: 24s;
    animation-direction: alternate-reverse;
}

:root:not([data-theme="dark"]) .hero-x-aurora i:first-child { opacity: 0.12; }
:root:not([data-theme="dark"]) .hero-x-aurora i:last-child { opacity: 0.07; }

@keyframes home-aurora {
    to { transform: translate3d(-8%, 10%, 0) scale(1.12); }
}

.hero-x-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(2rem, 1rem + 4vw, 4.5rem);
}

.hero-x-inner {
    display: grid;
    justify-items: start;
    gap: var(--space-5);
    min-width: 0;
    container-type: inline-size;
}

/* O tamanho acompanha a largura da coluna (cqi): "Transformando ideias"
   mede ~9,8em, então 9,6cqi mantém cada frase em uma linha só. */
.hero-x-title {
    font-size: clamp(2.5rem, 1.55rem + 2.7vw, 3.75rem);
    font-size: clamp(2rem, 9.6cqi, 3.75rem);
}

.hero-x-title em {
    display: block;
}

.hero-x-sub {
    max-width: 46ch;
    color: var(--text-muted);
    font-size: var(--fs-lg);
}

/* Selo "agenda aberta" */
.announce {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    max-width: 100%;
    padding: 0.35rem 0.9rem 0.35rem 0.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-muted);
    font-size: var(--fs-sm);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.announce:hover {
    border-color: var(--border-strong);
    color: var(--text);
}

.announce-tag {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.45rem;
    padding: 0.15rem 0.65rem;
    border-radius: var(--radius-pill);
    background: var(--brand-solid);
    color: var(--brand-contrast);
    font-size: var(--fs-xs);
    font-weight: 600;
}

.announce > i {
    font-size: 0.75em;
}

.announce-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    animation: home-ping 1.8s var(--ease) infinite;
}

@keyframes home-ping {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
    80%, 100% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

/* ---------- VITRINE (abas + aparelho) ---------- */
.hero-stage {
    position: relative;
    display: grid;
    gap: var(--space-4);
    min-width: 0;
    perspective: 1600px;
}

.stage-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.stage-tabs {
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    box-shadow: var(--shadow-sm);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.stage-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 36px;
    padding: 0 0.95rem;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-muted);
    font: 500 var(--fs-sm) / 1 var(--font-body);
    cursor: pointer;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

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

.stage-tab[aria-selected="true"] {
    background: var(--text);
    color: var(--bg);
}

.stage-tab:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.stage-tab i {
    font-size: 0.85em;
}

/* Tempo até a próxima aba */
.stage-tab-bar {
    position: absolute;
    right: 14px;
    bottom: 5px;
    left: 14px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.4;
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
}

.stage-tab:not([aria-selected="true"]) .stage-tab-bar,
.hero-stage.is-paused .stage-tab-bar {
    opacity: 0;
}

.stage-pause {
    display: inline-grid;
    flex-shrink: 0;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.stage-pause:hover {
    border-color: var(--border-strong);
    color: var(--text);
}

.stage-pause:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.stage-pause[aria-pressed="true"] {
    color: var(--brand);
}

/* Aparelho: navegador que vira celular na aba "Apps" */
.stage-device {
    --rx: 0deg;
    --ry: 0deg;
    --chrome-h: 38px;
    position: relative;
    justify-self: center;
    width: 100%;
    height: clamp(310px, 16vw + 190px, 400px);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow:
        var(--shadow-lg),
        0 40px 90px -45px color-mix(in srgb, var(--brand-solid) 70%, transparent);
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transition:
        width 650ms var(--ease),
        border-radius 650ms var(--ease),
        border-color 650ms var(--ease),
        transform 400ms var(--ease);
}

.stage-device[data-kind="app"] {
    --chrome-h: 0px;
    width: min(236px, 100%);
    border: 7px solid #0b0c10;
    border-radius: 40px;
}

.stage-chrome {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    height: var(--chrome-h);
    padding: 0 var(--space-4);
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text-subtle);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    transition: height 650ms var(--ease), opacity 300ms var(--ease);
}

.stage-device[data-kind="app"] .stage-chrome {
    border-bottom-color: transparent;
    opacity: 0;
}

.stage-dots {
    display: inline-flex;
    flex-shrink: 0;
    gap: 6px;
}

.stage-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
}

.stage-url {
    flex: 1;
    max-width: 260px;
    margin-inline: auto;
    padding: 0.2rem 0.75rem;
    overflow: hidden;
    border-radius: 6px;
    background: var(--bg-soft);
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stage-lock {
    flex-shrink: 0;
    width: 10px;
    font-size: 0.65rem;
}

.stage-screen {
    position: relative;
    height: calc(100% - var(--chrome-h));
    transition: height 650ms var(--ease);
}

/* Cada tela entra montando os blocos em sequência (--i) */
.mock {
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    color: var(--text);
    font-family: var(--font-body);
    transition: opacity 350ms var(--ease), visibility 0s linear 350ms;
}

.mock.is-active {
    visibility: visible;
    opacity: 1;
    transition: opacity 450ms var(--ease) 120ms, visibility 0s;
}

.mock .b {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    transition:
        opacity 420ms var(--ease),
        transform 560ms var(--ease);
}

.mock.is-active .b {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i, 0) * 70ms + 220ms);
}

/* Site */
.mock-site {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 14px;
    padding: 14px 18px 16px;
}

.ms-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ms-logo {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--brand-solid);
}

.ms-links {
    display: flex;
    gap: 9px;
    margin-left: auto;
}

.ms-links i {
    width: 32px;
    height: 6px;
    border-radius: 3px;
    background: var(--border-strong);
}

.ms-cta {
    width: 56px;
    height: 20px;
    border-radius: 6px;
    background: var(--text);
}

.ms-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 16px;
}

.ms-copy {
    display: grid;
    gap: 8px;
}

.ms-kicker {
    width: 38%;
    height: 7px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--brand) 45%, transparent);
}

.ms-h1 {
    width: 94%;
    height: 15px;
    border-radius: 5px;
    background: var(--text);
}

.ms-h1-short {
    width: 66%;
}

.ms-p {
    width: 88%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-strong);
}

.ms-p-short {
    width: 62%;
}

.ms-btns {
    position: relative;
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.ms-btns > i {
    width: 64px;
    height: 22px;
    border-radius: 7px;
    background: var(--brand-solid);
}

.ms-btns > i + i {
    border: 1px solid var(--border-strong);
    background: transparent;
}

.mock-site.is-active .ms-btns > i:first-child {
    animation: ms-press 600ms var(--ease) 2.5s both;
}

@keyframes ms-press {
    40% { transform: scale(0.92); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 30%, transparent); }
    100% { transform: none; box-shadow: 0 0 0 0 transparent; }
}

.ms-visual {
    position: relative;
    aspect-ratio: 1 / 1.05;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(140deg, color-mix(in srgb, var(--brand) 38%, transparent), color-mix(in srgb, var(--brand) 6%, transparent));
}

.ms-orb {
    position: absolute;
    top: -14%;
    right: -12%;
    width: 64%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 55%), var(--brand-solid);
    opacity: 0.6;
}

.ms-card {
    position: absolute;
    bottom: 12%;
    left: 12%;
    display: grid;
    align-content: center;
    gap: 6px;
    width: 60%;
    height: 32%;
    padding: 0 10px;
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.ms-card i {
    height: 5px;
    border-radius: 3px;
    background: var(--border-strong);
}

.ms-card i:first-child {
    width: 70%;
    background: var(--text-subtle);
}

.ms-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ms-features span {
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
}

.ms-features span i {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: var(--brand-soft);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent);
}

.ms-features span::after {
    content: "";
    width: 72%;
    height: 5px;
    border-radius: 3px;
    background: var(--border-strong);
}

/* Cursor que "clica" no botão principal do site montado (posição relativa aos botões) */
.ms-cursor {
    position: absolute;
    top: 9px;
    left: 38px;
    color: var(--text);
    font-size: 17px;
    opacity: 0;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
    pointer-events: none;
}

.mock-site.is-active .ms-cursor {
    animation: ms-cursor 1.6s var(--ease) 1.2s both;
}

@keyframes ms-cursor {
    0% { opacity: 0; transform: translate(150px, 90px); }
    25% { opacity: 1; }
    100% { opacity: 1; transform: none; }
}

/* Sistema */
.mock-system {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
}

.mx-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    padding: 14px 0;
    border-right: 1px solid var(--border);
    background: var(--surface-2);
}

.mx-brand {
    width: 24px;
    height: 24px;
    margin-bottom: 6px;
    border-radius: 8px;
    background: var(--brand-solid);
}

.mx-side i {
    width: 22px;
    height: 6px;
    border-radius: 3px;
    background: var(--border-strong);
}

.mx-side i.is-on {
    background: var(--brand);
}

.mx-main {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 11px;
    min-width: 0;
    padding: 13px 16px;
}

.mx-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mx-title {
    font-size: 13px;
    font-weight: 600;
}

.mx-search {
    width: 40%;
    max-width: 150px;
    height: 22px;
    margin-left: auto;
    border-radius: 6px;
    background: var(--bg-soft);
}

.mx-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-solid), var(--brand));
}

.mx-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.mx-kpi {
    display: grid;
    gap: 1px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
}

.mx-kpi small {
    overflow: hidden;
    color: var(--text-subtle);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mx-kpi b {
    font-size: 16px;
    letter-spacing: -0.02em;
}

.mx-kpi em {
    color: var(--success);
    font-size: 9px;
    font-style: normal;
    font-weight: 600;
}

.mx-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    min-height: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
}

.mx-chart i {
    flex: 1;
    height: var(--h);
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 30%, transparent));
    transform: scaleY(0.08);
    transform-origin: bottom;
    transition: transform 700ms var(--ease);
}

.mock-system.is-active .mx-chart i {
    transform: none;
    transition-delay: calc(var(--i) * 55ms + 650ms);
}

.mx-rows {
    display: grid;
    gap: 6px;
}

.mx-rows span {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    background: var(--surface-2);
}

.mx-rows span i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-strong);
}

.mx-rows span b {
    flex: 1;
    max-width: 42%;
    height: 5px;
    border-radius: 3px;
    background: var(--border-strong);
}

.mx-rows em {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    background: var(--success-soft);
    color: var(--success);
    font-size: 9px;
    font-style: normal;
    font-weight: 600;
}

.mx-rows em.is-wait {
    background: var(--brand-soft);
    color: var(--brand);
}

/* Aplicativo */
.mock-app {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 9px 13px 0;
    background: var(--bg);
}

.ma-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 600;
}

.ma-island {
    width: 66px;
    height: 18px;
    border-radius: var(--radius-pill);
    background: #0b0c10;
}

.ma-icons {
    display: inline-flex;
    gap: 4px;
    font-size: 8px;
}

.ma-head small {
    display: block;
    color: var(--text-subtle);
    font-size: 10px;
}

.ma-head strong {
    font-size: 17px;
    letter-spacing: -0.02em;
}

.ma-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border-radius: 16px;
    background: var(--brand-solid);
    color: #fff;
}

.ma-card b {
    display: block;
    font-size: 11.5px;
}

.ma-card small {
    font-size: 9.5px;
    opacity: 0.85;
}

.ma-ring {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: conic-gradient(#fff 72%, rgba(255, 255, 255, 0.25) 0);
    -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%);
    mask: radial-gradient(circle, transparent 52%, #000 54%);
}

.ma-list {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ma-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 9px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.ma-list li > i {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 11px;
}

.ma-list b {
    display: block;
    font-size: 10.5px;
}

.ma-list small {
    color: var(--text-subtle);
    font-size: 9px;
}

/* Aviso no espaço livre acima da barra de abas (não cobre o conteúdo) */
.ma-toast {
    position: absolute;
    right: 10px;
    bottom: 58px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 11px;
    border-radius: 14px;
    background: var(--text);
    color: var(--bg);
    font-size: 10.5px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(12px);
}

.ma-toast i {
    color: #4ade80;
}

.mock-app.is-active .ma-toast {
    animation: ma-toast 4.2s var(--ease) 1.5s both;
}

@keyframes ma-toast {
    0% { opacity: 0; transform: translateY(12px); }
    12%, 82% { opacity: 1; transform: none; }
    100% { opacity: 0; transform: translateY(12px); }
}

.ma-tabbar {
    display: flex;
    justify-content: space-around;
    margin: auto -13px 0;
    padding: 10px 0 14px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-subtle);
    font-size: 13px;
}

.ma-tabbar .is-on {
    color: var(--brand);
}

/* IoT */
.mock-iot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    padding: 16px 18px;
}

.mi-gauge {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
    text-align: center;
}

.mi-gauge svg {
    width: 100%;
    max-width: 190px;
}

.mi-track,
.mi-value {
    fill: none;
    stroke-width: 9;
    stroke-linecap: round;
}

.mi-track {
    stroke: var(--border-strong);
}

/* --t (0–100) é a posição da leitura atual no arco */
.mi-value {
    stroke: var(--success);
    stroke-dasharray: 100;
    stroke-dashoffset: calc(100 - var(--t, 42));
    transition: stroke-dashoffset 900ms var(--ease);
}

.mi-temp {
    margin-top: -30px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.mi-temp small {
    margin-left: 2px;
    color: var(--text-subtle);
    font-size: 13px;
    font-weight: 500;
}

.mi-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-subtle);
    font-size: 10px;
}

.mi-label i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: home-ping 1.8s var(--ease) infinite;
}

.mi-range {
    margin-top: 8px;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    background: var(--success-soft);
    color: var(--success);
    font-size: 9.5px;
    font-weight: 600;
}

.mi-side {
    display: grid;
    align-content: center;
    gap: 10px;
    min-width: 0;
}

.mi-sensors {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mi-sensors li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 10.5px;
}

.mi-sensors b {
    margin-left: auto;
    color: var(--text);
    font-family: var(--font-mono);
    font-weight: 500;
}

.mi-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px var(--success-soft);
}

.mi-dot.is-warn {
    background: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.16);
}

.mi-spark {
    width: 100%;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
}

.mi-spark path {
    fill: none;
    stroke: var(--brand);
    stroke-width: 2;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    vector-effect: non-scaling-stroke;
    transition: stroke-dashoffset 1.6s var(--ease);
}

.mock-iot.is-active .mi-spark path {
    stroke-dashoffset: 0;
    transition-delay: 0.7s;
}

.mi-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 10.5px;
}

.mi-toggle {
    position: relative;
    width: 28px;
    height: 16px;
    border-radius: var(--radius-pill);
    background: var(--brand-solid);
}

.mi-toggle i {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
}

/* Texto acessível de cada aba */
.stage-panels {
    min-height: 6.5rem;
}

.stage-panel {
    display: grid;
    justify-items: start;
    gap: 0.35rem;
    border-radius: var(--radius-md);
}

.stage-panel:not([hidden]) {
    animation: home-rise 450ms var(--ease);
}

.stage-panel:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

.stage-panel-title {
    color: var(--text);
    font-size: var(--fs-lg);
    font-weight: 600;
    letter-spacing: -0.015em;
}

.stage-panel p:not(.stage-panel-title) {
    max-width: 50ch;
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

.stage-panel .text-link {
    font-size: var(--fs-sm);
}

/* Até o js/home.js assumir, mostra só a primeira aba */
.js .hero-stage:not(.is-ready) .stage-panel + .stage-panel {
    display: none;
}

@keyframes home-rise {
    from { opacity: 0; transform: translateY(6px); }
}

/* ---------- SERVIÇOS (mosaico) ---------- */
.services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(250px, auto);
    gap: clamp(1rem, 0.8rem + 1vw, 1.5rem);
}

.service {
    --mx: 50%;
    --my: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
    isolation: isolate;
    transition:
        transform 400ms var(--ease),
        border-color var(--dur) var(--ease),
        box-shadow 400ms var(--ease);
}

.service:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Luz que segue o cursor dentro do card (js/home.js) */
.service::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(360px circle at var(--mx) var(--my), color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms var(--ease);
}

.service:hover::before {
    opacity: 1;
}

.service-wide {
    grid-column: span 2;
}

.service-tall {
    grid-row: span 2;
}

.service-body {
    position: relative;
    z-index: 3;
    display: grid;
    justify-items: start;
    gap: var(--space-3);
    padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

.service-index {
    color: var(--brand);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.04em;
}

.service h3 {
    font-family: var(--font-poster);
    font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.6rem);
    font-stretch: 72%;
    font-weight: 800;
    line-height: 0.95;
    text-transform: uppercase;
}

.service p {
    max-width: 40ch;
    color: var(--text-muted);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-tags li {
    padding: 0.25rem 0.65rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: var(--fs-xs);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: var(--space-1);
    color: var(--brand);
    font-size: var(--fs-sm);
    font-weight: 600;
    text-decoration: none;
}

/* O card inteiro é clicável (um único link por card) */
.service-link::after {
    content: "";
    position: absolute;
    inset: -100vmax;
    z-index: 1;
}

.service-link i {
    transition: transform var(--dur) var(--ease);
}

.service:hover .service-link i {
    transform: translateX(3px);
}

.service:focus-within {
    box-shadow: var(--ring);
}

.service-link:focus-visible {
    outline: none;
}

/* Cards com foto: texto claro nos dois temas (a foto é sempre escura).
   Redefine os tokens, como .on-media, para os títulos herdarem o claro. */
.service-photo {
    --text: #f5f8ff;
    --text-muted: rgba(232, 238, 249, 0.82);
    border-color: transparent;
    background: var(--ink);
    color: var(--text);
}

.service-photo > img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 900ms var(--ease);
}

.service-photo:hover > img {
    transform: scale(1.05);
}

.service-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(5, 8, 15, 0.05) 0%, rgba(5, 8, 15, 0.55) 45%, rgba(5, 8, 15, 0.92) 100%);
}

.service-photo .service-index {
    color: #9db9ff;
}

.service-photo p {
    color: rgba(232, 238, 249, 0.82);
}

.service-photo .service-tags li {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.service-photo .service-link {
    color: #fff;
}

/* Cards ilustrados (sem foto): arte no topo, texto embaixo, sem sobrepor */
.service-art-app,
.service-art-iot {
    justify-content: space-between;
}

.service-art {
    position: relative;
    z-index: 1;
    display: grid;
    flex-shrink: 0;
    place-items: center;
    align-self: flex-end;
    width: 96px;
    height: 96px;
    margin: clamp(1.25rem, 1rem + 1vw, 1.75rem) clamp(1.25rem, 1rem + 1vw, 1.75rem) 0 0;
}

/* Telas de celular em leque */
.service-art-app .service-art i {
    position: absolute;
    width: 42px;
    height: 78px;
    border: 2px solid var(--border-strong);
    border-radius: 11px;
    background: var(--surface-2);
    transition: transform 500ms var(--ease);
}

.service-art-app .service-art i:nth-child(1) { transform: rotate(-14deg) translateX(-18px); }
.service-art-app .service-art i:nth-child(3) { transform: rotate(14deg) translateX(18px); }

.service-art-app .service-art i:nth-child(2) {
    z-index: 1;
    border-color: var(--brand);
    background:
        linear-gradient(var(--brand-solid), var(--brand-solid)) 50% 22% / 60% 22% no-repeat,
        linear-gradient(var(--border-strong), var(--border-strong)) 50% 58% / 60% 6% no-repeat,
        linear-gradient(var(--border-strong), var(--border-strong)) 50% 70% / 40% 6% no-repeat,
        var(--surface);
}

.service-art-app:hover .service-art i:nth-child(1) { transform: rotate(-20deg) translateX(-26px); }
.service-art-app:hover .service-art i:nth-child(3) { transform: rotate(20deg) translateX(26px); }

/* Sensor emitindo sinal */
.service-art-iot .service-art i {
    position: absolute;
    inset: 0;
    border: 1.5px solid color-mix(in srgb, var(--brand) 45%, transparent);
    border-radius: 50%;
    opacity: 0;
    animation: home-signal 3s var(--ease) infinite;
}

.service-art-iot .service-art i:nth-child(2) { animation-delay: 1s; }
.service-art-iot .service-art i:nth-child(3) { animation-delay: 2s; }

.service-art-iot .service-art b {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--brand-solid);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 12px 30px -10px var(--brand-solid);
}

@keyframes home-signal {
    0% { opacity: 0.9; transform: scale(0.45); }
    100% { opacity: 0; transform: scale(1.15); }
}

/* ---------- PROCESSO ---------- */
.process {
    --gap: clamp(1rem, 0.5rem + 2vw, 2rem);
    --progress: 1;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Trilho e preenchimento entre o centro da 1ª e da 4ª etapa */
.process::before,
.process::after {
    content: "";
    position: absolute;
    top: 25px;
    right: calc((100% - 3 * var(--gap)) / 8);
    left: calc((100% - 3 * var(--gap)) / 8);
    height: 2px;
    border-radius: 2px;
    background: var(--border-strong);
}

.process::after {
    background: linear-gradient(90deg, var(--brand-solid), var(--brand));
    transform: scaleX(var(--progress));
    transform-origin: left;
}

.process-step {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: var(--space-2);
    text-align: center;
    transition: opacity 450ms var(--ease);
}

.process-marker {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: var(--space-3);
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text-subtle);
    transition:
        background-color 450ms var(--ease),
        border-color 450ms var(--ease),
        color 450ms var(--ease),
        box-shadow 450ms var(--ease),
        transform 450ms var(--ease);
}

.process-num {
    color: var(--text-subtle);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.process-step h3 {
    font-size: var(--fs-xl);
    letter-spacing: -0.02em;
}

.process-step p {
    max-width: 28ch;
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

/* Com JS: as etapas acendem conforme a linha avança */
.process.is-live .process-step {
    opacity: 0.45;
}

.process.is-live .process-step.is-active,
.process-step.is-active {
    opacity: 1;
}

.process-step.is-active .process-marker {
    border-color: var(--brand-solid);
    background: var(--brand-solid);
    color: #fff;
    box-shadow: 0 0 0 6px var(--brand-soft);
    transform: scale(1.04);
}

/* ---------- PROJETOS: cartão "seu projeto" no fim do trilho ---------- */
.rail-card-next {
    grid-template-rows: 1fr;
    place-items: center;
    border-style: dashed;
    border-width: 1.5px;
    background:
        radial-gradient(70% 60% at 50% 0%, var(--brand-soft), transparent 70%),
        var(--surface);
    text-align: center;
}

.rail-next {
    display: grid;
    justify-items: center;
    gap: var(--space-3);
    max-width: 34ch;
    padding: var(--space-7) var(--space-6);
}

.rail-next-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-2);
    border-radius: 50%;
    background: var(--brand-solid);
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 14px 34px -12px var(--brand-solid);
    transition: transform 400ms var(--ease);
}

.rail-card-next:hover .rail-next-icon {
    transform: rotate(90deg) scale(1.06);
}

.rail-card-next h3 {
    font-family: var(--font-poster);
    font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem);
    font-stretch: 72%;
    font-weight: 800;
    line-height: 0.95;
    text-transform: uppercase;
}

.rail-card-next p {
    color: var(--text-muted);
}

.rail-card-next .text-link {
    color: var(--brand);
}

/* ---------- QUEM FAZ ---------- */
.team-band {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 1rem + 4vw, 5rem);
}

.team-band .section-head {
    margin-bottom: var(--space-6);
}

.team-faces {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4) var(--space-5);
    color: var(--text);
    text-decoration: none;
}

.team-stack {
    display: flex;
    padding-left: 14px;
}

.team-face {
    position: relative;
    width: 56px;
    height: 56px;
    margin-left: -14px;
    border-radius: 50%;
    transition: margin 400ms var(--ease), transform 300ms var(--ease);
}

.team-face img {
    width: 100%;
    height: 100%;
    border: 3px solid var(--bg-soft);
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    background: var(--surface-2);
}

/* Ao passar o mouse, os rostos se afastam e cada um mostra quem é */
.team-faces:hover .team-face,
.team-faces:focus-visible .team-face {
    margin-left: 6px;
}

.team-face:hover {
    z-index: 1;
    transform: translateY(-4px);
}

.team-tip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    background: var(--text);
    color: var(--bg);
    font-size: var(--fs-xs);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.team-tip b {
    margin-right: 0.25rem;
}

.team-face:hover .team-tip {
    opacity: 1;
    transform: translate(-50%, 0);
}

.team-faces-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--brand);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.team-faces-label i {
    transition: transform var(--dur) var(--ease);
}

.team-faces:hover .team-faces-label i {
    transform: translateX(3px);
}

.team-faces:focus-visible {
    outline: none;
    border-radius: var(--radius-md);
    box-shadow: var(--ring);
}

.team-stats.stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6) var(--space-5);
}

.team-stats .stat-num {
    font-size: clamp(3rem, 2.2rem + 3vw, 5rem);
}

/* ---------- MONTE SEU PROJETO ---------- */
.builder {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
    align-items: start;
    gap: clamp(1.25rem, 0.8rem + 2.5vw, 3rem);
}

.builder-steps {
    display: grid;
    gap: var(--space-7);
}

.builder-step {
    display: grid;
    gap: var(--space-4);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.builder-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2) var(--space-3);
    padding: 0;
    color: var(--text);
    font-size: var(--fs-lg);
    font-weight: 600;
    letter-spacing: -0.015em;
}

.builder-legend small {
    color: var(--text-subtle);
    font-size: var(--fs-sm);
    font-weight: 400;
    letter-spacing: 0;
}

.builder-num {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--text);
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    font-weight: 600;
}

/* Rádios e checkboxes ficam acessíveis, mas o visual é o card/pílula */
.builder-type input,
.builder-chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.builder-types {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-3);
}

.builder-type {
    position: relative;
    display: block;
}

.builder-type-card {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 0.25rem;
    height: 100%;
    padding: var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    cursor: pointer;
    transition:
        border-color var(--dur) var(--ease),
        box-shadow var(--dur) var(--ease),
        transform var(--dur) var(--ease);
}

.builder-type-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.builder-type-card i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 0.45rem;
    border-radius: 11px;
    background: var(--surface-2);
    color: var(--text-muted);
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.builder-type-card strong {
    font-size: var(--fs-base);
}

.builder-type-card small {
    color: var(--text-subtle);
    font-size: var(--fs-xs);
}

.builder-type input:checked + .builder-type-card {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand), 0 18px 40px -26px var(--brand-solid);
}

.builder-type input:checked + .builder-type-card i {
    background: var(--brand-solid);
    color: #fff;
}

.builder-type input:focus-visible + .builder-type-card {
    box-shadow: var(--ring);
}

.builder-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.builder-chip {
    position: relative;
    display: inline-flex;
}

.builder-chip span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text-muted);
    font-size: var(--fs-sm);
    cursor: pointer;
    transition:
        border-color var(--dur) var(--ease),
        background-color var(--dur) var(--ease),
        color var(--dur) var(--ease);
}

.builder-chip span::before {
    content: "+";
    width: 0.8em;
    color: var(--text-subtle);
    font-family: var(--font-mono);
    text-align: center;
}

.builder-chip-radio span::before {
    content: "";
    width: 8px;
    height: 8px;
    border: 1.5px solid var(--border-strong);
    border-radius: 50%;
}

.builder-chip span:hover {
    border-color: var(--text-subtle);
    color: var(--text);
}

.builder-chip input:checked + span {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--text);
}

.builder-chip input[type="checkbox"]:checked + span::before {
    content: "✓";
    color: var(--brand);
}

.builder-chip-radio input:checked + span::before {
    border-color: var(--brand);
    background: var(--brand);
    box-shadow: inset 0 0 0 2px var(--surface);
}

.builder-chip input:focus-visible + span {
    box-shadow: var(--ring);
}

/* Resumo em forma de "ticket" */
.builder-summary {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: grid;
    gap: var(--space-4);
}

.builder-ticket {
    position: relative;
    padding: var(--space-5);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.builder-ticket-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.builder-ticket-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    color: var(--text-subtle);
    font-family: var(--font-mono);
    font-size: 0.68rem;
}

.builder-lines {
    display: grid;
    gap: var(--space-4);
    margin: var(--space-5) 0;
}

.builder-lines div {
    display: grid;
    gap: 0.2rem;
}

.builder-lines dt {
    color: var(--text-subtle);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.builder-lines dd {
    margin: 0;
    color: var(--text);
    font-weight: 500;
}

.builder-lines dd.is-updated {
    animation: builder-flash 700ms var(--ease);
}

@keyframes builder-flash {
    0% { color: var(--brand); transform: translateX(4px); }
    100% { color: var(--text); transform: none; }
}

/* Linha picotada do ticket, com os recortes nas laterais */
.builder-package {
    position: relative;
    margin: 0 calc(-1 * var(--space-5));
    padding: var(--space-4) var(--space-5) 0;
    border-top: 1px dashed var(--border-strong);
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

.builder-package::before,
.builder-package::after {
    content: "";
    position: absolute;
    top: -9px;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-soft);
}

.builder-package::before {
    left: -10px;
    clip-path: inset(0 0 0 50%);
}

.builder-package::after {
    right: -10px;
    clip-path: inset(0 50% 0 0);
}

.builder-package a {
    color: var(--brand);
    font-weight: 600;
}

.builder-submit {
    min-height: 52px;
    font-size: var(--fs-base);
}

.builder-fine {
    color: var(--text-subtle);
    font-size: var(--fs-xs);
    text-align: center;
}

/* ---------- PACOTES: destaque do sugerido pelo configurador ---------- */
.pricing-card.is-suggested {
    box-shadow: 0 0 0 2px var(--brand), var(--shadow-lg);
}

.suggest-badge {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-pill);
    background: var(--brand-solid);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    transform: translate(-50%, -50%);
}

.pricing-card.is-flash {
    animation: pricing-flash 1.2s var(--ease);
}

@keyframes pricing-flash {
    0%, 100% { box-shadow: 0 0 0 2px var(--brand), var(--shadow-lg); }
    35% { box-shadow: 0 0 0 8px var(--brand-soft), 0 0 0 2px var(--brand), var(--shadow-lg); }
}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1023px) {
    .hero-x-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-x-inner {
        justify-items: center;
        text-align: center;
    }

    .hero-x-sub {
        max-width: 52ch;
    }

    .hero-x-actions {
        justify-content: center;
    }

    .hero-stage {
        width: min(100%, 640px);
        margin-inline: auto;
    }

    .stage-panels {
        text-align: left;
    }

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

    .service-tall {
        grid-row: auto;
    }

    .team-band,
    .builder {
        grid-template-columns: minmax(0, 1fr);
    }

    .builder-summary {
        position: static;
    }

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

@media (max-width: 767px) {
    /* Processo vira linha do tempo vertical */
    .process {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-6);
    }

    .process::before,
    .process::after {
        top: 26px;
        right: auto;
        bottom: 26px;
        left: 25px;
        width: 2px;
        height: auto;
    }

    .process::after {
        background: linear-gradient(180deg, var(--brand-solid), var(--brand));
        transform: scaleY(var(--progress));
        transform-origin: top;
    }

    .process-step {
        grid-template-columns: 52px minmax(0, 1fr);
        justify-items: start;
        column-gap: var(--space-4);
        row-gap: var(--space-1);
        text-align: left;
    }

    .process-marker {
        grid-row: 1 / span 3;
        margin-bottom: 0;
    }

    .process-step p {
        max-width: none;
    }
}

@media (max-width: 639px) {
    .services {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-wide {
        grid-column: auto;
    }

    .service-photo {
        min-height: 360px;
    }
}

@media (max-width: 519px) {
    .stage-tab {
        padding: 0 0.7rem;
    }

    .stage-tab i {
        display: none;
    }

    .stage-device {
        height: 300px;
    }

    .ms-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .ms-visual,
    .ms-cursor,
    .mx-kpi:nth-child(3) {
        display: none;
    }

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

    .mock-iot {
        grid-template-columns: minmax(0, 1fr);
        padding: 12px 14px;
    }

    .mi-spark,
    .mi-switch {
        display: none;
    }

    .builder-types {
        grid-template-columns: minmax(0, 1fr);
    }

    .builder-type-card {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        column-gap: var(--space-3);
    }

    .builder-type-card i {
        grid-row: 1 / span 2;
        margin-bottom: 0;
    }
}
