/* Base / reset */
body {
  margin: 0;
  font-family: Poppins, "Helvetica Neue", Helvetica, sans-serif;
  background: #F5F7FB;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
a { color: #2F5BEA; text-decoration: none; }
a:hover { color: #1E3AE0; }
input, select, textarea, button { font-family: inherit; }
::placeholder { color: #9AA6C0; }

.page { background: #F5F7FB; color: #1B2559; overflow-x: hidden; }

/* Popup */
.popup-overlay {
  position: fixed; inset: 0; background: rgba(17, 24, 63, 0.55);
  display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px;
}
.popup-card {
  background: #fff; border-radius: 18px; max-width: 420px; width: 100%;
  padding: 40px 32px 32px; position: relative; text-align: center;
  box-shadow: 0 30px 70px rgba(11, 18, 74, 0.34);
}
.popup-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: #F5F7FB; color: #6B7A99; font-size: 15px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.popup-close:hover { background: #EEF1FA; color: #1B2559; }
.popup-icon {
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(180deg, #6FD32B 0%, #4FB515 100%);
  color: #fff; font-size: 28px; display: flex; align-items: center; justify-content: center; margin: 0 auto;
}
.popup-title { margin: 22px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
.popup-text { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: #6B7A99; }
.popup-close-btn {
  margin-top: 24px; background: #1E3AE0; color: #fff; border: none; font-size: 14px; font-weight: 600;
  padding: 12px 26px; border-radius: 10px; cursor: pointer;
}

/* Hero */
.hero { background: linear-gradient(125deg, #2438D9 0%, #4A3AE8 42%, #8B5CF6 100%); padding: 0 0 140px; }

.header { max-width: 1240px; margin: 0 auto; padding: 26px 40px; display: flex; align-items: center; gap: 40px; }
.header-logo { display: flex; align-items: center; }
.nav { display: flex; gap: 30px; align-items: center; margin-left: 12px; }
.nav-link { color: rgba(255,255,255,0.86); font-size: 14.5px; font-weight: 500; }
.nav-link:hover { color: #fff; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.btn-white {
  background: #fff; color: #1E3AE0; font-size: 14.5px; font-weight: 600; padding: 11px 20px;
  border-radius: 10px; box-shadow: 0 6px 18px rgba(16, 24, 80, 0.18);
}
.btn-white:hover { background: #EEF2FF; }

.hero-content {
  max-width: 1240px; margin: 0 auto; padding: 40px 40px 0; display: grid;
  grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.hero-content > div { min-width: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25); color: #fff; padding: 7px 14px 7px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.01em;
}
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #7ED957; display: block; margin-left: 4px; }
.hero-title { margin: 22px 0 0; font-size: 60px; line-height: 1.04; font-weight: 800; letter-spacing: -0.03em; color: #fff; text-wrap: balance; }
.hero-title-sub { color: #D7DEFF; }
.hero-desc { margin: 24px 0 0; max-width: 520px; font-size: 17px; line-height: 1.62; color: rgba(255,255,255,0.82); font-weight: 400; text-wrap: pretty; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #6FD32B 0%, #4FB515 100%); color: #fff; font-weight: 600; font-size: 15px;
  padding: 15px 26px; border-radius: 11px; box-shadow: 0 10px 24px rgba(30, 90, 10, 0.32);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3); color: #fff; font-weight: 500; font-size: 15px; padding: 15px 24px; border-radius: 11px;
}
.btn-outline:hover { background: rgba(255,255,255,0.2); }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; align-items: flex-start; flex-wrap: wrap; }
.hero-stat-value { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.hero-stat-label { font-size: 12.5px; color: rgba(255,255,255,0.72); line-height: 1.45; margin-top: 2px; }
.hero-stat-divider { width: 1px; align-self: stretch; background: rgba(255,255,255,0.22); }

.hero-right { position: relative; }
.hero-card { background: #fff; border-radius: 20px; padding: 16px; box-shadow: 0 30px 70px rgba(11, 18, 74, 0.34); }
.hero-card-top { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; }
.hero-card-logo { font-weight: 800; font-size: 15px; }
.hero-card-logo-nx { color: #2F5BEA; }
.hero-card-logo-crm { color: #1B2559; }
.hero-card-search { flex: 1; height: 28px; border-radius: 8px; background: #F5F7FB; border: 1px solid #E7EAF3; }
.hero-card-avatar { width: 28px; height: 28px; border-radius: 50%; background: #EEF1FA; }
.hero-card-dashboard {
  height: 340px; border-radius: 14px; border: 1px solid #E7EAF3;
  background-image: url(images/dashboard.png); background-size: cover; display: flex;
}
.hero-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.hero-card-stat { border: 1px solid #E7EAF3; border-radius: 12px; padding: 12px; }
.hero-card-stat-label { font-size: 10.5px; color: #8B97B4; font-weight: 500; }
.hero-card-stat-value { font-size: 20px; font-weight: 700; margin-top: 3px; }
.hero-card-stat-delta { font-size: 10.5px; font-weight: 600; }
.hero-card-stat-delta.is-up { color: #34A853; }
.hero-card-stat-delta.is-warn { color: #E9A23B; }

.hero-float-card {
  position: absolute; left: -74px; bottom: -168px; width: 190px; background: #fff; border-radius: 16px;
  padding: 16px; box-shadow: 0 20px 44px rgba(11, 18, 74, 0.26);
}
.hero-float-label { font-size: 11px; color: #8B97B4; font-weight: 500; }
.hero-float-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: 12px; }
.hero-float-bar { flex: 1; border-radius: 4px; background: #DCE3FB; }
.hero-float-bar.bar-1 { height: 40%; }
.hero-float-bar.bar-2 { height: 62%; }
.hero-float-bar.bar-3 { height: 48%; }
.hero-float-bar.bar-4 { height: 88%; background: #2F5BEA; }
.hero-float-bar.bar-5 { height: 70%; }
.hero-float-bar.bar-6 { height: 96%; background: #8B5CF6; }
.hero-float-value { font-size: 12px; font-weight: 600; margin-top: 10px; }
.hero-float-delta { color: #34A853; font-weight: 600; font-size: 11px; }

/* Features */
.features { max-width: 1240px; margin: -50px auto 0; padding: 0 40px; position: relative; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: #fff; border-radius: 18px; padding: 28px; box-shadow: 0 18px 44px rgba(11, 18, 74, 0.1); }
.feature-badge {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px;
}
.feature-badge.is-blue { background: #EEF2FE; color: #2F5BEA; }
.feature-badge.is-purple { background: #F1EDFE; color: #7C4DFF; }
.feature-badge.is-green { background: #EDF8E8; color: #4FB515; }
.feature-title { margin: 18px 0 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.feature-desc { margin: 9px 0 0; font-size: 14.5px; line-height: 1.6; color: #6B7A99; }

/* Steps */
.steps-section { max-width: 1240px; margin: 0 auto; padding: 96px 40px 0; }
.steps-header { text-align: center; max-width: 620px; margin: 0 auto; }
.steps-eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #2F5BEA; }
.steps-title { margin: 12px 0 0; font-size: 40px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; }
.steps-desc { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: #6B7A99; }
.steps-board {
  background: #fff; border-radius: 20px; padding: 40px 34px; margin-top: 44px;
  box-shadow: 0 18px 44px rgba(11, 18, 74, 0.08); display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 18px; position: relative;
}
.steps-line { position: absolute; left: 100px; right: 100px; top: 74px; height: 2px; background: #EEF1FA; }
.step-item { position: relative; text-align: center; padding: 0 4px; }
.step-circle {
  width: 50px; height: 50px; border-radius: 50%; margin: 0 auto; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1.05; box-shadow: 0 6px 16px rgba(11, 18, 74, 0.12);
}
.step-num { font-size: 13px; font-weight: 700; }
.step-of-label { font-size: 9px; font-weight: 500; letter-spacing: 0.04em; }
.step-title { font-size: 15px; font-weight: 700; margin-top: 16px; }
.step-desc { font-size: 13px; line-height: 1.5; color: #7C89A8; margin-top: 6px; }

/* Modules */
.modules-section { max-width: 1240px; margin: 0 auto; padding: 96px 40px 0; }
.modules-card {
  background: linear-gradient(125deg, #2438D9 0%, #4A3AE8 45%, #8B5CF6 100%); border-radius: 24px; padding: 46px;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 46px; align-items: center;
}
.modules-card > div { min-width: 0; }
.modules-title { margin: 0; font-size: 34px; font-weight: 800; color: #fff; letter-spacing: -0.025em; line-height: 1.16; }
.modules-desc { margin: 16px 0 0; font-size: 15.5px; line-height: 1.62; color: rgba(255,255,255,0.82); }
.modules-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.tag-pill {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.24); color: #fff;
  font-size: 12.5px; font-weight: 500; padding: 8px 14px; border-radius: 999px;
}
.modules-right { background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 24px 54px rgba(11, 18, 74, 0.28); }
.modules-table-header { display: flex; align-items: baseline; gap: 6px; padding: 4px 4px 16px; flex-wrap: wrap; }
.modules-table-title { font-size: 17px; font-weight: 700; }
.modules-table-count { font-size: 14px; color: #8B97B4; }
.btn-add-customer { margin-left: auto; background: #2F5BEA; color: #fff; font-size: 11.5px; font-weight: 600; padding: 8px 14px; border-radius: 9px; }
.customers-table { overflow-x: auto; }
.table-head, .table-row {
  display: grid; grid-template-columns: 76px 1fr 120px 92px; min-width: 460px;
}
.table-head { gap: 0; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; color: #8B97B4; background: #F5F7FB; padding: 10px 12px; border-radius: 8px; }
.table-row { align-items: center; padding: 11px 12px; border-bottom: 1px solid #F1F3FA; font-size: 12.5px; }
.table-cid { color: #2F5BEA; font-weight: 500; }
.table-customer { display: flex; align-items: center; gap: 8px; }
.table-avatar { width: 22px; height: 22px; border-radius: 50%; background: #EEF1FA; display: block; }
.table-customer-name { font-weight: 500; }
.table-industry { color: #6B7A99; }
.status-pill { font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.table-footer { display: flex; justify-content: flex-end; gap: 16px; padding: 12px 4px 2px; font-size: 11.5px; color: #8B97B4; }
.table-footer-next { color: #2F5BEA; font-weight: 600; }

/* Support */
.support-section { max-width: 1240px; margin: 0 auto; padding: 96px 40px 0; }
.support-card { background: #17203F; border-radius: 24px; padding: 46px; text-align: center; }
.support-title { margin: 0; font-size: 32px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.support-desc { margin: 12px auto 0; max-width: 560px; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.7); }
.support-grid { display: grid; grid-template-columns: repeat(3, 220px); justify-content: center; gap: 22px; margin-top: 34px; }
.support-photo { width: 100%; height: 130px; border-radius: 14px; object-fit: cover; display: block; background: #26305A; }
.support-name { font-size: 14px; font-weight: 600; color: #fff; margin-top: 12px; }
.support-role { display: inline-block; margin-top: 8px; background: #2F5BEA; color: #fff; font-size: 11px; font-weight: 500; padding: 6px 12px; border-radius: 999px; }

/* Lead form */
.form-section { max-width: 1240px; margin: 0 auto; padding: 96px 40px 110px; }
.form-card { background: #fff; border-radius: 24px; box-shadow: 0 24px 60px rgba(11, 18, 74, 0.1); display: grid; grid-template-columns: 0.82fr 1.18fr; overflow: hidden; }
.form-card > div { min-width: 0; }
.form-left { background: linear-gradient(160deg, #2438D9 0%, #4A3AE8 48%, #8B5CF6 100%); padding: 46px 38px; display: flex; flex-direction: column; }
.form-logo { display: inline-flex; align-self: flex-start; }
.form-title { margin: 30px 0 0; font-size: 32px; font-weight: 800; color: #fff; letter-spacing: -0.025em; line-height: 1.14; }
.form-desc { margin: 14px 0 0; font-size: 15px; line-height: 1.62; color: rgba(255,255,255,0.82); }
.form-benefits { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.form-benefit { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,0.9); line-height: 1.5; }
.form-benefit-check {
  width: 18px; height: 18px; border-radius: 50%; background: #7ED957; color: #17203F; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: none; margin-top: 2px;
}
.form-agent { margin-top: auto; padding-top: 34px; display: flex; align-items: center; gap: 12px; }
.form-agent-name { font-size: 13.5px; font-weight: 600; color: #fff; }
.form-agent-role { font-size: 12px; color: rgba(255,255,255,0.72); }

.form-right { padding: 44px 42px; }
.form-header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.form-header-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.form-header-note { font-size: 12.5px; color: #8B97B4; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.form-field-full { grid-column: span 2; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: #6B7A99; margin-bottom: 7px; }
.form-input, .form-select {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid #E7EAF3;
  background: #FAFBFE; font-size: 14px; color: #1B2559; outline: none;
}
.form-select { padding: 0 12px; appearance: none; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: #2F5BEA; background: #fff; }
.form-textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid #E7EAF3; background: #FAFBFE;
  font-size: 14px; line-height: 1.55; color: #1B2559; outline: none; resize: none; height: 200px;
}
.form-size-options { display: flex; flex-wrap: wrap; gap: 9px; }
.size-btn { font-size: 13px; font-weight: 500; padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.size-btn:hover { border-color: #2F5BEA; }
.form-error {
  margin-top: 16px; background: #FEF0F0; border: 1px solid #FADCDC; color: #C0392B; font-size: 13px;
  font-weight: 500; padding: 12px 14px; border-radius: 10px;
}
.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 24px; flex-wrap: wrap; }
.btn-submit {
  display: inline-flex; align-items: center; gap: 10px; background: #1E3AE0; color: #fff; border: none;
  font-size: 15px; font-weight: 600; padding: 15px 30px; border-radius: 11px; cursor: pointer;
  box-shadow: 0 10px 24px rgba(30, 58, 224, 0.28);
}
.btn-submit:hover { background: #172FC0; }
.form-note { font-size: 12px; line-height: 1.5; color: #8B97B4; max-width: 260px; }

/* Footer */
.site-footer { background: #17203F; padding: 46px 40px; }
.footer-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer-logo { display: flex; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-links { margin-left: auto; display: flex; gap: 24px; }
.footer-link { font-size: 13px; color: rgba(255,255,255,0.72); }
.footer-link:hover { color: #fff; }

/* ============ Responsive ============ */

@media (max-width: 960px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-right { order: -1; }
  .hero-float-card { display: none; }
  .hero-title { font-size: 46px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-card { grid-template-columns: 1fr; }
  .steps-board { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .steps-line { display: none; }
  .form-card { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .header { padding: 20px 24px; gap: 20px; }
  .nav { display: none; }
  .hero { padding-bottom: 90px; }
  .hero-content { padding: 32px 24px 0; gap: 36px; }
  .hero-title { font-size: 36px; }
  .hero-desc { font-size: 15.5px; }
  .hero-stats { gap: 22px; }
  .features { padding: 0 24px; margin-top: -34px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-section, .modules-section, .support-section, .form-section { padding-left: 24px; padding-right: 24px; }
  .steps-board { grid-template-columns: repeat(2, 1fr); padding: 30px 20px; }
  .steps-title, .modules-title { font-size: 28px; }
  .modules-card { padding: 30px 22px; }
  .support-card { padding: 32px 22px; }
  .support-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .form-left, .form-right { padding: 32px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field-full { grid-column: span 1; }
  .footer-inner { text-align: center; justify-content: center; }
  .footer-links { margin-left: 0; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 30px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions a { justify-content: center; }
  .hero-card-dashboard { height: 220px; }
  .hero-card-stats { grid-template-columns: 1fr; }
  .steps-board { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .btn-submit { justify-content: center; }
}
