/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #1e293b;
  background: #fff;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Utility ===== */
.section-inner { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.nav-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: #2563eb;
  letter-spacing: -.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}
.nav-links a { color: #475569; transition: color .15s; }
.nav-links a:hover { color: #2563eb; }
.btn-nav {
  background: #2563eb;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background .15s;
}
.btn-nav:hover { background: #1d4ed8; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #3b82f6 100%);
  color: #fff;
  padding: 88px 20px 80px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -.5px;
}
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: #bfdbfe;
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: #fff;
  color: #2563eb;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.btn-ghost-hero {
  background: rgba(255,255,255,.15);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  border: 1.5px solid rgba(255,255,255,.4);
  transition: background .15s;
}
.btn-ghost-hero:hover { background: rgba(255,255,255,.25); }

/* ===== Section shared ===== */
section { padding: 72px 0; }
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -.3px;
}
.section-sub {
  font-size: 17px;
  color: #64748b;
  max-width: 560px;
  margin-bottom: 48px;
}

/* ===== Features ===== */
.features { background: #f8fafc; }
.features .section-inner { text-align: center; }
.features .section-sub { margin: 0 auto 48px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 26px 24px;
  text-align: left;
  transition: box-shadow .15s, transform .15s;
}
.feature-card:hover { box-shadow: 0 8px 24px rgba(37,99,235,.1); transform: translateY(-3px); }
.feature-icon {
  font-size: 32px;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}
.feature-more-inline {
  margin-left: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #60a5fa;
  white-space: nowrap;
}
.feature-more-inline:hover {
  color: #3b82f6;
  text-decoration: underline;
}

/* ===== How it works ===== */
.how { background: #fff; }
.how .section-inner { text-align: center; }
.how .section-sub { margin: 0 auto 48px; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.step { position: relative; }
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: #64748b; }

/* ===== Pricing ===== */
.pricing { background: #f8fafc; }
.pricing .section-inner { text-align: center; }
.pricing .section-sub { margin: 0 auto 48px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}
.pricing-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 30px 26px;
  text-align: left;
  position: relative;
}
.pricing-card.featured {
  border-color: #2563eb;
  box-shadow: 0 8px 32px rgba(37,99,235,.18);
}
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 99px;
  white-space: nowrap;
}
.pricing-name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 38px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.pricing-price span { font-size: 16px; font-weight: 500; color: #64748b; }
.pricing-desc { font-size: 14px; color: #64748b; margin-bottom: 22px; }
.pricing-features { list-style: none; margin-bottom: 26px; }
.pricing-features li {
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  gap: 8px;
}
.pricing-features li::before { content: "âœ“"; color: #16a34a; font-weight: 700; flex-shrink: 0; }
.pricing-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid #2563eb;
  background: transparent;
  color: #2563eb;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-align: center;
}
.pricing-btn:hover, .pricing-card.featured .pricing-btn {
  background: #2563eb;
  color: #fff;
}

/* ===== Contact ===== */
.contact-section { background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h2 { font-size: 30px; font-weight: 800; margin-bottom: 14px; }
.contact-info p { font-size: 16px; color: #64748b; margin-bottom: 24px; }
.contact-detail { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 15px; }
.contact-detail strong { min-width: 60px; color: #475569; }
.contact-form-wrap {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px;
}
.cf-row { margin-bottom: 14px; }
.cf-row label { display: block; font-size: 14px; margin-bottom: 6px; font-weight: 500; }
.cf-row input, .cf-row textarea, .cf-row select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  transition: border-color .15s;
}
.cf-row input:focus, .cf-row textarea:focus { outline: none; border-color: #2563eb; }
.cf-row textarea { resize: vertical; min-height: 90px; }
.cf-submit {
  width: 100%;
  padding: 13px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.cf-submit:hover { background: #1d4ed8; }
.cf-submit:disabled { opacity: .6; cursor: not-allowed; }
.cf-msg { margin-top: 10px; font-size: 14px; min-height: 20px; }
.cf-msg.ok { color: #0f766e; }
.cf-msg.bad { color: #b91c1c; }

/* ===== Footer ===== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 20px;
  font-size: 14px;
}
.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { font-size: 20px; font-weight: 800; color: #fff; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #94a3b8; transition: color .15s; }
.footer-links a:hover { color: #fff; }

/* ===== Admin ===== */
.admin-body { background: #f3f5f9; min-height: 100vh; }
.admin-top {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-top-title { font-size: 18px; font-weight: 700; color: #1e293b; }
.admin-top-right { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #64748b; }
.admin-main { max-width: 1200px; margin: 0 auto; padding: 20px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; }
.stat-card h4 { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.stat-card p { font-size: 28px; font-weight: 800; }
.admin-toolbar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.admin-toolbar select, .admin-toolbar input {
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}
.admin-table-wrap { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
  padding: 10px 12px;
  background: #f8fafc;
  text-align: left;
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid #e5e7eb;
}
.admin-table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f8fafc; }
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.badge.new            { background: #dbeafe; color: #1d4ed8; }
.badge.contacted      { background: #fef3c7; color: #92400e; }
.badge.demo_scheduled { background: #ede9fe; color: #5b21b6; }
.badge.converted      { background: #dcfce7; color: #166534; }
.badge.rejected       { background: #fee2e2; color: #991b1b; }
.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: background .1s;
}
.btn-sm:hover { background: #f1f5f9; }
.btn-sm.primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.btn-sm.primary:hover { background: #1d4ed8; }

/* Lead detail drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.35); z-index: 200;
  display: none;
}
.drawer-backdrop.open { display: block; }
.drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: min(440px, 100%);
  background: #fff; z-index: 201; overflow-y: auto; padding: 24px;
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
  transform: translateX(100%);
  transition: transform .25s ease;
}
.drawer.open { transform: translateX(0); }
.drawer-title { font-size: 18px; font-weight: 700; margin-bottom: 18px; }
.drawer-row { margin-bottom: 12px; font-size: 14px; }
.drawer-row label { display: block; font-size: 12px; color: #64748b; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.drawer-row select, .drawer-row textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fff;
}
.drawer-row textarea { min-height: 80px; resize: vertical; }

/* Admin login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: #f3f5f9; padding: 20px; }
.login-card {
  width: 100%; max-width: 400px; background: #fff;
  border: 1px solid #e5e7eb; border-radius: 14px; padding: 32px;
}
.login-card h1 { font-size: 24px; margin-bottom: 6px; }
.login-card p { font-size: 14px; color: #64748b; margin-bottom: 24px; }
.login-field { margin-bottom: 14px; }
.login-field label { display: block; font-size: 14px; margin-bottom: 6px; font-weight: 500; }
.login-field input {
  width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1;
  border-radius: 8px; font-size: 15px;
}
.login-btn {
  width: 100%; padding: 12px; background: #2563eb; color: #fff;
  border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.login-btn:hover { background: #1d4ed8; }
.login-msg { margin-top: 10px; font-size: 14px; min-height: 20px; }
.login-msg.bad { color: #b91c1c; }

/* Feature detail page */
.feature-page {
  padding: 54px 0 72px;
  background: #f8fafc;
  min-height: calc(100vh - 60px);
}
.feature-page .section-inner {
  max-width: 900px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
}
.feature-back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 14px;
  color: #475569;
}
.feature-back:hover { color: #2563eb; }
.feature-page h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  margin: 0 0 14px;
}
.feature-layout {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 24px;
  align-items: start;
}
.feature-intro-strong {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 10px;
  border-left: 4px solid #2563eb;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 800;
}
.feature-body p {
  font-size: 16px;
  color: #475569;
  margin: 0 0 12px;
}
.feature-cta-row {
  margin-top: 24px;
}
.feature-media {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
  min-height: 320px;
}
.feature-media img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
}
.feature-media-placeholder {
  min-height: 320px;
  background: linear-gradient(140deg, #dbeafe 0%, #bfdbfe 45%, #f0f9ff 100%);
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
}
.feature-media-placeholder span {
  color: #1e3a8a;
  font-weight: 700;
  font-size: 15px;
  max-width: 240px;
}
@media (max-width: 900px) {
  .feature-layout {
    grid-template-columns: 1fr;
  }
  .feature-media {
    min-height: 220px;
  }
  .feature-media-placeholder {
    min-height: 220px;
  }
}
