/* ============================================================
   KRONTEC — design system v4 · premium corporativo
   Charcoal · Laranja #F28C1C · Branco
   Princípios: flat, contraste nítido, espaço generoso,
   cor com propósito, ornamento zero.
   ============================================================ */
:root {
  /* cor */
  --bg: #141519;
  --bg-2: #17181d;
  --surface: #1b1d23;
  --surface-2: #20232a;
  --ink: #f5f6f8;
  --ink-2: #b6bcc7;
  --ink-3: #848b9a;
  --accent: #ee7900;
  --accent-hover: #d66c00;
  --accent-2: #ff9d3d;
  --line: rgba(255,255,255,0.075);
  --line-accent: rgba(238,121,0,0.35);

  /* forma */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;

  /* ritmo */
  --max: 1140px;
  --pad-y: clamp(88px, 11vw, 144px);
  --gap: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Instrument Sans", sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #141519; }

h1, h2, h3, .brand { font-family: "Exo 2", sans-serif; line-height: 1.12; }
img, video { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* acentos tipográficos — contidos */
.grad { color: var(--accent); }
.hl { border-bottom: 2px solid var(--line-accent); }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--accent); }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s cubic-bezier(.2,.7,.3,1), transform .65s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s } .reveal.d2 { transition-delay: .14s }
.reveal.d3 { transition-delay: .21s } .reveal.d4 { transition-delay: .28s }
.reveal.d5 { transition-delay: .35s }

/* ---------- barra de progresso ---------- */
.progress-bar { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 300; pointer-events: none; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--accent); }

/* ---------- header ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
header.scrolled {
  background: rgba(20,21,25,.86);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a:not(.btn) {
  color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-links > a:not(.btn):hover { color: var(--ink); }
.nav-links > a.active { color: var(--ink); border-bottom-color: var(--accent); }

.menu-btn {
  display: none; background: transparent; border: 1px solid var(--line);
  color: var(--ink); border-radius: var(--r-sm); padding: 8px 13px; font-size: 1rem; cursor: pointer;
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #141519;
  padding: 13px 26px; border-radius: var(--r-sm); border: none;
  text-decoration: none; font-weight: 700; font-size: .93rem; cursor: pointer;
  transition: background .2s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); font-weight: 600; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.link-arrow { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.link-arrow span { display: inline-block; color: var(--accent); transition: transform .22s ease; }
.link-arrow:hover { color: var(--accent-2); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 92svh;
  display: flex; align-items: center;
  padding: 150px 0 110px; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transform: scale(1.04);
  transition: opacity 1.4s ease, transform 9s linear;
  filter: saturate(.92) contrast(1.06) brightness(1.04);
}
.hero-media video.active { opacity: .52; transform: scale(1.1); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,21,25,.92) 0%, rgba(20,21,25,.68) 38%, rgba(20,21,25,.18) 72%, rgba(20,21,25,.05) 100%),
    linear-gradient(180deg, rgba(20,21,25,.42), transparent 26%, transparent 62%, var(--bg) 96%);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-inner { max-width: 640px; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.05;
  margin: 0 0 26px;
}
.hero .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 480px; margin-bottom: 40px; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 26px; flex-wrap: wrap;
  margin-top: 52px; font-size: .85rem; color: var(--ink-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero-meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.hero-dots { position: absolute; bottom: 32px; left: 28px; display: flex; gap: 8px; z-index: 3; }
@media (min-width: 1196px) { .hero-dots { left: calc((100vw - var(--max)) / 2 + 28px); } }
.hero-dots button {
  width: 26px; height: 3px; border: none; border-radius: 2px;
  background: rgba(255,255,255,.18); cursor: pointer; padding: 0;
  transition: background .3s ease, width .3s ease;
}
.hero-dots button.on { background: var(--accent); width: 40px; }

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden; padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee .track { display: flex; gap: 52px; width: max-content; animation: mq 44s linear infinite; }
.marquee span {
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); display: inline-flex; align-items: center; gap: 52px; white-space: nowrap;
}
.marquee span::after { content: "·"; color: var(--accent); }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- seções ---------- */
section { padding: var(--pad-y) 0; }
.section-head { max-width: 620px; margin-bottom: 64px; }
.section-head h2, .split h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.45rem); font-weight: 700;
  letter-spacing: -.025em; margin: 18px 0 16px;
}
.section-head p { color: var(--ink-2); font-size: 1.02rem; }

