/*
 * home.css — RupStack
 * Página principal. Tema escuro único e monocromático, como a marca.
 * O coral é a cor da ruptura: só aparece em momentos de destaque.
 * Tipografia: Archivo (uma família, eixo de largura). Expandida nos títulos
 * e rótulos (ecoa o nome RUPSTΛCK), normal no texto corrido.
 * Raios: botões em pílula, cartões 20px, campos 12px.
 */

@font-face {
    font-family: 'Archivo';
    src: url('../assets/fonts/archivo-latin-wdth-wght.woff2') format('woff2');
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
}

:root {
    --bg: #0a0b0e;
    --bg-2: #0e1014;
    --surface: #13151a;
    --surface-2: #1a1d23;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --text: #eceef2;
    --muted: #a1a8b3;
    --dim: #8a919c;
    --white: #f4f5f7;
    --accent: #ff5a47;

    --f: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --wide: 118%;      /* largura dos títulos */
    --wider: 125%;     /* largura dos rótulos em caixa alta */

    /* Escala tipográfica: 5 degraus */
    --fs-1: clamp(2.4rem, 4.9vw, 4.4rem);    /* hero */
    --fs-2: clamp(1.9rem, 3.3vw, 3rem);      /* títulos de seção */
    --fs-3: clamp(1.3rem, 1.8vw, 1.6rem);    /* títulos de cartão e etapa */
    --fs-4: 1.0625rem;                       /* texto */
    --fs-5: 0.78rem;                         /* rótulos */

    --gutter: clamp(1rem, 4vw, 2.5rem);
    --header-h: 72px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    --z-canvas: 0;
    --z-content: 1;
    --z-header: 50;
    --z-grain: 70;

    /* Compatibilidade com chatbot.css, reset.css e estados do formulário */
    --color-background: var(--bg);
    --color-background-secondary: var(--bg-2);
    --color-surface: var(--surface);
    --color-surface-hover: var(--surface-2);
    --color-border: var(--line-2);
    --color-primary: var(--white);
    --color-primary-dark: #d9dce1;
    --color-white: #f5f6f8;
    --color-text: var(--text);
    --color-text-muted: var(--muted);
    --color-success: #3fd08a;
    --color-error: #ff6b6b;
    --font-family: var(--f);
    --font-mono: var(--f);
    --font-weight-semibold: 600;
    --gradient-bg: var(--bg-2);
    --gradient-primary: linear-gradient(135deg, #2a2e36, #1d2027);
    --gradient-disrupt: linear-gradient(135deg, #2a2e36, #1d2027);
    --leading-normal: 1.6;
    --radius-sm: 6px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 20px; --radius-full: 999px;
    --shadow-glow: 0 0 0 1px var(--line-2);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.55);
    --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem;
    --text-xs: .78rem; --text-sm: .9rem;
    --transition-fast: 150ms var(--ease-out);
    --transition-base: 250ms var(--ease-out);
    --transition-slow: 400ms var(--ease-out);
    --z-menu: 200;
}

/* ──────────────── Base ──────────────── */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body.rs {
    background: var(--bg);
    color: var(--text);
    font-family: var(--f);
    font-size: var(--fs-4);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
.rs ::selection { background: var(--white); color: var(--bg); }
.rs a { color: inherit; text-decoration: none; }
.rs :focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 4px; }
.rs .skip-link:focus { background: var(--white); color: var(--bg); }

.rs-container { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.rs-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: var(--z-canvas); display: block; pointer-events: none; }
.rs-grain {
    position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .rs-footer { position: relative; z-index: var(--z-content); }

/* ──────────────── Tipografia ──────────────── */
.rs-h2 {
    font-stretch: var(--wide);
    font-weight: 600;
    font-size: var(--fs-2);
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-wrap: balance;
    max-width: 16ch;
}
.rs-h3 { font-stretch: var(--wide); font-weight: 600; font-size: var(--fs-3); line-height: 1.15; letter-spacing: -0.02em; }
.rs-sub { margin-top: 1.1rem; color: var(--muted); font-size: 1.12rem; max-width: 50ch; text-wrap: pretty; }
.rs-kicker { font-stretch: var(--wider); font-size: var(--fs-5); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }

/* Revelação por palavra: só no título do hero e no princípio */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 620ms var(--ease-out); transition-delay: calc(var(--i, 0) * 32ms); }
[data-split].is-in .w > span { transform: none; }

.rs-reveal { opacity: 0; transform: translateY(14px); transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); }
.rs-reveal.is-in { opacity: 1; transform: none; }
.no-js .rs-reveal, .no-js [data-split] .w > span { opacity: 1; transform: none; }

