/* =========================================================
   MAJETECH — Folha de estilos principal
   Paleta escura "tech" + acento azul/índigo
   ========================================================= */

:root {
  /* Cores */
  --bg:          #0A0E17;
  --bg-alt:      #0E1421;
  --surface:     #121A2A;
  --surface-2:   #162033;
  --line:        rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);

  --text:        #E8EDF7;
  --muted:       #9AA7BF;
  --dim:         #6C7A93;

  --accent:      #38BDF8;
  --accent-2:    #818CF8;
  --accent-soft: rgba(56, 189, 248, .12);
  --whats:       #25D366;

  /* Tipografia */
  --font-title: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:  "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

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

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

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, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.2; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

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

.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #07101c; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(10, 14, 23, 0);
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(10, 14, 23, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px; gap: 20px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo__text {
  font-family: var(--font-title); font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em;
}
.logo__text span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  padding: 9px 14px; border-radius: 999px; font-size: .93rem; font-weight: 500;
  color: var(--muted); transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav__link.is-active { color: var(--text); }
.nav__link--cta {
  margin-left: 8px; color: #07101c; font-weight: 600;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
}
.nav__link--cta:hover { color: #07101c; filter: brightness(1.08); background: linear-gradient(100deg, var(--accent), var(--accent-2)); }

.nav-toggle {
  display: none; width: 44px; height: 40px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04); border-radius: 10px; cursor: pointer;
  padding: 0; gap: 5px;
  /* flex column centrado: mantém as barras a 7px de distância, para o X fechar certo */
  flex-direction: column; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
.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; padding: 150px 0 90px; overflow: hidden; }

.hero__glow {
  position: absolute; top: -320px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 780px; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(56, 189, 248, .20), transparent 70%),
    radial-gradient(closest-side, rgba(129, 140, 248, .16), transparent 70%);
  background-position: 30% 40%, 75% 55%;
  background-size: 70% 70%, 65% 65%;
  background-repeat: no-repeat;
  filter: blur(20px);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 85% 60% at 50% 25%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 25%, #000 35%, transparent 75%);
}

.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
  background: var(--accent-soft); border: 1px solid rgba(56, 189, 248, .25);
  color: #B7E4FA; font-size: .82rem; font-weight: 500; letter-spacing: .01em;
}
.badge__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(56, 189, 248, .6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(56, 189, 248, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.hero__title { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 700; margin-bottom: 20px; }
.hero__text { color: var(--muted); font-size: 1.06rem; max-width: 540px; }
.hero__text strong { color: var(--text); font-weight: 600; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: .97rem; font-weight: 600; cursor: pointer;
  transition: transform .18s ease, filter .18s ease, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #07101c; box-shadow: 0 10px 30px rgba(56, 189, 248, .22);
}
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.btn--block { width: 100%; }

.hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--dim); font-size: .9rem; }
.hero__points li { position: relative; padding-left: 20px; }
.hero__points li::before {
  content: ""; position: absolute; left: 0; top: .58em; width: 9px; height: 9px;
  border-radius: 50%; background: linear-gradient(120deg, var(--accent), var(--accent-2));
}

/* ---------- Mockup do hero ---------- */
.hero__visual { position: relative; }

.mock {
  background: linear-gradient(165deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: perspective(1400px) rotateY(-7deg) rotateX(3deg) translateY(0); }
  50%      { transform: perspective(1400px) rotateY(-7deg) rotateX(3deg) translateY(-12px); }
}