/* ---------- bento de recursos ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.b-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .25s ease;
}
.b-card:hover { border-color: var(--line-accent); }
.b-card h3 { font-size: 1.1rem; font-weight: 600; }
.b-card p { color: var(--ink-2); font-size: .95rem; }
.b-card .tag-n {
  font-family: "Exo 2", sans-serif; font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; color: var(--accent); margin-bottom: 8px;
}
.b-8 { grid-column: span 8; } .b-6 { grid-column: span 6; } .b-4 { grid-column: span 4; }

/* mockup de chat */
.chat-demo { margin-top: auto; padding-top: 26px; display: flex; flex-direction: column; gap: 8px; max-width: 400px; }
.bub {
  padding: 10px 15px; border-radius: var(--r); font-size: .88rem; line-height: 1.45;
  width: fit-content; max-width: 88%;
  animation: pop .45s cubic-bezier(.2,.7,.3,1) both;
}
.bub.in  { background: var(--surface-2); color: var(--ink-2); border-bottom-left-radius: 3px; }
.bub.out { background: var(--accent); color: #141519; font-weight: 600; align-self: flex-end; border-bottom-right-radius: 3px; }
.bub:nth-child(2) { animation-delay: .3s; } .bub:nth-child(3) { animation-delay: .6s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

/* fila visual */
.queue-demo { margin-top: auto; padding-top: 26px; display: flex; flex-direction: column; gap: 7px; }
.q-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 14px; font-size: .85rem; color: var(--ink-2);
}
.q-row b { color: var(--ink); font-weight: 600; }
.q-row .st { margin-left: auto; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 3px; }
.st.novo  { background: rgba(238,121,0,.14); color: var(--accent-2); }
.st.atend { background: rgba(120,220,150,.10); color: #8ee0a8; }
.st.fila  { background: rgba(255,255,255,.06); color: var(--ink-3); }

/* ---------- canais ---------- */
.channels { background: var(--bg-2); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.split p { color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 20px; font-size: .93rem; font-weight: 600; color: var(--ink-2);
  background: var(--surface);
  transition: border-color .25s ease, color .25s ease;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.main { border-color: var(--line-accent); color: var(--ink); }

/* ---------- planos ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px;
  transition: border-color .25s ease;
}
.plan:hover { border-color: var(--line-accent); }
.plan h3 { font-size: 1rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-2); }
.plan .price { font-family: "Exo 2", sans-serif; font-size: 2.2rem; font-weight: 700; margin: 16px 0 4px; }
.plan .price small { font-size: .9rem; font-weight: 500; color: var(--ink-3); }
.plan ul { list-style: none; margin: 22px 0 30px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.plan ul li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: .93rem; }
.plan ul li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.plan.featured { border-color: var(--accent); }
.plan .tag {
  position: absolute; top: -11px; left: 32px;
  background: var(--accent); color: #141519;
  font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 3px;
}

/* ---------- sobre ---------- */
.about { background: var(--bg-2); border-block: 1px solid var(--line); }
.about-quote {
  border-left: 2px solid var(--accent);
  padding-left: 24px; margin: 28px 0;
  font-family: "Exo 2", sans-serif; font-size: 1.25rem; font-weight: 600;
  line-height: 1.45; color: var(--ink); max-width: 46ch;
}
.about p { color: var(--ink-2); margin-bottom: 14px; max-width: 62ch; }
.about p strong { color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  padding: clamp(36px, 5.5vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.45rem, 3.2vw, 2.05rem); letter-spacing: -.02em; max-width: 22ch; }
.cta-band p { color: var(--ink-2); margin-top: 10px; }

/* ---------- contato ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 48px; }
.c-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.c-item .lbl { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 10px; }
.c-item a, .c-item div.v { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.c-item a:hover { color: var(--accent-2); }
.c-item .sub { color: var(--ink-3); font-size: .85rem; margin-top: 5px; }

/* ---------- footer ---------- */
footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 64px 0 44px; font-size: .92rem; }
footer .cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 44px; }
footer h4 { font-family: "Exo 2", sans-serif; color: var(--ink); font-size: .9rem; letter-spacing: .02em; margin-bottom: 16px; }
footer a { color: var(--ink-3); text-decoration: none; display: block; padding: 3px 0; }
footer a:hover { color: var(--accent-2); }
footer .legal-line { border-top: 1px solid var(--line); padding-top: 26px; line-height: 1.85; font-size: .83rem; color: var(--ink-3); }
footer .legal-line a { display: inline; }

/* ---------- páginas legais ---------- */
.page-hero {
  padding: 160px 0 68px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.page-hero h1 { font-size: clamp(1.85rem, 4vw, 2.6rem); letter-spacing: -.025em; margin-bottom: 14px; }
.page-hero p { color: var(--ink-2); max-width: 620px; }
.crumb { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 16px; display: block; }
.crumb a { color: var(--accent); text-decoration: none; }
.crumb a:hover { color: var(--accent-2); }

.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 800px; }
.legal h2 { font-size: 1.2rem; margin: 40px 0 14px; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 12px; }
.legal p strong, .legal li strong { color: var(--ink); }
.legal a { color: var(--accent-2); }
.legal ul, .legal ol { padding-left: 24px; margin-bottom: 12px; }

/* ---------- voltar ao topo ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 150;
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: var(--surface); color: var(--accent);
  border: 1px solid var(--line); cursor: pointer;
  font-size: 1rem; font-weight: 700; display: grid; place-items: center;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, border-color .2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); }

section[id] { scroll-margin-top: 96px; }

/* ---------- responsivo ---------- */
@media (max-width: 980px) {
  .b-8, .b-6, .b-4 { grid-column: span 6; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  /* header sólido — backdrop-filter quebra position:fixed do painel no Chrome Android */
  header {
    background: var(--bg);
    backdrop-filter: none;
    border-bottom: 1px solid var(--line);
  }
  header.scrolled { background: var(--bg); backdrop-filter: none; }

  header .wrap {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }
  .nav { position: static; padding: 0; height: 62px; }
  .brand img { height: 28px; }
  .menu-btn { display: block; padding: 9px 13px; }

  .nav-links {
    position: fixed; top: 62px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px calc(28px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    display: none;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn) {
    padding: 17px 0; border-bottom: 1px solid var(--line);
    font-size: 1.05rem; color: var(--ink);
  }
  .nav-links > a.active { border-bottom-color: var(--line); color: var(--accent-2); }
  .nav-links .btn { margin-top: 24px; padding: 16px 26px; }
  body.menu-open { overflow: hidden; }
  .b-8, .b-6, .b-4 { grid-column: span 12; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 132px 0 90px; }
  .hero-media video.active { opacity: .38; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee .track { animation: none; }
  .hero-media video { transition: opacity .4s ease; transform: none; }
  .hero-media video.active { transform: none; }
  .bub { animation: none; }
}

/* ============================================================
   Aviso de cookies (LGPD)
   ============================================================ */
.cookie-banner {
  position: fixed; z-index: 400;
  left: 24px; right: 24px; bottom: 24px;
  margin: 0 auto; max-width: 680px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 24px;
  display: none;
  align-items: center; gap: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.cookie-banner.show { display: flex; animation: cb-in .45s cubic-bezier(.2,.7,.3,1) both; }
@keyframes cb-in { from { opacity: 0; transform: translateY(16px); } }
.cookie-banner p {
  font-size: .88rem; color: var(--ink-2); line-height: 1.55; flex: 1; margin: 0;
}
.cookie-banner a { color: var(--accent-2); text-decoration: none; }
.cookie-banner a:hover { text-decoration: underline; }
.cookie-banner .btn { padding: 10px 22px; font-size: .88rem; flex-shrink: 0; }

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; left: 14px; right: 14px; bottom: 14px; gap: 14px; }
  .cookie-banner .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner.show { animation: none; }
}

/* ============================================================
   Rodapé — bloco legal estruturado
   ============================================================ */
footer .company {
  display: grid; gap: 4px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  font-size: .86rem; color: var(--ink-3); line-height: 1.7;
}
footer .company .name { color: var(--ink-2); font-weight: 600; }
footer .foot-links {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  padding-top: 18px; margin-top: 4px;
  border-top: 1px solid var(--line);
  font-size: .85rem;
}
footer .foot-links a { display: inline; padding: 0; color: var(--ink-3); }
footer .foot-links a:hover { color: var(--accent-2); }
footer .foot-links .copy { color: var(--ink-3); margin-left: auto; }

footer .foot-logo { height: 26px; width: auto; margin-bottom: 12px; opacity: .92; }
