:root {
  --void: #060a0f;
  --ink: #0e1620;
  --ink-2: #1a2430;
  --paper: #f2f4f6;
  --white: #ffffff;
  --muted: #5c6b78;
  --fog: #9aa7b2;
  --accent: #e8a54b;
  --accent-deep: #c8842e;
  --signal: #3ecfcf;
  --cad: #01a1a4;
  --map: #f0a020;
  --line: rgba(14, 22, 32, 0.1);
  --line-light: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(6, 10, 15, 0.28);
  --font-display: "Syne", "Avenir Next", sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
  --font-brand: "Poppins", "Avenir Next", system-ui, sans-serif;
  --header-h: 76px;
  --scroll-offset: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
}

section[id] {
  scroll-margin-top: var(--scroll-offset);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--void);
  box-shadow: 0 12px 32px rgba(232, 165, 75, 0.35);
}

.btn-primary:hover {
  background: #f0b45e;
  color: var(--void);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(14, 22, 32, 0.22);
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-cad {
  background: var(--cad);
  color: #fff;
  box-shadow: 0 10px 28px rgba(1, 161, 164, 0.3);
}

.btn-cad:hover {
  background: #017a7d;
  color: #fff;
}

.btn-map {
  background: var(--map);
  color: var(--void);
}

.btn-map:hover {
  filter: brightness(1.05);
  color: var(--void);
}

.btn-block {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled,
.header.header-legal {
  background: rgba(6, 10, 15, 0.88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-light);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none !important;
  color: #fff;
}

.logo-mark {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 9px;
}

.logo-lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.08rem;
  line-height: 1;
}

.logo-word {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
  font-stretch: normal;
}

.logo-dot {
  width: 0.38em;
  height: 0.38em;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transform: translateY(0.02em);
}

.logo-sub {
  font-family: var(--font-brand);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none !important;
}

.nav a:hover {
  color: #fff;
}

.nav .nav-cta {
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  color: #fff;
}

.nav-legal {
  display: flex !important;
  position: static !important;
  flex-direction: row !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.nav-legal a {
  border: none !important;
  padding: 0 !important;
}

.nav .nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.menu-toggle-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}

.menu-toggle-icon span {
  position: absolute;
  left: 0;
  right: 0;
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.menu-toggle-icon span:nth-child(1) { top: 0; }
.menu-toggle-icon span:nth-child(2) { top: 6px; }
.menu-toggle-icon span:nth-child(3) { top: 12px; }

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 4.5rem;
  color: #fff;
  overflow: hidden;
  background: var(--void);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(232, 165, 75, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 70%, rgba(62, 207, 207, 0.16), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(1, 161, 164, 0.12), transparent 45%),
    linear-gradient(165deg, #060a0f 0%, #0e1620 45%, #121c28 100%);
}

.hero-grid {
  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: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(64px); }
}

.hero-glow {
  position: absolute;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  right: -8%;
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 165, 75, 0.18), transparent 65%);
  filter: blur(8px);
  animation: pulseGlow 7s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  from { opacity: 0.55; transform: scale(1); }
  to { opacity: 1; transform: scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.35rem;
  color: #fff;
  animation: brandIn 0.9s var(--ease) both;
}

.hero-mark {
  width: clamp(72px, 14vw, 104px);
  height: clamp(72px, 14vw, 104px);
  object-fit: contain;
  border-radius: 22px;
  filter: drop-shadow(0 12px 36px rgba(232, 165, 75, 0.28));
}

.hero-lockup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  line-height: 1;
}

.hero-word {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-family: var(--font-brand);
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: 0;
  font-stretch: normal;
  color: #fff;
}

.hero-word .logo-dot {
  width: 0.28em;
  height: 0.28em;
}

.hero-sub {
  font-family: var(--font-brand);
  font-size: clamp(0.65rem, 1.5vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 650;
  color: rgba(255, 255, 255, 0.94);
  max-width: 18ch;
  animation: brandIn 0.9s 0.08s var(--ease) both;
}

.hero-lead {
  margin: 0 0 1.8rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 38ch;
  animation: brandIn 0.9s 0.16s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: brandIn 0.9s 0.24s var(--ease) both;
}

@keyframes brandIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-scroll {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--white);
}

.section-dark {
  background: var(--ink);
  color: #fff;
}

.section-title {
  margin-bottom: 2.4rem;
  max-width: 40rem;
}

.section-title h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-dark .section-title p {
  color: rgba(255, 255, 255, 0.62);
}

.kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.section-dark .kicker {
  color: var(--accent);
}

/* Products */
.product-stack {
  display: grid;
  gap: 1.25rem;
}

