:root {
  --electric-blue: #2457f5;
  --space-blue: #040d33;
  --soft-blue: #20335d;
  --dark-purple: #321159;
  --galactic-grey: #e9ecf4;
  --text-dim: #a6b0d4;
  --card-bg: #0a1642;
  --border: rgba(233, 236, 244, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--space-blue);
  color: var(--galactic-grey);
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  color: #fff;
}

em { font-family: 'PT Serif', serif; font-style: italic; color: var(--electric-blue); }

.wordmark {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
}
.wordmark .dot { color: var(--electric-blue); }
.wordmark.small { font-size: 1.1rem; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4vw;
  border-bottom: 1px solid var(--border);
}
.tag {
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.hero {
  position: relative;
  padding: 6rem 4vw 4rem;
  overflow: hidden;
  text-align: center;
}
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  height: 40vw;
  max-width: 800px;
  max-height: 500px;
  background: radial-gradient(circle, var(--electric-blue) 0%, var(--dark-purple) 45%, transparent 70%);
  opacity: 0.28;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.eyebrow {
  color: var(--electric-blue);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 1.2rem;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hero-sub {
  margin: 1.6rem auto 2.2rem;
  max-width: 620px;
  color: var(--text-dim);
  font-size: 1.05rem;
}
.cta {
  display: inline-block;
  background: var(--electric-blue);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 24px rgba(36, 87, 245, 0.35);
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(36, 87, 245, 0.45); }

.demo-section { padding: 2rem 4vw 5rem; }
.demo-intro { text-align: center; max-width: 560px; margin: 0 auto 2.4rem; }
.demo-intro h2 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.demo-intro p { color: var(--text-dim); }

.chat-widget {
  max-width: 480px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--soft-blue), var(--dark-purple));
}
.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--electric-blue);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-title { font-family: 'Poppins', sans-serif; font-weight: 600; color: #fff; font-size: 0.95rem; }
.chat-status { font-size: 0.78rem; color: var(--text-dim); display: flex; align-items: center; gap: 0.4rem; }
.dot-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: #3ddc84;
  display: inline-block;
  box-shadow: 0 0 0 rgba(61, 220, 132, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

.chat-messages {
  height: 380px;
  overflow-y: auto;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.msg {
  max-width: 85%;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  font-size: 0.9rem;
  white-space: pre-wrap;
}
.msg-bot {
  align-self: flex-start;
  background: var(--soft-blue);
  color: var(--galactic-grey);
  border-bottom-left-radius: 4px;
}
.msg-user {
  align-self: flex-end;
  background: var(--electric-blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-typing {
  align-self: flex-start;
  background: var(--soft-blue);
  border-bottom-left-radius: 4px;
  display: flex;
  gap: 4px;
  padding: 0.75rem 1rem;
}
.msg-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-dim);
  animation: blink 1.2s infinite;
}
.msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.msg-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

.chat-input-row {
  display: flex;
  gap: 0.6rem;
  padding: 0.9rem;
  border-top: 1px solid var(--border);
}
.chat-input-row input {
  flex: 1;
  background: var(--space-blue);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  outline: none;
}
.chat-input-row input:focus { border-color: var(--electric-blue); }
.chat-input-row button {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--electric-blue);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-input-row button:disabled { opacity: 0.5; cursor: default; }

.chat-disclaimer {
  padding: 0.7rem 1.2rem 1rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  border-top: 1px solid var(--border);
}

.how { padding: 5rem 4vw; background: var(--card-bg); text-align: center; }
.how h2 { font-size: 1.7rem; margin-bottom: 3rem; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.6rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}
.step {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem;
}
.step-n {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--electric-blue);
  margin-bottom: 0.6rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-dim); font-size: 0.88rem; margin: 0; }

.proof { padding: 5rem 4vw; text-align: center; }
.proof h2 { font-size: 1.7rem; }
.proof-sub { color: var(--text-dim); max-width: 480px; margin: 0.8rem auto 3rem; }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
  max-width: 900px;
  margin: 0 auto 2.6rem;
}
.proof-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem 1rem;
  background: linear-gradient(160deg, rgba(36,87,245,0.08), transparent);
}
.proof-number {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--electric-blue);
}
.proof-label { color: var(--text-dim); font-size: 0.82rem; margin-top: 0.4rem; }
.proof-note {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.footer {
  padding: 3rem 4vw;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer .wordmark { margin-bottom: 0.5rem; justify-content: center; display: flex; }

@media (max-width: 560px) {
  .chat-widget { max-width: 100%; }
  .chat-messages { height: 320px; }
}
