/* BenjaFlow — site / sistema
   Conceito: a visita começa numa cena de cinema (intro) e "entra" no notebook.
   Dentro dele vive o BenjaFlow OS: apps, widgets e janelas com o conteúdo da empresa. */

@font-face { font-family: "Rubik"; src: url("fonts/Rubik.woff") format("woff"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "JB Mono"; src: url("fonts/JetBrainsMono.woff") format("woff"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #040A1A;
  --bg-2: #08142B;
  --surface: #0D1D3A;
  --surface-2: #142647;
  --accent: #1E8BFF;
  --accent-2: #45A3FF;
  --cyan: #2DD4FF;
  --deep: #0B2FCB;
  --ink: #0A0F1C;
  --text: #FFFFFF;
  --muted: #98A2B8;
  --faint: #64708A;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --glass: rgba(13,29,58,.62);
  --glass-2: rgba(8,20,43,.78);
  --ok: #22C55E;
  --wa: #25D366;
  --ig: #C13584;
  --mail: #EA4335;
  --grad: linear-gradient(135deg,#2DD4FF 0%,#0FA2F5 38%,#2563EB 70%,#0B2FCB 100%);
  --f-display: "Rubik", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JB Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-display); font-size: 15px; line-height: 1.45;
  overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none; touch-action: manipulation;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Cena (foto/vídeo do notebook) ---------- */
#world { position: fixed; inset: 0; overflow: hidden; background: var(--bg); }
.scene { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.scene img, .scene video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.scene video { opacity: 1; }
.scene .still { opacity: 0; }
.scene-fade { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(4,10,26,.85) 100%); }
/* No celular a cena não cobre a tela: as bordas somem no fundo */
.scene-edge { position: absolute; inset: -2px; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 14%, transparent 86%, var(--bg) 100%),
              linear-gradient(90deg, var(--bg) 0%, transparent 10%, transparent 90%, var(--bg) 100%); opacity: 0; }
.is-portrait .scene-edge { opacity: 1; }
.glow-screen { position: absolute; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(45,212,255,.35), rgba(30,139,255,.12) 60%, transparent); filter: blur(18px); }

.noise { position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- Intro (estilo Prisma) ---------- */
#intro { position: fixed; inset: 0; z-index: 20; cursor: pointer; }
#intro::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 30%, transparent 55%, rgba(4,10,26,.92) 100%); }
.intro-frame { position: absolute; inset: 10px; border-radius: 26px; pointer-events: none;
  box-shadow: 0 0 0 30px var(--bg); }
.intro-nav { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 2; }
.intro-nav .tab { display: flex; align-items: center; gap: clamp(14px, 3.2vw, 52px);
  background: #01040c; padding: 10px clamp(16px, 2.4vw, 34px); border-radius: 0 0 22px 22px; }
.intro-nav .tab::before, .intro-nav .tab::after { content: ""; position: absolute; top: 0; width: 22px; height: 22px;
  background: radial-gradient(circle at 0 100%, transparent 21px, #01040c 22px); }
.intro-nav .tab::before { left: -22px; transform: scaleX(-1); }
.intro-nav .tab::after { right: -22px; }
.intro-nav a { font-size: clamp(11px, 1vw, 14px); color: rgba(255,255,255,.72); white-space: nowrap; transition: color .25s; }
.intro-nav a:hover { color: #fff; }
.intro-nav .brand-dot { width: 22px; height: 14px; }

.intro-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 clamp(18px, 3vw, 44px) clamp(22px, 3.2vw, 44px); z-index: 2;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; align-items: end; }
.intro-title { grid-column: span 8; margin: 0; font-weight: 600; letter-spacing: -.075em; line-height: .82;
  font-size: clamp(64px, 13.4vw, 290px); color: #fff; padding-bottom: .04em; display: flex; position: relative; white-space: nowrap; }
.intro-title .ch { display: inline-block; will-change: transform; }
/* "flow" em degradê: a letra real fica transparente (mantém o espaçamento original)
   e o degradê é desenhado numa cópia por cima, com folga, para não cortar as bordas */
.intro-title .gch { position: relative; color: transparent; }
.intro-title .gch::after { content: attr(data-ch); position: absolute; left: -.15em; top: -.05em; padding: .05em .15em .2em; pointer-events: none;
  background: linear-gradient(135deg,#2DD4FF,#0FA2F5 38%,#2563EB 70%,#0B2FCB); background-size: 400% 100%; background-position: var(--gp, 0%) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-title .ast { position: absolute; top: .06em; right: -.32em; width: .32em; }
.intro-side { grid-column: span 4; padding-left: 2.6vw; display: flex; flex-direction: column; gap: 18px; padding-bottom: clamp(10px, 2.6vw, 38px); }
.intro-side p { margin: 0; color: rgba(255,255,255,.78); font-size: clamp(14px, 1.15vw, 17px); line-height: 1.3; max-width: 38ch; }
.intro-side p b { color: #fff; font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; background: #fff; color: var(--ink);
  padding: 5px 5px 5px 20px; border-radius: 999px; font-weight: 500; font-size: 15px; transition: gap .35s var(--ease); }
.pill:hover { gap: 16px; }
.pill .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; transition: transform .35s var(--ease); }
.pill:hover .ic { transform: scale(1.1); }
.pill svg { width: 16px; height: 16px; stroke: #fff; }
.intro-hint { position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%); z-index: 2; pointer-events: none;
  display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.8); background: rgba(4,10,26,.5); border: 1px solid var(--line-2); padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.intro-hint i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(45,212,255,.6); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(45,212,255,.6); } 80%,100% { box-shadow: 0 0 0 12px rgba(45,212,255,0); } }

@media (max-width: 1023px), (orientation: portrait) {
  .intro-title { grid-column: span 12; font-size: min(21vw, 200px); }
  .intro-side { grid-column: span 12; padding-bottom: 6px; padding-left: 0; }
}
@media (orientation: portrait), (max-width: 759px) {
  .intro-frame { display: none; }
  .intro-nav .tab::before, .intro-nav .tab::after { display: none; } /* cantos só fazem sentido com a moldura do desktop */
  .intro-nav { top: 0; }
  .intro-nav .tab { border-radius: 0 0 18px 18px; }
  .intro-hint { top: 34%; font-size: 9.5px; letter-spacing: .12em; padding: 7px 11px; white-space: nowrap; }
  .intro-nav .tab { gap: 14px; padding: 9px 16px; }
  .intro-nav .hide-sm { display: none; }
}

/* ---------- Sistema (BenjaFlow OS) ---------- */
#os { position: fixed; z-index: 10; overflow: hidden; border-radius: 6px; visibility: hidden; background: #000; contain: layout paint; }
#os.full { border-radius: 0; }
.os-root { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; background: var(--bg); font-size: 15px; }
.wall { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(90% 70% at 70% 20%, #0c2a63 0%, #071430 45%, #040A1A 80%); }
.wall .aur { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; will-change: transform; }
.wall .a1 { width: 55%; height: 60%; left: -10%; top: 30%; background: radial-gradient(closest-side, #0B2FCB, transparent); }
.wall .a2 { width: 50%; height: 55%; right: -8%; top: -12%; background: radial-gradient(closest-side, #0FA2F5, transparent); }
.wall .a3 { width: 30%; height: 35%; left: 40%; bottom: -10%; background: radial-gradient(closest-side, #2DD4FF, transparent); opacity: .3; }
.wall .logo { position: absolute; left: 50%; top: 50%; width: 42%; height: auto; transform: translate(-50%, -62%); opacity: .2;
  filter: drop-shadow(0 0 48px rgba(30,139,255,.45)); }
.m .wall .logo { width: 62%; top: 80%; opacity: .16; }
.wall .grid { position: absolute; inset: 0; opacity: .25;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); }

.boot { position: absolute; inset: 0; z-index: 50; background: #000; display: grid; place-items: center; }
.boot .in { display: grid; justify-items: center; gap: 26px; }
.boot svg { width: 120px; }
.boot .bar { width: 180px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.boot .bar i { display: block; height: 100%; width: 0; background: var(--grad); }

/* menu bar */
.menubar { position: absolute; left: 0; right: 0; top: 0; height: 30px; z-index: 30; display: flex; align-items: center; gap: 18px;
  padding: 0 14px; font-size: 13px; background: rgba(4,10,26,.55); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line); }
.menubar .logo { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.menubar .logo svg { width: 22px; height: 14px; }
.menubar button { color: rgba(255,255,255,.82); padding: 3px 7px; border-radius: 5px; }
.menubar button:hover { background: rgba(255,255,255,.1); color: #fff; }
.menubar .sp { flex: 1; }
.menubar .stat { display: flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
.menubar .stat i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.menubar svg.i { width: 15px; height: 15px; stroke: rgba(255,255,255,.85); }
.menubar .clock { font-variant-numeric: tabular-nums; color: rgba(255,255,255,.9); }

/* desktop icons */
.icons { position: absolute; left: 22px; top: 52px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(5, 98px); gap: 4px 10px; z-index: 5; }
.dicon { width: 92px; display: grid; justify-items: center; gap: 7px; padding: 8px 4px; border-radius: 10px; text-align: center; }
.dicon:hover, .dicon.sel { background: rgba(255,255,255,.08); }
.dicon .gl { width: 54px; height: 54px; }
.dicon span { font-size: 12px; line-height: 1.15; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.8); }

/* app glyph (ícone de app) */
.gl { position: relative; display: grid; place-items: center; border-radius: 23%; background: var(--g, var(--grad));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -8px 16px rgba(0,0,0,.18), 0 8px 18px -8px rgba(0,0,0,.7); overflow: hidden; }
.gl::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.22), transparent 45%); }
.gl svg { width: 52%; height: 52%; stroke: #fff; stroke-width: 1.8; fill: none; position: relative; z-index: 1; }
.gl.dark { --g: linear-gradient(160deg, #1a2d55, #08142B); }
.gl.wa { --g: linear-gradient(160deg, #3ce07a, #12a150); }
.gl.ig { --g: linear-gradient(45deg, #f5a623 0%, #e1306c 45%, #833ab4 100%); }
.gl.paper { --g: linear-gradient(160deg, #f4f7fb, #c9d4e4); }
.gl.paper svg { stroke: #0D1D3A; }
.gl .badge { position: absolute; top: 4px; right: 4px; z-index: 2; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* widgets */
.widgets { position: absolute; right: 22px; top: 50px; width: 300px; display: grid; gap: 14px; z-index: 4; }
.wd { border-radius: 20px; padding: 16px 18px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); box-shadow: 0 20px 40px -24px rgba(0,0,0,.8); }
.wd h4 { margin: 0 0 8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.wd-clock .t { font-size: 54px; font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.wd-clock .d { color: var(--muted); margin-top: 6px; text-transform: capitalize; }
.wd-log ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-family: var(--f-mono); font-size: 11.5px; height: 118px; overflow: hidden; }
.wd-log li { display: flex; gap: 8px; color: rgba(255,255,255,.86); white-space: nowrap; }
.wd-log li time { color: var(--faint); }
.wd-log li b { color: var(--ok); font-weight: 500; margin-left: auto; }
.wd-log .note { margin-top: 10px; font-size: 11px; color: var(--faint); }
.wd-diag { background: var(--grad); border: 0; color: #fff; position: relative; overflow: hidden; cursor: pointer; text-align: left; width: 100%; }
.wd-diag::before { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.14); }
.wd-diag h4 { color: rgba(255,255,255,.85); }
.wd-diag .tt { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; max-width: 13ch; }
.wd-diag .go { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; background: rgba(4,10,26,.9); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; }

/* dock */
.dock { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 30; display: flex; align-items: flex-end; gap: 8px;
  padding: 8px 10px; border-radius: 22px; background: rgba(13,29,58,.45); border: 1px solid var(--line-2);
  backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); }
.dock .di { position: relative; width: 50px; height: 50px; transform-origin: 50% 100%; }
.dock .di .gl { width: 100%; height: 100%; }
.dock .di .tip { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); white-space: nowrap; font-size: 12px;
  background: rgba(4,10,26,.9); border: 1px solid var(--line-2); padding: 4px 9px; border-radius: 7px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.dock .di:hover .tip { opacity: 1; }
.dock .di .on { position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; border-radius: 50%; background: #fff; transform: translateX(-50%); opacity: 0; }
.dock .di.open .on { opacity: .9; }
.dock .sep { width: 1px; align-self: stretch; margin: 4px 2px; background: var(--line-2); }

/* windows */
.win { position: absolute; z-index: 10; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  background: rgba(8,20,43,.86); border: 1px solid var(--line-2);
  backdrop-filter: blur(28px) saturate(1.4); -webkit-backdrop-filter: blur(28px) saturate(1.4);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.85), 0 0 0 .5px rgba(0,0,0,.6); }
.win.focus { box-shadow: 0 50px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(45,212,255,.18); }
.win-bar { height: 42px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--line); cursor: grab; user-select: none; }
.win-bar:active { cursor: grabbing; }
.lights { display: flex; gap: 0; margin-left: -8px; }
/* Bolinha visual de 13px, mas área de clique de 28px */
.lights button { --c: #ff5f57; position: relative; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; cursor: pointer; touch-action: manipulation; }
.lights button:nth-child(2) { --c: #febc2e; }
.lights button:nth-child(3) { --c: #28c840; }
.lights button::before { content: ""; grid-area: 1 / 1; width: 13px; height: 13px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.25); transition: transform .12s; }
.lights button:hover::before { transform: scale(1.12); }
.lights button:active::before { transform: scale(.9); filter: brightness(.85); }
.lights button svg { grid-area: 1 / 1; position: relative; z-index: 1; width: 8px; height: 8px; stroke: rgba(0,0,0,.6); stroke-width: 2.6; opacity: 0; transition: opacity .12s; }
.lights:hover button svg, .lights button:focus-visible svg { opacity: 1; }
.win-title { flex: 1; text-align: center; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.8); margin-right: 76px; }
.win-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.win-body::-webkit-scrollbar { width: 8px; } .win-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 8px; }

/* ---------- Conteúdo dos apps ---------- */
.app { padding: 26px 28px 30px; display: grid; gap: 18px; align-content: start; }
.eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.app h2 { margin: 0; font-size: 30px; line-height: 1.05; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.app h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; font-weight: 600; }
.app p { margin: 0; color: var(--muted); max-width: 62ch; }
.app p.lead { font-size: 17px; color: rgba(255,255,255,.86); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: rgba(255,255,255,.9); }
button.chip:hover { border-color: rgba(45,212,255,.5); background: rgba(45,212,255,.08); }
.chip.on { border-color: var(--cyan); background: rgba(45,212,255,.14); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border-radius: 999px; font-weight: 500; font-size: 14.5px; background: var(--grad); color: #fff; box-shadow: 0 18px 40px -18px rgba(30,139,255,.7); justify-self: start; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: rgba(255,255,255,.06); box-shadow: none; border: 1px solid var(--line-2); }
.btn.wa { background: var(--wa); color: #04210f; box-shadow: none; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.card { border: 1px solid var(--line); background: rgba(255,255,255,.03); border-radius: 16px; padding: 16px 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: 12px; color: var(--cyan); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; border: 1px solid rgba(45,212,255,.3); background: rgba(45,212,255,.06); }
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: 14px; }
.tag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

/* Sobre */
.about-head { display: flex; align-items: center; gap: 18px; }
.about-head svg { width: 230px; height: auto; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pillars .card b { display: block; font-size: 15px; margin-bottom: 4px; }
.pillars .card span { color: var(--muted); font-size: 13.5px; }

/* Automações (finder) */
.finder { display: grid; grid-template-columns: 230px 1fr; height: 100%; }
.finder-side { border-right: 1px solid var(--line); padding: 14px 10px; display: grid; gap: 4px; align-content: start; background: rgba(4,10,26,.35); }
.finder-side .tag { padding: 6px 10px; }
.fitem { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-align: left; font-size: 14px; }
.fitem .gl { width: 30px; height: 30px; flex: none; }
.fitem:hover { background: rgba(255,255,255,.05); }
.fitem.on { background: rgba(30,139,255,.18); }
.finder-main { overflow: auto; }
.prod-hero { display: flex; gap: 18px; align-items: center; }
.prod-hero .gl { width: 64px; height: 64px; flex: none; }
.ex { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ex li { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; color: rgba(255,255,255,.88); }
.ex li::before { content: "→"; color: var(--cyan); font-family: var(--f-mono); }
.firststep { display: flex; gap: 14px; align-items: center; border-radius: 16px; padding: 14px 16px; border: 1px dashed rgba(45,212,255,.35); background: rgba(45,212,255,.05); }
.firststep b { display: block; }
.firststep span { color: var(--muted); font-size: 13.5px; }

/* Agente IA (chat) */
.chat { display: grid; grid-template-rows: auto 1fr auto; height: 100%; background: linear-gradient(180deg, rgba(4,10,26,.3), rgba(4,10,26,.6)); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chat-head .av { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; }
.chat-head .av svg { width: 22px; }
.chat-head b { display: block; font-size: 14.5px; }
.chat-head small { color: var(--ok); font-size: 12px; }
.chat-head .demo { margin-left: auto; }
.chat-log { overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.msg { max-width: 78%; padding: 9px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.35; animation: pop .35s var(--ease) both; }
.msg.in { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 5px; }
.msg.out { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.msg time { display: block; font-size: 10.5px; opacity: .6; margin-top: 3px; text-align: right; }
.sys { align-self: center; font-family: var(--f-mono); font-size: 11px; color: var(--cyan); padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(45,212,255,.3); background: rgba(45,212,255,.06); animation: pop .35s var(--ease) both; }
.typing { align-self: flex-start; background: var(--surface-2); padding: 12px 14px; border-radius: 16px; display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-foot { padding: 12px 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.chat-foot .tag { padding-left: 2px; }

/* Integrações */
.integ { display: grid; grid-template-rows: auto 1fr auto; height: 100%; }
.integ-top { padding: 16px 20px 6px; display: grid; gap: 10px; }
.integ-stage { position: relative; min-height: 0; }
.integ-stage svg.edges { position: absolute; inset: 0; width: 100%; height: 100%; }
.integ-stage .edge { stroke: rgba(255,255,255,.12); stroke-width: 1.5; fill: none; }
.integ-stage .edge.hot { stroke: url(#eg); stroke-width: 2.2; }
.integ-stage .pkt { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.node { position: absolute; transform: translate(-50%,-50%); display: grid; justify-items: center; gap: 6px; touch-action: none; cursor: grab; user-select: none; }
.node .gl { width: 46px; height: 46px; }
.node span { font-size: 11.5px; color: rgba(255,255,255,.85); white-space: nowrap; }
.node.hub .gl { width: 70px; height: 70px; border-radius: 50%; box-shadow: 0 0 0 8px rgba(30,139,255,.12), 0 0 40px rgba(30,139,255,.5); }
.node.hub .gl svg { width: 64%; height: 64%; stroke: none; }
.node.lit .gl { box-shadow: 0 0 0 3px rgba(45,212,255,.5), 0 0 24px rgba(45,212,255,.6); }
.integ-log { margin: 0 16px 14px; padding: 10px 12px; height: 78px; overflow: hidden; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--line); font-family: var(--f-mono); font-size: 11.5px; color: rgba(255,255,255,.82); display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; }
.integ-log div span { color: var(--cyan); }

/* Sites */
.sites { display: grid; gap: 16px; }
.browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #0b1630; }
.browser-bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); }
.browser-bar .lights { margin-left: 0; gap: 6px; }
.browser-bar .lights button { width: 10px; height: 10px; cursor: default; pointer-events: none; }
.browser-bar .lights button::before { width: 10px; height: 10px; }
.browser-bar .url { flex: 1; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); background: rgba(0,0,0,.3); padding: 5px 10px; border-radius: 7px; }
.mock { position: relative; height: 270px; padding: 18px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: center; }
.mock .b { border-radius: 8px; background: rgba(255,255,255,.08); transition: all .6s var(--ease); }
.mock .nav { position: absolute; left: 18px; right: 18px; top: 14px; height: 14px; display: flex; gap: 10px; }
.mock .nav .b { height: 10px; width: 50px; } .mock .nav .b:first-child { width: 70px; margin-right: auto; }
.mock .l { display: grid; gap: 10px; margin-top: 16px; }
.mock .h1 { height: 26px; width: 92%; } .mock .h1.s { width: 70%; }
.mock .tx { height: 9px; width: 85%; } .mock .tx.s { width: 60%; }
.mock .cta { height: 30px; width: 130px; border-radius: 999px; margin-top: 6px; }
.mock .img { height: 190px; border-radius: 14px; margin-top: 16px; }
.mock .form { position: absolute; right: 26px; bottom: 18px; width: 150px; padding: 10px; border-radius: 10px; display: grid; gap: 6px; opacity: 0; transform: translateY(10px); transition: all .6s var(--ease); background: rgba(4,10,26,.85); border: 1px solid var(--line-2); }
.mock .form .b { height: 8px; } .mock .form .ok { font-family: var(--f-mono); font-size: 10px; color: var(--ok); }
.mock[data-s="1"] .b, .mock[data-s="2"] .b, .mock[data-s="3"] .b { background: rgba(255,255,255,.14); }
.mock[data-s="1"] .h1, .mock[data-s="2"] .h1, .mock[data-s="3"] .h1 { background: #fff; }
.mock[data-s="1"] .cta, .mock[data-s="2"] .cta, .mock[data-s="3"] .cta { background: var(--grad); }
.mock[data-s="1"] .img, .mock[data-s="2"] .img, .mock[data-s="3"] .img { background: radial-gradient(60% 60% at 40% 40%, #2DD4FF, #0B2FCB 70%, #08142B); }
.mock[data-s="2"] .img { animation: floaty 3s ease-in-out infinite; }
.mock[data-s="3"] .form { opacity: 1; transform: none; }
@keyframes floaty { 50% { transform: translateY(-6px) rotate(-1deg); } }
.stages { display: flex; gap: 6px; flex-wrap: wrap; }

/* Diagnóstico */
.diag-hero { border-radius: 20px; padding: 22px; background: var(--grad); position: relative; overflow: hidden; }
.diag-hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.12); }
.diag-hero h2 { color: #fff; max-width: 16ch; }
.diag-hero p { color: rgba(255,255,255,.88); margin-top: 8px; }
.diag-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.diag-meta span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; background: rgba(4,10,26,.55); padding: 6px 10px; border-radius: 999px; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 14.5px; }
.opt:hover { border-color: rgba(45,212,255,.45); }
.opt.on { border-color: var(--cyan); background: rgba(45,212,255,.1); }
.opt i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; }
.opt.on i { border: 5px solid var(--cyan); }
.answer { display: none; gap: 12px; }
.answer.show { display: grid; animation: pop .4s var(--ease) both; }

/* Contato */
.vcard { display: grid; gap: 10px; }
.crow { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.crow .gl { width: 40px; height: 40px; flex: none; }
.crow .tx { flex: 1; min-width: 0; }
.crow .tx b { display: block; font-size: 14.5px; }
.crow .tx span { color: var(--muted); font-size: 13px; user-select: all; overflow-wrap: anywhere; }
.crow .acts { display: flex; gap: 6px; flex: none; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); }
.icon-btn svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 2; }
.icon-btn:hover { border-color: var(--cyan); }
.legal { font-size: 12px; color: var(--faint); line-height: 1.5; }

/* LEIA-ME */
.notes { padding: 22px 26px; font-family: var(--f-mono); font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.9); white-space: pre-wrap; min-height: 100%; background: rgba(0,0,0,.2); }
.notes .cur { display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* toast */
.toast { position: absolute; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 80; background: rgba(4,10,26,.92); border: 1px solid var(--line-2); padding: 9px 14px; border-radius: 999px; font-size: 13px; opacity: 0; pointer-events: none; }

/* ---------- Modo celular (tela cheia) ---------- */
.os-root.m { font-size: 15px; }
.m .menubar, .m .icons, .m .widgets, .m .dock { display: none; }
.home { display: none; }
.m .home { display: grid; position: absolute; inset: 0; grid-template-rows: auto auto 1fr auto; padding: calc(env(safe-area-inset-top, 0px) + 6px) 18px calc(env(safe-area-inset-bottom, 0px) + 14px); z-index: 5; }
.sbar { display: flex; align-items: center; justify-content: space-between; height: 38px; font-size: 14px; font-weight: 600; padding: 0 8px; font-variant-numeric: tabular-nums; }
.sbar .r { display: flex; gap: 6px; align-items: center; }
.sbar svg { width: 17px; height: 17px; stroke: #fff; }
.sbar .sbtn { display: grid; place-items: center; width: 28px; height: 28px; margin-right: 2px; }
.menubar [data-som] svg { width: 15px; height: 15px; stroke: rgba(255,255,255,.85); fill: none; stroke-width: 2; }
.mwidgets { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; margin: 10px 0 18px; }
.mwidgets .wd { border-radius: 22px; padding: 14px; }
.mwidgets .wd-diag .tt { font-size: 18px; }
.mwidgets .wd-diag .go { margin-top: 10px; font-size: 12px; padding: 7px 11px; }
.mwidgets .wd-clock .t { font-size: 40px; }
.mwidgets .wd-clock .d { font-size: 13px; }
.mwidgets .wd-clock .flows { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }
.mwidgets .wd-clock .flows i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 8px; align-content: start; }
.mapp { display: grid; justify-items: center; gap: 7px; }
.mapp .gl { width: min(62px, 17vw); height: min(62px, 17vw); }
.mapp span { font-size: 11.5px; color: #fff; text-align: center; line-height: 1.15; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.mdock { display: flex; justify-content: space-around; padding: 12px; border-radius: 30px; background: rgba(13,29,58,.5); border: 1px solid var(--line-2); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); }
.mdock .gl { width: min(58px, 15vw); height: min(58px, 15vw); }
.m .home > div:nth-child(3) { min-height: 0; overflow: hidden; }
/* Celular: fluxos de exemplo viram uma faixa de uma linha só */
.mlog { margin: 16px 0 0; padding: 9px 14px !important; border-radius: 16px !important; display: flex; align-items: center; gap: 10px; }
.mlog h4 { margin: 0; font-size: 9.5px; flex: none; display: flex; align-items: center; gap: 6px; color: var(--ok); }
.mlog h4::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.mlog ul { height: 18px; line-height: 18px; flex: 1; min-width: 0; gap: 0; font-size: 11px; }
.mlog li { overflow: hidden; text-overflow: ellipsis; }
.mlog li:not(:first-child) { display: none; }
.mlog li time, .mlog li b { display: none; }
@media (max-height: 720px) {
  .m .home { padding-top: 2px; padding-bottom: 8px; }
  .m .mwidgets { margin: 6px 0 12px; gap: 10px; }
  .m .mwidgets .wd { padding: 12px; border-radius: 18px; }
  .m .mwidgets .wd-diag .tt { font-size: 16px; }
  .m .mwidgets .wd-diag .go { margin-top: 8px; }
  .m .mwidgets .wd-clock .t { font-size: 32px; }
  .m .mwidgets .wd-clock .flows { display: none; }
  .m .mgrid { gap: 12px 8px; }
  .m .mapp .gl { width: min(54px, 15vw); height: min(54px, 15vw); }
  .m .mdock { padding: 9px; border-radius: 26px; }
  .m .mdock .gl { width: min(50px, 13vw); height: min(50px, 13vw); }
  .m .mhome-ind { margin-top: 6px; }
}
@media (max-height: 590px) { .m .mlog { display: none; } }
.mhome-ind { width: 130px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.7); margin: 10px auto 0; }
.sheet { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; background: var(--bg-2); border-radius: 0; overflow: hidden; }
.sheet-bar { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px; border-bottom: 1px solid var(--line); background: rgba(4,10,26,.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.sheet-bar .back { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-2); font-size: 15px; justify-self: start; padding: 6px; }
.sheet-bar .back svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.sheet-bar b { font-size: 15px; font-weight: 600; }
.sheet-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom, 0px); }
.m .app { padding: 20px 18px 34px; }
.m .app h2 { font-size: 27px; }
.m .finder { grid-template-columns: 1fr; height: auto; }
.m .finder-side { border-right: 0; border-bottom: 1px solid var(--line); grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding: 10px; }
.m .finder-side .tag { display: none; }
.m .pillars { grid-template-columns: 1fr; }
.m .about-head svg { width: 180px; }
.m .mock { grid-template-columns: 1fr; height: 300px; }
.m .mock .img { height: 110px; margin-top: 0; }
.m .chat, .m .integ { height: 100%; }
.m .msg { max-width: 86%; }
.m .toast { bottom: calc(env(safe-area-inset-bottom, 0px) + 40px); }

/* sair do modo tela cheia (desktop) */
.exitfull { position: absolute; right: 14px; bottom: 14px; z-index: 31; display: none; }
#os.full:not(.mobile) .exitfull { display: inline-flex; }

/* Movimento reduzido: só desliga as animações em loop do CSS. As transições do GSAP ficam mais curtas no JS.
   (Não forçar transition-duration em tudo: isso briga com o GSAP e deixava ícones e dock invisíveis.) */
@media (prefers-reduced-motion: reduce) {
  .intro-hint i, .typing i, .notes .cur, .mock[data-s="2"] .img { animation: none !important; }
}
.sbar .sbtn svg { stroke-width: 2; }