.mock__bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--line);
}
.mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: #2C3752; }
.mock__bar span:nth-child(1) { background: #FF5F57; }
.mock__bar span:nth-child(2) { background: #FEBC2E; }
.mock__bar span:nth-child(3) { background: #28C840; }
.mock__bar p { margin-left: auto; font-size: .74rem; color: var(--dim); }

.mock__body { padding: 18px; display: grid; gap: 14px; }
.mock__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock__card {
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 13px 15px;
}
.mock__card small { display: block; color: var(--dim); font-size: .72rem; }
.mock__card b { font-family: var(--font-title); font-size: 1.5rem; display: block; margin: 2px 0; }
.mock__card i { font-style: normal; font-size: .72rem; color: var(--accent); }

.mock__chart {
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px; height: 104px;
}
.mock__chart svg { width: 100%; height: 100%; }

.mock__list { display: grid; gap: 8px; }
.mock__item {
  display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted);
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 9px 12px;
}
.tag {
  font-size: .62rem; font-weight: 700; letter-spacing: .06em; padding: 3px 7px; border-radius: 5px;
}
.tag--ok  { background: rgba(40, 200, 100, .15); color: #5BE49B; }
.tag--run { background: rgba(129, 140, 248, .16); color: #A5B4FC; }
.tag--web { background: rgba(56, 189, 248, .16); color: #7DD3FC; }

.float-chip {
  position: absolute; padding: 9px 15px; border-radius: 999px; font-size: .8rem; font-weight: 500;
  background: rgba(18, 26, 42, .92); border: 1px solid var(--line-strong);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .4); backdrop-filter: blur(8px);
  animation: floaty2 5.5s ease-in-out infinite;
}
.float-chip--1 { top: 8%; left: -26px; }
.float-chip--2 { bottom: 10%; right: -18px; animation-delay: 1.6s; }
@keyframes floaty2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* =========================================================
   TRUST BAR
   ========================================================= */
.trust { border-block: 1px solid var(--line); background: var(--bg-alt); }
.trust__inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding-block: 26px; text-align: center;
}
.trust__item b {
  display: block; font-family: var(--font-title); font-size: 1.18rem; color: var(--text);
}
.trust__item span { color: var(--dim); font-size: .86rem; }

/* =========================================================
   SEÇÕES
   ========================================================= */
.section { padding: 92px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section__head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.section__title { font-size: clamp(1.65rem, 3.4vw, 2.4rem); font-weight: 700; margin-bottom: 14px; }
.section__sub { color: var(--muted); font-size: 1.02rem; }

/* ---------- Cards de serviço ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 26px; border-radius: var(--radius);
  background: linear-gradient(170deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--line);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(600px circle at 50% 0%, rgba(56, 189, 248, .10), transparent 60%);
  opacity: 0; transition: opacity .28s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(56, 189, 248, .35); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }

.card__icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid rgba(56, 189, 248, .22);
  color: var(--accent); margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card > p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }

/* margin-top auto alinha o divisor na mesma altura em todos os cards */
.card__list {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  display: grid; gap: 9px;
}
.card__list li { position: relative; padding-left: 22px; font-size: .9rem; color: var(--muted); }
.card__list li::before {
  content: ""; position: absolute; left: 2px; top: .52em;
  width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}

/* ---------- Passos do processo ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step {
  position: relative; padding: 28px 22px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .025); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s;
}
.step:hover { border-color: rgba(129, 140, 248, .38); transform: translateY(-4px); }
.step__num {
  font-family: var(--font-title); font-size: 2.1rem; font-weight: 700; line-height: 1;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 12px; opacity: .85;
}
.step h3 { font-size: 1.14rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .91rem; }

/* ---------- Soluções ---------- */
.solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.solution {
  display: flex; flex-direction: column;
  padding: 26px 24px; border-radius: var(--radius);
  background: linear-gradient(170deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--line);
  transition: transform .25s, border-color .25s;
}
.solution:hover { transform: translateY(-5px); border-color: rgba(56, 189, 248, .32); }
.solution h3 { font-size: 1.12rem; margin-bottom: 10px; }
.solution p { color: var(--muted); font-size: .92rem; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 16px; }
.chips span {
  font-size: .74rem; padding: 4px 11px; border-radius: 999px; color: var(--muted);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
}

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: start; }
.about .section__title { margin-bottom: 18px; }
.about__text p { color: var(--muted); margin-bottom: 16px; }
.about .section__head { text-align: left; margin: 0; }

.values { display: grid; gap: 14px; margin-top: 26px; }
.value {
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
}
.value b { display: block; font-family: var(--font-title); font-size: 1rem; margin-bottom: 3px; }
.value span { color: var(--muted); font-size: .89rem; }

.stack {
  padding: 28px 26px; border-radius: var(--radius);
  background: linear-gradient(170deg, var(--surface-2), var(--bg-alt));
  border: 1px solid var(--line-strong);
}
.stack__title { font-family: var(--font-title); font-weight: 600; margin-bottom: 16px; }
.stack__grid { display: flex; flex-wrap: wrap; gap: 8px; }
.stack__grid span {
  font-size: .82rem; padding: 7px 13px; border-radius: 8px; color: var(--muted);
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line);
  transition: color .2s, border-color .2s;
}
.stack__grid span:hover { color: var(--text); border-color: rgba(56, 189, 248, .35); }
.stack__note { margin-top: 18px; font-size: .84rem; color: var(--dim); font-style: italic; }

/* =========================================================
   CONTATO
   ========================================================= */
.contact { display: grid; grid-template-columns: 1.25fr .75fr; gap: 26px; align-items: start; }

.contact__form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: 30px; border-radius: var(--radius);
  background: linear-gradient(170deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--line-strong);
}
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 500; color: var(--muted); }

