/* Orbbia OS · site v0 · "painel de instrumentos à noite": navy dominante, ciano só onde há decisão. */

@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/barlow-semi-condensed-500-latin.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-semi-condensed-600-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/ibm-plex-sans-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-400-latin.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-500-latin.woff2) format("woff2"); }

:root {
  --navy-0: #030F28;
  --navy-1: #071A3A;
  --navy-2: #0B2447;
  --navy-3: #10325C;
  --line: rgba(150, 190, 215, 0.14);
  --line-2: rgba(150, 190, 215, 0.28);
  --grid: rgba(120, 170, 200, 0.06);
  --ink: #E8F1F5;
  --ink-2: #B4C7D3;
  --ink-3: #7F98AB;
  --cyan: #19D7DD;
  --cyan-2: #B5F2F4;
  --teal: #1A9FA6;
  --deep: #0E5562;
  --amber: #F0A93C;
  --ok: #4CD38A;
  --display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --wrap: 1200px;
  --gut: 24px;
  --r: 10px;
  --dur: 0.7s;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--navy-0);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(25, 215, 221, 0.10), transparent 60%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.05; letter-spacing: -0.005em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); max-width: 22ch; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
h4 { font-size: 1.2rem; }
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: var(--navy-0); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- kicker / números de seção ---------- */
.kicker {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan); display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.kicker .num { color: var(--ink-3); padding-right: 12px; border-right: 1px solid var(--line-2); }
.kicker::after { content: ""; flex: 0 0 40px; height: 1px; background: var(--line-2); }

/* ---------- topo ---------- */
.top { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); background: rgba(3, 15, 40, 0.72); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark.big { width: 96px; height: 96px; margin: 0 auto 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: 0.01em; }
.brand-text .os { color: var(--cyan); font-weight: 500; }
.brand-text small { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: 0.95rem; color: var(--ink-2); position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--cyan); transition: right 0.3s var(--ease); }
.nav a:hover::after { right: 0; }
.top-right { display: flex; align-items: center; gap: 14px; }
.lang { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 10px; }
.lang:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.02em; padding: 13px 22px; border-radius: 8px; border: 1px solid transparent; transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cyan); color: var(--navy-0); }
.btn-primary:hover { background: var(--cyan-2); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: 9px 14px; font-size: 0.95rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 17ch; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--ink-2); max-width: 40ch; }
.motto { font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem, 1.8vw, 1.5rem); color: var(--cyan); margin: 18px 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.orbit { position: absolute; color: var(--line-2); pointer-events: none; }
.orbit-hero { width: min(70vw, 720px); right: -18%; top: -22%; opacity: 0.9; animation: spin 160s linear infinite; }
.orbit-contact { width: min(60vw, 520px); left: -14%; bottom: -30%; opacity: 0.7; animation: spin 200s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.agent-card {
  position: relative; background: linear-gradient(160deg, var(--navy-2), var(--navy-1)); border: 1px solid var(--line-2); border-radius: 14px; padding: 22px 24px 18px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.agent-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; border-radius: 14px 0 0 14px; background: linear-gradient(var(--cyan-2), var(--deep)); }
.ac-head { display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); margin-bottom: 10px; }
.led { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(25, 215, 221, 0.15), 0 0 14px var(--cyan); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(25, 215, 221, 0.08), 0 0 20px var(--cyan); } }
.ac-vessel { font-family: var(--display); font-weight: 600; font-size: 1.35rem; margin-bottom: 14px; }
.ac-rows { margin: 0; display: grid; gap: 10px; }
.ac-rows div { display: grid; grid-template-columns: 118px 1fr; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.ac-rows dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.ac-rows dd { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.ac-status { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line-2); color: var(--cyan); }

/* animação de entrada do hero */
.h-in { opacity: 0; transform: translateY(16px); animation: rise 0.9s var(--ease) forwards; }
.h-1 { animation-delay: 0.05s } .h-2 { animation-delay: 0.15s } .h-3 { animation-delay: 0.3s } .h-4 { animation-delay: 0.42s } .h-5 { animation-delay: 0.55s } .h-6 { animation-delay: 0.5s }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- seções ---------- */
.sec { padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--line); position: relative; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.plate-item { position: relative; background: var(--navy-1); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px 22px; }
.plate-item::after { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; background: linear-gradient(90deg, var(--cyan), transparent); opacity: 0.6; }
.plate-idx { position: absolute; top: 18px; right: 20px; color: var(--ink-3); }
.plate-item h3 { font-size: 1.45rem; max-width: 18ch; padding-right: 40px; }
.plate-item p { color: var(--ink-2); font-size: 0.98rem; margin: 0; }
.sources { color: var(--ink-3); margin-top: 24px; }

.rail { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr); gap: 20px; align-items: stretch; }
.step { position: relative; padding: 26px 22px 6px 0; border-top: 1px solid var(--line-2); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 1px; background: var(--cyan); }
.step-n { color: var(--cyan); display: block; margin-bottom: 14px; }
.step h3 { font-size: 1.6rem; }
.step p { color: var(--ink-2); font-size: 0.98rem; }
.gate { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 26px 24px; background: linear-gradient(180deg, rgba(25, 215, 221, 0.10), rgba(25, 215, 221, 0.03)); border: 1px solid rgba(25, 215, 221, 0.35); border-radius: var(--r); }
.gate p { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.15; color: var(--cyan-2); }
.gate-line { position: absolute; left: -20px; top: 50%; width: 20px; height: 1px; background: var(--cyan); }
.gate-label { color: var(--cyan); letter-spacing: 0.16em; text-transform: uppercase; }

