:root {
  --ink: #0b0f1a;
  --ivory: #f4f6fa;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --surface: #0f172a;
  --surface-light: #1e293b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --shadow: 0 22px 60px rgba(5, 10, 24, 0.4);
}

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

body {
  font-family: "Space Grotesk", sans-serif;
  background: var(--ivory);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.12), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(15, 23, 42, 0.15), transparent 50%),
    linear-gradient(120deg, #f4f6fa 0%, #eef2fb 45%, #e8edf8 100%);
  z-index: -1;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 120px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
}

.brand {
  grid-column: 1 / 7;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4), inset 0 0 0 1px rgba(255,255,255,0.1);
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.brand-tagline {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 2px;
}

.hero-copy {
  grid-column: 1 / 9;
  margin-top: 40px;
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--ink);
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.05rem;
  color: #475569;
  max-width: 580px;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(14, 14, 18, 0.2);
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3);
}

.hero-card {
  grid-column: 9 / 13;
  background: var(--surface);
  color: var(--text);
  padding: 28px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.card-title {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.68rem;
  color: var(--muted);
}

.card-metric {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 16px 0 8px;
  color: var(--accent);
}

.card-metric span {
  font-size: 1rem;
  color: var(--muted);
  margin-right: 8px;
}

.card-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.highlight {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.highlight h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink);
}

.highlight p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── Chat Widget ── */
.chat-widget {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 380px;
  height: 600px;
  background: #f8fafc;
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  animation: slideUp 0.3s ease-out;
}

.chat-widget.open {
  display: flex;
}

@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.chat-header {
  background: var(--surface);
  color: var(--text);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(37, 99, 235, 0.2);
}

.chat-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

.agent-name {
  font-weight: 600;
  font-size: 15px;
}

.agent-status {
  font-size: 11px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.agent-status::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.chat-close {
  background: rgba(255, 255, 255, 0.07);
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f1f5f9;
}

.message {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.message-content {
  background: white;
  padding: 12px 16px;
  border-radius: 14px;
  max-width: 75%;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.user-message {
  flex-direction: row-reverse;
}

.user-message .message-content {
  background: var(--accent);
  color: #fff;
}

.user-message .message-avatar {
  background: var(--surface);
  color: var(--text);
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 6px 0;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-8px); }
}

.chat-suggestions {
  padding: 10px 16px;
  background: #f8fafc;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.suggestion-btn {
  background: var(--accent-soft);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.suggestion-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.chat-input {
  padding: 14px 16px;
  background: #f8fafc;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  gap: 10px;
}

#chat-input-field {
  flex: 1;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  outline: none;
  background: white;
  color: var(--ink);
  transition: border-color 0.2s;
}

#chat-input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.send-btn {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s;
}

.send-btn:hover {
  transform: scale(1.05);
}

.chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 999;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
}

.chat-toggle.hidden {
  display: none;
}

.toggle-pill {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-card { grid-column: auto; }
}

@media (max-width: 768px) {
  .chat-widget {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }
  .chat-toggle {
    bottom: 16px;
    right: 16px;
  }
}