/* ──────────────── Botões e links ──────────────── */
.rs-btn {
    --mx: 0px; --my: 0px;
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    height: 52px; padding: 0 1.6rem;
    border-radius: 999px; border: 0;
    font-family: var(--f); font-weight: 600; font-size: .98rem; font-stretch: 108%;
    white-space: nowrap; cursor: pointer;
    overflow: hidden; isolation: isolate;
    transform: translate3d(var(--mx), var(--my), 0);
    transition: transform 400ms var(--ease-out), box-shadow 300ms var(--ease-out), background-color 200ms;
}
.rs-btn--sm { height: 42px; padding: 0 1.15rem; font-size: .9rem; }
.rs .rs-btn--primary { background: var(--white); color: var(--bg); }
.rs-btn--primary::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(90px circle at var(--px, 50%) var(--py, 50%), rgba(255, 90, 71, 0.28), transparent 70%);
    opacity: 0; transition: opacity 250ms;
}
.rs .rs-btn--primary:hover { background: #fff; box-shadow: 0 10px 40px -12px rgba(255, 255, 255, 0.4); }
.rs-btn--primary:hover::before { opacity: 1; }
.rs-btn:active { transform: translate3d(var(--mx), var(--my), 0) scale(0.97); }
.rs-btn[disabled] { opacity: .65; cursor: progress; }

.rs-link { position: relative; font-weight: 500; padding: .4rem 0; }
.rs-link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
    transform-origin: right; transform: scaleX(0.35); transition: transform 500ms var(--ease-out);
}
.rs-link:hover::after { transform-origin: left; transform: scaleX(1); }

/* ──────────────── Cabeçalho ──────────────── */
.rs-header { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header); height: var(--header-h); transition: background-color 300ms, border-color 300ms; border-bottom: 1px solid transparent; }
.rs-header.is-scrolled { background: rgba(10, 11, 14, 0.74); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.rs-header__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.rs-header__logo img { height: 30px; width: auto; display: block; }
.rs-nav { display: none; gap: .25rem; margin-left: auto; }
.rs-nav .nav__link { position: relative; padding: .5rem .9rem; border-radius: 999px; color: var(--muted); font-size: .93rem; font-weight: 500; transition: color 200ms, background-color 200ms; }
.rs-nav .nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.rs-nav .nav__link.is-active { color: var(--text); }
.rs-nav .nav__link.is-active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.rs-header__cta { display: none; }

.rs-toggle { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); display: grid; place-content: center; gap: 6px; cursor: pointer; }
.rs-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform 300ms var(--ease-out); }
.rs-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.rs-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.rs-mobile-nav {
    position: fixed; inset: 0; z-index: calc(var(--z-header) - 1);
    background: rgba(10, 11, 14, 0.97); backdrop-filter: blur(10px);
    display: flex; flex-direction: column; justify-content: center; gap: 2.5rem;
    padding: var(--header-h) var(--gutter) 3rem;
    opacity: 0; visibility: hidden; transition: opacity 300ms var(--ease-out), visibility 0s 300ms;
}
.rs-mobile-nav.is-open { opacity: 1; visibility: visible; transition: opacity 300ms var(--ease-out); }
.rs-mobile-nav nav { display: flex; flex-direction: column; gap: .35rem; }
.rs-mobile-nav .nav__link { font-stretch: var(--wide); font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; color: var(--muted); }
.rs-mobile-nav .nav__link.is-active, .rs-mobile-nav .nav__link:hover { color: var(--text); }

