:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-light: #EFF6FF;
  --blue-mid: #DBEAFE;
  --text: #1E293B;
  --text-muted: #64748B;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ── NAV ─────────────────────────────────────────── */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue);
  white-space: nowrap;
  margin-right: 16px;
}

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

.nav-links a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all 0.15s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--blue-light);
  color: var(--blue);
  text-decoration: none;
}

.nav-cta {
  margin-left: auto;
  background: var(--blue);
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 500;
  font-size: 0.875rem !important;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--blue-dark) !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* ── HERO ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 60%, #3B82F6 100%);
  color: #fff;
  padding: 72px 20px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 0.8rem;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-white {
  background: #fff;
  color: var(--blue);
}

.btn-white:hover {
  background: var(--blue-light);
  text-decoration: none;
  color: var(--blue-dark);
}

.btn-blue {
  background: var(--blue);
  color: #fff;
}

.btn-blue:hover {
  background: var(--blue-dark);
  text-decoration: none;
  color: #fff;
}

/* ── CARDS ─────────────────────────────────────────── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 0.975rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── INFO BANNER ─────────────────────────────────── */
.banner {
  background: var(--blue-mid);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 0 20px 48px;
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
}

.banner p { font-size: 0.9375rem; color: var(--text); }
.banner strong { color: var(--blue-dark); }

/* ── STEPS ─────────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.step-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.step-body a {
  font-size: 0.875rem;
}

/* ── BENEFITS GRID ─────────────────────────────────── */
.benefit-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.benefit-category h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.benefit-category ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.benefit-category li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.benefit-category li::before {
  content: "•";
  color: var(--blue);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* ── LINKS SECTION ─────────────────────────────────── */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.link-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow 0.15s;
  text-decoration: none;
  color: var(--text);
}

.link-card:hover {
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--text);
}

.link-card-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.link-card span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue);
}

/* ── CHAT PAGE ─────────────────────────────────────── */
.chat-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 0 12px;
}

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

.message {
  display: flex;
  gap: 10px;
  max-width: 86%;
  animation: fadeIn 0.2s ease;
}

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

.message--user { align-self: flex-end; flex-direction: row-reverse; }
.message--bot  { align-self: flex-start; }

.message__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.message--bot  .message__avatar { background: var(--blue-light); }
.message--user .message__avatar { background: var(--border); }

.message__bubble {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
}

.message--bot .message__bubble {
  background: var(--surface);
  color: var(--text);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}

.message--user .message__bubble {
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.message__bubble p { margin-bottom: 8px; }
.message__bubble p:last-child { margin-bottom: 0; }
.message__bubble strong { font-weight: 600; }
.message__bubble ul, .message__bubble ol { margin: 6px 0; padding-left: 20px; }
.message__bubble li { margin-bottom: 4px; }
.message__bubble a { color: var(--blue); }
.message--user .message__bubble a { color: #bfdbfe; }

/* Typing */
.typing { display: flex; align-items: center; gap: 4px; padding: 4px 0; }
.typing span {
  width: 7px; height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: bounce 1.4s infinite;
  opacity: 0.5;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.8); }
  40%  { transform: scale(1.2); opacity: 1; }
}

/* Quick replies */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 16px;
}

.quick-reply {
  background: var(--surface);
  border: 1px solid var(--blue);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 0.8125rem;
  font-family: inherit;
  color: var(--blue);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.quick-reply:hover {
  background: var(--blue-light);
}

/* Input */
.input-area {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  position: sticky;
  bottom: 0;
}

.input-area textarea {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.4;
  resize: none;
  outline: none;
  background: var(--bg);
  color: var(--text);
  min-height: 44px;
  max-height: 120px;
  transition: border-color 0.15s;
}

.input-area textarea:focus { border-color: var(--blue); }
.input-area textarea::placeholder { color: var(--text-muted); }

.send-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.send-btn:hover { background: var(--blue-dark); }
.send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── PAGE HEADER ─────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  color: #fff;
  padding: 48px 20px;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-bottom: 8px; }
.page-hero p  { font-size: 0.975rem; opacity: 0.88; max-width: 500px; margin: 0 auto; }

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── MOBILE ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 48px 16px; }
  .section { padding: 40px 16px; }
  .step { flex-direction: column; gap: 12px; }
  .message { max-width: 92%; }
}
