/* Identidade própria da Minubyte — escuro profundo, um acento lima elétrico. */
:root {
  --bg: #05060a;
  --bg-2: #0a0b10;
  --elev: #101118;
  --elev-2: #16171f;
  --ink: #f4f5f2;
  --muted: #9aa0ab;
  --dim: #6d7380;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --lime: #c8ff3d;
  --lime-2: #dcff6e;
  --lime-dim: rgba(200, 255, 61, 0.12);
  --lime-glow: rgba(200, 255, 61, 0.35);
  --paper: #f3efe6;
  --paper-ink: #1c1915;
  --header-h: 4.25rem;
  --font-display: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --font-sans: "Inter Tight", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --content: 77.5rem;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 1.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .scan-line, .phone-float, .glow-orb { animation: none !important; }
  .scene-receipt { opacity: 0 !important; }
  .scene-report { opacity: 1 !important; }
  .bar i { transform: none !important; width: var(--w) !important; }
  .progress-line i { width: 100% !important; }
  .flow-pulse { animation: none !important; opacity: 0 !important; }
  .flow-node, .flow-node .flow-icon { animation: none !important; }
  .flow-node {
    border-color: rgba(200, 255, 61, 0.28) !important;
    box-shadow: none !important;
  }
  .flow-node .flow-icon {
    color: var(--lime) !important;
    border-color: rgba(200, 255, 61, 0.4) !important;
    background: var(--lime-dim) !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: #111; }

body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--lime); text-underline-offset: 0.16em; }
a:hover { color: var(--lime-2); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.96;
  color: var(--ink);
  margin: 0 0 0.8rem;
}
h1 { font-size: clamp(2.75rem, 9.2vw, 8.75rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.04em; line-height: 1.05; }
h3 { font-size: 1.15rem; letter-spacing: -0.03em; line-height: 1.25; }

p { margin: 0 0 1rem; color: var(--muted); }
.lead { font-size: 1.08rem; line-height: 1.6; max-width: 34rem; color: var(--muted); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--lime);
  color: #111;
  padding: 0.5rem 0.85rem;
  z-index: 100;
  font-weight: 600;
}
.skip:focus { top: 0.8rem; }

