/* ===================================================================
   TECHILL — Landing Page
   Paleta: #5B7CF6 (primária) · #232A3D (escuro) · #FAFAFA (fundo) · #7E7E7E (cinza)
   Tipografia: Space Grotesk (títulos) · Inter (texto)
   =================================================================== */

:root {
  --blue: #5B7CF6;
  --blue-soft: #EDF1FE;
  --dark: #232A3D;
  --bg: #FAFAFA;
  --gray: #7E7E7E;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(35, 42, 61, 0.06);
  --shadow-hover: 0 14px 36px rgba(35, 42, 61, 0.12);
  --font-title: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

a { color: inherit; }

img { max-width: 100%; }

.container { width: min(1140px, 92%); margin: 0 auto; }

.accent { color: var(--blue); }

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 2rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(91, 124, 246, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(91, 124, 246, 0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid rgba(35, 42, 61, 0.2);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn--small { padding: 0.55rem 1.3rem; font-size: 0.9rem; background: var(--blue); color: var(--white); border-radius: 10px; }
.btn--small:hover { box-shadow: 0 6px 20px rgba(91, 124, 246, 0.45); }

.btn--full { width: 100%; }

.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- Navegação ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(35, 42, 61, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.nav__brand { display: flex; align-items: center; text-decoration: none; }

.nav__logo { height: 34px; width: auto; display: block; }

.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  transition: color 0.2s ease;
}
.nav__links a:not(.btn):hover { color: var(--blue); }

.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(5rem, 12vh, 9rem) 0 0;
  background: linear-gradient(180deg, var(--bg) 0%, #F0F3FE 55%, var(--bg) 100%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}
.hero__glow--1 { width: 480px; height: 480px; background: var(--blue); top: -160px; left: -140px; }
.hero__glow--2 { width: 380px; height: 380px; background: #8FA6F9; bottom: 60px; right: -120px; opacity: 0.25; }

.hero__content { position: relative; z-index: 2; }

.hero__eyebrow {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.4rem;
}

.hero__sub {
  max-width: 620px;
  margin: 1.6rem auto 0;
  font-size: 1.15rem;
  color: var(--gray);
}
.hero__sub strong { color: var(--dark); }

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}

.hero__tags {
  margin-top: 2.6rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--gray);
}

.hero__mountains {
  display: block;
  width: 100%;
  height: clamp(120px, 18vw, 220px);
  margin-top: 3.5rem;
}
.m { transform: translateY(30px); opacity: 0; animation: rise 1.2s ease forwards; }
.m--back  { fill: rgba(91, 124, 246, 0.16); animation-delay: 0.1s; }
.m--mid   { fill: rgba(91, 124, 246, 0.32); animation-delay: 0.3s; }
.m--front { fill: var(--dark); animation-delay: 0.5s; }

@keyframes rise {
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- Seções ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }

.section--tint { background: linear-gradient(180deg, var(--bg) 0%, #F2F5FE 50%, var(--bg) 100%); }

.section__eyebrow {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.8rem;
}

.section__lead {
  max-width: 560px;
  color: var(--gray);
  margin-top: 0.8rem;
  font-size: 1.05rem;
}

.section__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.section__text p { margin-bottom: 1.1rem; color: #4A5062; }
.section__text strong { color: var(--dark); }

/* ---------- Divisores em montanha ---------- */
.divider svg { display: block; width: 100%; height: 44px; }
.divider path {
  fill: none;
  stroke: rgba(91, 124, 246, 0.35);
  stroke-width: 2;
  stroke-linejoin: round;
}
.divider--flip svg { transform: scaleY(-1); }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.8rem;
}

.card {
  background: var(--white);
  border: 1px solid rgba(35, 42, 61, 0.06);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(91, 124, 246, 0.35);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-soft);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; color: var(--gray); }

/* ---------- Tecnologias ---------- */
.tech-group { margin-top: 2.6rem; }

.tech-group__label {
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.2rem;
}

.tech-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.2rem;
  list-style: none;
}

.tech-logos li {
  background: var(--white);
  border: 1px solid rgba(35, 42, 61, 0.08);
  border-radius: 14px;
  padding: 0.9rem 1.4rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tech-logos li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(91, 124, 246, 0.35);
}

.tech-logos img {
  height: 30px;
  width: auto;
  max-width: 110px;
  display: block;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.25s ease;
}
.tech-logos li:hover img { filter: grayscale(0) opacity(1); }

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  counter-reset: step;
}

.timeline li { position: relative; padding-top: 0.4rem; }

.timeline li::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 52px;
  right: -1.2rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(91, 124, 246, 0.45), rgba(91, 124, 246, 0.12));
}
.timeline li:last-child::before { display: none; }

