/* =============================================================
   GALOPERA SOLUÇÕES CORPORATIVAS — Design System (Landing)
   Paleta: Verde (principal) + Grafite + Branco
   Mobile-first, app-like, premium.
   ============================================================= */

:root {
  /* ---- Paleta Verde (5 tons da identidade) ---- */
  --green-900: #07371f; /* mais escuro */
  --green-800: #0a4a29;
  --green-700: #0c5e33; /* escuro */
  --green-600: #11823f;
  --green-500: #16a34a; /* MARCA / principal */
  --green-400: #2ec45f;
  --green-300: #5fd97e;
  --green-200: #8fe89a; /* claro */
  --green-100: #d7f7dd;

  /* ---- Grafite / Neutros ---- */
  --ink-900: #0b0f0d; /* fundo profundo */
  --ink-800: #11161a;
  --ink-700: #181f25;
  --ink-600: #232b33;
  --ink-500: #38424c;
  --ink-400: #5b6670;
  --ink-300: #8a949d;
  --ink-200: #c3cad0;
  --ink-100: #eef1f3;

  --white: #ffffff;
  --off: #f5f8f6;

  /* ---- Semânticos ---- */
  --bg: var(--ink-900);
  --bg-soft: var(--ink-800);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(143, 232, 154, 0.25);
  --text: #eef3ef;
  --text-soft: #aeb8b2;
  --text-mut: #7d877f;

  --brand: var(--green-500);
  --brand-soft: var(--green-400);
  --brand-deep: var(--green-700);

  --danger: #ef4444;
  --warn: #f59e0b;
  --ok: var(--green-400);

  /* ---- Raio / Sombra ---- */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-full: 999px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 12px 50px rgba(22, 163, 74, 0.22);
  --shadow-soft: 0 6px 24px rgba(0, 0, 0, 0.25);

  /* ---- Tipografia ---- */
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --maxw: 1180px;

  --nav-h: 68px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image: radial-gradient(
      1200px 600px at 80% -10%,
      rgba(22, 163, 74, 0.18),
      transparent 60%
    ),
    radial-gradient(900px 500px at -10% 10%, rgba(12, 94, 51, 0.16), transparent 55%);
  background-attachment: fixed;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 64px 0;
  position: relative;
}

/* ============ Tipografia utilitária ============ */
h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-200);
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid var(--border-strong);
  padding: 7px 14px;
  border-radius: var(--r-full);
}

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(26px, 5vw, 40px);
  margin: 16px 0 12px;
}
.section-head p {
  color: var(--text-soft);
  font-size: 16px;
}
.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.text-grad {
  background: linear-gradient(100deg, var(--green-200), var(--green-400) 55%, var(--green-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ Botões ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: var(--r-full);
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  color: #04230f;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 60px rgba(22, 163, 74, 0.4);
}
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.btn-light {
  background: var(--white);
  color: var(--ink-800);
}
.btn-light:hover {
  transform: translateY(-2px);
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 10px 16px;
  font-size: 13.5px;
}

/* ============ Glass card ============ */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ============ Topbar (desktop) ============ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.topbar.scrolled {
  background: rgba(11, 15, 13, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--green-400), var(--green-700));
  display: grid;
  place-items: center;
  color: #04230f;
  font-size: 18px;
  font-weight: 900;
  box-shadow: var(--shadow-glow);
}
.brand small {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-mut);
  text-transform: uppercase;
}
.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}
.footer-logo {
  height: 48px;
}
@media (max-width: 720px) {
  .brand-logo { height: 34px; }
}
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  padding: 9px 14px;
  border-radius: var(--r-full);
  font-size: 14.5px;
  color: var(--text-soft);
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

/* ============ Hero ============ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 13, 0.5), var(--bg) 92%);
}
.hero-grid {
  display: grid;
  gap: 40px;
}
.hero h1 {
  font-size: clamp(34px, 7vw, 64px);
  font-weight: 800;
  margin: 22px 0 18px;
}
.hero .sub {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--text-soft);
  max-width: 620px;
  margin-bottom: 30px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-stats {
  display: flex;
  gap: 26px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stats .stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--green-300);
}
.hero-stats .stat span {
  font-size: 13px;
  color: var(--text-mut);
}

/* ============ Grids de cards ============ */
.grid {
  display: grid;
  gap: 18px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.card .ic {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(22, 163, 74, 0.14);
  color: var(--green-300);
  margin-bottom: 16px;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: 14.5px; }

/* ============ Produtos ============ */
.product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.product-card .cover {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--green-700), var(--ink-700));
  position: relative;
  overflow: hidden;
}
.product-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 11px;
  border-radius: var(--r-full);
  background: rgba(7, 55, 31, 0.7);
  color: var(--green-200);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong);
}
.product-card .body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-card .body h3 { font-size: 18px; }
.product-card .body p { color: var(--text-soft); font-size: 14px; flex: 1; }