.wrap {
  width: min(var(--content), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(5, 6, 10, 0.55);
  backdrop-filter: blur(22px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo {
  display: block;
  height: 1.75rem;
  width: auto;
  flex: none;
}
@media (max-width: 700px) { .brand-logo { height: 1.5rem; } }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.04em;
}
.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav a:hover, .nav a:focus-visible { color: var(--ink); }
.menu-toggle {
  display: none;
  border: 1px solid var(--line-2);
  background: var(--elev);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  word-spacing: 0.08em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lime,
a.btn-lime,
button.btn-lime,
.nav a.btn-lime,
.nav a.btn-lime:hover,
.nav a.btn-lime:focus-visible,
.btn-lime:hover,
.btn-lime:focus-visible {
  background: var(--lime);
  color: #05060a;
  font-weight: 600;
  box-shadow: 0 0 0 0 rgba(200, 255, 61, 0);
}
.btn-lime:hover, .btn-lime:focus-visible,
.nav a.btn-lime:hover, .nav a.btn-lime:focus-visible {
  background: var(--lime-2);
  color: #05060a;
  box-shadow: 0 0 28px var(--lime-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.04); color: var(--ink); }

.btn:focus-visible,
.menu-toggle:focus-visible,
input:focus-visible,
textarea:focus-visible,
.consent input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.kicker {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 1.4rem) 0 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 72% 48%, rgba(200, 255, 61, 0.16), transparent 60%),
    radial-gradient(ellipse 40% 35% at 12% 20%, rgba(200, 255, 61, 0.05), transparent 55%),
    radial-gradient(ellipse 45% 30% at 30% 100%, rgba(200, 255, 61, 0.04), transparent 50%),
    var(--bg);
  z-index: 0;
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 50%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 50%, #000 10%, transparent 70%);
  z-index: 0;
}
.glow-orb {
  position: absolute;
  width: 36rem;
  height: 36rem;
  right: -4rem;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(200,255,61,0.22) 0%, rgba(200,255,61,0.05) 35%, transparent 68%);
  filter: blur(8px);
  animation: pulse-orb 8s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes pulse-orb {
  0%, 100% { opacity: 0.75; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.07); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  width: min(var(--content), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}
.hero-copy h1 { margin-bottom: 0; }
.hero-copy h1 .acc { color: var(--lime); }
.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 3rem;
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.35rem 0 1rem; }
.hero-note { font-size: 0.9rem; color: var(--dim); margin: 0; max-width: 32rem; }

/* Phone */
.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1400px;
  padding: 1rem 0;
}
.phone-float {
  animation: float-y 6.5s ease-in-out infinite;
  transform-style: preserve-3d;
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.phone {
  width: 300px;
  height: 614px;
  background: linear-gradient(160deg, #2a2b32 0%, #0c0d11 40%, #08090c 100%);
  border-radius: 42px;
  padding: 10px;
  position: relative;
  transform: rotateY(-12deg) rotateX(4deg) rotateZ(2deg);
  box-shadow:
    0 50px 80px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 90px rgba(200,255,61,0.12),
    inset 0 1px 0 rgba(255,255,255,0.18);
}
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  right: -3px;
  width: 3px;
  background: #1c1d22;
  border-radius: 2px;
}
.phone::before { top: 120px; height: 52px; }
.phone::after { top: 186px; height: 86px; }
.phone-side {
  position: absolute;
  left: -3px;
  top: 150px;
  width: 3px;
  height: 36px;
  background: #1c1d22;
  border-radius: 2px;
}
.phone-screen {
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  background: #0b0c10;
}
.island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 22px;
  background: #05060a;
  border-radius: 20px;
  z-index: 5;
}

.scene {
  position: absolute;
  inset: 0;
  padding: 48px 16px 18px;
}
.scene-receipt {
  background: var(--paper);
  color: var(--paper-ink);
  animation: rec-cycle 10s var(--ease) infinite;
}
.scene-report {
  background: #0b0c10;
  color: var(--ink);
  animation: rep-cycle 10s var(--ease) infinite;
  opacity: 0;
}
@keyframes rec-cycle {
  0%, 46% { opacity: 1; }
  56%, 90% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes rep-cycle {
  0%, 50% { opacity: 0; }
  60%, 88% { opacity: 1; }
  100% { opacity: 0; }
}
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  top: 10%;
  background: var(--lime);
  box-shadow: 0 0 16px 4px var(--lime-glow), 0 18px 30px rgba(200,255,61,0.2);
  z-index: 4;
  animation: scan-move 10s var(--ease) infinite;
  opacity: 0;
}
@keyframes scan-move {
  0%, 10% { top: 12%; opacity: 0; }
  16% { opacity: 1; }
  44% { top: 90%; opacity: 1; }
  50%, 100% { top: 90%; opacity: 0; }
}

.r-head, .rep-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  padding-bottom: 10px;
}
.scene-receipt .r-head {
  border-bottom: 1px dashed #c8c0b2;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b645b;
}
.r-brand { font-weight: 700; color: var(--paper-ink); letter-spacing: 0.08em; }
.r-row, .rep-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  padding: 0.45rem 0;
}
.scene-receipt .r-row { border-bottom: 1px dotted #d5cdc0; color: #3f3a34; }
.r-total {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--paper-ink);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--lime-dim);
  color: var(--lime);
}
.rep-head { border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.rep-title { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: -0.03em; }
.rep-row { color: var(--muted); border-bottom: 1px solid var(--line); }
.bar {
  height: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin: 6px 0 2px;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lime);
  border-radius: inherit;
  animation: bar-fill 10s var(--ease) infinite;
}
.bar.b1 i { --w: 82%; }
.bar.b2 i { --w: 54%; }
.bar.b3 i { --w: 70%; }
@keyframes bar-fill {
  0%, 52% { width: 0; }
  68%, 88% { width: var(--w); }
  100% { width: 0; }
}
.rep-foot {
  margin-top: 16px;
  font-size: 0.7rem;
  color: var(--dim);
}

