/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a2e;
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== Utilities ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; border-radius: 8px; transition: all 0.2s;
  cursor: pointer; border: none; font-family: inherit;
}
.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,99,235,0.3); }
.btn-outline {
  background: transparent; color: #2563eb;
  border: 2px solid #2563eb;
}
.btn-outline:hover { background: #2563eb; color: #fff; }
.btn-white {
  background: #fff; color: #2563eb;
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,255,255,0.3); }
.btn-disabled {
  opacity: 0.5; cursor: not-allowed; pointer-events: none;
}

.gradient-text {
  background: linear-gradient(135deg, #2563eb, #7c3aed, #db2777);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.section-header p { font-size: 18px; color: #64748b; max-width: 560px; margin: 0 auto; }

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { font-weight: 700; font-size: 20px; color: #1a1a2e; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; font-weight: 500; color: #475569; transition: color 0.2s; }
.nav-links a:hover { color: #2563eb; }
.mobile-menu {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-menu span {
  width: 22px; height: 2px; background: #1a1a2e; border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  padding: 140px 0 80px; text-align: center;
  background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
}
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 50px;
  background: #eff6ff; color: #2563eb; font-size: 13px; font-weight: 600;
  margin-bottom: 24px; border: 1px solid #bfdbfe;
}
.hero h1 {
  font-size: 56px; font-weight: 800; line-height: 1.1;
  max-width: 720px; margin: 0 auto 20px;
}
.hero-sub {
  font-size: 19px; color: #64748b; max-width: 600px;
  margin: 0 auto 36px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 64px; }
.hero-stats {
  display: flex; justify-content: center; align-items: center; gap: 40px;
  padding: 32px 48px; background: #fff; border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06); display: inline-flex;
}
.stat { text-align: center; }
.stat-value { display: block; font-size: 32px; font-weight: 800; color: #2563eb; }
.stat-label { font-size: 13px; color: #94a3b8; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-divider { width: 1px; height: 40px; background: #e2e8f0; }

/* ===== Hero Institutions ===== */
.hero-institutions {
  margin-top: 48px; text-align: center;
}
.hero-institutions-label {
  display: block; font-size: 13px; font-weight: 600; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.hero-institutions-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.institution-tag {
  padding: 8px 18px; border-radius: 50px; font-size: 14px; font-weight: 500;
  background: #fff; color: #475569; border: 1px solid #e2e8f0;
  transition: all 0.2s;
}
.institution-tag:hover {
  border-color: #2563eb; color: #2563eb; background: #eff6ff;
}

/* ===== Trust Strip ===== */
.trust-strip {
  padding: 24px 0;
  background: #f0f4ff;
  border-bottom: 1px solid #e2e8f0;
}
.trust-items {
  display: flex; justify-content: center; align-items: center;
  gap: 40px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: #475569; white-space: nowrap;
}
.trust-item strong { color: #1a1a2e; }
.trust-icon { font-size: 18px; }

/* ===== Features ===== */
.features { padding: 100px 0; }
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (min-width: 1025px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
}
.feature-card {
  padding: 32px 24px; border-radius: 16px;
  border: 1px solid #f1f5f9; background: #fff;
  transition: all 0.25s;
}
.feature-card:hover {
  border-color: #dbeafe; box-shadow: 0 8px 32px rgba(37,99,235,0.08);
  transform: translateY(-4px);
}
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: #64748b; line-height: 1.6; }

/* ===== How It Works ===== */
.how-it-works {
  padding: 100px 0;
  background: #fff;
}
.steps-grid {
  display: flex; align-items: flex-start; justify-content: center; gap: 0;
}
.step-card {
  flex: 1; max-width: 320px; text-align: center; padding: 32px 28px;
}
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; font-size: 24px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: #64748b; line-height: 1.7; }
.step-connector {
  width: 60px; height: 2px; background: #e2e8f0;
  flex-shrink: 0; margin-top: 60px;
}

/* ===== Products ===== */
.products { padding: 100px 0; background: #f8faff; }
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.product-card {
  padding: 40px; border-radius: 20px; background: #fff;
  border: 1px solid #e2e8f0; position: relative;
}
.product-badge {
  display: inline-block; padding: 4px 14px; border-radius: 50px;
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 20px;
}
.product-badge.live { background: #dcfce7; color: #16a34a; }
.product-badge.coming-soon { background: #fef3c7; color: #d97706; }
.product-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.product-card p { font-size: 15px; color: #64748b; line-height: 1.7; margin-bottom: 24px; }
.product-features { margin-bottom: 28px; }
.product-features li {
  padding: 6px 0 6px 24px; font-size: 14px; color: #475569;
  position: relative;
}
.product-features li::before {
  content: "\2713"; position: absolute; left: 0; color: #2563eb; font-weight: 700;
}
.product-main { border-color: #bfdbfe; }

/* ===== Products 3-col / 4-col ===== */
.products-grid-3 { grid-template-columns: repeat(3, 1fr); }
.products-grid-4 { grid-template-columns: repeat(4, 1fr); }
.product-highlight { border-color: #7c3aed; }
.product-highlight .product-badge.live { background: #f3e8ff; color: #7c3aed; }

/* ===== Integrations ===== */
.integrations { padding: 100px 0; background: #f8faff; }
.integrations-categories {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 800px; margin: 0 auto;
}
.integration-category {
  padding: 32px 28px; border-radius: 16px;
  background: #fff; border: 1px solid #e2e8f0;
  text-align: center; transition: all 0.25s;
}
.integration-category:hover {
  border-color: #dbeafe; box-shadow: 0 8px 32px rgba(37,99,235,0.08);
  transform: translateY(-4px);
}
.integration-category-icon { font-size: 32px; margin-bottom: 12px; }
.integration-category h4 {
  font-size: 15px; font-weight: 700; color: #1a1a2e;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}
.integration-list {
  display: flex; flex-direction: column; gap: 8px;
}
.integration-list li {
  font-size: 14px; color: #475569; font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid #f8faff;
}
.integration-list li:last-child { border-bottom: none; }

/* ===== Developers / API ===== */
.developers { padding: 100px 0; background: #0f172a; color: #fff; }
.developers .section-header h2 { color: #fff; }
.developers .section-header p { color: #94a3b8; }
.api-showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.api-live-badge {
  display: inline-block; padding: 4px 14px; border-radius: 50px;
  background: rgba(34, 197, 94, 0.15); color: #4ade80; font-size: 12px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 16px; border: 1px solid rgba(34, 197, 94, 0.3);
}
.api-info h3 { font-size: 28px; font-weight: 800; margin-bottom: 16px; color: #fff; }
.api-info p { font-size: 16px; color: #94a3b8; line-height: 1.7; margin-bottom: 28px; }
.api-features { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.api-features li { display: flex; flex-direction: column; gap: 4px; }
.api-features li strong { font-size: 15px; font-weight: 600; color: #e2e8f0; }
.api-features li span { font-size: 14px; color: #64748b; line-height: 1.5; }
.api-actions { display: flex; gap: 12px; }
.api-code {
  background: #1e293b; border-radius: 16px; overflow: hidden;
  border: 1px solid #334155;
}
.code-header {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; background: #0f172a; border-bottom: 1px solid #334155;
}
.code-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #eab308; }
.code-dot.green { background: #22c55e; }
.code-title { margin-left: 8px; font-size: 13px; color: #64748b; font-weight: 500; }
.code-block {
  padding: 24px; font-size: 13px; line-height: 1.8;
  color: #e2e8f0; font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  overflow-x: auto; margin: 0;
}
.code-block .code-comment { color: #64748b; }

/* ===== Security ===== */
.security { padding: 100px 0; background: #0f172a; color: #fff; }
.security .section-header h2 { color: #fff; }
.security .section-header p { color: #94a3b8; }
.security-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.security-card {
  padding: 32px 28px; border-radius: 16px;
  background: #1e293b; border: 1px solid #334155;
  transition: all 0.25s;
}
.security-card:hover {
  border-color: #475569; transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.security-icon { font-size: 28px; margin-bottom: 14px; }
.security-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #f1f5f9; }
.security-card p { font-size: 14px; color: #94a3b8; line-height: 1.6; }

/* ===== Compliance ===== */
.compliance { padding: 100px 0; }
.compliance-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.compliance-item {
  padding: 20px 24px; border-radius: 12px; background: #f8faff;
  border: 1px solid #e2e8f0;
}
.compliance-item strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.compliance-item span { font-size: 13px; color: #64748b; }

/* ===== CTA ===== */
.cta {
  padding: 80px 0; text-align: center;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
}
.cta h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.cta p { font-size: 18px; opacity: 0.85; margin-bottom: 32px; }

/* ===== Footer ===== */
.footer { padding: 64px 0 0; background: #0f172a; color: #94a3b8; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; padding-bottom: 48px; }
.footer-brand { max-width: 280px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { margin-top: 12px; font-size: 14px; line-height: 1.6; }
.footer-company { font-size: 13px; }
.footer-company a { color: #cbd5e1; font-weight: 600; transition: color 0.2s; }
.footer-company a:hover { color: #fff; }
.footer-links { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: #94a3b8; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-coming-soon { font-size: 14px; color: #64748b; display: flex; align-items: center; gap: 8px; }
.coming-soon-tag {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  background: #fef3c7; color: #d97706; padding: 2px 8px;
  border-radius: 50px; letter-spacing: 0.5px;
}
.footer-bottom {
  padding: 24px 0; border-top: 1px solid #1e293b;
  font-size: 13px; text-align: center;
}

/* ===== Lead Capture Modal ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff; border-radius: 20px; padding: 40px;
  max-width: 520px; width: 100%; position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; font-size: 28px;
  color: #94a3b8; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: #1a1a2e; }
.modal h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.modal-sub { font-size: 15px; color: #64748b; margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: #374151; margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  border: 1.5px solid #e2e8f0; font-size: 15px;
  font-family: inherit; color: #1a1a2e;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #94a3b8; }
.form-optional { color: #94a3b8; font-weight: 400; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; margin-top: 8px; }

/* Lead-form status messages */
.form-success,
.form-error {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.form-success {
  background: #e8faf0;
  border: 1px solid #25d366;
  color: #166534;
}
.form-success a {
  color: #0f7a3a;
  font-weight: 600;
  text-decoration: underline;
}
.form-success a:hover,
.form-success a:focus { text-decoration: none; }
.form-error {
  background: #fdecec;
  border: 1px solid #d44;
  color: #8a1d1d;
}
.form-error a { color: #8a1d1d; font-weight: 600; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .compliance-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid-3, .products-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .api-showcase { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { flex-wrap: wrap; gap: 16px; }
  .step-connector { display: none; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .hero-stats { flex-direction: column; gap: 20px; padding: 24px 32px; }
  .stat-divider { width: 40px; height: 1px; }
  .section-header h2 { font-size: 28px; }
  .products-grid, .products-grid-3, .products-grid-4 { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .compliance-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: 1fr; }
  .integrations-categories { grid-template-columns: 1fr; }
  .trust-items { gap: 16px; justify-content: flex-start; }
  .trust-item { white-space: normal; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 24px;
    border-bottom: 1px solid #e2e8f0; gap: 16px;
  }
  .nav-links.open { display: flex; }
  .mobile-menu { display: flex; }
  .hero-actions { flex-direction: column; align-items: center; }
  .modal { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .compliance-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 60px; }
}
