/* ============================================================
   Onihub — site de marketing
   Light-first · Instrument Sans · teal petróleo · anéis discretos
   ============================================================ */

body { background: var(--surface-page); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 32px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface-page) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-subtle); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.lockup { display: flex; align-items: center; gap: 9px; }
.lockup b { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.03em; color: var(--text-primary); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text-secondary); font-size: var(--text-sm); font-weight: 500; }
.nav a:hover { color: var(--text-primary); text-decoration: none; }
.header-cta { display: flex; align-items: center; gap: 10px; }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 22px; border-radius: var(--radius-full); font-weight: 600; font-size: var(--text-md); border: 1px solid transparent; cursor: pointer; transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--text-on-accent); }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn-secondary { border-color: var(--border-strong); color: var(--text-primary); background: var(--surface-card); }
.btn-secondary:hover { background: var(--surface-sunken); text-decoration: none; }
.btn-lg { height: 48px; padding: 0 28px; font-size: var(--text-lg); }
.btn svg { width: 16px; height: 16px; }

/* ---------- scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
}

/* contextos sem frames de animação (iframes congelados, print, export):
   o JS adiciona .no-anim ao <html> e tudo salta para o estado final */
html.no-anim *, html.no-anim *::before, html.no-anim *::after { transition: none !important; animation: none !important; }
html.no-anim .reveal { opacity: 1; transform: none; }
html.no-anim .msg, html.no-anim .act-chip, html.no-anim .log-row { opacity: 1; transform: none; }
html.no-anim .fnode .fi { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }

