/* ═══════════════════════════════════════════════════
   Seven — Design System & Layout Styles
═══════════════════════════════════════════════════ */

:root {
  --bg:        #06070e;
  --bg2:       #0b0d1a;
  --bg-card:   #0f1220;
  --bg-card2:  #131628;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);
  --cyan:      #00d4ff;
  --violet:    #8b7cf8;
  --teal:      #00e5b0;
  --white:     #e8eaf5;
  --muted:     #6b7694;
  --dim:       #3d4462;
  --fh:        'Space Grotesk', sans-serif;
  --fb:        'DM Sans', sans-serif;
  --transition: all 0.25s ease;
}

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

html { scroll-behavior: smooth; }

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

/* ── UTILITIES ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

.section { padding: clamp(80px, 10vw, 140px) 0; }

.section-label {
  display: block;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  font-family: var(--fb);
}

.section-title {
  font-family: var(--fh);
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.5px;
  text-wrap: balance;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--cyan);
  color: #06070e;
  border-color: var(--cyan);
  font-weight: 600;
}
.btn-primary:hover {
  background: transparent;
  color: var(--cyan);
  box-shadow: 0 0 30px rgba(0,212,255,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--border2);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.04);
}

.btn-full { width: 100%; justify-content: center; }

/* ── HEADER ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, padding 0.3s;
}

#site-header.scrolled {
  background: rgba(6,7,14,0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--fh);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.6px;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6,7,14,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.active { opacity: 1; pointer-events: all; }

.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu li { margin: 22px 0; }

.mobile-link {
  font-family: var(--fh);
  font-size: clamp(30px, 8vw, 48px);
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -1.5px;
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--cyan); }

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(6,7,14,0.97) 0%,
    rgba(6,7,14,0.85) 36%,
    rgba(6,7,14,0.35) 56%,
    transparent 76%);
  z-index: 1;
  pointer-events: none;
}

.graph-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#graph-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  /* nudge text toward the graph center */
  padding: 0 0 0 clamp(40px, 6.5vw, 130px);
}

.hero-badge {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title {
  font-family: var(--fh);
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s 0.5s forwards;
}

.word-rotator {
  display: inline-block;
  color: var(--cyan);
  transition: opacity 0.28s ease, transform 0.28s ease, color 0.28s ease;
}

.hero-subtitle {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 440px;
  text-wrap: pretty;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s 0.9s forwards;
}

.graph-hint {
  margin-top: 24px;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.5px;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s forwards;
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: clamp(20px, 6vw, 120px);
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.8s 1.5s forwards;
}

.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--cyan));
  animation: scrollPulse 2.2s ease-in-out infinite;
}