/* Sections */
.section { padding: clamp(4.5rem, 10vh, 7.5rem) 0; position: relative; }
.section-head { max-width: 38rem; margin-bottom: 2.5rem; }

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.012));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.3rem;
  min-height: 14.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.card:hover { border-color: rgba(200,255,61,0.28); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.4rem; }
.card p { font-size: 0.95rem; margin-bottom: 0; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }
.span-6 { grid-column: span 6; }
.mini { margin-top: 1.1rem; }

/* Mini UIs */
.ui-report { display: grid; gap: 0.65rem; }
.ui-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.ui-track { height: 6px; background: rgba(255,255,255,0.06); border-radius: 99px; overflow: hidden; grid-column: 1 / -1; }
.ui-track span { display: block; height: 100%; background: var(--lime); border-radius: inherit; }

.ui-notch {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  margin-top: 1rem;
}
.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime-glow);
  margin-top: 0.35rem;
  flex: none;
}
.ui-notch strong { display: block; font-size: 0.85rem; color: var(--ink); font-weight: 600; }
.ui-notch span { font-size: 0.78rem; color: var(--muted); }

.ui-nodes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
  margin-top: 1.4rem;
}
.node {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--elev);
  display: grid;
  place-items: center;
  color: var(--lime);
}
.node svg { width: 1.15rem; height: 1.15rem; }
.node-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--lime), var(--line-2));
}


/* System flow diagram */
.flow { margin: 0 0 3.2rem; }
.flow-track { position: relative; }
.flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}
.flow-wire {
  fill: none;
  stroke: rgba(200, 255, 61, 0.42);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flow-pulse {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 14 100;
  stroke-dashoffset: 14;
  opacity: 0;
  filter: drop-shadow(0 0 6px var(--lime-glow));
  animation: flow-idle 12s linear infinite;
}
.flow-pulse[data-link="1-2"] { animation-name: flow-pulse-a; }
.flow-pulse[data-link="2-3"] { animation-name: flow-pulse-b; }
.flow-pulse[data-link="3-4"] { animation-name: flow-pulse-c; }
.flow-pulse[data-link="4-5"] { animation-name: flow-pulse-d; }
.flow-pulse[data-link="5-6"],
.flow-pulse[data-link="5-7"] { animation-name: flow-pulse-e; }

@keyframes flow-pulse-a {
  0% { stroke-dashoffset: 14; opacity: 0; }
  1% { opacity: 1; }
  12.5% { stroke-dashoffset: -100; opacity: 0; }
  12.6%, 100% { stroke-dashoffset: 14; opacity: 0; }
}
@keyframes flow-pulse-b {
  0%, 12.4% { stroke-dashoffset: 14; opacity: 0; }
  12.5% { stroke-dashoffset: 14; opacity: 1; }
  25% { stroke-dashoffset: -100; opacity: 0; }
  25.1%, 100% { stroke-dashoffset: 14; opacity: 0; }
}
@keyframes flow-pulse-c {
  0%, 24.9% { stroke-dashoffset: 14; opacity: 0; }
  25% { stroke-dashoffset: 14; opacity: 1; }
  37.5% { stroke-dashoffset: -100; opacity: 0; }
  37.6%, 100% { stroke-dashoffset: 14; opacity: 0; }
}
@keyframes flow-pulse-d {
  0%, 37.4% { stroke-dashoffset: 14; opacity: 0; }
  37.5% { stroke-dashoffset: 14; opacity: 1; }
  50% { stroke-dashoffset: -100; opacity: 0; }
  50.1%, 100% { stroke-dashoffset: 14; opacity: 0; }
}
@keyframes flow-pulse-e {
  0%, 49.9% { stroke-dashoffset: 14; opacity: 0; }
  50% { stroke-dashoffset: 14; opacity: 1; }
  62.5% { stroke-dashoffset: -100; opacity: 0; }
  62.6%, 100% { stroke-dashoffset: 14; opacity: 0; }
}

.flow-nodes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-areas:
    "n1 n2 n3 n4 n5"
    "bl bl bl n6 n7";
  gap: 3.4rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}
