/* ===================================================================
   AJ Technology — Landing Page
   Paleta baseada na logo: azul -> cinza em degradê
   =================================================================== */

:root {
  --color-blue-600: #0b5fd9;
  --color-blue-500: #1b7ef0;
  --color-blue-400: #4fa3f7;
  --color-gray-700: #3a4450;
  --color-gray-500: #6b7684;
  --color-gray-300: #c9ced6;
  --color-gray-100: #f4f6f8;

  --color-bg: #ffffff;
  --color-bg-alt: #f7f9fb;
  --color-text: #1c2430;
  --color-text-muted: #5b6472;
  --color-border: #e6e9ed;

  --gradient-brand: linear-gradient(135deg, var(--color-blue-600) 0%, var(--color-blue-400) 45%, var(--color-gray-300) 100%);
  --gradient-text: linear-gradient(90deg, var(--color-blue-600), var(--color-blue-400));

  --shadow-sm: 0 1px 2px rgba(20, 30, 45, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 30, 45, 0.08);
  --shadow-lg: 0 20px 45px rgba(20, 30, 45, 0.12);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --container-w: 1160px;
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

ul { margin: 0; padding: 0; list-style: none; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-blue-500);
  margin-bottom: 12px;
}

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

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 800;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

p { margin: 0 0 12px; color: var(--color-text-muted); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover { border-color: var(--color-blue-400); color: var(--color-blue-500); }

.btn--outline {
  background: transparent;
  color: var(--color-blue-500);
  border-color: var(--color-blue-400);
}
.btn--outline:hover { background: var(--color-blue-500); color: #fff; }

.btn--sm { padding: 9px 16px; font-size: 0.85rem; }
.btn--lg { padding: 14px 28px; font-size: 1rem; }

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-right: auto;
}

.brand__logo { height: 34px; width: auto; }

.brand__name { font-size: 1.05rem; letter-spacing: 0.01em; }
.brand__name strong { font-weight: 800; }

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
  padding-bottom: 4px;
}
.nav a:hover { color: var(--color-blue-500); }

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-brand);
  transition: right 0.2s ease;
}
.nav a.is-active {
  color: var(--color-text);
}
.nav a.is-active::after { right: 0; }

.nav__cta { margin-left: 4px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: 70px 64px;
  background: radial-gradient(1100px 500px at 80% -10%, color-mix(in srgb, var(--color-blue-400) 12%, transparent), transparent);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero__lead { font-size: 1.08rem; max-width: 52ch; }

.hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.link-arrow {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.15s ease, color 0.15s ease;
}
.link-arrow:hover { color: var(--color-blue-500); gap: 10px; }

.hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--color-border);
  border-radius: 999px;
  display: none;
}
.hero__scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--color-blue-500);
  animation: scroll-cue 1.6s ease-in-out infinite;
}
@keyframes scroll-cue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(14px); }
}

.hero__visual {
  position: relative;
  min-height: 320px;
}

.hero__card {
  position: absolute;
  width: 240px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
}

.hero__card-title { font-weight: 700; color: var(--color-text); margin-bottom: 4px; }
.hero__card-text { font-size: 0.85rem; margin: 0; }

.hero__card--1 { top: 0; right: 40px; }
.hero__card--2 { top: 150px; right: 160px; }
.hero__card--3 { top: 300px; right: 10px; }

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-bottom: 10px;
}
.dot--ok { background: #22c55e; }
.dot--info { background: var(--color-blue-500); }
.dot--warn { background: #f59e0b; }

@media (min-width: 961px) {
  .hero__scroll-cue { display: block; }
}

/* ---------- Hero side rails (parceiros / acessos rápidos) ---------- */

.hero__rail {
  display: none;
}

@media (min-width: 1600px) {
  .hero__rail {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: fixed;
    top: 140px;
    width: 180px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .hero__rail.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .hero__rail--left { left: 40px; }
  .hero__rail--right { right: 40px; }

  .hero__rail-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
  }

  .hero__rail-partner {
    display: block;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
  }
  .hero__rail-partner:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .hero__rail-partner img { width: 100%; height: auto; }

  .hero__rail-link {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease, transform 0.15s ease;
  }
  .hero__rail-link:hover { border-color: var(--color-blue-400); transform: translateY(-2px); }

  .hero__rail-link-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-text);
  }
  .hero__rail-link-sub {
    display: block;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 2px;
  }
}

/* ---------- Sections ---------- */

.section { padding-block: 96px; }
.section--alt { background: var(--color-bg-alt); }