/* ---------- hero ---------- */
.hero { padding: 88px 0 0; text-align: center; position: relative; overflow: hidden; }
.hero .rings { position: absolute; left: 50%; top: -380px; transform: translateX(-50%); width: 980px; height: 980px; pointer-events: none; opacity: 0.5; }
[data-rings="off"] .rings { display: none; }
.hero-inner { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; background: var(--accent-soft); color: var(--accent-text); font-size: var(--text-sm); font-weight: 600; padding: 6px 16px; border-radius: var(--radius-full); margin-bottom: 24px; }
.hero h1 { font-size: 54px; line-height: var(--leading-tight); letter-spacing: var(--tracking-display); max-width: 840px; margin: 0 auto 20px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero .sub { font-size: var(--text-xl); font-weight: 400; letter-spacing: var(--tracking-body); line-height: 1.5; color: var(--text-secondary); max-width: 660px; margin: 0 auto 36px; text-wrap: pretty; }
.hero-ctas { display: flex; justify-content: center; gap: 12px; }
.hero .micro { margin-top: 16px; font-size: var(--text-sm); color: var(--text-muted); }

/* ---------- hero: variante dark (transição para o light no mock) ---------- */
.hero-dark-bg { display: none; position: absolute; left: 0; right: 0; top: 0; height: calc(100% - 290px); background: var(--abyss-900); }
html[data-hero="dark"] .hero-dark-bg { display: block; }
html[data-hero="dark"] .hero .rings ellipse { stroke: #25BCAA; }
html[data-hero="dark"] .hero .rings { opacity: 0.35; }
html[data-hero="dark"] .hero h1 { color: #E9F1EF; }
html[data-hero="dark"] .hero h1 em { color: var(--teal-bright-text); }
html[data-hero="dark"] .hero .sub { color: #AEC0BB; }
html[data-hero="dark"] .hero .micro { color: #7C918C; }
html[data-hero="dark"] .hero .eyebrow { background: rgba(37, 188, 170, 0.13); color: var(--teal-bright-text); }
html[data-hero="dark"] .hero .btn-primary { background: var(--teal-bright); color: #052E2B; }
html[data-hero="dark"] .hero .btn-primary:hover { background: var(--teal-bright-hover); }
html[data-hero="dark"] .hero .btn-secondary { background: transparent; border-color: #2C423B; color: #E9F1EF; }
html[data-hero="dark"] .hero .btn-secondary:hover { background: rgba(233, 241, 239, 0.06); }
html[data-hero="dark"] .site-header { background: color-mix(in srgb, var(--abyss-900) 90%, transparent); border-bottom-color: #20312C; }
html[data-hero="dark"] .site-header .lockup b { color: #E9F1EF; }
html[data-hero="dark"] .site-header .nav a { color: #AEC0BB; }
html[data-hero="dark"] .site-header .nav a:hover { color: #E9F1EF; }
html[data-hero="dark"] .site-header .btn-secondary { background: transparent; border-color: #2C423B; color: #E9F1EF; }
html[data-hero="dark"] .site-header .btn-secondary:hover { background: rgba(233, 241, 239, 0.06); }
html[data-hero="dark"] .site-header .btn-primary { background: var(--teal-bright); color: #052E2B; }
html[data-hero="dark"] .site-header .btn-primary:hover { background: var(--teal-bright-hover); }

/* ---------- app mock (hero) ---------- */
.hero-mock { position: relative; max-width: 1000px; margin: 64px auto 0; text-align: left; }
.app-mock { position: relative; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl) var(--radius-xl) 0 0; border-bottom: none; box-shadow: var(--shadow-3); overflow: hidden; }
.mock-topbar { display: flex; align-items: center; gap: 14px; height: 50px; padding: 0 18px; border-bottom: 1px solid var(--border-subtle); }
.mock-topbar .crumb { font-size: var(--text-sm); color: var(--text-secondary); font-weight: 500; }
.mock-topbar .crumb b { color: var(--text-primary); font-weight: 600; }
.mock-search { flex: 1; max-width: 260px; margin-left: auto; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-full); color: var(--text-muted); font-size: var(--text-xs); }
.mock-search svg { width: 12px; height: 12px; }
.mock-avatar { width: 28px; height: 28px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.mock-body { display: flex; min-height: 380px; }
.mock-rail { width: 56px; border-right: 1px solid var(--border-subtle); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; }
.mock-rail span { width: 34px; height: 34px; border-radius: var(--radius-md); display: grid; place-items: center; color: var(--text-muted); }
.mock-rail span.on { background: var(--accent-soft); color: var(--accent-text); }
.mock-rail svg { width: 17px; height: 17px; }
.mock-main { flex: 1; padding: 18px 20px 24px; }
.mock-main .kb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mock-main .kb-head h4 { font-size: var(--text-lg); letter-spacing: var(--tracking-title); }
.kb-actions { display: flex; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: var(--radius-full); border: 1px solid var(--border-subtle); font-size: var(--text-xs); font-weight: 500; color: var(--text-secondary); background: var(--surface-card); white-space: nowrap; }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kb-col { background: var(--surface-sunken); border-radius: var(--radius-lg); padding: 10px; min-height: 240px; }
.kb-col-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 10px; }
.kb-col-head .oh-caps { font-size: 11px; color: var(--text-muted); }
.kb-col-head .n { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.kb-cards { display: flex; flex-direction: column; gap: 8px; }
.kb-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); box-shadow: var(--shadow-1); padding: 10px 12px; transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.kb-card b { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: 3px; }
.kb-card .v { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }
.kb-card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.kb-badge { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 9px; border-radius: var(--radius-full); font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.kb-badge .dot { width: 5px; height: 5px; border-radius: 99px; background: currentColor; }
.kb-badge.ok { background: var(--ok-soft); color: var(--ok); }
.kb-badge.warn { background: var(--warn-soft); color: var(--warn); }
.kb-badge.info { background: var(--info-soft); color: var(--info); }
.kb-avatar { width: 20px; height: 20px; border-radius: 99px; background: var(--surface-sunken); border: 1px solid var(--border-subtle); font-size: 9px; font-weight: 600; color: var(--text-secondary); display: grid; place-items: center; }
.kb-card.moving { box-shadow: var(--shadow-3); }
.kb-card.ghost { opacity: 0.35; border-style: dashed; box-shadow: none; }

/* chat dock no mock */
.oni-dock { position: absolute; right: 16px; bottom: 16px; width: 330px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); overflow: hidden; z-index: 5; }
.oni-dock-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border-subtle); }
.oni-dock-head .oni-ico { width: 22px; height: 22px; border-radius: 99px; background: var(--accent); color: var(--text-on-accent); display: grid; place-items: center; }
.oni-dock-head .oni-ico svg { width: 12px; height: 12px; }
.oni-dock-head b { font-size: var(--text-sm); font-weight: 600; }
.oni-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--ok); }
.oni-status .dot { width: 6px; height: 6px; border-radius: 99px; background: var(--ok); }
.oni-msgs { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-height: 132px; }
.msg { max-width: 92%; padding: 8px 12px; font-size: var(--text-sm); line-height: 1.45; border-radius: 12px 12px 12px 4px; background: var(--surface-sunken); color: var(--text-primary); opacity: 0; transform: translateY(6px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.msg.me { align-self: flex-end; background: var(--accent-soft); color: var(--accent-text); border-radius: 12px 12px 4px 12px; }
.msg.show { opacity: 1; transform: none; }
.msg b { font-weight: 600; }
.typing { display: inline-flex; gap: 4px; padding: 10px 12px; }
.typing i { width: 5px; height: 5px; border-radius: 99px; background: var(--text-muted); animation: typing-blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing-blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.oni-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; }
.act-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--radius-full); background: var(--ok-soft); color: var(--ok); font-size: 11px; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.act-chip svg { width: 11px; height: 11px; }
.act-chip.show { opacity: 1; transform: none; }

/* toast no mock */
.mock-toast { position: absolute; top: 62px; right: 16px; display: flex; align-items: flex-start; gap: 10px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); padding: 12px 16px; z-index: 6; opacity: 0; transform: translateY(-8px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.mock-toast.show { opacity: 1; transform: none; }
.mock-toast .t-ico { width: 26px; height: 26px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; flex-shrink: 0; }
.mock-toast .t-ico svg { width: 13px; height: 13px; }
.mock-toast b { display: block; font-size: var(--text-sm); }
.mock-toast span { font-size: var(--text-xs); color: var(--text-secondary); }

.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(to bottom, transparent, var(--surface-page)); pointer-events: none; }

/* ---------- seções ---------- */
.section { padding: 96px 0; }
.section.band { background: var(--surface-card); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
/* seção em tema dark (o DS troca todos os aliases via [data-theme="dark"]) */
.section[data-theme="dark"] { background: var(--surface-page); color: var(--text-primary); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .oh-caps { color: var(--accent-text); margin-bottom: 12px; display: block; }
.section-head h2 { font-size: var(--text-4xl); margin-bottom: 14px; text-wrap: balance; }
.section-head p { color: var(--text-secondary); font-size: var(--text-lg); line-height: var(--leading-body); text-wrap: pretty; }

/* ---------- dor: antes / depois ---------- */
.pain-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.pain-panel { background: var(--surface-page); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 24px; }
.pain-panel.good { background: var(--surface-card); box-shadow: var(--shadow-2); }
.pain-panel .pp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pain-panel h3 { font-size: var(--text-lg); letter-spacing: var(--tracking-title); }
.pain-panel .pp-sub { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: 16px; }
.diagram { position: relative; height: 300px; }
.diagram svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.node { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; background: var(--surface-card); border: 1px solid var(--border-strong); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); box-shadow: var(--shadow-1); white-space: nowrap; }
.node svg { width: 14px; height: 14px; color: var(--text-muted); }
.good .node { border-color: var(--border-subtle); }
.good .node svg { color: var(--accent-text); }
.node.hub { width: 58px; height: 58px; padding: 0; justify-content: center; border-radius: 99px; box-shadow: var(--shadow-2); }
.node.hub img { width: 30px; height: 30px; }
.err-tag { position: absolute; transform: translate(-50%, -50%); height: 22px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--radius-full); background: var(--danger-soft); color: var(--danger); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.pain-arrow { align-self: center; color: var(--text-muted); }
.pain-arrow svg { width: 28px; height: 28px; }
.diagram .ring-bg { position: absolute; left: 50%; top: 50%; width: 280px; height: 280px; transform: translate(-50%, -50%); opacity: 0.6; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .line-broken { stroke-dasharray: 5 7; animation: dash-drift 1.6s linear infinite; }
  @keyframes dash-drift { to { stroke-dashoffset: -24; } }
}
.pain-foot { display: flex; gap: 28px; margin-top: 40px; }
.pain-foot div { flex: 1; }
.pain-foot b { display: block; font-size: var(--text-md); margin-bottom: 4px; }
.pain-foot span { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.5; }

/* ---------- copiloto / estúdio (split) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .section-head { margin-bottom: 0; }
.feature-list { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.feature-item { display: flex; gap: 14px; }
.feature-item .dot { width: 26px; height: 26px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.feature-item .dot svg { width: 13px; height: 13px; }
.feature-item b { display: block; font-size: var(--text-md); margin-bottom: 2px; }
.feature-item span { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.5; }

/* chat card grande (copiloto) */
.chat-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-2); overflow: hidden; }
.chat-card .cc-context { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--border-subtle); background: var(--surface-sunken); font-size: var(--text-xs); color: var(--text-secondary); }
.chat-card .cc-context svg { width: 13px; height: 13px; color: var(--text-muted); }
.chat-card .cc-context b { color: var(--text-primary); font-weight: 600; }
.chat-card .cc-msgs { padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 240px; }
.chat-card .msg { font-size: var(--text-md); }
.cc-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border-subtle); }
.cc-input { flex: 1; display: flex; align-items: center; height: 38px; padding: 0 16px; border: 1px solid var(--border-input); border-radius: var(--radius-full); font-size: var(--text-sm); color: var(--text-muted); }
.cc-mic { width: 38px; height: 38px; border-radius: 99px; border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--text-secondary); flex-shrink: 0; }
.cc-mic svg { width: 16px; height: 16px; }

/* ---------- estúdio: agente + log ---------- */
.studio-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start; margin-top: 8px; }
.agent-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-2); padding: 22px; }
.agent-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.agent-ico { width: 38px; height: 38px; border-radius: var(--radius-md); background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; }
.agent-ico svg { width: 18px; height: 18px; }
.agent-head b { display: block; font-size: var(--text-lg); letter-spacing: var(--tracking-title); }
.agent-head span { font-size: var(--text-xs); color: var(--text-muted); }
.agent-instr { background: var(--surface-sunken); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 14px 16px; font-size: var(--text-md); line-height: 1.55; color: var(--text-primary); min-height: 92px; }
.agent-instr .caret { display: inline-block; width: 1.5px; height: 1.05em; background: var(--accent); vertical-align: text-bottom; margin-left: 1px; }
@media (prefers-reduced-motion: no-preference) { .agent-instr .caret { animation: caret-blink 1s steps(1) infinite; } }
@keyframes caret-blink { 50% { opacity: 0; } }
.agent-label { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted); margin: 18px 0 10px; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chips .chip svg { width: 12px; height: 12px; color: var(--accent-text); }
.agent-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.agent-foot .btn { height: 34px; padding: 0 18px; font-size: var(--text-sm); }
.switch-mock { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary); }
.switch-mock .sw { width: 34px; height: 20px; border-radius: 99px; background: var(--accent); position: relative; }
.switch-mock .sw::after { content: ""; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 99px; background: #fff; }

/* estúdio: linha de features em colunas */
.feature-row { flex-direction: row; gap: 28px; margin-top: 40px; }
.feature-row .feature-item { flex: 1; }

.log-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-2); overflow: hidden; }
.log-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--border-subtle); }
.log-head b { font-size: var(--text-md); white-space: nowrap; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 12px; border-radius: var(--radius-full); background: var(--ok-soft); color: var(--ok); font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.live-badge .dot { width: 6px; height: 6px; border-radius: 99px; background: var(--ok); }
@media (prefers-reduced-motion: no-preference) { .live-badge .dot { animation: pulse-dot 1.8s var(--ease-out) infinite; } }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 var(--ok-soft); } 50% { box-shadow: 0 0 0 4px var(--ok-soft); } }
.log-rows { padding: 8px 0 12px; min-height: 280px; }
.log-row { display: flex; gap: 14px; padding: 9px 22px; opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.log-row.show { opacity: 1; transform: none; }
.log-row .t { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); padding-top: 2px; flex-shrink: 0; }
.log-row .li { width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; flex-shrink: 0; background: var(--accent-soft); color: var(--accent-text); }
.log-row .li.ok { background: var(--ok-soft); color: var(--ok); }
.log-row .li svg { width: 11px; height: 11px; }
.log-row p { font-size: var(--text-sm); line-height: 1.5; color: var(--text-primary); padding-top: 1px; }
.log-row p b { font-weight: 600; }
.log-row p span { color: var(--text-secondary); }

