/* =========================================================
   Tlan — Estilos
   Paleta baseada no logo (azul-ciano)
   ========================================================= */

:root {
  --primary: #3FA9D6;
  --primary-dark: #1B6E96;
  --accent: #00C2E0;
  --ink: #1a2630;
  --ink-soft: #51616d;
  --bg: #ffffff;
  --bg-soft: #f4f7f9;
  --bg-dark: #0e2a3a;
  --bg-dark-2: #0a2230;
  --border: #e4ebf0;
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px -12px rgba(16, 52, 73, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(16, 52, 73, 0.28);
  --gradient: linear-gradient(120deg, var(--accent), var(--primary-dark));

  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: 1160px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--alt { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #dfeaf1; }

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

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.section__title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.section__lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.section--dark .section__lead { color: #b9cdd9; }
.section__lead--center { max-width: 640px; margin-inline: auto; }

.section__text { color: var(--ink-soft); margin-bottom: 22px; }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--accent); }

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

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(0, 194, 224, 0.7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(0, 194, 224, 0.8); }
.btn--ghost {
  background: transparent;
  color: var(--primary-dark);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary-dark); transform: translateY(-2px); }
.btn--lg { padding: 15px 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.header.scrolled { box-shadow: 0 6px 24px -16px rgba(16, 52, 73, 0.4); border-color: var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

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

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 28px; }
.nav__link {
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--ink);
  position: relative;
  transition: color .2s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width .25s ease;
}
.nav__link:hover { color: var(--primary-dark); }
.nav__link:hover::after { width: 100%; }

/* Toggle mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 70px) 0 90px;
  overflow: hidden;
  background: linear-gradient(180deg, #f3f9fc 0%, #ffffff 100%);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.hero__glow--1 { width: 460px; height: 460px; background: #7fd4f0; top: -120px; right: -80px; }
.hero__glow--2 { width: 380px; height: 380px; background: #b7e8f7; bottom: -140px; left: -100px; opacity: 0.6; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(63,169,214,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63,169,214,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 80%);
}

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

.badge {
  display: inline-block;
  background: rgba(63, 169, 214, 0.12);
  color: var(--primary-dark);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero__text {
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }

.hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat__num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
}
.stat__label { font-size: 0.86rem; color: var(--ink-soft); }

/* Hero visual — mock de monitoramento */
.hero__visual { display: flex; justify-content: center; }
.device-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 18px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.device-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink);
  margin-bottom: 14px;
}
.device-card__cams { margin-left: auto; color: var(--ink-soft); font-weight: 500; }
.device-card__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cam { position: relative; }
.cam__box {
  display: block;
  height: 84px;
  border-radius: 10px;
  background: linear-gradient(135deg, #16384a, #1B6E96);
  position: relative;
  overflow: hidden;
}
.cam__box::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-100%);
  animation: scan 3.5s infinite;
}
@keyframes scan { 0% { transform: translateX(-100%); } 60%,100% { transform: translateX(100%); } }
.cam__tag {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  font-size: 0.66rem; font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.35);
  padding: 2px 7px;
  border-radius: 5px;
}
.device-card__alert {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px;
  font-size: 0.82rem; font-weight: 500;
  color: var(--primary-dark);
  background: rgba(0, 194, 224, 0.09);
  padding: 10px 12px;
  border-radius: 10px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--live { background: #ff4d5e; box-shadow: 0 0 0 0 rgba(255,77,94,0.6); animation: pulse 1.6s infinite; }
.dot--alert { background: var(--accent); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,77,94,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255,77,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,94,0); }
}

