/* ===== GonService — MVP site ===== */
:root {
  --green-500: #2fa46a;
  --green-400: #3fbf7f;
  --green-300: #6ed9a2;
  --bg-900: #0b1210;
  --bg-850: #0e1714;
  --bg-800: #121d19;
  --bg-700: #1a2823;
  --ink-100: #eef5f1;
  --ink-300: #b9c8c1;
  --ink-500: #7e928a;
  --line: rgba(110, 217, 162, 0.14);
  --radius: 14px;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-900);
  color: var(--ink-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 16, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #fff;
  object-fit: cover;
}

.brand-name span { color: var(--green-400); }

.main-nav {
  display: flex;
  gap: 1.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-300);
}

.main-nav a { white-space: nowrap; }

.main-nav a:hover { color: var(--green-300); }

@media (max-width: 1080px) {
  .header-actions .nav-cta { display: none; }
  .main-nav { gap: 1.1rem; }
}

.header-actions { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }

.nav-cta { white-space: nowrap; }

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--ink-500);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.38rem 0.7rem;
  cursor: pointer;
  transition: 0.15s;
}

.lang-btn.active {
  background: var(--green-500);
  color: #06120c;
}

.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.85rem; border-radius: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink-100);
  border-radius: 2px;
  transition: 0.2s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 62px);
  min-height: calc(100svh - 62px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 0 4.5rem;
  text-align: center;
}

.hero-scroll {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  animation: hero-bounce 2s ease-in-out infinite;
}

.hero-scroll:hover { color: var(--green-500); }

@keyframes hero-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll { animation: none; }
}

.hero-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(600px 320px at 50% 10%, rgba(47, 164, 106, 0.22), transparent 70%),
    radial-gradient(400px 260px at 80% 40%, rgba(47, 164, 106, 0.10), transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green-300);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 21ch;
  margin-inline: auto;
}

.hero-title em {
  font-style: normal;
  color: var(--green-400);
}

.hero-sub {
  max-width: 62ch;
  margin: 1.4rem auto 0;
  color: var(--ink-300);
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.78rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.18s;
}

.btn-primary {
  background: var(--green-500);
  color: #06120c;
}

.btn-primary:hover { background: var(--green-400); transform: translateY(-1px); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink-100);
}

.btn-ghost:hover { border-color: var(--green-400); color: var(--green-300); }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.6rem;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-300);
  border: 1px solid var(--line);
  background: var(--bg-850);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}

/* ===== Proof band ===== */
.proof {
  border-block: 1px solid var(--line);
  background: var(--bg-850);
  padding: 1.8rem 0;
}

.proof-grid { margin-top: 0; gap: 2rem; }

.proof-item h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--green-300);
  margin-bottom: 0.25rem;
}

.proof-item p { color: var(--ink-300); font-size: 0.9rem; }

/* ===== Sections ===== */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-850); border-block: 1px solid var(--line); }

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--green-300);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--ink-300);
  max-width: 62ch;
  margin-bottom: 2rem;
}

/* ===== Cards ===== */
.grid { display: grid; gap: 1.1rem; margin-top: 2.2rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(110, 217, 162, 0.35);
}

.card-icon { font-size: 1.7rem; margin-bottom: 0.8rem; }

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.card p { color: var(--ink-300); font-size: 0.92rem; }

/* ===== Products ===== */
.product {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3.5rem;
}

.product-reverse .product-text { order: 2; }
.product-reverse .product-visual { order: 1; }

.product-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-300);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1rem;
}

.product-text h3 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.product-text > p { color: var(--ink-300); margin-bottom: 1.2rem; }

.feature-list { list-style: none; display: grid; gap: 0.55rem; }

.feature-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-300);
  font-size: 0.93rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-400);
  font-weight: 700;
}

/* Mock terminal */
.mock-terminal {
  background: #0a0f0d;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.mock-bar {
  display: flex;
  gap: 6px;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-700);
}

.mock-bar span:first-child { background: #e0604f; }
.mock-bar span:nth-child(2) { background: #e3b341; }
.mock-bar span:nth-child(3) { background: var(--green-500); }

.mock-code {
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
}

.mock-code code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--green-300);
  white-space: pre;
}