/* ---------- showcase de módulos ---------- */
.showcase { display: grid; grid-template-columns: 340px 1fr; gap: 36px; align-items: start; }
.sc-list { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 92px; }
.sc-item { position: relative; display: flex; gap: 14px; text-align: left; padding: 14px 16px; border-radius: var(--radius-lg); border: 1px solid transparent; background: transparent; cursor: pointer; transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); font: inherit; color: inherit; overflow: hidden; }
.sc-item:hover { background: var(--surface-card); }
.sc-item.active { background: var(--surface-card); border-color: var(--border-subtle); box-shadow: var(--shadow-1); }
.sc-item .num { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); padding-top: 3px; }
.sc-item .oh-caps { display: block; font-size: 11px; color: var(--accent-text); margin-bottom: 3px; }
.sc-item b { display: block; font-size: var(--text-lg); font-weight: 600; letter-spacing: var(--tracking-title); line-height: 1.3; }
.sc-item .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0%; background: var(--accent); border-radius: 2px; }
.sc-item.active .bar { transition: width linear; }
.sc-footnote { margin-top: 14px; padding: 0 16px; font-size: var(--text-sm); color: var(--text-muted); line-height: 1.55; text-wrap: pretty; }
.sc-resume { margin-top: 12px; height: 36px; padding: 0 18px; font-size: var(--text-sm); display: none; }
.sc-resume.on { display: inline-flex; }
.sc-resume svg { width: 13px; height: 13px; }