.flow-node {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.05rem 1.15rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation-duration: 12s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.flow-node h3 {
  font-size: 0.98rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 0.35rem;
}
.flow-node p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.flow-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line-2);
  background: var(--elev);
  color: var(--dim);
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  animation-duration: 12s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.flow-icon svg { width: 1.15rem; height: 1.15rem; }

.flow-node[data-step="1"], .flow-node[data-step="1"] .flow-icon { animation-name: flow-lit-1; }
.flow-node[data-step="2"], .flow-node[data-step="2"] .flow-icon { animation-name: flow-lit-2; }
.flow-node[data-step="3"], .flow-node[data-step="3"] .flow-icon { animation-name: flow-lit-3; }
.flow-node[data-step="4"], .flow-node[data-step="4"] .flow-icon { animation-name: flow-lit-4; }
.flow-node[data-step="5"], .flow-node[data-step="5"] .flow-icon { animation-name: flow-lit-5; }
.flow-node[data-step="6"], .flow-node[data-step="6"] .flow-icon,
.flow-node[data-step="7"], .flow-node[data-step="7"] .flow-icon { animation-name: flow-lit-6; }

@keyframes flow-lit-1 {
  0%, 88% { border-color: rgba(200,255,61,0.42); box-shadow: 0 0 0 1px rgba(200,255,61,0.06), 0 0 22px rgba(200,255,61,0.08); color: var(--lime); background: linear-gradient(180deg, rgba(200,255,61,0.08), rgba(255,255,255,0.012)); }
  93%, 100% { border-color: var(--line); box-shadow: none; color: var(--dim); background: var(--elev); }
}
@keyframes flow-lit-2 {
  0%, 12.4% { border-color: var(--line); box-shadow: none; color: var(--dim); background: var(--elev); }
  12.5%, 88% { border-color: rgba(200,255,61,0.42); box-shadow: 0 0 0 1px rgba(200,255,61,0.06), 0 0 22px rgba(200,255,61,0.08); color: var(--lime); background: linear-gradient(180deg, rgba(200,255,61,0.08), rgba(255,255,255,0.012)); }
  93%, 100% { border-color: var(--line); box-shadow: none; color: var(--dim); background: var(--elev); }
}
@keyframes flow-lit-3 {
  0%, 24.9% { border-color: var(--line); box-shadow: none; color: var(--dim); background: var(--elev); }
  25%, 88% { border-color: rgba(200,255,61,0.42); box-shadow: 0 0 0 1px rgba(200,255,61,0.06), 0 0 22px rgba(200,255,61,0.08); color: var(--lime); background: linear-gradient(180deg, rgba(200,255,61,0.08), rgba(255,255,255,0.012)); }
  93%, 100% { border-color: var(--line); box-shadow: none; color: var(--dim); background: var(--elev); }
}
@keyframes flow-lit-4 {
  0%, 37.4% { border-color: var(--line); box-shadow: none; color: var(--dim); background: var(--elev); }
  37.5%, 88% { border-color: rgba(200,255,61,0.42); box-shadow: 0 0 0 1px rgba(200,255,61,0.06), 0 0 22px rgba(200,255,61,0.08); color: var(--lime); background: linear-gradient(180deg, rgba(200,255,61,0.08), rgba(255,255,255,0.012)); }
  93%, 100% { border-color: var(--line); box-shadow: none; color: var(--dim); background: var(--elev); }
}
@keyframes flow-lit-5 {
  0%, 49.9% { border-color: var(--line); box-shadow: none; color: var(--dim); background: var(--elev); }
  50%, 88% { border-color: rgba(200,255,61,0.42); box-shadow: 0 0 0 1px rgba(200,255,61,0.06), 0 0 22px rgba(200,255,61,0.08); color: var(--lime); background: linear-gradient(180deg, rgba(200,255,61,0.08), rgba(255,255,255,0.012)); }
  93%, 100% { border-color: var(--line); box-shadow: none; color: var(--dim); background: var(--elev); }
}
@keyframes flow-lit-6 {
  0%, 62.4% { border-color: var(--line); box-shadow: none; color: var(--dim); background: var(--elev); }
  62.5%, 88% { border-color: rgba(200,255,61,0.42); box-shadow: 0 0 0 1px rgba(200,255,61,0.06), 0 0 22px rgba(200,255,61,0.08); color: var(--lime); background: linear-gradient(180deg, rgba(200,255,61,0.08), rgba(255,255,255,0.012)); }
  93%, 100% { border-color: var(--line); box-shadow: none; color: var(--dim); background: var(--elev); }
}