/* ===== Stack ===== */
.stack-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 2rem; }

.stack-group h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-500);
  margin-bottom: 0.8rem;
}

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  color: var(--ink-300);
}

/* ===== Product persona line ===== */
.product-for {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-300);
  margin-bottom: 0.8rem;
}

/* ===== Process steps ===== */
.step { position: relative; padding-top: 1.3rem; }

.step-num {
  position: absolute;
  top: -1.1rem;
  left: 1.2rem;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-500);
  color: #06120c;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(47, 164, 106, 0.35);
}

.steps { margin-top: 2.8rem; }

/* ===== Animação: portaria (facial + videochamada) — ciclo 14s ===== */
.anim-stage {
  position: relative;
  background: #0a0f0d;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.anim-intercom {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 0.5rem;
  padding: 1.6rem 1rem 1.2rem;
  min-height: 310px;
}

.scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.scene-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink-500);
}

.terminal {
  width: 148px;
  background: #16211c;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem;
  display: grid;
  gap: 0.5rem;
  animation: door-glow 14s linear infinite;
}

@keyframes door-glow {
  0%, 25% { box-shadow: none; border-color: var(--line); }
  27%, 33% { box-shadow: 0 0 0 2px rgba(47, 164, 106, 0.35); border-color: var(--green-500); }
  35%, 74% { box-shadow: none; border-color: var(--line); }
  76%, 86% { box-shadow: 0 0 0 2px rgba(47, 164, 106, 0.35); border-color: var(--green-500); }
  88%, 100% { box-shadow: none; border-color: var(--line); }
}

.t-screen {
  position: relative;
  width: 100%;
  height: 118px;
  background: linear-gradient(180deg, #131c17 0%, #0c1210 100%);
  border-radius: 8px;
  overflow: hidden;
}

.cam-hud {
  position: absolute;
  top: 5px;
  left: 6px;
  right: 6px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  z-index: 3;
}

.cam-hud .rec { color: #e0604f; display: flex; align-items: center; gap: 3px; }

.cam-hud .rec i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e0604f;
  animation: recblink 1.2s steps(2, start) infinite;
}

@keyframes recblink { to { visibility: hidden; } }

.cam-hud .cam-id { color: var(--ink-500); }

.cam-ts {
  position: absolute;
  bottom: 4px;
  left: 6px;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--ink-500);
  z-index: 3;
}

.person {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
}

.person .hair { width: 32px; height: 15px; border-radius: 16px 16px 0 0; margin-bottom: -7px; z-index: 2; }
.person .head { width: 27px; height: 30px; border-radius: 50% 50% 46% 46%; }
.person .shirt { width: 58px; height: 26px; border-radius: 16px 16px 0 0; margin-top: -3px; }