.sc-stage { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-2); padding: 28px; min-height: 520px; display: flex; flex-direction: column; }
.sc-demo { flex: 1; position: relative; min-height: 330px; }
.sc-panel { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); pointer-events: none; display: flex; flex-direction: column; justify-content: center; }
.sc-panel.on { opacity: 1; transform: none; pointer-events: auto; }
.sc-caption { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-subtle); }
.sc-caption .oh-caps { color: var(--accent-text); font-size: 11px; display: block; margin-bottom: 6px; }
.sc-caption h3 { font-size: var(--text-2xl); margin-bottom: 6px; }
.sc-caption p { font-size: var(--text-md); color: var(--text-secondary); max-width: 560px; }

/* demos internas do showcase */
.demo-row { display: flex; gap: 12px; }
.mini-card { background: var(--surface-page); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 16px; }
.metric { display: flex; flex-direction: column; gap: 2px; }
.metric .ml { font-size: var(--text-xs); color: var(--text-muted); font-weight: 500; }
.metric .mv { font-family: var(--font-mono); font-size: 19px; font-weight: 500; color: var(--text-primary); }
.metric .md { font-size: 11px; font-weight: 600; }
.metric .md.up { color: var(--ok); }

/* financeiro: barras */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; padding-top: 8px; }
.bars .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .b { width: 100%; border-radius: 6px 6px 3px 3px; background: var(--teal-200); transform-origin: bottom; }
.bars .b.acc { background: var(--accent); }
.bars .bl { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); }
@media (prefers-reduced-motion: no-preference) {
  .sc-panel.on .bars .b { animation: grow-bar 700ms var(--ease-out) backwards; }
  @keyframes grow-bar { from { transform: scaleY(0); } }
}
.fin-rows { display: flex; flex-direction: column; }
.fin-row { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--border-subtle); font-size: var(--text-sm); }
.fin-row:last-child { border-bottom: none; }
.fin-row .fv { margin-left: auto; font-family: var(--font-mono); font-size: 12.5px; }