.timeline__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(91, 124, 246, 0.4);
  position: relative;
  z-index: 1;
}

.timeline h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.timeline p { font-size: 0.9rem; color: var(--gray); }

/* ---------- Clientes ---------- */
.clients {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.8rem, 5vw, 4rem);
  margin-top: 2.6rem;
  align-items: center;
}

.clients img {
  height: 34px;
  width: auto;
  max-width: 160px;
  display: block;
  filter: grayscale(1) opacity(0.5);
  transition: filter 0.25s ease;
}
.clients li:hover img { filter: grayscale(0) opacity(1); }

/* ---------- CTA / Contato ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
  padding: clamp(4.5rem, 10vw, 7rem) 0;
}

.cta__mountains {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 260px;
  opacity: 0.05;
  pointer-events: none;
}
.cta__mountains path { fill: var(--white); }

.cta__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.cta h2 { color: var(--white); }

.cta__text { margin-top: 1.2rem; color: #B9BFD0; max-width: 440px; }

.cta__contacts { list-style: none; margin-top: 2.2rem; display: grid; gap: 1.2rem; }
.cta__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8A93AB;
  margin-bottom: 0.15rem;
}
.cta__contacts a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 1.1rem;
  transition: color 0.2s ease;
}
.cta__contacts a:hover { color: var(--blue); }
.cta__contacts span:not(.cta__label) { font-family: var(--font-title); font-size: 1.1rem; }

/* ---------- Formulário ---------- */
.form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  color: var(--dark);
}

.form__row { margin-bottom: 1.1rem; }

.form label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}
.form .opt { color: var(--gray); font-weight: 400; }

.form input,
.form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--bg);
  border: 1.5px solid rgba(35, 42, 61, 0.12);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(91, 124, 246, 0.18);
}

.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; }

.form__feedback {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  display: none;
}
.form__feedback.ok { display: block; color: #1F8A4C; }
.form__feedback.err { display: block; color: #C43D3D; }

/* ---------- Rodapé ---------- */
.footer { background: #1B2130; color: #B9BFD0; padding: 3.5rem 0 0; }

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer__brand { width: fit-content; text-align: center; }
.footer__logo { height: 96px; width: auto; display: block; }
.footer__brand p { font-size: 0.85rem; color: #8A93AB; margin-top: 0.7rem; letter-spacing: 0.14em; }

.footer__links, .footer__contact { display: grid; gap: 0.7rem; align-content: start; }
.footer__links a, .footer__contact a {
  text-decoration: none;
  color: #B9BFD0;
  font-size: 0.92rem;
  transition: color 0.2s ease;
  justify-self: start;
}
.footer__links a:hover, .footer__contact a:hover { color: var(--white); }

.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.4rem 0;
  font-size: 0.82rem;
  color: #8A93AB;
}

/* ---------- Animações de scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

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

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 2rem; }
  .timeline li::before {
    top: 44px;
    left: 21px;
    right: auto;
    bottom: -2rem;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(91, 124, 246, 0.45), rgba(91, 124, 246, 0.12));
  }
  .section__grid, .cta__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 680px) {
  .cards { grid-template-columns: 1fr; }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(35, 42, 61, 0.08);
    box-shadow: 0 16px 30px rgba(35, 42, 61, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav__links.open { max-height: 320px; }
  .nav__links a { padding: 0.9rem 1.4rem; width: 100%; box-sizing: border-box; }
  .nav__links .btn--small { margin: 0.6rem 1.4rem 1rem; width: auto; }

  .nav__toggle { display: block; }
  .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); }
}