/* ── ABOUT ── */
.about { background: var(--bg2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text .section-title { margin-bottom: 24px; }

.about-text p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  text-wrap: pretty;
}
.about-text p + p { margin-top: 16px; }

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.pillar {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.pillar-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.pillar-icon svg { width: 20px; height: 20px; }

.ia-accent    { color: var(--cyan);   border-color: rgba(0,212,255,0.2);   background: rgba(0,212,255,0.06); }
.prog-accent  { color: var(--violet); border-color: rgba(139,124,248,0.2); background: rgba(139,124,248,0.06); }
.dados-accent { color: var(--teal);   border-color: rgba(0,229,176,0.2);   background: rgba(0,229,176,0.06); }

.pillar h3 {
  font-family: var(--fh);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
}
.pillar p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── SOLUTIONS ── */
.solutions { background: var(--bg); }

.filter-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-tab {
  padding: 8px 22px;
  border-radius: 100px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--fb);
  font-weight: 400;
}
.filter-tab:hover { border-color: var(--border2); color: var(--white); }

.filter-tab[data-filter="all"].active    { background: var(--white);   border-color: var(--white);   color: var(--bg); font-weight: 600; }
.filter-tab[data-filter="ia"].active     { background: var(--cyan);    border-color: var(--cyan);    color: #06070e; font-weight: 600; }
.filter-tab[data-filter="programacao"].active { background: var(--violet); border-color: var(--violet); color: #ffffff; font-weight: 600; }
.filter-tab[data-filter="dados"].active  { background: var(--teal);    border-color: var(--teal);    color: #06070e; font-weight: 600; }

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.solution-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0,212,255,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  border-color: rgba(0,212,255,0.2);
}
.solution-card:hover::after { opacity: 1; }

.solution-card.dimmed {
  opacity: 0.22;
  transform: scale(0.98);
}
.solution-card.highlighted {
  border-color: rgba(0,212,255,0.5);
  box-shadow: 0 0 40px rgba(0,212,255,0.12), 0 16px 40px rgba(0,0,0,0.4);
}

.card-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}
.card-icon svg { width: 20px; height: 20px; }
.solution-card:hover .card-icon { border-color: var(--border2); }

.card-category {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  font-family: var(--fb);
}

.solution-card h3 {
  font-family: var(--fh);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.solution-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
  text-wrap: pretty;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s, gap 0.2s;
  margin-top: 4px;
}
.card-link:hover { color: var(--cyan); gap: 10px; }
.arrow { display: inline-block; transition: transform 0.2s; }
.card-link:hover .arrow { transform: translateX(3px); }

/* ── CONTACT ── */
.contact { background: var(--bg2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-title { margin-bottom: 16px; }

.contact-info > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin-top: 16px;
}

.contact-items {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}
.contact-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--dim); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-field { position: relative; }

.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border2);
  color: var(--white);
  font-family: var(--fb);
  font-size: 15px;
  padding: 14px 0;
  outline: none;
  transition: border-color 0.25s;
  resize: none;
}
.form-field input:focus,
.form-field textarea:focus { border-bottom-color: var(--cyan); }

.form-field label {
  position: absolute;
  left: 0;
  top: 14px;
  color: var(--dim);
  font-size: 14px;
  transition: transform 0.22s ease, font-size 0.22s ease, color 0.22s ease, letter-spacing 0.22s ease;
  pointer-events: none;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
  transform: translateY(-24px);
  font-size: 10px;
  color: var(--cyan);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.form-success {
  display: none;
  color: var(--teal);
  font-size: 14px;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(0,229,176,0.08);
  border: 1px solid rgba(0,229,176,0.2);
  margin-top: -8px;
}
.form-success.visible { display: block; }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.footer-logo {
  font-family: var(--fh);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.footer-nav {
  display: flex;
  gap: 32px;
}
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white); }

.footer-social { display: flex; gap: 16px; }
.footer-social a {
  color: var(--dim);
  display: flex;
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--white); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-size: 12px;
}

/* ── SOLUTION MODAL ── */
.sol-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(6, 7, 14, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.25s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.sol-modal {
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  background: var(--bg-card, #0b0d1a);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp 0.3s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 40px rgba(0,212,255,0.06);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.sol-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.07));
}

.sol-modal-cat {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan, #00d4ff);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.sol-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--white, #e8eaf5);
  letter-spacing: -0.3px;
}

.sol-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(255,255,255,0.07));
  background: transparent;
  color: var(--dim, #3d4462);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.sol-modal-close:hover {
  color: var(--white, #e8eaf5);
  border-color: rgba(255,255,255,0.2);
}
.sol-modal-close svg { width: 18px; height: 18px; }

.sol-modal-body {
  padding: 28px;
  overflow-y: auto;
  color: var(--muted, #6b7694);
  font-size: 14px;
  line-height: 1.75;
}

.sol-modal-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--white, #e8eaf5);
}

.sol-modal-body h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan, #00d4ff);
  margin-top: 16px;
  margin-bottom: 6px;
}

.sol-modal-body strong { color: var(--white, #e8eaf5); }

.sol-modal-body ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.sol-modal-body li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.sol-modal-body li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--cyan, #00d4ff);
}

.sol-modal-body p { margin-bottom: 8px; }

button.card-link {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 768px) {
  .sol-modal {
    max-height: 90vh;
    border-radius: 12px;
  }
  .sol-modal-header { padding: 20px; }
  .sol-modal-body { padding: 20px; }
}

/* ── CHAT WIDGET ── */
#chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
}

#chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 rgba(0,212,255,0.3);
  animation: chatBreathe 3s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(0.65,0,0.35,1), opacity 0.3s;
}
#chat-toggle:hover { animation-play-state: paused; }
#chat-toggle svg { width: 22px; height: 22px; }

