:root {
  --bg: #000000;
  --bg-panel: #0c0f14;
  --border: #1c2430;
  --blue: #2f8fff;
  --blue-light: #5bc4ff;
  --text: #f2f5f8;
  --text-dim: #8a97a6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px 8px;
}

.site-header .logo {
  max-width: 320px;
  width: 100%;
  height: auto;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 16px auto 40px;
  padding: 0 20px;
}

.col {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.col h2 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Carrossel de depoimentos */
.carousel {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.carousel-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .35s ease;
}

.slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
}

.slide video {
  width: 100%;
  max-height: 260px;
  border-radius: 6px;
  background: #111;
}

.slide-caption {
  color: var(--text-dim);
  font-size: .85rem;
  margin: 0;
}

.arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.6);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.arrow-prev { left: 4px; }
.arrow-next { right: 4px; }
.arrow:hover { background: var(--blue); border-color: var(--blue); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.carousel-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
}

.carousel-dots span.active { background: var(--blue); }

/* Projetos */
.grid-projetos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1;
}

.projeto-card {
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  background-size: cover;
  background-position: center;
}

.projeto-card span {
  color: var(--text-dim);
  font-size: .8rem;
  text-align: center;
  padding: 8px;
}

/* Chat */
.chat-widget {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
  max-height: 340px;
}

.msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.35;
}

.msg-bot {
  align-self: flex-start;
  background: #12181f;
  border: 1px solid var(--border);
  border-bottom-left-radius: 2px;
}

.msg-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #001018;
  border-bottom-right-radius: 2px;
}

.msg-typing {
  align-self: flex-start;
  color: var(--text-dim);
  font-size: .85rem;
  font-style: italic;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.chat-input-row input {
  flex: 1;
  background: #12181f;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 14px;
  color: var(--text);
  font-size: .9rem;
  outline: none;
}

.chat-input-row input:focus { border-color: var(--blue); }

.chat-input-row button {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-input-row button:hover { background: var(--blue-light); }
.chat-input-row button:disabled { opacity: .5; cursor: default; }

.site-footer {
  text-align: center;
  color: var(--text-dim);
  font-size: .8rem;
  padding: 20px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .col { min-height: unset; }
}