/* marketing: funil */
.funnel { display: flex; flex-direction: column; gap: 8px; }
.fun-step { display: flex; align-items: center; gap: 12px; }
.fun-bar { height: 34px; border-radius: var(--radius-md); background: var(--accent-soft); display: flex; align-items: center; padding: 0 14px; font-size: var(--text-sm); font-weight: 600; color: var(--accent-text); white-space: nowrap; }
.fun-step:nth-child(2) .fun-bar { width: 78%; }
.fun-step:nth-child(3) .fun-bar { width: 52%; background: var(--teal-200); }
.fun-step:nth-child(4) .fun-bar { width: 30%; background: var(--accent); color: var(--text-on-accent); }
.fun-step .fn { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

/* automações: fluxo */
.auto-flow { display: flex; flex-direction: column; gap: 0; align-items: flex-start; }
.flow-node { display: flex; align-items: center; gap: 10px; background: var(--surface-page); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: 10px 16px; font-size: var(--text-sm); font-weight: 600; box-shadow: var(--shadow-1); }
.flow-node .fk { font-size: 10px; font-weight: 700; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted); }
.flow-node.acc { border-color: var(--accent); }
.flow-node.acc .fk { color: var(--accent-text); }
.flow-link { width: 2px; height: 22px; background: var(--border-strong); margin-left: 28px; }
.flow-branch { display: flex; gap: 16px; }

