/* Ilha Tech — complementos ao layout de agência de ../marketing/marketing.css.
   A animação da Hero continua em tech-hero.css / tech-hero.js. */

/* ---------- Hero em tela cheia sobre a animação ---------- */
.tk-hero {
  display: flex;
  flex-direction: column;
  min-height: max(760px, 100svh);
  padding: 190px 0 0;
}
.tk-hero-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 64px; }
.tk-hero .eyebrow { margin-bottom: 26px; }
.tk-hero h1 {
  max-width: 12ch;
  margin-bottom: 0;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
.tk-hero .mk-hero-lead { max-width: 52ch; }
.tk-hero-index { margin-top: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Benefícios ---------- */
.tk-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 90px;
}
.tk-benefit {
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(243, 239, 231, 0.02);
}
.tk-benefit-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--orange);
}
.tk-benefit h3 {
  margin-top: 40px;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  line-height: 1.15;
}
.tk-benefit p { margin-top: 10px; font-size: 0.96rem; color: var(--fg-dim); }

/* ---------- Ilustrações de interface (decorativas) ---------- */
.tk-mock {
  position: relative;
  padding: clamp(22px, 3vw, 40px);
  background:
    radial-gradient(circle at 85% 0%, rgba(250, 70, 22, 0.28), transparent 55%),
    linear-gradient(rgba(243, 239, 231, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(243, 239, 231, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
    #100e0c;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg);
}

/* IA: conversa com agente */
.tk-chat { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.tk-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.tk-chat-head small { margin-left: auto; color: var(--fg-dim); font-weight: 400; }
.tk-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
.tk-bubble {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.45;
}
.tk-bubble--in { align-self: flex-start; background: #24201b; border-bottom-left-radius: 4px; }
.tk-bubble--out { align-self: flex-end; background: var(--orange); color: var(--black); border-bottom-right-radius: 4px; }
.tk-typing { display: flex; gap: 5px; padding: 14px 16px; }
.tk-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--black); animation: tk-typing 1.2s ease-in-out infinite; }
.tk-typing span:nth-child(2) { animation-delay: 0.15s; }
.tk-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes tk-typing { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* Automação: fluxo */
.tk-flow { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tk-node {
  min-width: 190px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #1b1814;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.tk-node small {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--fg-dim);
}
.tk-node--start { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-dim); }
.tk-node--start small { color: var(--orange); }
.tk-wire {
  position: relative;
  width: 2px;
  height: 34px;
  background: var(--line-strong);
  overflow: hidden;
}
.tk-wire::after {
  content: "";
  position: absolute;
  left: 0;
  top: -12px;
  width: 2px;
  height: 12px;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  animation: tk-pulse 1.8s linear infinite;
}
@keyframes tk-pulse { to { top: 100%; } }
.tk-flow-split {
  position: relative;
  display: flex;
  gap: 16px;
  padding-top: 22px;
}
.tk-flow-split::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 22px;
  border: 2px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.tk-flow-split .tk-node { min-width: 0; flex: 1; }

/* Vendas: funil em colunas */
.tk-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-content: center; }
.tk-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 70%;
  padding: 14px 10px;
  border-radius: 12px;
  background: rgba(243, 239, 231, 0.04);
  border: 1px solid var(--line);
}
.tk-col small { font-size: 10px; letter-spacing: 0.12em; color: var(--fg-dim); margin-bottom: 4px; }
.tk-col i {
  display: block;
  height: 46px;
  border-radius: 8px;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) 10px 12px / 60% 6px no-repeat,
    linear-gradient(var(--line), var(--line)) 10px 26px / 40% 6px no-repeat,
    #1f1b17;
  border: 1px solid var(--line);
}
.tk-col i.is-hot { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-dim); }

/* Dados: fontes → hub → gráfico */
.tk-dash {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  gap: 18px 22px;
  align-items: center;
}
.tk-dash-sources { display: flex; flex-direction: column; gap: 10px; grid-row: 1 / 3; }
.tk-dash-sources span {
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #1b1814;
  text-align: center;
}
.tk-dash-hub {
  justify-self: start;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--orange);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}
.tk-dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 100%;
  min-height: 130px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(243, 239, 231, 0.03);
}
.tk-dash-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--orange-light), var(--orange));
  opacity: 0.85;
}
.tk-dash-chart i:last-child { opacity: 1; box-shadow: 0 0 18px rgba(250, 70, 22, 0.5); }

/* ---------- Responsivo ---------- */
@media (max-width: 920px) {
  .tk-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-hero-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tk-hero { min-height: 0; padding-top: 160px; }
  .tk-hero-content { padding-bottom: 48px; }
  .tk-benefits { grid-template-columns: 1fr; margin-top: 56px; gap: 14px; }
  .tk-benefit h3 { margin-top: 20px; }
  .tk-mock { aspect-ratio: auto; min-height: 320px; }
  .tk-bubble { max-width: 88%; }
  .tk-board { gap: 6px; }
  .tk-col { padding: 10px 6px; }
  .tk-col small { font-size: 8.5px; letter-spacing: 0.06em; }
  .tk-node { min-width: 160px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tk-typing span, .tk-wire::after { animation: none; }
}
