/* ==========================================================================
   JBD Softwares — estilos
   Paleta derivada do logotipo: azul-marinho, ciano e laranja.
   ========================================================================== */

:root {
  --bg: #0b1624;
  --bg-alt: #0f1d2f;
  --surface: #132438;
  --surface-2: #182c44;
  --border: rgba(148, 190, 230, 0.12);
  --border-strong: rgba(148, 190, 230, 0.22);

  --text: #e8f0f8;
  --text-muted: #9fb2c8;
  --text-subtle: #6f849c;

  --cyan: #1eb4f0;
  --cyan-600: #1592d0;
  --orange: #f5871f;
  --orange-600: #e0700c;

  --gradient: linear-gradient(120deg, var(--cyan) 0%, #4fc6f5 45%, var(--orange) 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font-body);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--text-muted); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

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

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.9rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 0.95rem/1 var(--font-body);
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--cyan);
  color: #04111d;
  box-shadow: 0 10px 30px -10px rgba(30, 180, 240, 0.6);
}
.btn--primary:hover { background: #3cc2f5; box-shadow: 0 14px 34px -10px rgba(30, 180, 240, 0.75); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--cyan); background: rgba(30, 180, 240, 0.08); }

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.88rem; }
.btn--block { width: 100%; }

/* ---------- Navegação ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 22, 36, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); background: rgba(11, 22, 36, 0.88); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  object-fit: cover;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--cyan);
}
.brand__name span { color: var(--orange); font-weight: 600; }

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

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, top .25s ease;
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero::before { width: 520px; height: 520px; background: rgba(30, 180, 240, 0.16); top: -160px; right: -120px; }
.hero::after  { width: 420px; height: 420px; background: rgba(245, 135, 31, 0.10); bottom: -200px; left: -140px; }

.hero__grid-bg {
  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;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 540px; margin-bottom: 2rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.8rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0 2.4rem;
  margin: 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column-reverse; }
.stat dt { font-size: 0.82rem; color: var(--text-subtle); }
.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--text);
}
.stat dd small { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

.hero__visual { position: relative; }
.hero__card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(140deg, rgba(30, 180, 240, 0.55), rgba(255, 255, 255, 0.06) 40%, rgba(245, 135, 31, 0.5));
  box-shadow: var(--shadow), 0 0 80px -30px rgba(30, 180, 240, 0.45);
}
.hero__card img { border-radius: calc(var(--radius-lg) - 1px); width: 100%; }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  background: rgba(19, 36, 56, 0.85);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.float-chip svg { color: var(--cyan); }
.float-chip--a { top: -18px; left: -22px; }
.float-chip--b { bottom: -18px; right: -14px; animation-delay: -3s; }
.float-chip--b svg { color: var(--orange); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ---------- Seções ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__head p { font-size: 1.05rem; margin: 0; }

/* ---------- Destaque: IA aplicada ---------- */
.feature {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  margin-bottom: 20px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background:
    radial-gradient(500px circle at 0% 0%, rgba(30, 180, 240, 0.16), transparent 55%),
    radial-gradient(420px circle at 100% 100%, rgba(245, 135, 31, 0.14), transparent 55%),
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(130deg, rgba(30, 180, 240, 0.6), rgba(255, 255, 255, 0.06) 45%, rgba(245, 135, 31, 0.55)) border-box;
  box-shadow: var(--shadow);
}
.feature__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--orange);
  background: rgba(245, 135, 31, 0.12);
  border: 1px solid rgba(245, 135, 31, 0.3);
}
.feature h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.feature__content p { margin-bottom: 1.6rem; }

.feature__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.feature__list li {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(11, 22, 36, 0.55);
  border: 1px solid var(--border);
  transition: border-color .25s ease;
}
.feature__list li:hover { border-color: rgba(30, 180, 240, 0.35); }
.feature__list strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}
.feature__list span { display: block; font-size: 0.9rem; line-height: 1.5; color: var(--text-muted); }

