:root {
  --bg: #0b1020;
  --bg-alt: #0f1730;
  --text: #e7ecf5;
  --muted: #a8b2c8;
  --accent: #6ea8ff;
  --accent-2: #9b7bff;
  --card: #121a33;
  --border: rgba(255, 255, 255, 0.08);
  --max: 1080px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(circle at 20% 10%, rgba(110, 168, 255, 0.18), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(155, 123, 255, 0.18), transparent 40%),
    linear-gradient(180deg, #0b1020 0%, #0d1428 100%);
  border-bottom: 1px solid var(--border);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(110, 168, 255, 0.12);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(110, 168, 255, 0.25);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  margin: 0 0 16px;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
  margin: 0 0 32px;
}

.cta {
  display: inline-block;
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1020;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(110, 168, 255, 0.25);
}

.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section h2 {
  font-size: 28px;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: rgba(110, 168, 255, 0.4);
  transform: translateY(-2px);
}

.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.steps { padding-left: 20px; margin: 0; color: var(--muted); }
.steps li { margin-bottom: 10px; }
.steps strong { color: var(--text); }

footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Chat widget */
.chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1020;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(110, 168, 255, 0.35);
  z-index: 9998;
  transition: transform 0.15s ease;
}
.chat-toggle:hover { transform: scale(1.06); }

.chat-panel {
  position: fixed;
  bottom: 94px;
  right: 24px;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 130px));
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
  z-index: 9999;
}

.chat-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chat-head {
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(110, 168, 255, 0.16), rgba(155, 123, 255, 0.16));
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-head strong { display: block; font-size: 15px; }
.chat-sub { font-size: 12px; color: #7ee5a8; }
.chat-sub::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ee5a8;
  margin-right: 6px;
  vertical-align: middle;
}

.chat-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0 6px;
}
.chat-close:hover { color: var(--text); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1020;
  border-bottom-right-radius: 4px;
}
.msg.assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.msg.typing { color: var(--muted); font-style: italic; }
.msg.error { background: rgba(255, 100, 100, 0.12); border-color: rgba(255, 100, 100, 0.3); color: #ffb4b4; }

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.chat-form textarea {
  flex: 1;
  resize: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}
.chat-form textarea:focus { border-color: var(--accent); }
.chat-form button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b1020;
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.chat-form button:disabled { opacity: 0.5; cursor: not-allowed; }