#chat-toggle.spinning {
  transform: rotate(360deg) scale(0);
  opacity: 0;
}

.chat-panel {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 380px;
  height: 560px;
  background: #0b0d1a;
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.7) translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1), opacity 0.28s ease;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55), 0 0 40px rgba(0,212,255,0.06);
}
.chat-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fh);
  font-weight: 700;
  font-size: 14px;
  color: #06070e;
  flex-shrink: 0;
}

.chat-info { flex: 1; min-width: 0; }

.chat-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--fh);
  letter-spacing: -0.2px;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  animation: statusPulse 2s ease-in-out infinite;
}

.chat-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.chat-close:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.chat-close svg { width: 16px; height: 16px; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 84%;
  animation: msgIn 0.28s ease;
}
.chat-message.user { align-self: flex-end; align-items: flex-end; }
.chat-message.bot  { align-self: flex-start; align-items: flex-start; }

.message-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.6;
}
.user .message-bubble {
  background: var(--cyan);
  color: #06070e;
  border-radius: 14px 14px 4px 14px;
  font-weight: 500;
}
.bot .message-bubble {
  background: var(--bg-card);
  color: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
}

.typing-dots {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
  width: fit-content;
}
.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
}

#chat-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--fb);
  font-size: 14px;
  outline: none;
  min-width: 0;
}
#chat-input::placeholder { color: var(--dim); }

#chat-send {
  background: var(--cyan);
  border: none;
  color: #06070e;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.15s;
  flex-shrink: 0;
}
#chat-send:hover { opacity: 0.82; transform: scale(1.06); }
#chat-send svg { width: 14px; height: 14px; }

/* ── ANIMATIONS ── */
@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.25; transform: scaleY(0.75); }
  50%     { opacity: 0.7;  transform: scaleY(1); }
}
@keyframes chatBreathe {
  0%,100% { box-shadow: 0 0 20px rgba(0,212,255,0.1); }
  50%     { box-shadow: 0 0 32px rgba(0,212,255,0.28), 0 0 64px rgba(0,212,255,0.08); }
}
@keyframes statusPulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.45; }
}
@keyframes typingBounce {
  0%,60%,100% { transform: translateY(0); }
  30%         { transform: translateY(-7px); }
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SCROLL ANIMATIONS ── */
[data-animate] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate="fade-up"]   { transform: translateY(32px); }
[data-animate="fade-left"] { transform: translateX(-32px); }
[data-animate="fade-right"]{ transform: translateX(32px); }

[data-animate].animated {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-grid   { grid-template-columns: 1fr; gap: 56px; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 768px) {
  .nav-links  { display: none; }
  .hamburger  { display: flex; }

  /* ── MOBILE HERO: graph on top, text below — no overlap ── */
  .hero {
    flex-direction: column;
    align-items: stretch;   /* ← children fill full width */
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .hero::before { display: none; }

  .graph-wrap {
    position: relative !important;
    height: 68vw;
    max-height: 380px;
    min-height: 240px;
    flex-shrink: 0;
    background: var(--bg);
    margin-bottom: 12px;
  }

  #graph-canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
  }

  .hero-content {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    padding: 24px 24px 48px;
    max-width: 100%;
    background: var(--bg);
  }

  .scroll-indicator { display: none; }
  .hero-ctas   { flex-direction: column; }
  .solutions-grid { grid-template-columns: 1fr; }

  .footer-content { flex-direction: column; gap: 20px; text-align: center; }
  .footer-nav     { justify-content: center; flex-wrap: wrap; gap: 20px; }
  .footer-social  { justify-content: center; }

  .chat-panel {
    position: fixed;
    bottom: 0; right: 0; left: 0;
    width: 100%;
    height: 100svh;
    border-radius: 0;
    transform: scale(0.95) translateY(30px);
  }

  #chat-widget { bottom: calc(20px + env(safe-area-inset-bottom, 16px)); right: 16px; }
}

@media (max-width: 640px) {
  .about-pillars { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