/* ---------- Cards de serviço ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .3s ease, border-color .3s ease, background-color .3s ease;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(30, 180, 240, 0.10), transparent 45%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: rgba(30, 180, 240, 0.35); background: var(--surface-2); }
.card:hover::after { opacity: 1; }
.card p { margin: 0; font-size: 0.96rem; }

.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(30, 180, 240, 0.10);
  border: 1px solid rgba(30, 180, 240, 0.22);
}
.card__icon svg { width: 24px; height: 24px; }
.card:nth-child(even) .card__icon {
  color: var(--orange);
  background: rgba(245, 135, 31, 0.10);
  border-color: rgba(245, 135, 31, 0.25);
}

/* ---------- Sobre ---------- */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(40px, 7vw, 88px);
  align-items: center;
}
.about__media { position: relative; max-width: 440px; }
.about__logo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.about__badge {
  position: absolute;
  right: -20px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--orange);
  color: #1b0d00;
  box-shadow: 0 18px 40px -14px rgba(245, 135, 31, 0.6);
}
.about__badge strong { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; }
.about__badge span { font-size: 0.85rem; font-weight: 600; line-height: 1.25; }

.about__content p strong { color: var(--text); font-weight: 600; }

.checklist { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.checklist li {
  position: relative;
  padding-left: 2rem;
  color: var(--text);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: rgba(30, 180, 240, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231eb4f0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}

/* ---------- Processo ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, transparent 100%);
}
.step__num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step p { margin: 0; font-size: 0.95rem; }

/* ---------- Contato ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(600px circle at 0% 0%, rgba(30, 180, 240, 0.12), transparent 50%),
    radial-gradient(500px circle at 100% 100%, rgba(245, 135, 31, 0.10), transparent 50%),
    var(--surface);
  box-shadow: var(--shadow);
}

.contact__list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.2rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__list small { display: block; font-size: 0.8rem; color: var(--text-subtle); }
.contact__list a { color: var(--text); font-weight: 500; transition: color .2s ease; word-break: break-word; }
.contact__list a:hover { color: var(--cyan); }
.contact__list .sep { color: var(--text-subtle); margin: 0 0.35rem; }
.contact__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(30, 180, 240, 0.10);
  border: 1px solid rgba(30, 180, 240, 0.22);
}
.contact__icon svg { width: 20px; height: 20px; }

.form { display: grid; gap: 1rem; align-content: start; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--text); }
.field .optional { color: var(--text-subtle); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(11, 22, 36, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fb2c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}
.field select option { background: var(--surface); }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-subtle); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(30, 180, 240, 0.18);
}
.field.has-error input,
.field.has-error textarea { border-color: #f87171; }

.form__note { font-size: 0.82rem; color: var(--text-subtle); margin: 0; text-align: center; }
.form__note.is-error { color: #f87171; }
.form__note.is-success { color: #34d399; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn:disabled { opacity: 0.65; cursor: progress; transform: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Página de obrigado / 404 ---------- */
.status-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px var(--gutter);
  text-align: center;
}
.status-page__box { max-width: 520px; }
.status-page__box img {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
}
.status-page__box p { margin-bottom: 2rem; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0 28px; background: var(--bg-alt); }
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__brand p { margin: 1rem 0 0; font-size: 0.88rem; color: var(--text-subtle); }
.footer__brand .brand__icon { width: 36px; height: 36px; }
.footer__links { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer__links a { font-size: 0.92rem; color: var(--text-muted); transition: color .2s ease; }
.footer__links a:hover { color: var(--text); }
.footer__bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-subtle);
}

/* ---------- Animação de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 24px;
    background: rgba(11, 22, 36, 0.97);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav__links .btn { margin-top: 16px; }

  .hero__inner,
  .about,
  .feature,
  .contact { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; }
  .about__media { margin: 0 auto; width: 100%; max-width: 380px; }
}

@media (max-width: 560px) {
  .field-row,
  .feature__list,
  .cards,
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
  .stat dd { font-size: 1.2rem; }
  .float-chip--a { left: 8px; top: -16px; }
  .float-chip--b { right: 8px; }
  .about__badge { right: 12px; bottom: 16px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .footer__inner { flex-direction: column; }
}
