@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #1e3a5f;
  --blue-light: #3b82f6;
  --purple: #7c3aed;
  --green: #22c55e;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --radius: 12px;
}

body { font-family: 'Inter', sans-serif; color: var(--gray-800); background: #fff; line-height: 1.6; }
a { color: var(--blue-light); }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200); padding: 0 1.5rem;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-size: 1.3rem; font-weight: 800; color: var(--blue); }
.nav-logo span { color: var(--blue-light); }
.nav-links { display: flex; align-items: center; gap: 1rem; }
.nav-links a { text-decoration: none; color: var(--gray-600); font-size: 0.9rem; font-weight: 500; }
.nav-cta, .hero-btn, .cta-btn {
  background: var(--blue-light); color: #fff; border: none; cursor: pointer;
  padding: 10px 22px; border-radius: 8px; font-weight: 700; font-size: 0.95rem;
  font-family: inherit; transition: background 0.2s;
}
.nav-cta:hover, .hero-btn:hover, .cta-btn:hover { background: var(--blue); }

.hero {
  padding: 130px 1.5rem 80px; text-align: center;
  background: linear-gradient(160deg, #f0f4ff 0%, #fff 50%, #faf5ff 100%);
}
.hero-badge-top {
  display: inline-block; background: #faf5ff; border: 2px solid var(--purple);
  color: #6b21a8; padding: 6px 16px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 700; margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; color: var(--gray-900);
  max-width: 700px; margin: 0 auto; line-height: 1.15;
}
.hero h1 span { color: var(--blue-light); }
.hero p { margin-top: 1rem; color: var(--gray-600); max-width: 560px; margin-left: auto; margin-right: auto; font-size: 1.05rem; }
.hero-badges { margin: 1.5rem 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 20px;
  padding: 7px 16px; font-size: 0.85rem; color: var(--gray-600);
}
.hero-badge strong { color: var(--blue-light); }
.hero-btn { margin-top: 0.5rem; padding: 14px 32px; font-size: 1.05rem; }

.section { padding: 70px 1.5rem; }
.section-alt { background: var(--gray-50); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { text-transform: uppercase; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; color: var(--blue-light); margin-bottom: 6px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--gray-900); margin-bottom: 2rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; text-align: center; }
.section-alt .step { background: #fff; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--blue);
  color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.step h4 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: 0.88rem; color: var(--gray-600); }

.solutions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.sol-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.sol-card span { font-size: 1.6rem; }
.sol-card h4 { font-size: 0.9rem; margin-top: 6px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { padding: 20px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--gray-50); }
.feature h4 { margin-bottom: 6px; font-size: 0.95rem; }
.feature p { font-size: 0.88rem; color: var(--gray-600); }

.cta { text-align: center; padding: 80px 1.5rem; background: var(--blue); color: #fff; }
.cta h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; }
.cta p { margin-top: 10px; opacity: 0.9; }
.cta-btn { background: #fff; color: var(--blue); margin-top: 24px; padding: 14px 32px; font-size: 1.05rem; }
.cta-alt { margin-top: 16px; font-size: 0.9rem; opacity: 0.85; }
.cta-alt a { color: #fff; }

footer {
  padding: 28px 1.5rem; text-align: center; font-size: 0.8rem;
  color: var(--gray-400); background: var(--gray-50); border-top: 1px solid var(--gray-200);
}
footer a { color: var(--gray-400); }

/* CHAT */
.chat-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(15,23,42,0.5); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 1rem;
}
.chat-overlay.open { display: flex; }
.chat-panel {
  background: #fff; border-radius: 16px; width: 100%; max-width: 480px;
  height: min(620px, 90vh); display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2); overflow: hidden;
}
.chat-header {
  padding: 16px 20px; border-bottom: 1px solid var(--gray-200);
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(135deg, #eff6ff, #faf5ff);
}
.chat-sub { display: block; font-size: 0.78rem; color: var(--gray-600); font-weight: 400; }
.chat-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-400); line-height: 1; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 88%; padding: 10px 14px; border-radius: 12px; font-size: 0.9rem; line-height: 1.5; white-space: pre-wrap; }
.chat-msg.user { align-self: flex-end; background: var(--blue-light); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.bot { align-self: flex-start; background: var(--gray-100); color: var(--gray-800); border-bottom-left-radius: 4px; }
.chat-quote-box {
  margin: 0 16px 8px; padding: 12px 14px; background: #f0fdf4;
  border: 1px solid #86efac; border-radius: 10px; font-size: 0.88rem;
}
.chat-quote-box.hidden, .accept-form.hidden { display: none; }
.accept-form { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.accept-form input {
  padding: 8px 12px; border: 1px solid var(--gray-200); border-radius: 8px; font-family: inherit;
}
.accept-btn {
  background: var(--green); color: #fff; border: none; padding: 10px;
  border-radius: 8px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.chat-input-row {
  padding: 12px 16px; border-top: 1px solid var(--gray-200);
  display: flex; gap: 8px;
}
.chat-input-row input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--gray-200);
  border-radius: 8px; font-family: inherit; outline: none;
}
.chat-input-row input:focus { border-color: var(--blue-light); }
.chat-input-row button {
  background: var(--blue-light); color: #fff; border: none;
  padding: 10px 18px; border-radius: 8px; font-weight: 600; cursor: pointer; font-family: inherit;
}

/* MODAL */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(15,23,42,0.6); align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 12px; padding: 32px; max-width: 440px; width: 90%;
  position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--gray-400); }
.modal h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.modal .sub { font-size: 0.9rem; color: var(--gray-600); margin-bottom: 16px; }
.modal input, .modal textarea {
  width: 100%; padding: 10px 14px; margin-bottom: 10px;
  border: 1px solid var(--gray-200); border-radius: 8px; font-family: inherit;
}
.modal textarea { min-height: 90px; resize: vertical; }
.modal button[type="submit"] {
  width: 100%; padding: 12px; background: var(--blue-light); color: #fff;
  border: none; border-radius: 8px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.msg { margin-top: 8px; font-size: 0.85rem; text-align: center; }
.msg.success { color: var(--green); }
.msg.error { color: #dc2626; }

@media (max-width: 640px) {
  .nav-links a { display: none; }
  .hero { padding: 110px 1rem 60px; }
}