/* ============ Hub / Espaço ============ */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hub-item {
  border-radius: var(--r-lg);
  padding: 22px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(7, 55, 31, 0.2), rgba(11, 15, 13, 0.6)),
    linear-gradient(135deg, var(--green-800), var(--ink-700));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hub-item .ic { color: var(--green-200); margin-bottom: 10px; }
.hub-item h4 { font-size: 16px; }
.hub-item p { font-size: 13px; color: var(--text-soft); }

/* ============ Processo ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.step {
  text-align: center;
  padding: 22px 14px;
}
.step .num {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #04230f;
  background: linear-gradient(135deg, var(--green-300), var(--green-600));
}
.step h4 { font-size: 15px; }

/* ============ Provas / métricas ============ */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.metric {
  text-align: center;
  padding: 28px 16px;
}
.metric strong {
  display: block;
  font-size: clamp(30px, 5vw, 44px);
  color: var(--green-300);
  font-weight: 800;
}
.metric span { color: var(--text-soft); font-size: 14px; }

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.testi p { font-size: 15px; font-style: italic; color: var(--text); }
.testi .who {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi .who .av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-400), var(--green-700));
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #04230f;
}
.testi .who b { font-size: 14px; }
.testi .who small { color: var(--text-mut); display: block; }

/* ============ Formulários ============ */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.form {
  display: grid;
  gap: 14px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}
.input,
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-mut); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-400);
  background: rgba(22, 163, 74, 0.07);
}
.field select option { background: var(--ink-700); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ============ CTA final ============ */
.cta-final {
  text-align: center;
  background: linear-gradient(135deg, var(--green-700), var(--ink-800));
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 56px 28px;
  box-shadow: var(--shadow-glow);
}
.cta-final h2 { font-size: clamp(26px, 5vw, 42px); margin-bottom: 22px; }
.cta-final .hero-ctas { justify-content: center; }

/* ============ Footer ============ */
.footer {
  padding: 56px 0 110px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mut);
  margin-bottom: 14px;
}
.footer a { display: block; padding: 5px 0; font-size: 14px; }
.footer a:hover { color: var(--green-300); }
.footer .socials { display: flex; gap: 10px; margin-top: 14px; }
.footer .socials a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
}
.footer .socials a:hover { border-color: var(--border-strong); }
.footer .copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  text-align: left;
  font-size: 13px;
  color: var(--text-mut);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.liro-credit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.liro-credit:hover { opacity: 1; }
.liro-credit span {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-mut);
}
.liro-credit img {
  height: 26px;
  width: auto;
}
@media (max-width: 720px) {
  .footer .copy { justify-content: center; text-align: center; }
}

/* ============ WhatsApp flutuante ============ */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: calc(var(--nav-h) + 18px);
  z-index: 80;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ============ Bottom nav (mobile app-like) ============ */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 85;
  height: var(--nav-h);
  display: none;
  align-items: center;
  justify-content: space-around;
  background: rgba(11, 15, 13, 0.9);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-mut);
  padding: 6px 10px;
  border-radius: 12px;
  transition: color 0.2s;
}
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.active,
.bottom-nav a:hover { color: var(--green-300); }
.bottom-nav a.cta {
  background: linear-gradient(135deg, var(--green-400), var(--green-600));
  color: #04230f;
  margin-top: -20px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}
.bottom-nav a.cta span { display: none; }

/* ============ Toast ============ */
.toast-wrap {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(92vw, 380px);
}
.toast {
  background: var(--ink-700);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green-400);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: toastIn 0.3s ease;
}
.toast.err { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warn); }
.toast-ic { display: inline-flex; align-items: center; color: var(--green-400); }
.toast.err .toast-ic { color: var(--danger); }
.toast.warn .toast-ic { color: var(--warn); }
.btn [data-icon] { display: inline-flex; align-items: center; }
.lead-line { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.lead-line svg { color: var(--green-300); flex-shrink: 0; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Modal ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--ink-800);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: toastIn 0.25s ease;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size: 19px; }
.modal-head .x {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  background: var(--surface-2);
}
.modal-body { padding: 22px; }

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Responsivo ============ */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .form-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding: 48px 0; }
  .nav-links { display: none; }
  .topbar .inner .btn { display: none; }
  .bottom-nav { display: flex; }
  body { padding-bottom: var(--nav-h); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: calc(var(--nav-h) + 30px); }
  .hero { padding-top: 110px; }
}
