:root {
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --indigo: #4f46e5;
  --indigo-subtle: rgba(79, 70, 229, 0.08);
  --amber: #d97706;
  --blue: #0284c7;
  --green: #059669;
  --purple: #7c3aed;
  --red: #dc2626;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 75px;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* HEADER & NAVBAR */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 2000;
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }

.brand-unit { display: flex; align-items: center; gap: 12px; }
.brand-icon-box {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--indigo), #3730a3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
}
.brand-icon-box svg { width: 24px; height: 24px; stroke: #ffffff; }
.brand-details { display: flex; flex-direction: column; }
.brand-title { font-size: 20px; font-weight: 900; letter-spacing: 0.5px; color: var(--text); }
.brand-title span { color: var(--indigo); }
.brand-subtitle { font-size: 11px; color: var(--text-muted); font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }

.main-nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.main-nav-links a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.main-nav-links a svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.2; }
.main-nav-links a:hover { color: var(--indigo); background: var(--indigo-subtle); }
.main-nav-links a.active {
  color: var(--indigo);
  background: var(--indigo-subtle);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.header-action-group { display: flex; align-items: center; gap: 10px; }
.header-btn {
  font-weight: 800;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.header-btn-email {
  background: #ffffff;
  border: 1.5px solid var(--indigo);
  color: var(--indigo);
}
.header-btn-email:hover {
  background: var(--indigo);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}
.header-btn-menu {
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  color: var(--text);
}
.header-btn-menu:hover { background: #e2e8f0; }

/* SLIDE-OUT MEGA DRAWER */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: none;
}
.drawer-backdrop.active { display: block; }

.mega-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid var(--border);
  z-index: 3500;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: -15px 0 35px rgba(0,0,0,0.12);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.mega-drawer.open { right: 0; }

.drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.drawer-top h3 { font-size: 17px; font-weight: 900; color: var(--text); }
.drawer-top h3 span { color: var(--indigo); }
.drawer-close {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
}

.drawer-links-list { display: flex; flex-direction: column; gap: 6px; list-style: none; }
.drawer-links-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}
.drawer-links-list a svg { width: 18px; height: 18px; stroke: var(--indigo); stroke-width: 2.2; }
.drawer-links-list a:hover, .drawer-links-list a.active {
  background: var(--indigo-subtle);
  color: var(--indigo);
}
.drawer-bottom-card {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* HERO SECTION */
.hero-wrapper { padding: 56px 0 36px 0; text-align: center; }
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--indigo-subtle);
  color: var(--indigo);
  border: 1px solid rgba(79, 70, 229, 0.25);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 30px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-headline { font-size: clamp(28px, 4.5vw, 44px); font-weight: 900; line-height: 1.2; margin-bottom: 14px; color: var(--text); }
.hero-headline span {
  background: linear-gradient(135deg, var(--indigo), #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subline { font-size: 16px; color: var(--text-muted); max-width: 820px; margin: 0 auto 32px auto; }

/* ANIMATED MOVING SLIDER */
.slider-outer-box {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 16px;
  margin: 20px 0 44px 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: #ffffff;
}
.slider-track {
  display: flex;
  gap: 18px;
  padding: 16px;
  animation: smoothMarquee 26s linear infinite;
  width: calc(300px * 8);
}
.slider-track:hover { animation-play-state: paused; }

.slide-card {
  width: 280px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease;
}
.slide-card:hover { transform: translateY(-4px); }
.slide-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.slide-info { padding: 12px 14px; text-align: left; }
.slide-info h4 { font-size: 14px; font-weight: 800; color: var(--text); }
.slide-info p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

@keyframes smoothMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-298px * 4)); }
}

/* GATEWAY CARDS */
.gateway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 48px;
  text-align: left;
}
.gateway-card {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gateway-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gate-client { border-top: 5px solid var(--blue); }
.gate-candidate { border-top: 5px solid var(--green); }
.gate-partner { border-top: 5px solid var(--purple); }

.gateway-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.gateway-title { font-size: 18px; font-weight: 900; color: var(--text); }
.gateway-desc { font-size: 13.5px; color: var(--text-muted); margin-bottom: 22px; line-height: 1.5; }

.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}
.btn-card-blue { background: var(--blue); color: #fff; }
.btn-card-green { background: var(--green); color: #fff; }
.btn-card-purple { background: var(--purple); color: #fff; }

/* METRICS STRIP */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  margin-bottom: 50px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-item { border-right: 1px solid var(--border); padding: 0 10px; }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 28px; font-weight: 900; color: var(--indigo); }
.stat-label { font-size: 11.5px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; margin-top: 2px; }

/* FORMS */
.form-card-wrapper {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 34px 28px;
  margin-bottom: 50px;
  box-shadow: var(--shadow-md);
}
.form-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left; }
.col-full { grid-column: 1 / -1; }
.form-group-item { display: flex; flex-direction: column; gap: 6px; }
.form-group-item label { font-size: 13px; font-weight: 700; color: #334155; }
.form-group-item input, .form-group-item select, .form-group-item textarea {
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}
.form-group-item input:focus, .form-group-item select:focus, .form-group-item textarea:focus {
  border-color: var(--indigo);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.webmail-composer-card {
  background: #ffffff;
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 880px;
  margin: 0 auto 50px auto;
}
.webmail-top-strip {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.webmail-top-strip h3 { font-size: 15px; font-weight: 800; color: #1e293b; display: flex; align-items: center; gap: 8px; }
.pulse-green-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); display: inline-block; }
.webmail-inner-padding { padding: 28px 24px; }
.webmail-to-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 13.5px;
}
.webmail-to-label { width: 80px; font-weight: 800; color: var(--text-muted); }
.webmail-to-val { font-weight: 700; color: var(--indigo); }

.feedback-alert {
  display: none;
  grid-column: 1 / -1;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.alert-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-fail { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* 4-COLUMN FOOTER */
.site-footer-4col {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 50px 0 24px 0;
  margin-top: 50px;
  box-shadow: var(--shadow-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 40px;
  text-align: left;
}
.footer-col h4 { font-size: 15px; font-weight: 900; color: var(--text); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.footer-links-list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.footer-links-list a { color: var(--text-muted); font-weight: 600; transition: color 0.2s; }
.footer-links-list a:hover { color: var(--indigo); }
.footer-bottom-bar {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* MOBILE DOCK */
.mobile-sticky-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  z-index: 1500;
  gap: 8px;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
}
.dock-btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.dock-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.2; }

@media (max-width: 880px) {
  .main-nav-links { display: none; }
  .gateway-grid, .form-grid-2col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat-item { border-right: none; }
  .mobile-sticky-dock { display: flex; }
  .footer-bottom-bar { text-align: center; flex-direction: column; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}