.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-strong);
  color: var(--text); font-family: var(--font-body); font-size: .94rem;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(56, 189, 248, .06);
}
.field select option { background: var(--surface); color: var(--text); }
.field.has-error input, .field.has-error textarea { border-color: #F87171; }

.form__note { margin-top: 12px; font-size: .82rem; color: var(--dim); text-align: center; }
.form__note.is-error { color: #F87171; }

.contact__side { display: grid; gap: 12px; }
.contact__item {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border-radius: var(--radius-sm); background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line); transition: border-color .22s, transform .22s, background .22s;
}
.contact__item:hover { border-color: rgba(56, 189, 248, .4); transform: translateX(4px); background: rgba(255, 255, 255, .055); }
.contact__ico {
  width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(56, 189, 248, .2);
}
.contact__ico svg { width: 21px; height: 21px; }
.contact__item b { display: block; font-family: var(--font-title); font-size: .98rem; }
.contact__item small { color: var(--dim); font-size: .82rem; }

.contact__box {
  padding: 18px; border-radius: var(--radius-sm); margin-top: 4px;
  background: var(--accent-soft); border: 1px solid rgba(56, 189, 248, .2);
}
.contact__box b { display: block; font-family: var(--font-title); margin-bottom: 6px; }
.contact__box p { color: var(--muted); font-size: .88rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer__brand p { color: var(--dim); font-size: .9rem; margin-top: 14px; }
.footer__nav, .footer__social { display: grid; gap: 9px; align-content: start; }
.footer__nav b, .footer__social b {
  font-family: var(--font-title); font-size: .95rem; margin-bottom: 4px;
}
.footer__nav a, .footer__social a { color: var(--dim); font-size: .9rem; transition: color .2s; }
.footer__nav a:hover, .footer__social a:hover { color: var(--accent); }

.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-block: 20px; border-top: 1px solid var(--line);
  color: var(--dim); font-size: .84rem;
}

/* =========================================================
   BOTÃO FLUTUANTE WHATSAPP
   ========================================================= */
.whats-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--whats); color: #fff; box-shadow: 0 10px 30px rgba(37, 211, 102, .35);
  transition: transform .22s ease, box-shadow .22s ease;
}
.whats-float svg { width: 30px; height: 30px; }
.whats-float:hover { transform: scale(1.08); box-shadow: 0 14px 38px rgba(37, 211, 102, .5); }

/* =========================================================
   ANIMAÇÃO DE ENTRADA
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 980px) {
  .hero { padding: 130px 0 70px; }
  .hero__inner { grid-template-columns: 1fr; gap: 46px; }
  .hero__visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .mock { transform: none; animation: none; }
  .float-chip--1 { left: 0; }
  .float-chip--2 { right: 0; }

  .cards, .solutions { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 34px; }
  .contact { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 16px 22px 24px;
    background: rgba(10, 14, 23, .97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%); opacity: 0; visibility: hidden;
    transition: transform .3s ease, opacity .25s ease, visibility .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 13px 14px; border-radius: var(--radius-sm); font-size: 1rem; }
  .nav__link--cta { margin: 8px 0 0; text-align: center; }

  .section { padding: 68px 0; }
  .cards, .solutions, .steps { grid-template-columns: 1fr; }
  .trust__inner { grid-template-columns: 1fr 1fr; gap: 18px; }
  .contact__form { grid-template-columns: 1fr; padding: 24px 20px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { justify-content: center; text-align: center; }
  .hero__actions .btn { flex: 1 1 100%; }
  .float-chip { font-size: .74rem; padding: 7px 12px; }
}

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