.person.pr .hair { background: #40302a; width: 36px; height: 19px; }
.person.pr .head { background: #c69b78; }
.person.pr .shirt { background: #2e5e63; }

.person.pv .hair { background: #1f1b18; }
.person.pv .head { background: #b98d6e; }
.person.pv .shirt { background: #4a4f57; }

.person.pr { animation: face1 14s linear infinite; }

@keyframes face1 {
  0%, 2% { opacity: 0; }
  5%, 24% { opacity: 1; }
  27%, 100% { opacity: 0; }
}

.person.pv { animation: face2 14s linear infinite; }

@keyframes face2 {
  0%, 38% { opacity: 0; }
  41%, 88% { opacity: 1; }
  91%, 100% { opacity: 0; }
}

.fbox {
  position: absolute;
  left: 50%;
  top: 46px;
  width: 42px;
  height: 46px;
  margin-left: -21px;
  border: 1px solid var(--green-400);
  border-radius: 5px;
  opacity: 0;
  z-index: 2;
  animation: fbox 14s linear infinite;
}

@keyframes fbox {
  0%, 6% { opacity: 0; border-color: var(--green-400); }
  9%, 24% { opacity: 1; border-color: var(--green-400); }
  27%, 43% { opacity: 0; border-color: var(--green-400); }
  46%, 56% { opacity: 1; border-color: #e3b341; }
  59%, 100% { opacity: 0; border-color: #e3b341; }
}

.fbox-label {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--green-300);
  white-space: nowrap;
  opacity: 0;
  animation: fboxlabel 14s linear infinite;
}

@keyframes fboxlabel {
  0%, 11% { opacity: 0; }
  14%, 24% { opacity: 1; }
  27%, 100% { opacity: 0; }
}

.t-scan {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-400), transparent);
  opacity: 0;
  z-index: 2;
  animation: scan 14s linear infinite;
}

@keyframes scan {
  0%, 5% { top: 10px; opacity: 0; }
  6% { opacity: 1; }
  10% { top: 104px; opacity: 1; }
  13% { top: 10px; opacity: 1; }
  15%, 43% { opacity: 0; }
  44% { top: 10px; opacity: 1; }
  47% { top: 104px; opacity: 1; }
  49%, 100% { opacity: 0; }
}

.t-msg {
  position: relative;
  width: 100%;
  height: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  text-align: center;
}

.t-msg span { position: absolute; inset: 0; opacity: 0; white-space: nowrap; }

.tm-ok { color: var(--green-300); animation: tmok 14s linear infinite; }

@keyframes tmok {
  0%, 15% { opacity: 0; }
  17%, 25% { opacity: 1; }
  27%, 100% { opacity: 0; }
}

.tm-vis { color: #e3b341; animation: tmvis 14s linear infinite; }

@keyframes tmvis {
  0%, 45% { opacity: 0; }
  47%, 55% { opacity: 1; }
  57%, 100% { opacity: 0; }
}

.tm-call { color: var(--ink-300); animation: tmcall 14s linear infinite; }

@keyframes tmcall {
  0%, 56% { opacity: 0; }
  58%, 70% { opacity: 1; }
  72%, 100% { opacity: 0; }
}

.tm-door { color: var(--green-300); font-weight: 700; animation: tmdoor 14s linear infinite; }

@keyframes tmdoor {
  0%, 26% { opacity: 0; }
  28%, 34% { opacity: 1; }
  36%, 75% { opacity: 0; }
  77%, 86% { opacity: 1; }
  88%, 100% { opacity: 0; }
}

.sig {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 0;
}

.sig i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-400);
  opacity: 0;
  animation: sigmove 14s linear infinite;
}

.sig i:nth-child(2) { animation-delay: 0.30s; }
.sig i:nth-child(3) { animation-delay: 0.60s; }

@keyframes sigmove {
  0%, 56% { transform: translateX(-56px); opacity: 0; }
  58% { opacity: 1; }
  64% { transform: translateX(50px); opacity: 1; }
  66%, 100% { transform: translateX(50px); opacity: 0; }
}

.phone {
  width: 122px;
  height: 214px;
  border-radius: 18px;
  background: #101a16;
  border: 1px solid var(--line);
  padding: 0.35rem 0.5rem 0.55rem;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: phbuzz 14s ease-in-out infinite;
}

@keyframes phbuzz {
  0%, 58% { transform: none; }
  59.5% { transform: rotate(1.5deg); }
  61% { transform: rotate(-1.5deg); }
  62.5% { transform: rotate(1deg); }
  64% { transform: rotate(-1deg); }
  65%, 100% { transform: none; }
}

.ph-statusbar {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--ink-500);
  padding: 0 0.15rem;
}

.ph-home {
  position: absolute;
  inset: 2rem 0.5rem 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.6rem;
  gap: 0.15rem;
  animation: phhome 14s linear infinite;
}

.ph-clock { font-size: 1.3rem; font-weight: 300; color: var(--ink-100); letter-spacing: 0.02em; }

.ph-date { font-size: 0.56rem; color: var(--ink-500); }

@keyframes phhome {
  0%, 57% { opacity: 1; }
  60%, 93% { opacity: 0; }
  97%, 100% { opacity: 1; }
}

.ph-call {
  position: absolute;
  inset: 1.5rem 0.5rem 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  animation: phcall 14s linear infinite;
}

@keyframes phcall {
  0%, 58% { opacity: 0; }
  61%, 93% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

.ph-callerlabel {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  color: var(--green-300);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ph-video {
  width: 100%;
  flex: 1;
  background: linear-gradient(180deg, #131c17 0%, #0c1210 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.ph-video .person { opacity: 1; animation: none; }
.ph-video .person .hair { width: 24px; height: 11px; margin-bottom: -5px; background: #1f1b18; }
.ph-video .person .head { width: 20px; height: 22px; background: #b98d6e; }
.ph-video .person .shirt { width: 42px; height: 18px; background: #4a4f57; }

.ph-actions {
  width: 100%;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.ph-decline {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #52302c;
  color: #e0604f;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.ph-openbtn {
  flex: 1;
  height: 28px;
  border-radius: 8px;
  background: var(--green-500);
  color: #06120c;
  position: relative;
  font-size: 0.62rem;
  font-weight: 700;
  animation: obtn 14s linear infinite;
}

@keyframes obtn {
  0%, 71% { transform: none; }
  72% { transform: scale(0.93); }
  74%, 100% { transform: none; }
}

.ph-openbtn span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
}

.ob-label { animation: oblabel 14s linear infinite; }

@keyframes oblabel {
  0%, 58% { opacity: 0; }
  61%, 72% { opacity: 1; }
  74%, 100% { opacity: 0; }
}

.ob-done { animation: obdone 14s linear infinite; }

@keyframes obdone {
  0%, 73% { opacity: 0; }
  75%, 93% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

/* ===== Animação: Mais Contábil (empresa → dashboard → NF-e) — ciclo 12s ===== */
.anim-fiscal { padding: 1.3rem; }

.fw {
  background: #101a16;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.fw-title {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 400;
  color: var(--ink-500);
  margin-left: 0.5rem;
}

.fw-body {
  display: grid;
  grid-template-columns: 128px 1fr;
  min-height: 240px;
}

.fw-side {
  border-right: 1px solid var(--line);
  padding: 0.7rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fw-side-title {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-500);
  padding-left: 0.3rem;
  margin-bottom: 0.15rem;
}

.crow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.4rem;
  border-radius: 6px;
}

.crow i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-700);
  color: var(--green-300);
  font-family: var(--font-mono);
  font-size: 0.48rem;
  font-style: normal;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.crow div { min-width: 0; }

.crow b { display: block; font-size: 0.56rem; font-weight: 600; color: var(--ink-300); line-height: 1.25; white-space: nowrap; }

.crow small { display: block; font-family: var(--font-mono); font-size: 0.46rem; color: var(--ink-500); white-space: nowrap; }

.crow.c2 { animation: rowsel 12s linear infinite; }

@keyframes rowsel {
  0%, 8% { background: transparent; box-shadow: none; }
  11%, 88% { background: rgba(47, 164, 106, 0.15); box-shadow: inset 0 0 0 1px rgba(110, 217, 162, 0.3); }
  93%, 100% { background: transparent; box-shadow: none; }
}

.fw-main {
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
}

.fdash {
  display: grid;
  gap: 0.5rem;
  opacity: 0;
  animation: fdash-in 12s linear infinite;
}

@keyframes fdash-in {
  0%, 11% { opacity: 0; transform: translateY(8px); }
  15%, 88% { opacity: 1; transform: none; }
  93%, 100% { opacity: 0; transform: translateY(8px); }
}

.fd-title { font-size: 0.66rem; font-weight: 700; color: var(--ink-100); }

.fstat-row { display: flex; gap: 0.5rem; }

.fstat {
  flex: 1;
  background: #0d1512;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.55rem;
  display: grid;
  gap: 0.25rem;
  align-content: start;
}

.fs-label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
}

.fs-value { font-size: 0.82rem; font-weight: 800; color: var(--ink-100); }

.fs-sub { font-family: var(--font-mono); font-size: 0.5rem; color: var(--ink-500); }

.fs-bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; }

.fs-bars i {
  flex: 1;
  background: var(--green-500);
  opacity: 0.85;
  border-radius: 2px 2px 0 0;
  height: 0;
}

.fs-bars i:nth-child(1) { animation: bar1 12s linear infinite; }
.fs-bars i:nth-child(2) { animation: bar2 12s linear infinite; }
.fs-bars i:nth-child(3) { animation: bar3 12s linear infinite; }
.fs-bars i:nth-child(4) { animation: bar4 12s linear infinite; }

@keyframes bar1 { 0%, 14% { height: 0; } 18%, 88% { height: 9px; } 93%, 100% { height: 0; } }
@keyframes bar2 { 0%, 15% { height: 0; } 19%, 88% { height: 15px; } 93%, 100% { height: 0; } }
@keyframes bar3 { 0%, 16% { height: 0; } 20%, 88% { height: 12px; } 93%, 100% { height: 0; } }
@keyframes bar4 { 0%, 17% { height: 0; } 21%, 88% { height: 20px; } 93%, 100% { height: 0; } }

.fc-btn {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #06120c;
  background: var(--green-500);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  animation: fcbtn 12s linear infinite;
}

@keyframes fcbtn {
  0%, 32% { transform: none; }
  34% { transform: scale(0.9); }
  36%, 100% { transform: none; }
}

.fnote {
  background: #eef5f1;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  padding-right: 6.5rem;
  display: grid;
  gap: 0.28rem;
  position: relative;
  opacity: 0;
  animation: fnote-in 12s linear infinite;
}

@keyframes fnote-in {
  0%, 38% { opacity: 0; transform: translateY(10px); }
  42%, 88% { opacity: 1; transform: none; }
  93%, 100% { opacity: 0; transform: translateY(10px); }
}

.fn-title { font-family: var(--font-mono); font-size: 0.58rem; font-weight: 700; color: #22302a; }

.fn-row { font-size: 0.56rem; color: #4a5a52; }

.fn-status {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: #5a6b62;
  opacity: 0;
  animation: fnstat 12s linear infinite;
}

@keyframes fnstat {
  0%, 43% { opacity: 0; }
  46%, 58% { opacity: 1; }
  61%, 100% { opacity: 0; }
}

.fn-stamp {
  position: absolute;
  right: 0.6rem;
  bottom: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--green-500);
  border: 2px solid var(--green-500);
  border-radius: 6px;
  padding: 0.15rem 0.4rem;
  transform: rotate(-6deg) scale(0);
  animation: stamp 12s linear infinite;
}

@keyframes stamp {
  0%, 58% { transform: rotate(-6deg) scale(0); opacity: 0; }
  62% { transform: rotate(-6deg) scale(1.15); opacity: 1; }
  65%, 88% { transform: rotate(-6deg) scale(1); opacity: 1; }
  93%, 100% { transform: rotate(-6deg) scale(0); opacity: 0; }
}

.fcursor {
  position: absolute;
  left: 72%;
  top: 82%;
  z-index: 2;
  animation: fcur 12s linear infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.fcursor::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 11px solid #eef5f1;
  border-right: 4px solid transparent;
  border-bottom: 15px solid transparent;
  transform: rotate(-10deg);
}

@keyframes fcur {
  0% { left: 72%; top: 82%; }
  8% { left: 18%; top: 34%; }
  10% { left: 18%; top: 34%; transform: scale(0.85); }
  12% { transform: scale(1); }
  30% { left: 36%; top: 62%; }
  33% { left: 36%; top: 62%; transform: scale(0.85); }
  35% { transform: scale(1); }
  46% { left: 78%; top: 80%; }
  100% { left: 72%; top: 82%; }
}

@media (prefers-reduced-motion: reduce) {
  .anim-stage * { animation: none !important; }
  .person.pr, .tm-door, .ph-call, .ob-done, .fdash, .fnote, .fn-stamp, .fbox, .fbox-label { opacity: 1 !important; }
  .person.pv, .tm-ok, .tm-vis, .tm-call, .ob-label, .ph-home, .fn-status, .fcursor, .t-scan { display: none !important; }
  .fdash, .fnote { transform: none !important; }
  .fn-stamp { transform: rotate(-6deg) !important; }
  .fs-bars i:nth-child(1) { height: 9px !important; }
  .fs-bars i:nth-child(2) { height: 15px !important; }
  .fs-bars i:nth-child(3) { height: 12px !important; }
  .fs-bars i:nth-child(4) { height: 20px !important; }
}

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(135deg, rgba(47, 164, 106, 0.16), rgba(47, 164, 106, 0.04));
  border-block: 1px solid var(--line);
  padding: 3.5rem 0;
}

.cta-band-inner { text-align: center; }

.cta-band h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.cta-band p {
  color: var(--ink-300);
  max-width: 52ch;
  margin: 0 auto 1.6rem;
}

/* ===== Contact form ===== */
.contact-form {
  max-width: 560px;
  margin: 0 auto 1.8rem;
  display: grid;
  gap: 1rem;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-300);
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink-100);
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--green-400); }

.contact-form .btn { justify-self: center; margin-top: 0.4rem; border: none; cursor: pointer; font-family: inherit; }

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #05230f;
}

.btn-wa:hover { background: #22c35e; transform: translateY(-1px); }

.btn-wa svg { flex-shrink: 0; }

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-500);
  margin-top: 0.2rem;
}

@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; }
  .proof-grid { gap: 1.2rem; }
}

