:root {
  --bg: #06111f;
  --bg2: #10243a;
  --panel: rgba(255, 255, 255, 0.08);
  --panel2: rgba(255, 255, 255, 0.13);
  --text: #f8fafc;
  --muted: #a8b5c5;
  --accent: #d9b76f;
  --accent2: #ffe0a3;
  --border: rgba(255, 255, 255, 0.14);
  --dark: #06111f;
  --success: #0f766e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(217, 183, 111, 0.18), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(70, 120, 170, 0.18), transparent 34%),
    linear-gradient(135deg, var(--bg), var(--bg2));
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(6, 17, 31, 0.74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 18px clamp(18px, 5vw, 76px);
  display: flex; align-items: center; justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 16px; background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--dark); font-weight: 950;
}
.brand strong, .brand span { display: block; }
.brand span { color: var(--muted); font-size: 13px; margin-top: 3px; }

nav { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }
nav a:hover { color: var(--text); }

.hero {
  min-height: calc(100vh - 82px);
  padding: clamp(52px, 8vw, 112px) clamp(18px, 5vw, 76px);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center;
}

.eyebrow {
  color: var(--accent2); font-weight: 850; text-transform: uppercase;
  letter-spacing: 0.16em; font-size: 12px;
}

h1 {
  margin: 16px 0 22px;
  font-size: clamp(42px, 6.8vw, 86px);
  line-height: 0.95; letter-spacing: -0.065em;
}
h2 {
  margin: 14px 0 18px; font-size: clamp(34px, 5vw, 62px);
  line-height: 1; letter-spacing: -0.05em;
}
h3 { margin: 0 0 10px; font-size: 22px; }

.lead, .section p, .journey-grid p, .pilot-section p, .pilot-section li {
  color: var(--muted); font-size: 18px; line-height: 1.7;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.primary-btn, .secondary-btn, .chat-fab, .chat-form button, .lead-actions button {
  border-radius: 999px; border: 0; font-weight: 850; cursor: pointer;
}

.primary-btn {
  padding: 16px 22px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--dark);
}
.secondary-btn {
  padding: 15px 22px; background: var(--panel); border: 1px solid var(--border); color: var(--text);
}

.trust-row { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trust-row div {
  border: 1px solid var(--border); background: var(--panel); border-radius: 20px; padding: 16px;
}
.trust-row b { display: block; color: var(--accent2); font-size: 25px; }
.trust-row span { color: var(--muted); font-size: 13px; }

.assistant-preview {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel2), rgba(255,255,255,0.05));
  border-radius: 34px; padding: 26px; box-shadow: 0 30px 110px rgba(0,0,0,0.4);
}
.preview-header { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 22px; }
.preview-header strong { color: var(--text); }
.preview-message { padding: 14px 16px; border-radius: 19px; line-height: 1.45; margin: 12px 0; }
.bot-preview { background: rgba(255,255,255,0.12); color: var(--text); max-width: 86%; }
.user-preview { background: var(--accent2); color: var(--dark); max-width: 86%; margin-left: auto; }
.preview-options { display: flex; gap: 8px; flex-wrap: wrap; }
.preview-options button {
  border: 1px solid var(--border); background: rgba(255,255,255,0.1);
  color: var(--text); padding: 9px 12px; border-radius: 999px;
}
.mini-summary { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 18px; color: var(--muted); }
.bar { height: 9px; background: rgba(255,255,255,0.12); border-radius: 999px; overflow: hidden; margin: 9px 0; }
.bar i { display: block; width: 82%; height: 100%; background: linear-gradient(135deg, var(--accent), var(--accent2)); }

.section, .journey-grid, .metrics-section { padding: clamp(54px, 8vw, 90px) clamp(18px, 5vw, 76px); }
.narrow { max-width: 1100px; }

.journey-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.journey-grid article, .pilot-section, .metrics-grid article {
  background: var(--panel); border: 1px solid var(--border); border-radius: 28px; padding: 28px;
}
.journey-grid b { color: var(--accent2); }

.pilot-section {
  margin: 0 clamp(18px, 5vw, 76px) 30px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px;
}
.pilot-list ul { margin: 0; padding-left: 22px; }

.metrics-section { padding-top: 40px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
.metrics-grid b { display: block; color: var(--accent2); font-size: 22px; margin-bottom: 8px; }
.metrics-grid span { color: var(--muted); }

.chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  padding: 16px 22px; background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--dark); box-shadow: 0 22px 80px rgba(0,0,0,0.4);
}

.chat-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  width: min(460px, calc(100vw - 32px)); height: min(760px, calc(100vh - 48px));
  background: #f8fafc; color: #0f172a; border-radius: 30px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 35px 130px rgba(0,0,0,0.55);
}
.hidden { display: none; }

.chat-header {
  padding: 18px; background: #06111f; color: white;
  display: flex; justify-content: space-between; align-items: center;
}
.chat-header span { display: block; color: #a8b5c5; font-size: 12px; margin-top: 3px; }
.chat-header button { background: transparent; border: 0; color: white; font-size: 28px; cursor: pointer; }

.language-switcher {
  display: flex; gap: 8px; padding: 12px 14px; background: #edf2f7; border-bottom: 1px solid #dbe3ee;
}
.language-switcher button, .quick-replies button {
  border: 1px solid #cbd5e1; background: white; color: #0f172a;
  border-radius: 999px; padding: 9px 12px; cursor: pointer; font-weight: 800;
}
.language-switcher button:hover, .quick-replies button:hover { background: #06111f; color: white; }

.messages {
  flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px;
}
.msg {
  max-width: 88%; padding: 13px 15px; border-radius: 18px; line-height: 1.45;
  font-size: 14px; white-space: pre-line;
}
.bot { align-self: flex-start; background: #e8edf5; border-bottom-left-radius: 5px; }
.user { align-self: flex-end; background: #06111f; color: white; border-bottom-right-radius: 5px; }
.system { align-self: center; background: #dcfce7; color: #14532d; max-width: 95%; text-align: center; }

.quick-replies { padding: 0 14px 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.lead-actions {
  padding: 10px 14px; display: grid; grid-template-columns: 1fr; gap: 8px; border-top: 1px solid #e2e8f0;
}
.lead-actions button { background: #0f766e; color: white; padding: 11px 12px; }

.chat-form {
  padding: 14px; border-top: 1px solid #e2e8f0; display: flex; gap: 8px;
}
.chat-form input {
  flex: 1; border: 1px solid #cbd5e1; border-radius: 999px; padding: 13px 14px; outline: none;
}
.chat-form button { background: #06111f; color: white; padding: 0 16px; }

@media (max-width: 980px) {
  .hero, .pilot-section { grid-template-columns: 1fr; }
  .journey-grid, .metrics-grid { grid-template-columns: 1fr 1fr; }
  nav { display: none; }
}
@media (max-width: 620px) {
  .journey-grid, .metrics-grid, .trust-row { grid-template-columns: 1fr; }
  .chat-panel {
    right: 12px; bottom: 12px; width: calc(100vw - 24px); height: calc(100vh - 24px);
  }
}