/* ──────────────── Hero ──────────────── */
.rs-hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); padding-bottom: clamp(2rem, 6vh, 4rem); }
.rs-hero__inner { position: relative; z-index: 2; display: grid; gap: 1.75rem; pointer-events: none; }
.rs-hero__inner a, .rs-hero__inner p { pointer-events: auto; }
.rs-hero__title { font-stretch: var(--wide); font-weight: 650; font-size: var(--fs-1); line-height: 1.02; letter-spacing: -0.04em; }
.rs-hero__line { display: block; }
.rs-hero__line--muted { color: #7d848f; }
.rs-hero__lead { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 34ch; text-wrap: pretty; margin-top: .5rem; }
.rs-hero__actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; margin-top: .5rem; }

.rs-hero__stage { position: absolute; z-index: 1; right: 0; bottom: 0; width: 100%; height: 45%; cursor: grab; touch-action: pan-y; }
.rs-hero__stage.is-dragging { cursor: grabbing; }
.rs-hero__hint {
    position: absolute; left: 50%; bottom: 1.5rem; transform: translate(-50%, 6px);
    font-stretch: var(--wider); font-size: var(--fs-5); letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
    opacity: 0; transition: opacity 300ms, transform 300ms var(--ease-out); white-space: nowrap;
}
.rs-hero__stage.is-hover .rs-hero__hint { opacity: 1; transform: translate(-50%, 0); }
.rs-hero__fallback { display: none; }
.no-webgl .rs-hero__fallback { display: block; position: absolute; right: 8%; top: 50%; width: min(34vw, 340px); height: auto; transform: translateY(-50%); opacity: .9; }
.no-webgl .rs-hero__hint, .no-webgl .rs-canvas { display: none; }

/* ──────────────── Camadas ──────────────── */
.rs-layers { position: relative; height: 270vh; }
.rs-layers__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.rs-layers__inner { position: relative; height: 100%; }
.rs-layers__title { position: absolute; left: 0; top: calc(var(--header-h) + 2rem); font-stretch: var(--wide); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 2.2rem); line-height: 1.1; letter-spacing: -0.03em; max-width: 24ch; }
.rs-layers__list { list-style: none; position: absolute; right: 0; top: 50%; transform: translateY(-38%); width: min(25rem, 34vw); display: grid; gap: 1.6rem; }
.rs-label { position: relative; opacity: 0; transition: opacity 450ms var(--ease-out); }
.rs-label::before { content: ""; display: none; }
.rs-label.is-shown { opacity: 0.55; }
.rs-label.is-active { opacity: 1; }
.rs-label__name { font-stretch: var(--wide); font-size: var(--fs-3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; transition: color 300ms; }
.rs-label__text { color: var(--muted); font-size: .98rem; max-width: 34ch; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 450ms var(--ease-out), opacity 300ms, margin 450ms var(--ease-out); }
.rs-label.is-current .rs-label__text, .rs-layers.is-final .rs-label__text { max-height: 5rem; opacity: 1; margin-top: .35rem; }
.rs-label--core.is-active .rs-label__name { color: var(--accent); }
.rs-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 450ms var(--ease-out), opacity 300ms, margin 450ms var(--ease-out); }
.rs-label.is-current .rs-chips { max-height: 6rem; opacity: 1; margin-top: .75rem; }

