/* Weltron: estilos do site */

:root {
  --bg: #ffffff;
  --bg-gray: #f6f7fb;
  --ink: #0b1220;
  --text: #1f2937;
  --muted: #64748b;
  --border: #e6e8ef;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eef3ff;
  --green: #16a34a;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius: 14px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 30px 80px -20px rgba(15, 23, 42, .25);
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; overflow-x: clip; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { line-height: 1.15; color: var(--ink); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; font-weight: 800; }
h3 { font-size: 1.1rem; margin-bottom: 8px; letter-spacing: -.01em; }
p { color: var(--muted); }
p + p { margin-top: 12px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(780px, 100% - 32px); }

/* Ícones */
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico--sm { width: 16px; height: 16px; }
.ico--xs { width: 12px; height: 12px; }

.ibox {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary);
  flex-shrink: 0;
  transition: transform .4s var(--ease), background-color .3s, color .3s;
}
.ibox--lg { width: 56px; height: 56px; border-radius: 16px; }
.ibox--lg .ico { width: 28px; height: 28px; }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary);
}

/* Botões */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600; font-size: .95rem;
  cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 20px -6px rgba(37, 99, 235, .6); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(37, 99, 235, .65); }
.btn--ghost { background: #fff; border-color: var(--border); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--lg { padding: 15px 26px; font-size: 1rem; }

/* Cabeçalho */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: height .3s var(--ease), border-color .3s, background-color .3s;
}
.header.is-scrolled { height: 62px; border-color: var(--border); background: rgba(255, 255, 255, .88); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.header__progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--primary); transform-origin: 0 50%; transform: scaleX(0); }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -.02em; }
.logo img { height: 34px; width: auto; transition: transform .5s var(--ease); }
.logo:hover img { transform: rotate(-8deg) scale(1.05); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { position: relative; color: var(--text); font-weight: 500; font-size: .93rem; padding: 4px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:not(.btn):hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav a:not(.btn):hover, .nav a.is-current { color: var(--ink); }

.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; width: 18px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.menu-btn span:nth-child(1) { top: 14px; }
.menu-btn span:nth-child(2) { top: 20px; }
.menu-btn span:nth-child(3) { top: 26px; }
.menu-btn.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Animações de entrada */
[data-anim] { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
[data-anim="up"] { transform: translateY(28px); }
[data-anim="left"] { transform: translateX(-36px); }
[data-anim="right"] { transform: translateX(36px); }
[data-anim="zoom"] { transform: translateY(40px) scale(.96); }
[data-anim].is-in { opacity: 1; transform: none; }

/* Introdução */
.hero { position: relative; background: #fff; }
.hero__head { position: relative; text-align: center; max-width: 960px; }

@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }

.hero h1 { max-width: 960px; margin-inline: auto; font-size: clamp(2.4rem, 7vw, 5.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin-bottom: 22px; }
.rotator { position: relative; display: block; margin: .04em auto 0; height: 1.22em; text-align: left; color: var(--primary); clip-path: inset(0 -2em); transition: width .6s var(--ease); }
.rotator__word { position: absolute; left: 0; top: 0; white-space: nowrap; transform: translateY(110%); opacity: 0; transition: transform .7s var(--ease), opacity .5s; }
.rotator__word.is-active { transform: none; opacity: 1; }
.rotator__word.is-out { transform: translateY(-110%); opacity: 0; }

.hero__sub { font-size: clamp(1.05rem, 1.7vw, 1.3rem); max-width: 680px; margin: 0 auto 38px; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Vitrine */
.scroll-cue { position: absolute; left: 50%; bottom: 32px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid #cbd5e1; border-radius: 14px; transition: border-color .3s; }
.scroll-cue:hover { border-color: var(--primary); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--primary); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* Telas cheias */
.screen { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 32px) 0 48px; }
.screen > .container { width: min(1180px, 100% - 32px); }
.screen > .container--narrow { width: min(780px, 100% - 32px); }

.screen.models { padding: calc(var(--header-h) + 16px) 0 16px; }
.showcase { position: relative; display: flex; flex-direction: column; height: calc(100svh - var(--header-h) - 32px); min-height: 480px; max-height: 900px; }
.showcase__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.showcase__head .eyebrow { margin-bottom: 6px; }
.showcase__head h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.showcase__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; flex-shrink: 0; }
.tab {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .6); border: 1px solid var(--border);
  cursor: pointer; color: var(--muted);
  transition: background-color .3s, border-color .3s, color .3s, transform .3s var(--ease), box-shadow .3s;
}
.tab:hover { background: #fff; transform: translateY(-2px); }
.tab strong { display: block; color: var(--ink); font-size: .95rem; }
.tab small { font-size: .8rem; }
.tab .ico { width: 26px; height: 26px; transition: color .3s; }
.tab.is-active { background: #fff; border-color: #c7d6fb; box-shadow: var(--shadow); }
.tab.is-active .ico { color: var(--primary); }
.tab__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--primary); transform-origin: 0 50%; transform: scaleX(0); }

.stage {
  position: relative; flex: 1; min-height: 380px;
  border-radius: 22px; background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.panel { position: absolute; inset: 0; padding: 28px; opacity: 0; visibility: hidden; transform: translateY(16px) scale(.99); transition: opacity .6s var(--ease), transform .7s var(--ease), visibility 0s .6s; }
.panel[hidden] { display: block; }
.panel.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.showcase__note { max-width: 340px; text-align: right; font-size: .82rem; }

/* Modelo: site */
.panel--site { background: #f1f5f9; }
.browser { position: absolute; left: 28px; top: 28px; bottom: 28px; right: 160px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px -20px rgba(15, 23, 42, .35); border: 1px solid #e2e8f0; display: flex; flex-direction: column; }
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.browser__bar > i { width: 11px; height: 11px; border-radius: 50%; background: #e2e8f0; }
.browser__bar > i:nth-child(1) { background: #f87171; }
.browser__bar > i:nth-child(2) { background: #fbbf24; }
.browser__bar > i:nth-child(3) { background: #34d399; }
.browser__url { flex: 1; max-width: 360px; margin-left: 16px; display: flex; align-items: center; gap: 6px; padding: 5px 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.browser__url .ico { color: var(--green); }
.typed::after { content: "|"; margin-left: 1px; animation: blink 1s steps(1) infinite; color: var(--primary); }
@keyframes blink { 50% { opacity: 0; } }
.browser__view { position: relative; flex: 1; overflow: hidden; }

.site { --teal: #0d9488; padding: 0 0 30px; }
.panel.is-active .site:not(.site--m) { animation: siteScroll 11s var(--ease) 1.2s infinite; }
@keyframes siteScroll { 0%, 22% { transform: translateY(0); } 45%, 62% { transform: translateY(-46%); } 85%, 100% { transform: translateY(0); } }
.site__nav { display: flex; align-items: center; gap: 22px; padding: 16px 28px; font-size: .78rem; color: #475569; border-bottom: 1px solid #f1f5f9; }
.site__nav b { display: flex; align-items: center; gap: 8px; margin-right: auto; color: #0f172a; font-size: .9rem; }
.site__logo { width: 20px; height: 20px; border-radius: 6px; background: var(--teal); }
.site__btn { display: inline-block; font-style: normal; padding: 9px 16px; border-radius: 8px; background: var(--teal); color: #fff; font-size: .78rem; font-weight: 600; }
.site__btn--sm { padding: 6px 12px; font-size: .72rem; }
.site__btn--light { background: #fff; color: var(--teal); }
.site__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; padding: 34px 28px 26px; }
.site__copy small { display: block; color: var(--teal); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.site__copy h4 { font-size: clamp(1.1rem, 2.2vw, 1.75rem); letter-spacing: -.03em; margin-bottom: 10px; }
.site__copy p { font-size: .82rem; margin-bottom: 16px; }
.panel.is-active .site__copy > * { animation: rise .8s var(--ease) both; }
.panel.is-active .site__copy > :nth-child(2) { animation-delay: .1s; }
.panel.is-active .site__copy > :nth-child(3) { animation-delay: .2s; }
.panel.is-active .site__copy > :nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
#siteCta { transition: transform .2s; }
.panel.is-active #siteCta { animation: rise .8s var(--ease) .3s both, press 11s 1.2s infinite; }
@keyframes press { 0%, 14% { transform: scale(1); box-shadow: none; } 16% { transform: scale(.94); box-shadow: 0 0 0 6px rgba(13, 148, 136, .25); } 19%, 100% { transform: scale(1); box-shadow: none; } }
.site__art svg { width: 100%; }
.panel.is-active .site__art { animation: rise 1s var(--ease) .2s both; }
.float-a { animation: bob 3s ease-in-out infinite; }
.float-b { animation: bob 3.6s ease-in-out infinite reverse; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.site__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 6px 28px 24px; }
.site__cards--2 { grid-template-columns: repeat(4, 1fr); padding-top: 24px; }
.site__cards > div { padding: 14px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: .75rem; }
.site__cards i { display: block; width: 26px; height: 26px; border-radius: 8px; background: #ccfbf1; margin-bottom: 10px; }
.site__cards--2 i { width: 100%; height: 56px; background: #e2e8f0; }
.site__cards b { display: block; color: #0f172a; margin-bottom: 8px; }
.site__cards span { display: block; height: 6px; border-radius: 3px; background: #f1f5f9; margin-top: 5px; }
.site__cards span + span { width: 70%; }
.site__band { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 28px; padding: 22px 24px; border-radius: 12px; background: var(--teal); color: #fff; font-size: .9rem; }

.cursor { position: absolute; width: 22px; height: 22px; left: 0; top: 0; z-index: 3; opacity: 0; }
.panel.is-active .cursor { animation: cursorMove 11s var(--ease) 1.2s infinite; }
@keyframes cursorMove {
  0% { opacity: 0; transform: translate(70%, 340px); }
  5% { opacity: 1; }
  13% { transform: translate(110px, 248px); }
  16% { transform: translate(110px, 248px) scale(.85); }
  19% { transform: translate(110px, 248px); }
  40% { transform: translate(420px, 200px); }
  62% { transform: translate(260px, 160px); }
  80% { opacity: 1; }
  90%, 100% { opacity: 0; transform: translate(60%, 300px); }
}

.phone { position: absolute; right: 36px; bottom: 28px; width: 200px; height: 400px; padding: 10px; border-radius: 32px; background: #0f172a; box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .5); }
.panel.is-active .phone { animation: phoneIn 1s var(--ease) .4s both; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(40px) rotate(4deg); } to { opacity: 1; transform: none; } }
.phone__notch { position: absolute; top: 14px; left: 50%; width: 60px; height: 16px; margin-left: -30px; border-radius: 10px; background: #0f172a; z-index: 2; }
.phone__screen { height: 100%; border-radius: 24px; background: #fff; overflow: hidden; }
.site--m { padding-top: 26px; }
.site--m .site__nav { padding: 10px 14px; }
.site--m .site__nav b { font-size: .72rem; }
.burger { width: 16px; height: 10px; border-top: 2px solid #334155; border-bottom: 2px solid #334155; }
.site--m .site__copy { padding: 18px 14px; }
.site--m .site__copy h4 { font-size: 1.05rem; }
.site--m .site__btn { font-size: .68rem; padding: 7px 12px; }
.site--m .site__cards { grid-template-columns: 1fr; padding: 0 14px; gap: 10px; }
.panel.is-active .site--m .site__cards > div { animation: rise .8s var(--ease) both; animation-delay: .9s; }
.panel.is-active .site--m .site__cards > div + div { animation-delay: 1.05s; }

.badge { position: absolute; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: .82rem; font-weight: 600; color: var(--ink); }
.badge .ico { color: var(--green); }
.badge--a { right: 190px; top: 70px; }
.badge--b { right: 12px; top: 40px; }
.badge--b .ico { color: var(--primary); }
.panel.is-active .badge--a { animation: pop .7s var(--ease) 1s both, bob 4s ease-in-out 1.7s infinite; }
.panel.is-active .badge--b { animation: pop .7s var(--ease) 1.3s both, bob 4.4s ease-in-out 2s infinite; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.9); } to { opacity: 1; transform: none; } }

/* Modelo: sistema */
.panel--sys { padding: 0; background: #f8fafc; }
.app { display: flex; height: 100%; }
.app__side { width: 68px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 0; background: #0f172a; }
.app__logo { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 10px; background: var(--primary); color: #fff; font-weight: 800; }
.app__side i { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.app__side i.is-on { background: rgba(37, 99, 235, .35); box-shadow: inset 3px 0 0 #60a5fa; }
.app__main { flex: 1; min-width: 0; padding: 22px 26px; display: flex; flex-direction: column; gap: 18px; }
.app__top { display: flex; align-items: center; gap: 18px; }
.app__top b { display: block; color: var(--ink); font-size: 1.05rem; }
.app__top small { font-size: .78rem; color: var(--muted); }
.app__search { flex: 1; max-width: 340px; margin-left: auto; padding: 9px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--border); font-size: .8rem; color: #94a3b8; }
.app__avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: .78rem; font-weight: 700; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { position: relative; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.kpi small { display: block; font-size: .75rem; color: var(--muted); }
.kpi b { display: block; font-size: 1.45rem; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi em { position: absolute; right: 14px; top: 14px; font-style: normal; font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.up { color: var(--green); background: #dcfce7; }
.down { color: #b45309; background: #fef3c7; }
.panel.is-active .kpi { animation: rise .7s var(--ease) both; }
.panel.is-active .kpi:nth-child(2) { animation-delay: .08s; }
.panel.is-active .kpi:nth-child(3) { animation-delay: .16s; }
.panel.is-active .kpi:nth-child(4) { animation-delay: .24s; }

.app__grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr auto; gap: 14px; }
.box { padding: 16px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.box--wide { grid-column: 1 / -1; }
.box__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.box__head b { font-size: .88rem; color: var(--ink); }
.box__head small { font-size: .72rem; color: var(--muted); }

.bars { flex: 1; display: flex; align-items: flex-end; gap: 10px; padding-bottom: 20px; min-height: 120px; }
.bars span { position: relative; flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: #c7d6fb; transform-origin: bottom; transform: scaleY(0); }
.bars span.is-hi { background: var(--primary); }
.bars i { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); font-style: normal; font-size: .66rem; color: var(--muted); }
.panel.is-active .bars span { animation: grow 1s var(--ease) both; }
.panel.is-active .bars span:nth-child(2) { animation-delay: .07s; }
.panel.is-active .bars span:nth-child(3) { animation-delay: .14s; }
.panel.is-active .bars span:nth-child(4) { animation-delay: .21s; }
.panel.is-active .bars span:nth-child(5) { animation-delay: .28s; }
.panel.is-active .bars span:nth-child(6) { animation-delay: .35s; }
.panel.is-active .bars span:nth-child(7) { animation-delay: .42s; }
@keyframes grow { to { transform: scaleY(1); } }

.orders li { display: grid; grid-template-columns: 52px 1fr auto 64px; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f1f5f9; font-size: .78rem; }
.orders li:last-child { border-bottom: 0; }
.orders span { font-family: var(--mono); color: var(--muted); font-size: .72rem; }
.orders b { color: var(--ink); font-weight: 600; }
.orders strong { text-align: right; color: var(--ink); }
.st { font-style: normal; font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.st--ok { color: var(--green); background: #dcfce7; }
.st--wait { color: #b45309; background: #fef3c7; }
.st--ship { color: var(--primary); background: var(--primary-soft); }
.panel.is-active .orders li { animation: slideIn .6s var(--ease) both; }
.panel.is-active .orders li:nth-child(1) { animation-delay: .5s; }
.panel.is-active .orders li:nth-child(2) { animation-delay: .6s; }
.panel.is-active .orders li:nth-child(3) { animation-delay: .7s; }
.panel.is-active .orders li:nth-child(4) { animation-delay: .8s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

.line { width: 100%; height: 70px; }
.line__path { fill: none; stroke: var(--primary); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.line__area { fill: var(--primary); opacity: 0; }
.panel.is-active .line__path { animation: draw 2s var(--ease) .5s forwards; }
.panel.is-active .line__area { animation: fadeArea 1s ease 1.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeArea { to { opacity: .08; } }

.toast { position: absolute; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: #0f172a; color: #fff; box-shadow: var(--shadow-lg); opacity: 0; }
.toast b { display: block; font-size: .85rem; }
.toast small { font-size: .74rem; color: #94a3b8; }
.toast__ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); }
.panel.is-active .toast { animation: toast 7s var(--ease) 2.2s both; }
@keyframes toast { 0% { opacity: 0; transform: translateY(20px) scale(.95); } 8%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(10px); } }

/* Modelo: formatação e instalação */
.panel--hw { background: #f1f5f9; }
.setup { position: relative; display: grid; grid-template-columns: 240px 1fr 250px; gap: 20px; height: 100%; }

.setup__steps, .setup__apps { display: flex; flex-direction: column; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--border); min-height: 0; }
.setup__steps > b { color: var(--ink); font-size: .9rem; }
.setup__steps > small { color: var(--muted); font-size: .75rem; margin-bottom: 16px; }
.setup__steps ol { display: grid; gap: 4px; }
.setup__steps li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: .8rem; color: var(--muted); transition: background-color .3s, color .3s; }
.setup__steps li i { position: relative; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; border: 2px solid #cbd5e1; transition: background-color .3s, border-color .3s; }
.setup__steps li.is-run { background: var(--primary-soft); color: var(--ink); font-weight: 600; }
.setup__steps li.is-run i { border-color: var(--primary); border-top-color: transparent; animation: spin .8s linear infinite; }
.setup__steps li.is-done { color: var(--ink); }
.setup__steps li.is-done i { background: var(--green); border-color: var(--green); }
.setup__steps li.is-done i::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }

.setup__disk { margin-top: auto; padding-top: 14px; border-top: 1px solid #f1f5f9; }
.setup__disk small { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 8px; font-family: var(--mono); }
.disk { display: flex; height: 12px; border-radius: 6px; background: #e2e8f0; overflow: hidden; }
.disk span { height: 100%; transition: width .5s var(--ease); }
.disk__sys { width: 8%; background: var(--primary); }
.disk__data { width: 35%; background: #93c5fd; }
.disk__legend { display: flex; gap: 14px; margin-top: 8px; font-size: .7rem; color: var(--muted); }
.disk__legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }
.k-sys { background: var(--primary); }
.k-data { background: #93c5fd; }

.monitor { display: flex; flex-direction: column; align-items: center; min-height: 0; padding-bottom: 30px; }
.monitor__screen {
  position: relative; flex: 1; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 24px; border-radius: 14px;
  background: #0c2d6b; border: 10px solid #0f172a;
  color: #fff; box-shadow: 0 24px 50px -24px rgba(15, 23, 42, .6);
}
.monitor__stand { width: 34px; height: 22px; background: #cbd5e1; }
.monitor__stand::after { content: ""; display: block; width: 150px; height: 8px; margin: 22px 0 0 -58px; border-radius: 6px; background: #94a3b8; }
.monitor__screen h4 { color: #fff; font-size: clamp(1.05rem, 2vw, 1.45rem); font-weight: 600; letter-spacing: -.01em; margin-top: 22px; }
.monitor__screen p { color: #bcd0f5; font-size: .82rem; margin-top: 6px; }

.spinner { position: relative; width: 52px; height: 52px; transition: opacity .4s; }
.spinner i { position: absolute; inset: 0; animation: orbit 2.6s cubic-bezier(.5, .15, .35, .9) infinite; }
.spinner i::before { content: ""; position: absolute; top: 0; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #fff; }
.spinner i:nth-child(2) { animation-delay: .14s; }
.spinner i:nth-child(3) { animation-delay: .28s; }
.spinner i:nth-child(4) { animation-delay: .42s; }
.spinner i:nth-child(5) { animation-delay: .56s; }
@keyframes orbit { 0% { transform: rotate(0); opacity: 0; } 10% { opacity: 1; } 80% { transform: rotate(600deg); opacity: 1; } 90%, 100% { transform: rotate(720deg); opacity: 0; } }
.setup.is-done .spinner i { display: none; }
.spinner::before, .spinner::after { content: ""; position: absolute; opacity: 0; transition: opacity .4s, transform .5s var(--ease); }
.spinner::before { inset: 0; border-radius: 50%; background: var(--green); transform: scale(.4); }
.spinner::after { left: 19px; top: 11px; width: 12px; height: 24px; border: solid #fff; border-width: 0 4px 4px 0; transform: rotate(45deg) scale(.4); }
.setup.is-done .spinner::before { opacity: 1; transform: none; }
.setup.is-done .spinner::after { opacity: 1; transform: rotate(45deg); }

.setup__bar { width: min(340px, 85%); height: 6px; margin-top: 22px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.setup__bar span { display: block; height: 100%; width: 0; background: #fff; border-radius: 3px; }
.setup__pct { margin-top: 10px; font-size: .8rem; font-weight: 500; color: #dbe6ff; font-variant-numeric: tabular-nums; }
.setup__sub { margin-top: 18px; display: grid; gap: 4px; text-align: left; font-size: .76rem; color: rgba(255, 255, 255, .45); }
.setup__sub li { padding-left: 20px; position: relative; transition: color .3s; }
.setup__sub li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.setup__sub li.is-run { color: #fff; font-weight: 600; }
.setup__sub li.is-run::before { background: #fff; animation: led .8s steps(2) infinite; }
.setup__sub li.is-done { color: #a7f3d0; }
.setup__sub li.is-done::before { left: 3px; top: 3px; width: 4px; height: 8px; border-radius: 0; background: none; border: solid #4ade80; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes led { 50% { opacity: .25; } }

.setup__apps ul { display: grid; gap: 12px; }
.setup__apps li { display: flex; align-items: center; gap: 10px; }
.app-ico { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; background: var(--c); color: #fff; font-size: .78rem; font-weight: 700; }
.setup__apps li > div { flex: 1; min-width: 0; }
.setup__apps li b { display: block; font-size: .78rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.setup__apps li i { display: block; height: 4px; margin-top: 5px; border-radius: 2px; background: #eef2f7; overflow: hidden; }
.setup__apps li s { display: block; height: 100%; width: 0; background: var(--primary); }
.setup__apps li.is-done s { background: var(--green); }
.setup__apps em { width: 34px; text-align: right; font-style: normal; font-size: .7rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.setup__apps li.is-done em { color: var(--green); }
.panel.is-active .setup__apps li { animation: slideIn .6s var(--ease) both; }
.panel.is-active .setup__apps li:nth-child(2) { animation-delay: .08s; }
.panel.is-active .setup__apps li:nth-child(3) { animation-delay: .16s; }
.panel.is-active .setup__apps li:nth-child(4) { animation-delay: .24s; }
.panel.is-active .setup__apps li:nth-child(5) { animation-delay: .32s; }
.setup__done { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 10px; background: #dcfce7; color: var(--green); font-size: .82rem; font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.setup.is-done .setup__done { opacity: 1; transform: none; }

/* Seções */
.section:not(.screen) { padding: 110px 0; }
.section--gray { background: var(--bg-gray); }
.section__head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section__head p { font-size: 1.08rem; }

/* Serviços */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc {
  position: relative; overflow: hidden;
  padding: 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.svc::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #d6def0; }
.svc:hover::before { transform: scaleX(1); }
.svc:hover .ibox { transform: rotate(-8deg) scale(1.08); background: var(--primary); color: #fff; }
.svc .ibox { margin-bottom: 16px; }
.svc p { font-size: .9rem; }
.svc--feature { display: flex; flex-direction: column; background: var(--ink); border-color: var(--ink); }
.svc--feature h3 { color: #fff; }
.svc--feature p { color: #94a3b8; }
.svc--feature .ibox { background: rgba(255, 255, 255, .08); color: #93b4ff; }
.svc--feature::before { background: #60a5fa; }
.link { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; color: #93b4ff; font-weight: 600; }
.link .ico { transition: transform .3s var(--ease); }
.link:hover .ico { transform: translateX(5px); }

/* Processo */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps::before, .steps::after { content: ""; position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 2px; background: var(--border); }
.steps::after { background: var(--primary); transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease) .3s; }
.steps.is-on::after { transform: scaleX(1); }
.steps li { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.step__n { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%; background: #fff; border: 2px solid var(--border); font-family: var(--mono); font-weight: 500; color: var(--muted); transition: background-color .4s, border-color .4s, color .4s, transform .4s var(--ease); }
.steps.is-on .step__n { transition-delay: calc(var(--i) * .5s + .2s); }
.steps.is-on .step__n { background: var(--primary); border-color: var(--primary); color: #fff; transform: scale(1.06); }
.steps p { font-size: .95rem; }

/* Quem somos */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.about__text p { font-size: 1.02rem; }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.member { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: border-color .3s, transform .3s var(--ease); }
.member:hover { border-color: var(--primary); transform: translateY(-3px); }
.member h3 { font-size: .95rem; margin-bottom: 0; }
.member small { display: block; color: var(--muted); font-size: .8rem; }
.member a { font-size: .85rem; font-weight: 500; }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; }
.mvv { display: grid; gap: 16px; }
.mvv article { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--bg-gray); border: 1px solid var(--border); transition: background-color .3s, transform .4s var(--ease), box-shadow .4s; }
.mvv article:hover { background: #fff; transform: translateX(-6px); box-shadow: var(--shadow); }
.mvv h3 { margin-bottom: 4px; }
.mvv p { font-size: .95rem; }

/* Dúvidas */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: #fff; transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: #c7d6fb; box-shadow: var(--shadow); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 14px; height: 2px; background: var(--primary); transition: transform .35s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq__a { padding: 0 22px 20px; }
.faq details[open] .faq__a { animation: rise .45s var(--ease); }

/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact__list { margin-top: 32px; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; }
.contact__list strong { display: block; color: var(--ink); margin-bottom: 2px; }
.contact__list a, .contact__list span:not(.ibox) { display: block; color: var(--muted); }
.contact__list a:hover { color: var(--primary); }

.form { display: grid; gap: 16px; padding: 32px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-gray); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.form__msg { font-size: .9rem; min-height: 1.4em; }
.form__msg.is-error { color: #dc2626; }
.form__msg.is-ok { color: var(--green); }

/* Rodapé */
.footer { padding: 72px 0 0; background: var(--ink); color: #94a3b8; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer p { color: #94a3b8; max-width: 300px; }
.footer h4 { color: #fff; font-size: .9rem; margin-bottom: 14px; }
.footer__grid a, .footer__grid > div > span { display: block; color: #94a3b8; font-size: .92rem; padding: 4px 0; transition: color .2s, transform .3s var(--ease); }
.footer__grid a:hover { color: #fff; transform: translateX(4px); }
.footer__bottom { padding: 22px 0; border-top: 1px solid #1e293b; font-size: .85rem; }

/* Responsivo */
@media (max-width: 1080px) {
  .browser { right: 28px; }
  .phone, .badge--a { display: none; }
  .badge--b { right: 44px; top: auto; bottom: 44px; }
  .setup { grid-template-columns: 220px 1fr; }
  .setup__apps { display: none; }
}

@media (max-width: 900px) {
  .services { grid-template-columns: 1fr 1fr; }
  .about, .contact { grid-template-columns: 1fr; gap: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px; background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .header.is-scrolled .nav { top: 62px; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
  .menu-btn { display: block; }

  .hero__actions .btn { flex: 1 1 100%; }
  .hero h1 br { display: none; }
  [data-anim="left"], [data-anim="right"] { transform: translateY(28px); }
  .showcase { height: calc(100svh - var(--header-h) - 32px); min-height: 560px; max-height: none; }
  .showcase__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .showcase__note { text-align: left; }
  .showcase__tabs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tab { flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; text-align: center; }
  .tab small { display: none; }
  .tab strong { font-size: .76rem; line-height: 1.25; }

  .stage { flex: 1; min-height: 0; border-radius: 18px; }
  .panel { padding: 14px; }
  .browser { left: 14px; right: 14px; top: 14px; bottom: 14px; }
  .browser__url { margin-left: 8px; }
  .site__nav > span { display: none; }
  .site__nav { padding: 12px 16px; }
  .site__hero { grid-template-columns: 1fr; padding: 22px 16px; }
  .site__art { display: none; }
  .site__cards { grid-template-columns: 1fr 1fr; padding: 6px 16px 18px; }
  .site__cards > div:nth-child(3) { display: none; }
  .site__cards--2 > div:nth-child(n+3) { display: none; }
  .site__band { margin: 0 16px; flex-direction: column; align-items: flex-start; }
  .badge--b { right: 24px; bottom: 24px; }
  .cursor { display: none; }

  .app__side, .app__search { display: none; }
  .app__main { padding: 14px; gap: 12px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { padding: 10px 12px; }
  .kpi b { font-size: 1.1rem; }
  .app__grid { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .app__grid .box:nth-child(2), .box--wide { display: none; }
  .kpi em { display: none; }
  .bars { min-height: 90px; }
  .toast { left: 14px; right: 14px; bottom: 14px; }

  .setup { grid-template-columns: 1fr; }
  .setup__steps, .setup__apps { display: none; }
  .monitor { padding-bottom: 22px; }
  .monitor__screen { padding: 18px 14px; border-width: 8px; }
  .monitor__stand { height: 14px; }
  .monitor__stand::after { width: 120px; margin: 14px 0 0 -43px; }

  .screen { padding: calc(var(--header-h) + 24px) 0 40px; }
  .screen.models { padding: calc(var(--header-h) + 16px) 0 16px; }
  .section__head { margin-bottom: 40px; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .team, .form__row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Telas baixas (notebooks 1366x768) */
@media (max-height: 960px) and (min-width: 761px) {
  .screen:not(.models) { padding: calc(var(--header-h) + 16px) 0 24px; }
  .section__head { margin-bottom: 30px; }
  .section__head p { font-size: 1rem; }
  h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
  .svc { padding: 20px; }
  .svc .ibox { width: 40px; height: 40px; margin-bottom: 12px; }
  .svc p { font-size: .86rem; }
  .mvv article { padding: 18px; }
  .faq summary { padding: 16px 52px 16px 20px; }
}

@media (max-height: 820px) and (min-width: 761px) {
  .tab { padding: 10px 14px; }
  .tab small { display: none; }
  .showcase__head { margin-bottom: 12px; }
  .box--wide, .setup__disk { display: none; }
  .app__grid { grid-template-rows: 1fr; }
  .site__band, .site__cards--2 { display: none; }
  .svc h3 { font-size: 1rem; }
  .services { gap: 12px; }
  .svc { padding: 16px 18px; }
  .svc .ibox { width: 34px; height: 34px; margin-bottom: 10px; }
  .svc .ibox .ico { width: 18px; height: 18px; }
  .svc p { font-size: .82rem; line-height: 1.5; }
  .section__head { margin-bottom: 22px; }
  .section__head .eyebrow { margin-bottom: 6px; }
  .orders li:nth-child(n+4) { display: none; }
  .monitor { padding-bottom: 20px; }
  .monitor__stand { height: 12px; }
  .monitor__stand::after { margin-top: 12px; }
  .about__text p { font-size: .95rem; }
  .team { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-anim] { opacity: 1; transform: none; }
}