.module { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.module:first-of-type { border-top: 0; }
.module.flip .module-copy { order: 2; }
.tag { color: var(--cyan); margin-bottom: 12px; }
.module h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.q { color: var(--ink-2); font-size: 1.05rem; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 0.98rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }
.note { color: var(--ink-3); margin-top: 8px; }

/* fragmentos SVG */
.frag { width: 100%; height: auto; font-family: var(--mono); }
.frag .panel { fill: var(--navy-1); stroke: var(--line-2); }
.frag .panel2 { fill: var(--navy-2); stroke: var(--line); }
.frag .ln { stroke: var(--line-2); }
.frag .acc { stroke: var(--cyan); }
.frag .win { fill: rgba(25, 215, 221, 0.12); stroke: var(--cyan); stroke-dasharray: 3 3; }
.frag .band { fill: rgba(240, 169, 60, 0.10); stroke: rgba(240, 169, 60, 0.35); stroke-dasharray: 3 3; }
.frag text { font-size: 11px; fill: var(--ink-2); letter-spacing: 0.04em; }
.frag .lbl { font-family: var(--body); font-size: 12.5px; fill: var(--ink); letter-spacing: 0; }
.frag .dim { fill: var(--ink-3); }
.frag .acc-t { fill: var(--cyan); }
.frag .warn-t { fill: var(--amber); }
.frag .dot-ok { fill: var(--ok); }
.frag .dot-acc { fill: var(--cyan); }

/* demo */
.demo-panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, var(--navy-2), var(--navy-1)); }
.demo-main { padding: clamp(28px, 4vw, 52px); }
.demo-main p { color: var(--ink-2); max-width: 48ch; }
.demo-main .btn { margin-top: 8px; }
.offer { padding: clamp(28px, 4vw, 52px); border-left: 1px solid var(--line-2); background: rgba(3, 15, 40, 0.5); display: flex; flex-direction: column; justify-content: center; }
.offer h3 { color: var(--cyan-2); }
.offer p { color: var(--ink-2); font-size: 0.98rem; }
.offer .btn { align-self: flex-start; }

/* sobre nós */
.story { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.5; max-width: 60ch; color: var(--ink-2); margin-bottom: 40px; }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 56px; }
.person { background: var(--navy-1); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; }
.avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--cyan-2); background: radial-gradient(circle at 30% 30%, var(--navy-3), var(--navy-2)); border: 1px solid rgba(25, 215, 221, 0.45); margin-bottom: 18px; }
.person h3 { font-size: 1.5rem; margin-bottom: 4px; }
.role { color: var(--ink); font-size: 0.98rem; margin-bottom: 2px; }
.where { color: var(--cyan); margin-bottom: 14px; }
.bio { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.principles h3 { font-size: 1.1rem; font-family: var(--mono); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.principle { border-top: 1px solid var(--line-2); padding-top: 18px; }
.principle h4 { color: var(--cyan-2); }
.principle p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.vision { margin-top: 48px; font-family: var(--display); font-weight: 500; font-size: 1.3rem; color: var(--ink-2); max-width: 40ch; }
.presence { color: var(--ink-3); }

/* contato */
.contact { overflow: hidden; }
.contact .wrap { position: relative; }
.contact p { max-width: 52ch; color: var(--ink-2); }
.mail { display: inline-block; font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 4.5vw, 3.6rem); color: var(--cyan); border-bottom: 2px solid transparent; margin: 8px 0 18px; word-break: break-all; transition: border-color 0.3s; }
.mail:hover { border-bottom-color: var(--cyan); }
.contact .aside { color: var(--ink-3); font-size: 0.95rem; }

/* rodapé */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--ink-3); font-size: 0.9rem; }
.foot-in { display: grid; gap: 14px; }
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.foot-brand .brand-mark { width: 28px; height: 28px; }
.foot-note { margin: 0; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.foot-row nav { display: flex; gap: 14px; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; }
.foot-row nav a[aria-current] { color: var(--cyan); }

/* 404 */
.nf-in { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 48px 0; }
.nf .kicker::after { display: none; }
.nf h1 { font-size: clamp(1.8rem, 4vw, 3rem); max-width: 24ch; }

/* revelação ao rolar */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .h-in, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .orbit, .led { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsivo ---------- */
@media (max-width: 1060px) {
  .nav { display: none; }
}
@media (max-width: 900px) {
  .hero-grid, .demo-panel, .module, .module.flip { grid-template-columns: 1fr; }
  .module.flip .module-copy { order: 0; }
  .grid-3, .people { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr; }
  .gate-line { display: none; }
  .offer { border-left: 0; border-top: 1px solid var(--line-2); }
  .orbit-hero { width: 120vw; right: -50%; top: -10%; }
  h2 { max-width: none; }
}
@media (max-width: 600px) {
  :root { --gut: 16px; }
  body { font-size: 1rem; }
  .top-in { min-height: 64px; gap: 12px; }
  .brand-text .os { color: var(--cyan); font-weight: 500; }
.brand-text small { display: none; }
  .btn-sm { padding: 8px 12px; font-size: 0.9rem; }
  .ac-rows div { grid-template-columns: 1fr; gap: 4px; }
  .agent-card { padding: 18px 18px 14px; }
  .plate-item h3 { padding-right: 32px; }
  .mail { font-size: clamp(1.35rem, 7.5vw, 2rem); }
}