/* Linhas-guia entre cada bloco e seu rótulo */
.rs-leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 1; }
.rs-leader { opacity: 0; transition: opacity 450ms var(--ease-out); }
.rs-leader path { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; }
.rs-leader circle { fill: rgba(255, 255, 255, 0.5); }
.rs-leader.is-shown { opacity: 1; }
.rs-leader.is-active path { stroke: rgba(255, 255, 255, 0.75); }
.rs-leader.is-active circle { fill: var(--white); }
.rs-leader--core.is-active path { stroke: var(--accent); }
.rs-leader--core.is-active circle { fill: var(--accent); }
.rs-chips li { font-stretch: var(--wider); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); padding: .3rem .6rem; border: 1px solid var(--line-2); border-radius: 999px; }
.rs-layers__outro { position: absolute; left: 0; bottom: 3rem; font-stretch: var(--wide); font-weight: 600; font-size: clamp(1.1rem, 1.8vw, 1.5rem); letter-spacing: -0.02em; opacity: var(--ignite, 0); transform: translateY(calc((1 - var(--ignite, 0)) * 14px)); }
.rs-layers__outro::before { content: ""; display: inline-block; width: .5em; height: .5em; margin-right: .6em; border-radius: 50%; background: var(--white); box-shadow: 0 0 14px rgba(255, 255, 255, 0.8); vertical-align: .1em; }

/* ──────────────── Seções gerais ──────────────── */
.rs-section { position: relative; padding: clamp(5rem, 11vw, 9rem) 0; background: var(--bg); }

/* Soluções */
.rs-solutions { border-top: 1px solid var(--line); }
.rs-bento { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 1rem; grid-template-columns: 1fr; perspective: 1400px; }
.rs-cell {
    --rx: 0deg; --ry: 0deg; --sx: 50%; --sy: 50%;
    position: relative; display: flex; flex-direction: column; gap: 1.5rem;
    padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 20px;
    background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line);
    transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
    transition: transform 600ms var(--ease-out); overflow: hidden;
}
.rs-cell::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
    background: radial-gradient(320px circle at var(--sx) var(--sy), rgba(255, 255, 255, 0.45), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 400ms;
}
.rs-cell:hover::after { opacity: 1; }
.rs-cell.is-tilting { transition: transform 120ms linear; }
.rs-cell__art { display: grid; place-items: center; min-height: 10rem; transform: translateZ(36px); }
.rs-cell__body { transform: translateZ(18px); display: grid; gap: .7rem; align-content: start; }
.rs-cell__body > p { color: var(--muted); max-width: 46ch; }
.rs-list { list-style: none; display: grid; gap: .35rem; margin-top: .25rem; }
.rs-list li { position: relative; padding-left: 1.1rem; color: var(--text); font-size: .96rem; }
.rs-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border: 1px solid var(--dim); transform: rotate(45deg); }
.rs-cell__link { justify-self: start; display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem; font-weight: 600; font-size: .95rem; border-bottom: 1px solid var(--line-2); padding-bottom: .2rem; transition: border-color 200ms, gap 300ms var(--ease-out); }
.rs-cell__link::after { content: "→"; transition: transform 300ms var(--ease-out); }
.rs-cell__link:hover { border-color: var(--white); }
.rs-cell__link:hover::after { transform: translateX(3px); }