/* Icon wells should keep a solid well background, not the card gradient */
.flow-node .flow-icon {
  /* overwrite background from the shared keyframe mid-cycle via more specific mid? 
     The same animation-name is applied to both node and icon; icon will get the card gradient too.
     Fix: separate icon keyframes were merged. Use background on icon with ! or split. */
}

.flow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
}
.flow-chips li {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid rgba(200, 255, 61, 0.28);
  background: var(--lime-dim);
  border-radius: 999px;
  padding: 0.14rem 0.36rem;
  white-space: nowrap;
}
.flow-branch-label {
  display: flex;
  align-items: center;
  list-style: none;
}
.flow-branch-label p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 22rem;
}

@media (max-width: 1020px) {
  .flow-nodes {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "n1 n1"
      "n2 n2"
      "n3 n3"
      "n4 n4"
      "n5 n5"
      "bl bl"
      "n6 n7";
    gap: 1.35rem 0.9rem;
  }
  .flow-branch-label { padding: 0.2rem 0 0; }
  .flow { margin-bottom: 2.6rem; }
}

.flow-node .flow-icon {
  /* keep well look even when the lit keyframe sets a gradient background */
}
@media (max-width: 1020px) {
  .flow-node { min-height: 0; }
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}
.progress-line {
  position: absolute;
  top: 1.1rem;
  left: calc(16.66% + 1.15rem);
  right: calc(16.66% + 1.15rem);
  height: 2px;
  background: var(--line-2);
  z-index: 0;
  overflow: hidden;
}
.progress-line i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime-glow);
}
.is-visible .progress-line i,
.steps.is-visible .progress-line i {
  animation: fill-line 1.5s var(--ease) 0.2s forwards;
}
@keyframes fill-line { to { width: 100%; } }

.step {
  position: relative;
  z-index: 1;
  padding-top: 0;
}
.step-num {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--lime);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}
.step p:last-child { margin-bottom: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3.2rem;
}
.list { list-style: none; padding: 0; margin: 0; }
.list li {
  padding: 0.75rem 0 0.75rem 1.15rem;
  position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.list li:last-child { border-bottom: 0; }
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--lime);
}

.note {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  max-width: 46rem;
  font-size: 0.95rem;
}
.note p { margin: 0; }

