/* ============================================================
   Neo Software — Landing Page v1
   Identidade: premium sóbrio · esmeralda elétrica · eclipse
   ============================================================ */

:root {
  --bg: #080b09;
  --bg-deep: #050706;
  --bg-raise: #0b0f0c;
  --ink: #edefec;
  --ink-dim: #9ba39e;
  --ink-faint: #5f6a63;
  --emerald: #00c46a;
  --emerald-soft: rgba(0, 196, 106, 0.12);
  --emerald-line: rgba(0, 196, 106, 0.25);
  --emerald-deep: #04220f;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;
  --container: 1120px;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, #0c100d 0%, var(--bg) 40%, var(--bg-deep) 100%)
    var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--emerald); color: var(--emerald-deep); }

a:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- granulado de filme ---------- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 90;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(4) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1%); }
  50%  { transform: translate(1%, -2%); }
  75%  { transform: translate(-1%, -1%); }
  100% { transform: translate(2%, 2%); }
}

/* ============================================================
   NAVEGAÇÃO
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 11, 9, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(237, 239, 236, 0.06);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.logo-img { height: 24px; width: auto; display: block; }

.nav-links { display: flex; gap: 36px; }
.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }

.nav-cta {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(237, 239, 236, 0.22);
  border-radius: 999px;
  padding: 9px 20px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav-cta:hover, .nav-cta:focus-visible {
  border-color: rgba(0, 196, 106, 0.6);
  background: var(--emerald-soft);
}

/* ============================================================
   HERO — a planta permanente (blueprint)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 24px 80px;
}

/* scrim: escurece a faixa onde o texto vive, p/ a arte recuar atrás do conteúdo */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 58% 40% at 50% 53%,
    rgba(8, 11, 9, 0.74) 0%,
    rgba(8, 11, 9, 0.46) 46%,
    transparent 77%
  );
}

.blueprint-wrap {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  margin: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blueprint {
  position: relative;
  display: block;
  width: 100%;
}

.flow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dash-slow   { animation: dash 60s linear infinite; }
.dash-slower { animation: dash 95s linear infinite reverse; }
@keyframes dash { to { stroke-dashoffset: -1000; } }

.orbit-group {
  transform-origin: 450px 350px;
  transform-box: view-box;
  animation: orbit-rot 120s linear infinite;
}
@keyframes orbit-rot { to { transform: rotate(360deg); } }

.eye-core { animation: eye-pulse 7s ease-in-out infinite; }
@keyframes eye-pulse {
  0%, 100% { opacity: .85; }
  50%      { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 680px;
}

.eyebrow-tech {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--emerald);
  margin-bottom: 26px;
  text-shadow: 0 1px 10px rgba(5, 7, 6, 0.85);
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(29px, 4.6vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
  text-shadow: 0 1px 3px rgba(5, 7, 6, 0.55), 0 2px 40px rgba(5, 7, 6, 0.85);
}

.hero-sub {
  max-width: 520px;
  margin: 22px auto 0;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
  color: var(--ink-dim);
  text-shadow: 0 1px 14px rgba(5, 7, 6, 0.92);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.fig-label {
  position: absolute;
  bottom: 34px;
  right: 32px;
  z-index: 10;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}

.btn-primary {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--emerald-deep);
  background: var(--emerald);
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 34px;
  box-shadow: 0 0 32px rgba(0, 196, 106, 0.35);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 46px rgba(0, 196, 106, 0.5);
}

.btn-ghost {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.25s ease;
}
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--ink); }

/* ============================================================
   SEÇÕES
   ============================================================ */
.section {
  position: relative;
  padding: clamp(90px, 12vw, 150px) 24px;
}
.section-alt {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 196, 106, 0.025) 50%, transparent 100%);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
}
.container-narrow { max-width: 760px; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 18px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.32;
  text-wrap: balance;
}

.section-sub {
  max-width: 560px;
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-dim);
}

/* ---------- serviços: cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 56px;
}
.card {
  background: var(--bg-raise);
  border: 1px solid rgba(237, 239, 236, 0.07);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover {
  border-color: var(--emerald-line);
  transform: translateY(-3px);
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 14px;
}
.card p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-dim);
}

/* ---------- abordagem: princípios ---------- */
.principles {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.principle {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.principle-mark {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 6px;
  border-radius: 50%;
  border: 3px solid var(--emerald);
  position: relative;
}
.principle-mark::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 4px;
  height: 4px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--emerald);
}
.principle h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  margin-bottom: 10px;
}
.principle p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-dim);
  max-width: 600px;
}

/* ---------- produtos: destaque ---------- */
.product-feature {
  margin-top: 56px;
  background: var(--bg-raise);
  border: 1px solid rgba(237, 239, 236, 0.07);
  border-radius: var(--radius);
  padding: clamp(36px, 5vw, 56px);
  max-width: 720px;
}
.product-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald);
  background: var(--emerald-soft);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}
.product-feature h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.35;
  margin-bottom: 14px;
}
.product-feature p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-dim);
  margin-bottom: 26px;
}

/* ---------- CTA final ---------- */
.section-cta { padding-bottom: clamp(110px, 14vw, 180px); }
.cta-box { text-align: center; }
.cta-box .section-sub { margin-left: auto; margin-right: auto; }
.cta-box .btn-primary { margin-top: 34px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid rgba(237, 239, 236, 0.06);
  padding: 36px 24px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer .logo-img { height: 20px; }
.footer-meta {
  font-size: 13px;
  color: var(--ink-faint);
}

/* ============================================================
   REVEAL ao rolar
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVO / ACESSIBILIDADE
   ============================================================ */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding-top: 100px; }
  /* olho maior no mobile — a 100vw ele escala pequeno demais */
  .blueprint-wrap { width: 140vw; }
  /* scrim focado só atrás do título (largo demais apagava o olho) */
  .hero::after {
    background: radial-gradient(
      ellipse 70% 36% at 50% 51%,
      rgba(8, 11, 9, 0.76) 0%,
      rgba(8, 11, 9, 0.42) 48%,
      transparent 76%
    );
  }
  .principle { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .dash-slow, .dash-slower, .orbit-group, .eye-core { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn-primary { transition: none; }
}