.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 1.6rem 1.5rem 1.7rem;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.product:hover {
  border-color: rgba(14, 22, 32, 0.28);
  transform: translateY(-2px);
}

.product-featured {
  background:
    linear-gradient(135deg, rgba(1, 161, 164, 0.08), transparent 45%),
    var(--white);
  border-color: rgba(1, 161, 164, 0.35);
}

.product-offmap {
  background:
    linear-gradient(135deg, rgba(240, 160, 32, 0.1), transparent 45%),
    var(--white);
  border-color: rgba(240, 160, 32, 0.35);
}

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-featured .product-tag {
  color: var(--cad);
}

.product-offmap .product-tag {
  color: var(--accent-deep);
}

.product h3 {
  margin: 0.45rem 0 0.65rem;
  font-size: 1.45rem;
}

.product > p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.product ul {
  margin: 0 0 1.25rem;
  padding: 0 0 0 1.1rem;
  color: var(--ink-2);
}

.product li {
  margin-bottom: 0.35rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (min-width: 800px) {
  .product {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    padding: 2rem 2rem 1.9rem;
  }

  .product-body {
    padding-right: 1rem;
  }
}

/* Solutions */
.solutions-lead {
  max-width: 42rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
}

.solutions-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-light);
}

.solution-row {
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-light);
}

.solution-row h3 {
  margin: 0;
  font-size: 1.25rem;
}

.solution-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  max-width: 48rem;
}

@media (min-width: 720px) {
  .solution-row {
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: baseline;
  }
}

.solutions-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.solutions-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
}

/* Why */
.why-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-item {
  padding-top: 1.1rem;
  border-top: 2px solid var(--accent);
}

.why-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
}

.why-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Partner BTG */
.partner-btg {
  background: var(--void);
  color: #fff;
  border-radius: 8px;
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
}

.partner-btg-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.partner-btg h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: #fff;
}

.partner-btg ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
}

.partner-btg li + li {
  margin-top: 0.4rem;
}

.partner-btg-note {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.partner-btg .btn {
  margin-top: 0.15rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr 0.85fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.about-copy p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.about-panel {
  padding: 1.6rem;
  background: var(--ink);
  color: #fff;
}

.about-panel h3 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
}

.about-panel dl {
  margin: 0;
}

.about-panel dt {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.85rem;
}

.about-panel dd {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.9);
}

.about-panel a {
  color: var(--accent);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
  }
}

.contact-copy p {
  color: var(--muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.form {
  display: grid;
  gap: 0.9rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.form input,
.form textarea {
  font: inherit;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
}

.form input:focus,
.form textarea:focus {
  outline: 2px solid rgba(232, 165, 75, 0.45);
  border-color: var(--accent);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-check input {
  margin-top: 0.25rem;
}

/* Footer */
.footer {
  background: var(--void);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0 2rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  color: #fff;
  text-decoration: none !important;
}

.footer-brand img {
  height: 48px;
  width: 48px;
  object-fit: contain;
}

.footer-brand strong {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  font-size: 1.05rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--line-light);
  padding-top: 1.2rem;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--accent);
}

/* Fab + LGPD */
.fab-stack {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(6, 10, 15, 0.35);
  font-size: 1.2rem;
  background: var(--ink);
  color: #fff;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background 0.2s ease;
}

.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(6, 10, 15, 0.42);
}

.fab svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}

.fab-wa {
  background: #25d366;
}

.fab-wa:hover {
  background: #1ebe57;
}

#fab-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#fab-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.lgpd-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: rgba(6, 10, 15, 0.96);
  color: rgba(255, 255, 255, 0.85);
  padding: 1rem 0;
  border-top: 1px solid var(--line-light);
}

.lgpd-bar[hidden] {
  display: none !important;
}

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

.lgpd-inner p {
  margin: 0;
  font-size: 0.88rem;
  max-width: 48rem;
}

.lgpd-inner a {
  color: var(--accent);
}

body.has-lgpd-bar .fab-stack {
  bottom: 5.5rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legal */
.header-legal .logo-word {
  color: #fff;
}

.legal {
  padding: calc(var(--header-h) + 2.5rem) 0 4rem;
}

.legal h1 {
  margin: 0 0 0.4rem;
  font-size: 2rem;
}

.legal .updated {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.legal h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.2rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal-box {
  padding: 1.2rem 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
}

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 4vw 1rem;
    background: rgba(6, 10, 15, 0.96);
    border-bottom: 1px solid var(--line-light);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.9rem 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav .nav-cta {
    margin-top: 0.6rem;
    text-align: center;
  }

  .hero {
    align-items: center;
    padding-bottom: 5rem;
  }

  .hero-actions .btn,
  .product-actions .btn,
  .contact-links .btn {
    width: 100%;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
