/* RESET BÁSICO */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* TOKENS DE COR E FONTE */
:root {
  --bg: #020617;
  --bg-soft: #02081f;
  --accent: #22d3ee;
  --accent-strong: #0ea5e9;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --danger: #f97373;
  --radius-xl: 18px;
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.85);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #0b1120, #020617 60%);
}

/* CLASSE UTILITÁRIA DE CONTAINER */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAVBAR SUPERIOR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.94)
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  color: #f9fafb;
}

.brand span {
  color: var(--accent);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #22d3ee, #0369a1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0b1220;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-links a {
  text-decoration: none;
  color: inherit;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  gap: 10px;
}

/* BOTÕES GENÉRICOS */
.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    border-color 0.12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: white;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.7);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 12px 22px;
  font-size: 0.95rem;
}

/* HERO PRINCIPAL (A TELA BONITA) */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(15, 23, 42, 0.8);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(15, 23, 42, 0.2), #020617 75%),
    url("https://images.pexels.com/photos/313782/pexels-photo-313782.jpeg?auto=compress&cs=tinysrgb&w=1600")
      center/cover no-repeat;
  opacity: 0.52;
  filter: blur(1px);
  transform: scale(1.02);
}

.hero-inner {
  position: relative;
  padding: 72px 0 72px;
}

.hero-content {
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}

.hero-kicker {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 750;
  line-height: 1.1;
  margin-bottom: 12px;
  color: #f9fafb;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 22px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* SEÇÃO DO ARCON (CHAT) */
.arcon-section {
  padding: 40px 0 72px;
  background: radial-gradient(circle at top, #020617, #020617 50%, #020617 100%);
}

.arcon-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 26px;
  align-items: flex-start;
}

/* CARD DO CHAT */
.arcon-chat-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), #020617);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 18px 18px 14px;
  box-shadow: var(--shadow-soft);
}

.arcon-chat-card h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.arcon-chat-card p {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* MENSAGENS DO CHAT */
.chat-messages {
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 14px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), #020617);
  border: 1px solid rgba(148, 163, 184, 0.35);
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-row {
  display: flex;
  gap: 8px;
}

.message-row.user {
  justify-content: flex-end;
}

.message-row.assistant {
  justify-content: flex-start;
}

.message-bubble {
  max-width: 78%;
  padding: 8px 11px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.message-row.user .message-bubble {
  background: linear-gradient(135deg, #2563eb, #22d3ee);
  color: white;
  border-bottom-right-radius: 3px;
}

.message-row.assistant .message-bubble {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-bottom-left-radius: 3px;
}

/* INPUT DO CHAT */
.chat-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-top: 8px;
}

#user-input {
  flex: 1;
  resize: none;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text);
  padding: 8px 10px;
  font-size: 0.9rem;
  min-height: 64px;
  outline: none;
}

#user-input::placeholder {
  color: var(--text-muted);
}

#user-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.5);
}

.chat-footnote {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* BLOCO LATERAL */
.arcon-side {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), #020617);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 16px 18px 14px;
}

.arcon-side h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.arcon-side p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.arcon-side ul {
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: 0.9rem;
}

.arcon-side li + li {
  margin-top: 4px;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .navbar-inner {
    gap: 10px;
  }

  .nav-links {
    display: none;
  }

  .hero-inner {
    padding: 52px 0 52px;
  }

  .arcon-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ---- PÁGINA DO ARCON ---- */

.hero-small {
    padding: 80px 20px;
    text-align: center;
    background: radial-gradient(circle at top left, #0ea5e9, #020617);
    color: white;
}

.chat-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
}

#chat-messages {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 10px 14px;
    border-radius: 10px;
    max-width: 80%;
    white-space: pre-wrap;
}

.user-message {
    background: #0ea5e9;
    color: white;
    align-self: flex-end;
}

.bot-message {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    align-self: flex-start;
}

#chat-form {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

#user-input {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #333;
    background: rgba(255,255,255,0.06);
    color: white;
}

button {
    background: #0ea5e9;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
}
/* Faz as seções funcionarem como "abas" */
.page-section {
  display: none;
}

.page-section.is-active {
  display: block;
}

/* Imagens geradas pelo Arcon dentro do chat */
.arcon-image {
  max-width: 100%;
  border-radius: 12px;
  display: block;
  margin-bottom: 6px;
}

.image-caption {
  font-size: 0.8rem;
  color: #a4b0d4;
}