/* Ilustrações das soluções, na geometria do símbolo */
.rs-art { width: min(100%, 240px); height: auto; overflow: visible; }
.rs-art__base, .rs-art__plate path { fill: #d9dde3; }
.rs-art__brick { fill: #d9dde3; transition: transform 700ms var(--ease-out), fill 400ms; }
.rs-cell:hover .rs-art__brick { transform: translate(46px, -17.6px); fill: var(--accent); }
.rs-art--saas .rs-art__plate { transition: transform 700ms var(--ease-out); transform: translateY(calc(var(--i) * 0px)); }
.rs-art--saas .rs-art__plate:nth-child(2) path { fill: #aeb3bb; }
.rs-art--saas .rs-art__plate:nth-child(3) path { fill: #7d838d; }
.rs-cell:hover .rs-art--saas .rs-art__plate { transform: translateY(calc((var(--i) - 1) * 34px)); }
.rs-cell:hover .rs-art--saas .rs-art__plate:nth-child(2) path { fill: var(--accent); }
.rs-art--link { width: min(100%, 300px); }
.rs-art__flow { fill: none; stroke: #6c727d; stroke-width: 6; stroke-dasharray: 3 3; transition: stroke 300ms; }
.rs-art__dot { fill: var(--accent); opacity: 0; }
.rs-cell:hover .rs-art__flow { stroke: #d9dde3; }
.rs-cell:hover .rs-art__dot { opacity: 1; animation: rs-flow 1.4s var(--ease-out) infinite; }
@keyframes rs-flow { from { transform: translateX(0); } to { transform: translateX(520px); } }

/* Clientes: letreiro rotativo */
.rs-clients { position: relative; z-index: var(--z-content); background: var(--bg); border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.rs-clients .rs-kicker { text-align: center; }
.rs-marquee { position: relative; overflow: hidden; margin-top: clamp(1.6rem, 3vw, 2.4rem); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.rs-marquee__track { list-style: none; display: flex; align-items: center; width: max-content; transform: translate3d(var(--mq, 0px), 0, 0); will-change: transform; }
.rs-client { display: flex; align-items: center; height: 56px; padding-right: clamp(2.6rem, 5vw, 4.5rem); white-space: nowrap; font-stretch: var(--wider); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.35rem); letter-spacing: -0.01em; color: #b9bec7; transition: color 300ms; }
.rs-client:hover { color: var(--white); }
.rs-client img { --h: 30px; height: var(--h); width: auto; opacity: .72; transition: opacity 300ms; }
.rs-client:hover img { opacity: 1; }
/* Equilíbrio óptico: wordmarks largos menores, símbolos compactos maiores */
.rs-client[data-client="portobello"] img, .rs-client[data-client="magazine-luiza"] img, .rs-client[data-client="embraer"] img { --h: 22px; }
.rs-client[data-client="grupo-boticario"] img { --h: 32px; }
.rs-client[data-client="intelbras"] img, .rs-client[data-client="natura"] img, .rs-client[data-client="aurora-coop"] img { --h: 26px; }
.rs-client[data-client="itau-unibanco"] img, .rs-client[data-client="angeloni"] img, .rs-client[data-client="havan"] img, .rs-client[data-client="mercado-livre"] img { --h: 40px; }
.rs-client[data-client="nubank"] img, .rs-client[data-client="weg"] img, .rs-client[data-client="ifood"] img { --h: 34px; }

/* Tecnologias */
.rs-tech { border-top: 1px solid var(--line); }
.rs-tech .rs-h2 { max-width: 22ch; }
.rs-tech__grid { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 2.2rem 1.5rem; grid-template-columns: 1fr; }
.rs-tech__list { list-style: none; margin-top: 1rem; border-top: 1px solid var(--line-2); }
.rs-tech__list li { display: flex; align-items: center; gap: .8rem; padding: .78rem .2rem; border-bottom: 1px solid var(--line); font-weight: 500; transition: color 200ms, padding 300ms var(--ease-out); }
.rs-tech__list li:hover { padding-left: .6rem; }
.rs-tech__list img { width: 20px; height: 20px; filter: invert(.9); opacity: .9; }
.rs-tech__mark { width: 20px; height: 20px; display: grid; place-items: center; }
.rs-tech__mark::before { content: ""; width: 8px; height: 8px; border: 1.5px solid var(--muted); transform: rotate(45deg); }

/* Processo: linha do tempo vertical, sem prender a rolagem */
.rs-process { border-top: 1px solid var(--line); }
.rs-process__grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.rs-process__list { --pp: 0; list-style: none; position: relative; display: grid; padding-left: 2.2rem; }
.rs-process__list::before, .rs-process__list::after { content: ""; position: absolute; left: 4px; top: .7rem; bottom: .7rem; width: 1px; background: var(--line-2); }
.rs-process__list::after { background: var(--white); transform-origin: top; transform: scaleY(var(--pp)); box-shadow: 0 0 10px rgba(255, 255, 255, 0.6); }
.rs-step { position: relative; display: grid; gap: .5rem; padding: 1.4rem 0 2.2rem; opacity: .45; transition: opacity 400ms var(--ease-out); }
.rs-step::before { content: ""; position: absolute; left: calc(-2.2rem + 0px); top: 1.95rem; width: 9px; height: 9px; border: 1px solid var(--dim); background: var(--bg); transform: rotate(45deg); transition: background-color 300ms, border-color 300ms; z-index: 1; }
.rs-step.is-active { opacity: 1; }
.rs-step.is-active::before { background: var(--white); border-color: var(--white); }
.rs-step__name { font-stretch: var(--wide); font-weight: 600; font-size: var(--fs-3); letter-spacing: -0.02em; }
.rs-step p { color: var(--muted); max-width: 48ch; }
.rs-step .rs-step__out { color: var(--text); display: flex; flex-wrap: wrap; align-items: baseline; gap: .7rem; margin-top: .2rem; }
.rs-step__out span { font-stretch: var(--wider); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }

/* Contato */
.rs-contact { border-top: 1px solid var(--line); overflow: hidden; }
.rs-contact::before { content: ""; position: absolute; left: 50%; bottom: -30%; width: 90vw; height: 70%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 255, 255, 0.06), transparent); pointer-events: none; }
.rs-contact__inner { position: relative; display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.rs-next { list-style: none; counter-reset: n; display: grid; gap: 1rem; margin-top: 2.2rem; }
.rs-next li { counter-increment: n; display: grid; grid-template-columns: 2rem 1fr; column-gap: .8rem; }
.rs-next li::before { content: counter(n); grid-row: span 2; font-stretch: var(--wider); font-size: .8rem; color: var(--dim); padding-top: .2rem; }
.rs-next strong { font-weight: 600; }
.rs-next span { color: var(--muted); font-size: .96rem; }
.rs-contact__direct { margin-top: 2.2rem; display: grid; gap: 1.1rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.rs-contact__direct dt { font-stretch: var(--wider); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.rs-contact__direct dd { margin-top: .2rem; font-size: 1.12rem; font-weight: 500; }
.rs-contact__direct a { border-bottom: 1px solid var(--line-2); transition: border-color 200ms; }
.rs-contact__direct a:hover { border-color: var(--white); }

.rs-contact__form { padding: clamp(1.5rem, 3.5vw, 2.5rem); border-radius: 20px; background: rgba(19, 21, 26, 0.88); border: 1px solid var(--line-2); }
.form__grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.form__group { display: grid; gap: .45rem; align-content: start; }
.form__label { font-size: .9rem; font-weight: 500; color: var(--text); }
.form__input, .form__select, .form__textarea {
    width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; color: var(--text);
    font: inherit; font-size: 1rem; padding: .85rem 1rem; transition: border-color 200ms, box-shadow 200ms, background-color 200ms;
}
.form__input::placeholder, .form__textarea::placeholder { color: var(--dim); }
.form__input:hover, .form__select:hover, .form__textarea:hover { border-color: rgba(255, 255, 255, 0.24); }
.form__input:focus, .form__select:focus, .form__textarea:focus { outline: none; border-color: var(--white); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1); background: var(--surface); }
.form__textarea { min-height: 9rem; resize: vertical; }
.form__select-wrapper { position: relative; }
.form__select { appearance: none; padding-right: 2.5rem; cursor: pointer; }
.form__select option { background: var(--surface); color: var(--text); }
.form__select-wrapper::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.form__input.is-valid, .form__select.is-valid, .form__textarea.is-valid { border-color: rgba(63, 208, 138, 0.55); }
.form__input.is-invalid, .form__select.is-invalid, .form__textarea.is-invalid { border-color: var(--color-error); }
.form__select.is-prefilled { border-color: var(--white); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08); }
.form__error { min-height: 1.1em; font-size: .84rem; color: var(--color-error); }
.form__meta { display: flex; justify-content: space-between; gap: 1rem; }
.form__counter { font-size: .8rem; color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.form__counter.is-near-limit { color: #ffb86b; }
.form__counter.is-at-limit { color: var(--color-error); }
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { display: none; padding: .9rem 1.1rem; border-radius: 12px; font-size: .94rem; }
.form__status.is-visible { display: block; }
.form__status--success { background: rgba(63, 208, 138, 0.1); border: 1px solid rgba(63, 208, 138, 0.35); color: #9ff0c6; }
.form__status--error { background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.35); color: #ffb3b3; }
.form__actions { display: grid; gap: 1rem; justify-items: start; }
.form__privacy { font-size: .86rem; color: var(--dim); }
.form__privacy a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.btn--loading span::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: .6rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rs-spin .7s linear infinite; vertical-align: -1px; }
@keyframes rs-spin { to { transform: rotate(360deg); } }

/* Chatbot: grafite discreto; o coral só aparece quando ele abre */
.rs .chatbot__fab { width: 52px; height: 52px; background: #1b1e24; color: var(--white); border: 1px solid var(--line-2); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55); }
.rs .chatbot__fab:hover { transform: translateY(-2px); background: #23272e; }
.rs .chatbot.is-open .chatbot__fab { background: var(--accent); color: var(--bg); border-color: transparent; }

/* ──────────────── Rodapé ──────────────── */
.rs-footer { background: var(--bg); border-top: 1px solid var(--line); padding: clamp(4rem, 8vw, 6rem) 0 2rem; overflow: hidden; }
.rs-footer__top { display: grid; gap: 2.5rem; }
.rs-footer__claim { font-stretch: var(--wide); font-weight: 600; font-size: var(--fs-3); letter-spacing: -0.02em; line-height: 1.2; }
.rs-footer__nav { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; color: var(--muted); }
.rs-footer__nav a:hover { color: var(--text); }
.rs-footer__wordmark { display: block; width: 100%; height: auto; margin: clamp(3rem, 8vw, 6rem) 0 2rem; opacity: .92; }
.rs-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--dim); font-size: .88rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.rs-footer__legal { display: flex; gap: 1.5rem; }
.rs-footer__legal a:hover { color: var(--text); }

/* ──────────────── Responsivo ──────────────── */
@media (max-width: 899px) {
    /* No celular o cubo ocupa o meio: título no topo, texto e botões embaixo */
    .rs-hero { align-items: stretch; padding-top: calc(var(--header-h) + 2rem); padding-bottom: 2rem; }
    .rs-hero__inner { display: flex; flex-direction: column; gap: 1.1rem; min-height: calc(100svh - var(--header-h) - 4rem); }
    .rs-hero__lead { margin-top: auto; }
    .rs-hero__stage { top: 30%; bottom: auto; height: 38%; }
    .rs-layers { height: 240vh; }
    .rs-layers__title { top: calc(var(--header-h) + 1rem); }
    .rs-leaders { display: none; }
    .rs-layers__list { position: absolute; left: 0; right: 0; top: auto; bottom: 1.5rem; width: auto; transform: none; display: grid; gap: .9rem; }
    .rs-label { position: relative; width: auto; padding-left: 1rem; margin: 0; opacity: .45; transform: none !important; }
    .rs-label::before { display: block; position: absolute; left: 0; top: .2rem; width: 2px; height: calc(100% - .4rem); background: var(--line-2); }
    .rs-label__text { max-height: none; opacity: 1; margin-top: .2rem; }
    .rs-label.is-shown { opacity: .55; }
    .rs-label.is-active { opacity: 1; }
    .rs-label.is-active::before { background: var(--white); }
    .rs-label--core.is-active::before { background: var(--accent); }
    .rs-label__name { font-size: 1.1rem; }
    .rs-label__text { font-size: .88rem; }
    .rs-chips { display: none; }
    .rs-layers__outro { display: none; }
    .rs-hero__hint { display: none; }
}

/* Celular deitado: tela baixa demais para empilhar; texto à esquerda, cubo à direita */
@media (max-width: 899px) and (orientation: landscape) {
    .rs-hero { align-items: center; padding-top: calc(var(--header-h) + .5rem); padding-bottom: 1rem; min-height: 100svh; }
    .rs-hero__inner { display: grid; min-height: 0; gap: .8rem; max-width: 52%; margin-inline: var(--gutter) auto; width: auto; }
    .rs-hero__title { font-size: clamp(1.6rem, 4.6vw, 2.4rem); }
    .rs-hero__lead { margin-top: 0; font-size: .95rem; }
    .rs-hero__stage { top: 0; bottom: 0; height: 100%; width: 48%; }
    .rs-layers__title { font-size: 1.2rem; max-width: none; }
    .rs-layers__list { left: 52%; right: 0; top: calc(var(--header-h) + 4.2rem); bottom: auto; width: auto; transform: none; gap: .6rem; }
    .rs-label__text { display: none; }
    .rs-label.is-current .rs-label__text { display: block; }
}

@media (min-width: 768px) {
    .form__grid { grid-template-columns: 1fr 1fr; }
    .form__grid--full { grid-column: 1 / -1; }
    .form__actions { grid-template-columns: auto 1fr; align-items: center; gap: 1.5rem; }
    .rs-bento { grid-template-columns: 1fr 1fr; }
    .rs-cell--erp, .rs-cell--integ { grid-column: 1 / -1; }
    .rs-tech__grid { grid-template-columns: 1fr 1fr; }
    .rs-footer__top { grid-template-columns: 1.4fr 1fr; align-items: end; }
    .rs-footer__nav { justify-content: flex-end; }
}

@media (min-width: 900px) {
    .rs-hero__stage { width: 56%; height: 100%; }
}

@media (min-width: 1024px) {
    .rs-nav { display: flex; }
    .rs-header__cta { display: inline-flex; }
    .rs-toggle { display: none; }
    .rs-mobile-nav { display: none; }

    .rs-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rs-cell--erp { grid-column: span 2; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 2rem; }
    .rs-cell--erp .rs-art { width: min(100%, 280px); }
    .rs-cell--saas { grid-column: span 1; }
    .rs-cell--integ { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 2rem; }
    .rs-cell--integ .rs-art { width: min(100%, 340px); }
    .rs-cell--compact .rs-cell__body { height: 100%; }
    .rs-cell--compact .rs-cell__link { align-self: end; }
    .rs-tech__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    .rs-process__grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
    .rs-process__intro { position: sticky; top: calc(var(--header-h) + 3rem); }

    .rs-contact__inner { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
    .rs-contact__info { position: sticky; top: calc(var(--header-h) + 3rem); }
}

/* ──────────────── Movimento reduzido ──────────────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-split] .w > span, .rs-reveal { transform: none !important; opacity: 1 !important; transition: none !important; }
    .rs-layers { height: auto; }
    .rs-layers__sticky { position: relative; height: auto; overflow: visible; padding: 6rem 0; background: var(--bg); }
    .rs-layers__title { position: static; }
    .rs-leaders { display: none; }
    .rs-layers__list { position: static; display: grid; gap: 1.5rem; margin-top: 2.5rem; width: auto; transform: none; }
    .rs-label__text { max-height: none; opacity: 1; margin-top: .35rem; }
    .rs-label { position: relative; opacity: 1 !important; transform: none !important; width: auto; margin: 0; padding-left: 1rem; }
    .rs-label::before { display: block; position: absolute; left: 0; top: .2rem; width: 2px; height: calc(100% - .4rem); background: var(--line-2); }
    .rs-chips { display: flex; max-height: none; opacity: 1; }
    .rs-layers__outro { position: static; opacity: 1; transform: none; margin-top: 2rem; display: block; }
    .rs-marquee { -webkit-mask-image: none; mask-image: none; }
    .rs-marquee__track { transform: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: .5rem; }
    .rs-client[aria-hidden="true"] { display: none; }
    .rs-step { opacity: 1; }
    .rs-art__brick, .rs-art__plate { transition: none !important; }
    .rs-cell:hover .rs-art__dot { animation: none; opacity: 1; }
}