/* CTA */
.cta {
  position: relative;
  padding: clamp(5rem, 12vh, 8rem) 0;
  overflow: hidden;
  text-align: center;
}
.cta-glow {
  position: absolute;
  width: 42rem;
  height: 24rem;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(200,255,61,0.16), transparent 65%);
  pointer-events: none;
}
.cta h2 { font-size: clamp(2.4rem, 6vw, 5.5rem); max-width: 16ch; margin: 0 auto 1rem; }
.cta .lead { margin-inline: auto; max-width: 42rem; }
.cta-actions { margin-top: 1.8rem; display: flex; justify-content: center; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
form {
  display: grid;
  gap: 1rem;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.field { display: grid; gap: 0.35rem; }
label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.hint { font-size: 0.8rem; color: var(--dim); font-weight: 400; }
input, textarea {
  font: inherit;
  color: var(--ink);
  background: #0b0c11;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  width: 100%;
}
textarea { min-height: 8rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, textarea:focus {
  border-color: rgba(200,255,61,0.55);
  box-shadow: 0 0 0 3px var(--lime-dim);
  outline: none;
}
.consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
}
.consent input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: var(--lime);
  flex: none;
}
.form-status { display: none; padding: 0.75rem 0.85rem; font-size: 0.9rem; border-radius: 10px; }
.form-status.is-visible { display: block; }
.form-status.info { background: var(--lime-dim); color: var(--ink); }
.form-status.error { background: rgba(255, 90, 70, 0.12); color: #ffc4bc; }
.endpoint-note { margin: 0; font-size: 0.78rem; color: var(--dim); }
code { font-size: 0.85em; }

/* Privacy page */
.page-main { padding: calc(var(--header-h) + 3.5rem) 0 5rem; }
.policy { max-width: 42rem; }
.policy h3 {
  margin: 1.6rem 0 0.4rem;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  letter-spacing: 0;
  font-weight: 650;
  line-height: 1.4;
}
.policy p { color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  font-size: 0.88rem;
  color: var(--dim);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.9rem 1.3rem; }

/* Responsive */
@media (min-width: 1021px) {
  .hero {
    height: 100svh;
    min-height: 100svh;
    padding: calc(var(--header-h) + 1.15rem) 0 2rem;
    overflow: hidden;
  }
  .hero-grid { gap: 1rem; flex: 1 1 auto; width: min(var(--content), calc(100% - 2 * var(--pad))); max-width: 100%; }
  .hero-visual { padding: 0.25rem 0 0.5rem; align-items: center; }
  .phone { width: 220px; height: 450px; }
}
@media (max-width: 1020px) {
  .hero-grid { gap: 1.2rem; }
  .hero-bottom, .contact-grid, .two-col { grid-template-columns: 1fr; }
  .hero { padding-bottom: 3.2rem; }
  .hero-visual { order: 2; }
  .hero-support { order: 1; }
  .phone { transform: rotateY(-8deg) rotateX(4deg) rotateZ(1deg) scale(0.92); }
  .span-4, .span-3, .span-2 { grid-column: span 6; }
  .bento { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .progress-line { display: none; }
  .card { min-height: 0; }
}
@media (max-width: 700px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(5, 6, 10, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem var(--pad) 1.3rem;
    gap: 0.9rem;
  }
  .nav.is-open { display: flex; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .phone { width: 240px; height: 490px; }
}

/* ===== v5 — Hero de software (painel de sistemas) ===== */
.sys-visual { perspective: 1600px; }
.sys-float {
  position: relative;
  width: min(100%, 34rem);
  animation: float-y 7s ease-in-out infinite;
}
.sys-panel {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(22,23,31,0.92), rgba(10,11,16,0.94));
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 90px rgba(0,0,0,0.55), 0 0 90px rgba(200,255,61,0.10), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: rotateY(-9deg) rotateX(5deg);
  overflow: hidden;
}
.sys-bar {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem; color: var(--dim);
}
.sys-dots { display: flex; gap: 6px; }
.sys-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.sys-title { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: 0.02em; flex: 1; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime-glow); animation: live 1.8s ease-in-out infinite; }
@keyframes live { 50% { opacity: 0.35; } }
.sys-graph { width: 100%; height: auto; padding: 0.9rem 0.6rem 0.2rem; overflow: visible; }
.sys-links path { stroke: rgba(255,255,255,0.14); stroke-width: 1.4; }
.sys-pulses path {
  stroke: var(--lime); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 14 100; stroke-dashoffset: 114;
  filter: drop-shadow(0 0 4px rgba(200,255,61,0.7));
  animation: sys-pulse 3.2s linear infinite;
}
.sys-pulses .p2 { animation-delay: 0.5s; } .sys-pulses .p3 { animation-delay: 1s; }
.sys-pulses .p4 { animation-delay: 1.4s; } .sys-pulses .p5 { animation-delay: 1.9s; } .sys-pulses .p6 { animation-delay: 2.4s; }
@keyframes sys-pulse { 0% { stroke-dashoffset: 114; opacity: 0; } 8% { opacity: 1; } 55% { stroke-dashoffset: 0; opacity: 1; } 62%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.sys-node rect { fill: rgba(255,255,255,0.035); stroke: rgba(255,255,255,0.13); }
.sys-node circle { fill: var(--muted); }
.sys-node.out circle { fill: var(--lime); }
.sys-node text { fill: var(--ink); font-family: var(--font-sans); font-size: 13px; font-weight: 500; letter-spacing: -0.01em; }
.hub-ring { stroke: rgba(200,255,61,0.35); stroke-width: 1.2; stroke-dasharray: 3 5; animation: spin 18s linear infinite; transform-origin: 240px 118px; }
.hub-core { fill: #0b0c10; stroke: rgba(255,255,255,0.22); }
.hub-mark { fill: #E9EAEC; }
@keyframes spin { to { transform: rotate(360deg); } }
.sys-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; padding: 0.4rem 1rem 1rem; }
.sys-tile {
  border: 1px solid var(--line); border-radius: 12px; padding: 0.6rem 0.7rem;
  background: rgba(255,255,255,0.02); font-size: 0.7rem; color: var(--dim);
  display: grid; gap: 0.45rem;
}
.sk { display: block; height: 5px; border-radius: 99px; background: rgba(255,255,255,0.06); overflow: hidden; }
.sk i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, rgba(200,255,61,0.55), var(--lime)); border-radius: inherit; animation: sk-grow 5s var(--ease) infinite; }
@keyframes sk-grow { 0% { width: 8%; } 45%, 85% { width: var(--w); } 100% { width: 8%; } }
.code-card {
  position: absolute; left: -2.4rem; bottom: -1.6rem;
  border-radius: 14px; padding: 0.8rem 1rem;
  background: rgba(8,9,13,0.92); border: 1px solid var(--line-2);
  box-shadow: 0 24px 50px rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  transform: rotateY(-9deg) rotateX(5deg) translateZ(40px);
}
.code-card pre { margin: 0; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.7rem; line-height: 1.55; color: var(--muted); }
.code-card .c-k { color: var(--lime); }
.code-card .c-s { color: #e9eaec; }
.code-card .c-f { color: #b9c2ff; }

/* Bento — janela de app */
.ui-window { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(0,0,0,0.25); max-width: 30rem; }
.uw-bar { display: flex; gap: 5px; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); }
.uw-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.uw-body { display: grid; grid-template-columns: 5.5rem 1fr; }
.uw-side { display: grid; gap: 0.5rem; padding: 0.7rem; border-right: 1px solid var(--line); align-content: start; }
.uw-side span { height: 6px; border-radius: 99px; background: rgba(255,255,255,0.08); }
.uw-side span:first-child { background: var(--lime); width: 70%; }
.uw-main { display: grid; gap: 0.55rem; padding: 0.7rem 0.8rem; }
.uw-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.uw-row > span:first-child { height: 7px; border-radius: 99px; background: rgba(255,255,255,0.1); }
.w60 { width: 60%; } .w80 { width: 80%; } .w45 { width: 45%; }
.tag { font-size: 0.62rem; padding: 0.12rem 0.45rem; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }
.tag.ok { color: var(--lime); border-color: rgba(200,255,61,0.35); background: var(--lime-dim); }

/* Processo em 5 passos */
.steps-5 { grid-template-columns: repeat(5, 1fr); }
.steps-5 .progress-line { left: 1.15rem; right: calc((100% - 6rem) / 5 - 1.15rem); }
.step h3 { margin-bottom: 0.45rem; }
.step p { font-size: 0.93rem; }

/* Produto: Minubyte Recibos */
.product { overflow: hidden; border-top: 1px solid var(--line); }
.product-glow {
  position: absolute; width: 40rem; height: 40rem; right: -10rem; top: 2rem;
  background: radial-gradient(circle, rgba(200,255,61,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.product-intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem 3rem; align-items: center; margin-bottom: 4rem; position: relative; }
.product-intro .section-head { margin-bottom: 0; }
.product-visual { display: flex; justify-content: center; perspective: 1400px; padding: 1rem 0; }
.product-visual .phone { width: 250px; height: 512px; }

@media (max-width: 1020px) {
  .steps-5 { grid-template-columns: 1fr; }
  .product-intro { grid-template-columns: 1fr; }
  .sys-float { margin: 0 auto; }
  .code-card { left: 0.6rem; bottom: -2.2rem; }
}
@media (max-width: 700px) {
  .sys-panel, .code-card { transform: none; }
  .sys-foot { grid-template-columns: 1fr 1fr 1fr; padding-inline: 0.7rem; }
  .sys-tile { padding: 0.5rem; font-size: 0.62rem; }
  .code-card { position: relative; left: auto; bottom: auto; margin: 0.75rem 0.8rem 0; }
  .product-visual .phone { width: 240px; height: 490px; }
}
@media (prefers-reduced-motion: reduce) {
  .sys-pulses path, .sk i, .hub-ring, .live-dot, .sys-float { animation: none !important; }
  .sys-pulses path { stroke-dashoffset: 0; opacity: 0.7; }
}
@media (min-width: 1021px) {
  .sys-foot { padding-left: 10.2rem; }
  .hero .sys-visual { padding-bottom: 2rem; }
}
.ui-migrate { display: flex; align-items: center; gap: 0.7rem; }
.ui-migrate .chip { font-size: 0.75rem; padding: 0.4rem 0.75rem; border-radius: 10px; border: 1px solid var(--line-2); color: var(--muted); background: rgba(255,255,255,0.02); white-space: nowrap; }
.ui-migrate .chip.on { color: var(--lime); border-color: rgba(200,255,61,0.35); background: var(--lime-dim); }
.ui-migrate .arrow { flex: 1; max-width: 6rem; height: 1px; background: linear-gradient(90deg, var(--line-2), var(--lime)); position: relative; }
.ui-migrate .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--lime); border-right: 1px solid var(--lime); transform: rotate(45deg); }
.audience { font-size: 0.92rem; color: var(--ink); border-left: 2px solid var(--lime); padding-left: 0.8rem; max-width: 34rem; }
/* v6 — mais contraste no grafo e hero que cabe em ecrãs baixos */
.sys-links path { stroke: rgba(255,255,255,0.26); stroke-width: 1.6; }
.sys-node rect { fill: rgba(255,255,255,0.05); stroke: rgba(255,255,255,0.22); }
@media (min-width: 1021px) {
  .hero-copy h1 { font-size: min(8.75rem, 9.2vw, 15.5svh); }
  .sys-float { width: min(100%, 34rem, 60svh); }
}
@media (min-width: 1021px) {
  .hero, .hero-grid { justify-content: safe center; }
  .hero-copy h1 { font-size: min(8.75rem, 9.2vw, 14svh); }
}