.section__head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section__lead { font-size: 1.05rem; }

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__grid {
  display: grid;
  gap: 20px;
}

.about__item {
  padding: 22px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.about__item:hover {
  border-color: var(--color-blue-400);
  transform: translateY(-2px);
}

/* ---------- Benefits ---------- */

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.benefit {
  text-align: center;
  padding: 8px;
}

.benefit__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  color: #fff;
}
.benefit__icon svg { width: 26px; height: 26px; }

/* ---------- Products ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.product {
  position: relative;
  padding: 32px 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.product__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, #22c55e 15%, transparent);
  color: #16803c;
  margin-bottom: 16px;
}
.product__badge--soon {
  background: color-mix(in srgb, var(--color-blue-500) 15%, transparent);
  color: var(--color-blue-600);
}

.product__tagline { font-size: 1rem; }

.product__list { margin: 18px 0 24px; display: grid; gap: 10px; }
.product__list li {
  padding-left: 24px;
  position: relative;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}
.product__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
}

/* ---------- Clients / Partners (reservado) ---------- */

.clients {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  opacity: 0.85;
}
.clients img { height: 32px; width: auto; filter: grayscale(1); }

/* ---------- Testimonials (reservado) ---------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  padding: 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.testimonial__author img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial__author span { display: block; font-size: 0.85rem; color: var(--color-text-muted); }

/* ---------- CTA ---------- */

.cta {
  padding-block: 80px;
  background: var(--gradient-brand);
  color: #fff;
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.9); max-width: 52ch; margin-inline: auto; }
.cta__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.cta .btn--primary { background: #fff; color: var(--color-blue-600); box-shadow: none; }
.cta .btn--ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.cta .btn--ghost:hover { border-color: #fff; color: #fff; }

/* ---------- Contact form ---------- */

.contact__form {
  max-width: 560px;
  display: grid;
  gap: 18px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form__row { display: grid; gap: 6px; }

.form__row label { font-size: 0.88rem; font-weight: 600; color: var(--color-text); }

.form__row input,
.form__row textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text);
  resize: vertical;
}
.form__row input:focus,
.form__row textarea:focus {
  outline: none;
  border-color: var(--color-blue-500);
}

.form__status {
  font-size: 0.9rem;
  min-height: 1.2em;
  color: var(--color-blue-600);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--color-gray-700);
  color: #dde2e8;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-block: 56px;
}

.footer .brand__name, .footer p { color: #dde2e8; }
.footer__brand p { margin-top: 10px; font-size: 0.9rem; color: #aab2bd; }

.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h4 { color: #fff; margin-bottom: 4px; font-size: 0.95rem; }
.footer__col a { font-size: 0.9rem; color: #aab2bd; }
.footer__col a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: 18px;
}
.footer__bottom p { margin: 0; font-size: 0.82rem; color: #8b93a0; text-align: center; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .about { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px 20px;
    gap: 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }
}

@media (max-width: 480px) {
  .section { padding-block: 60px; }
  .hero { padding-block: 50px 60px; }
}

/* ---------- Paginas de parceiro ---------- */

.partner-hero { padding-block: 48px 64px; }

.partner-hero__back {
  display: inline-flex;
  margin-bottom: 32px;
}

.partner-hero__head {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.partner-hero__logo {
  width: 160px;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--color-bg);
}

.partner-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.partner-badge {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.partner-badge__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  color: #fff;
}
.partner-badge__icon svg { width: 22px; height: 22px; }

.partner-note {
  margin-top: 28px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Exemplo de calculo ---------- */

.calc-example {
  position: relative;
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
}

.calc-example__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-blue-500) 15%, transparent);
  color: var(--color-blue-600);
  margin-bottom: 20px;
}

.calc-example__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.calc-example__value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 4px 0;
}

.calc-example__arrow {
  font-size: 1.5rem;
  color: var(--color-blue-500);
}

.calc-example__footnote {
  margin: 24px 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- Checklist ---------- */

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  font-weight: 500;
  color: var(--color-text);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, #22c55e 18%, transparent);
  color: #16803c;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.faq__item {
  padding: 18px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.faq__item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-text);
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  float: right;
  color: var(--color-blue-500);
  font-weight: 700;
}
.faq__item[open] summary::after { content: "−"; }

.faq__item p {
  margin: 14px 0 0;
}

@media (max-width: 960px) {
  .partner-badges { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .calc-example__grid { grid-template-columns: 1fr; text-align: center; }
  .calc-example__arrow { transform: rotate(90deg); }
  .checklist { grid-template-columns: 1fr; }
}