/* ===== Contact ===== */
.contact-inner { text-align: center; }
.contact-inner .section-sub { margin-inline: auto; }

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.footer-brand .brand-logo { width: 28px; height: 28px; }

.footer-note { color: var(--ink-500); font-size: 0.85rem; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .product,
  .product-reverse { grid-template-columns: 1fr; gap: 1.8rem; }
  .product-reverse .product-text { order: 1; }
  .product-reverse .product-visual { order: 2; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    inset: 57px 0 auto;
    flex-direction: column;
    gap: 0;
    background: var(--bg-850);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0 1rem;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }

  .main-nav.open { transform: translateY(0); }

  .main-nav a {
    padding: 0.8rem 1.4rem;
    border-bottom: 1px solid rgba(110, 217, 162, 0.06);
  }

  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .hero { padding: 4rem 0 3.5rem; }

  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .stack-groups { grid-template-columns: 1fr; }

  .section { padding: 3.5rem 0; }
}

/* ===== Tema claro (variação para comparação) ===== */
body.theme-light {
  --green-500: #1f9257;
  --green-400: #157a49;
  --green-300: #12693f;
  --bg-900: #ffffff;
  --bg-850: #f4f8f5;
  --bg-800: #ffffff;
  --bg-700: #e6ede9;
  --ink-100: #131f19;
  --ink-300: #46564d;
  --ink-500: #6d7e75;
  --line: rgba(18, 80, 48, 0.16);
}