/* ---------- Trust ---------- */
.trust { padding: 28px 0; background: var(--bg-dark); }
.trust__text { text-align: center; color: #cfe0ea; font-size: 1.02rem; }
.trust__text strong { color: #fff; }

/* ---------- Empresa ---------- */
.check-list { display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-soft);
  font-weight: 500;
}
.check-list li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  border-radius: 50%;
  display: grid; place-items: center;
}

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature-mini {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-mini:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-mini__icon { font-size: 1.7rem; display: block; margin-bottom: 12px; }
.feature-mini h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 6px; }
.feature-mini p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Cards (Soluções) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  background: rgba(63, 169, 214, 0.12);
  border-radius: 14px;
  margin-bottom: 20px;
}
.card__title { font-size: 1.18rem; font-weight: 600; margin-bottom: 10px; }
.card__text { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Steps (Serviços) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 30px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step__num {
  font-family: var(--font-head);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(63,169,214,0.35);
  display: block;
  margin-bottom: 14px;
}
.step__title { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
.step__text { color: var(--ink-soft); }

/* ---------- Diferenciais ---------- */
.diffs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.diff {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform .25s ease, background .25s ease;
}
.diff:hover { transform: translateY(-6px); background: rgba(255,255,255,0.08); }
.diff__icon { font-size: 1.9rem; display: block; margin-bottom: 14px; }
.diff h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; color: #fff; }
.diff p { font-size: 0.92rem; color: #b9cdd9; }

/* ---------- Diferencial Tlan (Tecnologia) ---------- */
.section--tech {
  background:
    radial-gradient(900px 380px at 50% -10%, rgba(0, 194, 224, 0.10), transparent 70%),
    linear-gradient(180deg, #f3f9fc, #ffffff);
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.tech-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 30px 30px 34px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tech-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--gradient);
}
.tech-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tech-card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  background: rgba(63, 169, 214, 0.12);
  border-radius: 14px;
  margin-bottom: 18px;
}
.tech-card__title { font-size: 1.18rem; font-weight: 600; margin-bottom: 10px; }
.tech-card__text { font-size: 0.96rem; color: var(--ink-soft); }

.tech-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 34px 40px;
  box-shadow: 0 24px 50px -22px rgba(0, 194, 224, 0.7);
}
.tech-banner__text {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
}
.tech-banner__text strong { color: #fff; font-weight: 700; }

/* Botão claro (para fundos coloridos/gradiente) */
.btn--light {
  background: #fff;
  color: var(--primary-dark);
}
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.3); }

/* ---------- Contato ---------- */
.section--contact { background: linear-gradient(180deg, #ffffff, #f3f9fc); }
.grid-2--contact { align-items: start; }

.contact-info { display: grid; gap: 18px; margin-top: 28px; }
.contact-info li { display: flex; align-items: center; gap: 14px; }
.contact-info__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 1.2rem;
  background: rgba(63, 169, 214, 0.12);
  border-radius: 12px;
}
.contact-info__label { display: block; font-size: 0.8rem; color: var(--ink-soft); }
.contact-info__value { font-family: var(--font-head); font-weight: 600; color: var(--primary-dark); }

.form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__field { display: grid; gap: 7px; }
.form__field span { font-size: 0.88rem; font-weight: 500; color: var(--ink); }
.form__field input, .form__field textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
  resize: vertical;
}
.form__field input:focus, .form__field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.form__feedback { font-size: 0.92rem; font-weight: 500; min-height: 1.2em; }
.form__feedback.success { color: #1a9b6c; }
.form__feedback.error { color: #d9344c; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-dark-2); color: #b9cdd9; padding-top: 56px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__logo { height: 36px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer__brand p { font-size: 0.92rem; max-width: 320px; }
.footer__nav { display: grid; gap: 10px; align-content: start; }
.footer__nav a, .footer__contact a { font-size: 0.94rem; transition: color .2s ease; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--accent); }
.footer__contact { display: grid; gap: 10px; align-content: start; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
.footer__bottom p { font-size: 0.86rem; text-align: center; color: #7d97a6; }

/* ---------- Voltar ao topo ---------- */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--gradient);
  color: #fff;
  font-size: 1.3rem;
  border-radius: 50%;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  z-index: 900;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Reveal (animação on-scroll) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .diffs { grid-template-columns: 1fr 1fr; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    top: var(--header-h); right: 0;
    width: min(80vw, 320px);
    height: calc(100vh - var(--header-h));
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 28px;
    box-shadow: -12px 0 40px -16px rgba(16,52,73,0.3);
    transform: translateX(100%);
    transition: transform .3s ease;
  }
  .nav.open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 4px; width: 100%; }
  .nav__link { display: block; padding: 12px 0; font-size: 1.05rem; }
  .nav__cta { margin-top: 18px; width: 100%; }
  .nav-toggle { display: flex; }

  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 70px 0; }
}

@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .diffs { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .form__row--2 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__stats { gap: 26px; }
  .form { padding: 24px; }
  .tech-banner { flex-direction: column; text-align: center; padding: 28px 24px; }
  .tech-banner__text { font-size: 1.15rem; }
}

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