/* =========================================================
   All in Systems — Landing page
   ========================================================= */

:root {
  --bg: #050706;
  --bg-alt: #0b0f0d;
  --surface: #101613;
  --surface-2: #151d19;
  --border: #1f2a24;
  --text: #e9efeb;
  --text-muted: #93a39a;
  --green: #1ec160;
  --green-strong: #18a752;
  --green-soft: rgba(30, 193, 96, .12);
  --radius: 14px;
  --container: 1160px;
  --header-h: 72px;
  --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--green); }
.muted { color: var(--text-muted); font-weight: 400; }

.eyebrow {
  font-family: var(--font-serif);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .45em;
  font-size: .85rem;
  color: var(--green);
  margin-bottom: 1rem;
}

/* The square logo JPG sits on black; logo-mark/logo-full PNGs are transparent */
.about__brand img { mix-blend-mode: screen; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  font: 500 1rem/1 var(--font);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #04130a; }
.btn--primary:hover { background: #2ad46f; }
.btn--ghost { border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--sm { padding: .6rem 1.1rem; font-size: .95rem; }
.btn--block { width: 100%; }
.btn .icon { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(5, 7, 6, .85);
  backdrop-filter: blur(12px);
  border-color: var(--border);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { color: var(--text-muted); font-size: .98rem; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -180px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(30, 193, 96, .18), transparent 65%);
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .35;
  mask-image: radial-gradient(ellipse at 70% 50%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 10%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 600; }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0 2.5rem; }

.hero__values {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  color: var(--text-muted);
  font-size: .82rem;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hero__values li { display: flex; align-items: center; gap: .6rem; }
.hero__values li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.panel {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(30, 193, 96, .05);
  overflow: hidden;
}
.panel__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-muted);
}
.panel__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.panel__bar i:first-child { background: var(--green); }
.panel__bar span { margin-left: 10px; font-family: ui-monospace, Consolas, monospace; }
.panel__body { display: grid; place-items: center; padding: 48px 24px; background: #000; }
.panel__body img { width: 100%; max-width: 340px; height: auto; }
.panel__status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font: .8rem ui-monospace, Consolas, monospace;
  color: var(--text-muted);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(30, 193, 96, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(30, 193, 96, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 193, 96, 0); }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section__head h2,
.about__copy h2,
.contact__copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.section__head p:last-child { color: var(--text-muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(30, 193, 96, .5); transform: translateY(-4px); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--text-muted); margin: 0; font-size: .98rem; }
.card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-soft);
  margin-bottom: 22px;
}
.card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step { position: relative; padding: 28px 24px 4px; border-top: 2px solid var(--border); }
.step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--green);
}
.step__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--green);
  margin-bottom: 14px;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--text-muted); font-size: .98rem; }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.about__brand {
  background: #000;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.about__brand img { width: 100%; height: 100%; object-fit: cover; }
.about__copy p { color: var(--text-muted); }
.about__copy strong { color: var(--text); font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; }
.checks li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231ec160' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__copy > p { color: var(--text-muted); }
.channels { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 12px; }
.channels a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s;
  word-break: break-word;
}
.channels a:hover { border-color: rgba(30, 193, 96, .5); }
.channels small { display: block; color: var(--text-muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.channels__icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green-soft);
}
.channels__icon svg { width: 22px; height: 22px; fill: var(--green); }

.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
}
.form h3 { font-size: 1.3rem; margin-bottom: 1.2rem; }
.form__row { margin-bottom: 16px; }
.form label { display: block; font-size: .9rem; margin-bottom: 6px; }
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: .8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; }
.form input::placeholder,
.form textarea::placeholder { color: #5f6e66; }
.form input:focus,
.form select:focus,
.form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.form__error { color: #ff7b7b; font-size: .9rem; }
.form__hint { color: var(--text-muted); font-size: .82rem; text-align: center; margin: 12px 0 0; }

/* Projects */
.project {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.project h3 { font-size: 1.5rem; }
.project p { color: var(--text-muted); }
.project .btn { margin-top: .5rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 22px;
  transition: border-color .2s;
}
.faq details[open] { border-color: rgba(30, 193, 96, .5); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  position: relative;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  font-size: 1.4rem;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-muted); margin: 0 0 18px; }

/* Legal pages (privacidade.html, termos.html, 404.html) */
.legal { padding: calc(var(--header-h) + 48px) 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal p,
.legal li { color: var(--text-muted); }
.legal a:not(.btn) { color: var(--green); text-decoration: underline; }
.legal strong { color: var(--text); font-weight: 600; }

/* Footer */
.footer { padding: 56px 0 40px; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; }
.footer__logo { height: 28px; width: auto; margin-bottom: 14px; }
.footer__tag {
  font-family: var(--font-serif);
  letter-spacing: .35em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--text-muted);
}
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 0 0 1em; font-size: .9rem; }
.footer__links a { color: var(--text-muted); transition: color .2s; }
.footer__links a:hover { color: var(--green); }
.footer__copy { color: #5f6e66; font-size: .85rem; margin: 0; }

/* WhatsApp floating button */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  box-shadow: 0 10px 30px -6px rgba(30, 193, 96, .55);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; fill: #04130a; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner,
  .about,
  .contact { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 460px; }
  .about__brand { max-width: 420px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: rgba(5, 7, 6, .97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav__cta { margin-top: 16px; }
  .header.menu-open { background: rgba(5, 7, 6, .97); border-color: var(--border); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .hero { padding-top: calc(var(--header-h) + 32px); }
  .hero__actions .btn { flex: 1 1 100%; }
  .cards,
  .steps { grid-template-columns: 1fr; }
  .form,
  .project { padding: 24px 20px; }
  .faq details { padding: 0 16px; }
  .eyebrow { letter-spacing: .3em; }
}