/* rh */
.doc-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--border-subtle); font-size: var(--text-sm); }
.doc-row:last-child { border-bottom: none; }
.doc-row svg { width: 14px; height: 14px; color: var(--text-muted); }
.doc-row .fv { margin-left: auto; }

/* proposta */
.prop-doc { background: var(--surface-page); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 20px 22px; }
.prop-doc .ph { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 10px; }
.prop-doc .ph b { font-size: var(--text-md); }
.prop-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: var(--text-sm); color: var(--text-secondary); }
.prop-line .fv { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-primary); }
.prop-total { display: flex; justify-content: space-between; padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--border-strong); font-weight: 600; }
.prop-total .fv { font-family: var(--font-mono); font-size: 15px; }

/* ---------- fluxo do dado ---------- */
.flow-section .section-head { margin-bottom: 64px; }
.data-flow { position: relative; }
.data-flow .track { position: absolute; left: 7%; right: 7%; top: 27px; height: 2px; background: var(--border-strong); }
.data-flow .track .pulse { position: absolute; top: -2px; width: 64px; height: 6px; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--accent)); opacity: 0.9; }
.flow-nodes { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.fnode { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.fnode .fi { width: 56px; height: 56px; border-radius: 99px; background: var(--surface-card); border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--text-muted); box-shadow: var(--shadow-1); transition: border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out); }
.fnode .fi svg { width: 22px; height: 22px; }
.fnode b { font-size: var(--text-md); letter-spacing: var(--tracking-title); }
.fnode span { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.fnode.lit .fi { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); box-shadow: 0 0 0 4px var(--accent-soft); }
.flow-micro { text-align: center; margin-top: 48px; font-size: var(--text-md); color: var(--text-secondary); }
.flow-micro b { color: var(--text-primary); }