body.theme-light .site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

body.theme-light .hero-glow {
  background:
    radial-gradient(600px 320px at 50% 10%, rgba(31, 146, 87, 0.12), transparent 70%),
    radial-gradient(400px 260px at 80% 40%, rgba(31, 146, 87, 0.06), transparent 70%);
}

/* Botões: verde mais fechado pede texto branco */
body.theme-light .btn-primary,
body.theme-light .lang-btn.active { color: #ffffff; }

/* Cards ganham uma leve sombra em fundo claro */
body.theme-light .card {
  box-shadow: 0 1px 3px rgba(16, 40, 28, 0.06);
}

body.theme-light .card:hover {
  box-shadow: 0 6px 18px rgba(16, 40, 28, 0.10);
}

/* Chips/badges com fundo levemente esverdeado */
body.theme-light .chip,
body.theme-light .badge {
  background: #f0f5f2;
}

/* As "telas" das animações (celular, terminal, câmera, janela do app)
   continuam escuras de propósito — é assim que um aparelho/tela real parece,
   e dá um contraste elegante de "painel de demonstração" sobre o fundo claro. */
body.theme-light .anim-stage {
  box-shadow: 0 18px 50px rgba(16, 40, 28, 0.18);
}

body.theme-light .mock-terminal {
  box-shadow: 0 18px 50px rgba(16, 40, 28, 0.18);
}