/* ---------- CTA final ---------- */
.cta { margin: 24px auto 0; padding-bottom: 96px; }
.cta-inner { position: relative; overflow: hidden; background: var(--abyss-900); border-radius: var(--radius-xl); padding: 88px 56px; text-align: center; }
.cta-inner .rings { position: absolute; right: -220px; bottom: -320px; width: 680px; height: 680px; opacity: 0.55; pointer-events: none; left: auto; top: auto; transform: none; }
.cta-inner .oh-caps { position: relative; color: var(--teal-bright-text); display: block; margin-bottom: 14px; }
.cta-inner h2 { position: relative; color: #E9F1EF; font-size: var(--text-4xl); max-width: 640px; margin: 0 auto 14px; text-wrap: balance; }
.cta-inner p { position: relative; color: #AEC0BB; font-size: var(--text-lg); margin-bottom: 36px; }
.cta-inner .btn-primary { position: relative; background: var(--teal-bright); color: #052E2B; }
.cta-inner .btn-primary:hover { background: var(--teal-bright-hover); }
.cta-inner .micro { position: relative; margin-top: 16px; font-size: var(--text-sm); color: #7C918C; }

/* ---------- contato / formulário ---------- */
.contato-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contato .section-head { margin-bottom: 0; }
.contato-points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contato-points li { display: flex; align-items: center; gap: 12px; font-size: var(--text-md); color: var(--text-secondary); }
.contato-points .dot { width: 26px; height: 26px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; flex-shrink: 0; }
.contato-points .dot svg { width: 14px; height: 14px; }

.contato-form { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--shadow-2); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; gap: 18px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: var(--text-sm); font-weight: 600; color: var(--text-primary); }
.field-label i { color: var(--danger); font-style: normal; }
.field input, .field textarea { width: 100%; font: inherit; font-size: var(--text-md); color: var(--text-primary); background: var(--surface-page); border: 1px solid var(--border-input); border-radius: var(--radius-md); padding: 11px 14px; transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form-foot .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status { font-size: var(--text-sm); color: var(--text-secondary); margin: 0; }
.form-status.success { color: var(--ok); }
.form-status.error { color: var(--danger); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border-subtle); }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.footer span { font-size: var(--text-sm); color: var(--text-muted); }

/* ---------- responsivo básico ---------- */
@media (max-width: 960px) {
  .site-header .nav { display: none; }
  .hero h1 { font-size: var(--text-4xl); }
  .split, .studio-grid, .showcase, .pain-grid, .contato-grid { grid-template-columns: 1fr; }
  .contato-grid { gap: 36px; }
  .pain-arrow { transform: rotate(90deg); justify-self: center; }
  .sc-list { position: static; }
  .oni-dock { position: static; width: auto; margin: 12px; }
  .flow-nodes { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .data-flow .track { display: none; }
  .feature-row { flex-direction: column; gap: 18px; }
  html[data-hero="dark"] .hero-dark-bg { height: calc(100% - 200px); }
}

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .site-header .wrap { height: 58px; }
  .site-header .btn { height: 36px; padding: 0 16px; font-size: var(--text-sm); }
  .site-header .btn-secondary { display: none; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: var(--text-3xl); }
  .hero { padding-top: 56px; }
  .hero h1 { font-size: var(--text-3xl); }
  .hero .sub { font-size: var(--text-lg); }
  .hero .eyebrow { white-space: normal; line-height: 1.4; padding: 8px 16px; }
  .hero-ctas { flex-direction: column; align-items: stretch; max-width: 320px; margin: 0 auto; }
  .hero-mock { margin-top: 44px; }
  .mock-search { display: none; }
  .mock-rail { display: none; }
  .mock-body { min-height: 0; }
  .mock-main { padding: 14px 14px 16px; }
  .kanban { display: flex; overflow-x: auto; padding-bottom: 6px; }
  .kanban .kb-col { flex: 0 0 180px; min-height: 0; }
  .mock-toast { position: static; margin: 0 12px; opacity: 1; transform: none; display: none; }
  .mock-toast.show { display: flex; }
  .diagram { height: 260px; }
  .node { height: 30px; padding: 0 10px; font-size: var(--text-xs); gap: 5px; }
  .node svg { width: 12px; height: 12px; }
  .node.hub { width: 48px; height: 48px; }
  .node.hub img { width: 24px; height: 24px; }
  .err-tag { height: 20px; padding: 0 8px; font-size: 9.5px; }
  .pain-foot { flex-direction: column; gap: 18px; }
  .demo-row { flex-direction: column; }
  .sc-stage { padding: 18px; min-height: 0; }
  .sc-demo { min-height: 0; position: static; }
  .sc-panel { position: static; display: none; }
  .sc-panel.on { display: flex; }
  .sc-caption h3 { font-size: var(--text-xl); }
  .flow-nodes { grid-template-columns: repeat(2, 1fr); }
  .flow-micro { margin-top: 32px; }
  .cta { padding-bottom: 64px; }
  .cta-inner { padding: 56px 24px; }
  .cta-inner h2 { font-size: var(--text-3xl); }
  .cta-inner .rings { right: -280px; bottom: -380px; }
  .footer .wrap { flex-direction: column; gap: 8px; height: auto; padding-top: 20px; padding-bottom: 20px; }
  .contato-form { padding: 22px; }
  .form-row.two { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; justify-content: center; }
  html[data-hero="dark"] .hero-dark-bg { height: calc(100% - 140px); }
}
