/* Matchline marketing header v3 — Rippling / Stripe / Ashby inspired */

:root {
  --mkt-header-h: 68px;
  --mkt-font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mkt-display: "Plus Jakarta Sans", var(--mkt-font);
  --mkt-ink: #0b1220;
  --mkt-ink-soft: #3d4a5f;
  --mkt-ink-muted: #6b7a90;
  --mkt-surface: #ffffff;
  --mkt-line: rgba(12, 18, 34, 0.08);
  --mkt-line-strong: rgba(12, 18, 34, 0.12);
  --mkt-accent: #0f766e;
  --mkt-accent-soft: rgba(15, 118, 110, 0.1);
  --mkt-accent-glow: rgba(15, 118, 110, 0.16);
  --mkt-warm: #0d9488;
}

.mkt-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  font-family: var(--mkt-font);
}
.mkt-header-bar {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.mkt-header.is-scrolled .mkt-header-bar,
.mkt-header.dropdown-open .mkt-header-bar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--mkt-line);
  box-shadow: 0 1px 0 rgba(12, 18, 34, 0.04), 0 12px 40px rgba(12, 18, 34, 0.06);
}
.mkt-header-inner {
  height: var(--mkt-header-h);
  display: flex;
  align-items: center;
  gap: 36px;
}

.mkt-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--mkt-ink);
  flex-shrink: 0;
}
.mkt-brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.mkt-brand-glyph {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #0c1222 0%, #1e293b 55%, #334155 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 1px 2px rgba(12, 18, 34, 0.12), 0 6px 18px rgba(12, 18, 34, 0.14);
}
.mkt-brand-glyph-core {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: linear-gradient(135deg, #818cf8 0%, #38bdf8 100%);
}
.mkt-brand-text {
  font-family: var(--mkt-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.mkt-header-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 0;
}
.mkt-header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.mkt-nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mkt-nav-item { position: static; }
.mkt-nav-trigger { position: relative; }

.mkt-nav-trigger,
.mkt-nav-link {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--mkt-ink-soft);
  text-decoration: none;
  padding: 9px 13px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  line-height: 1.2;
  border-radius: 9px;
  transition: color 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.mkt-nav-trigger:hover,
.mkt-nav-link:hover,
.mkt-nav-item.is-open .mkt-nav-trigger {
  color: var(--mkt-ink);
  background: rgba(12, 18, 34, 0.04);
}
.mkt-nav-chevron {
  opacity: 0.45;
  transition: transform 0.22s ease, opacity 0.22s;
}
.mkt-nav-item.is-open .mkt-nav-chevron {
  transform: rotate(180deg);
  opacity: 0.8;
}

.mkt-header-scrim {
  position: fixed;
  inset: var(--mkt-header-h) 0 0 0;
  background: rgba(12, 18, 34, 0.32);
  z-index: 1;
}
.mkt-header-scrim[hidden] { display: none !important; }

/* Mega menus — own layer ABOVE scrim, BELOW header bar */
.mkt-mega-layer {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--mkt-header-h);
  z-index: 2;
  pointer-events: none;
}
.mkt-mega-layer[hidden] { display: none !important; }
.mkt-mega-layer:not([hidden]) { pointer-events: auto; }

.mkt-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}
.mkt-mega[hidden] { display: none !important; }

.mkt-mega-panel {
  background: #ffffff;
  border-top: 1px solid var(--mkt-line);
  box-shadow: 0 28px 80px rgba(12, 18, 34, 0.14);
  animation: mkt-mega-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes mkt-mega-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mkt-mega-inner {
  display: grid;
  grid-template-columns: minmax(260px, 300px) 1fr;
  gap: 48px;
  padding: 36px 32px 44px;
  align-items: start;
}

.mkt-mega-aside {
  padding-right: 12px;
  border-right: 1px solid var(--mkt-line);
}
.mkt-mega-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mkt-accent);
  margin-bottom: 10px;
}
.mkt-mega-headline {
  font-family: var(--mkt-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--mkt-ink);
  margin-bottom: 12px;
}
.mkt-mega-lead {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mkt-ink-muted);
  margin-bottom: 22px;
}
.mkt-mega-hub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mkt-ink);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--mkt-line-strong);
  background: linear-gradient(180deg, #fafbfc 0%, #f4f6f9 100%);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.mkt-mega-hub:hover {
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 4px 16px var(--mkt-accent-glow);
  transform: translateY(-1px);
}

.mkt-mega-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.mkt-mega-grid--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}

.mkt-mega-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.mkt-mega-card:hover {
  background: #f8fafc;
  border-color: var(--mkt-line);
  box-shadow: 0 2px 12px rgba(12, 18, 34, 0.04);
}
.mkt-mega-card:hover .mkt-mega-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

.mkt-mega-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #f1f5f9;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.mkt-mega-icon::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 3px;
  background: #94a3b8;
}
.mkt-mega-icon--people-operations { background: linear-gradient(145deg, #eef2ff, #e0e7ff); }
.mkt-mega-icon--people-operations::after { background: #0f766e; }
.mkt-mega-icon--recruiting { background: linear-gradient(145deg, #ecfeff, #cffafe); }
.mkt-mega-icon--recruiting::after { background: #0891b2; }
.mkt-mega-icon--career-os { background: linear-gradient(145deg, #fff7ed, #ffedd5); }
.mkt-mega-icon--career-os::after { background: #ea580c; }
.mkt-mega-icon--automation { background: linear-gradient(145deg, #f5f3ff, #ede9fe); }
.mkt-mega-icon--automation::after { background: #7c3aed; }
.mkt-mega-icon--analytics { background: linear-gradient(145deg, #f0fdf4, #dcfce7); }
.mkt-mega-icon--analytics::after { background: #16a34a; }
.mkt-mega-icon--global-operations { background: linear-gradient(145deg, #fef2f2, #fee2e2); }
.mkt-mega-icon--global-operations::after { background: #dc2626; }
.mkt-mega-icon--integrations { background: linear-gradient(145deg, #f8fafc, #f1f5f9); }
.mkt-mega-icon--integrations::after { background: #475569; }
.mkt-mega-icon--hr { background: linear-gradient(145deg, #eef2ff, #e0e7ff); }
.mkt-mega-icon--hr::after { background: #0f766e; }
.mkt-mega-icon--recruiters { background: linear-gradient(145deg, #ecfeff, #cffafe); }
.mkt-mega-icon--recruiters::after { background: #0891b2; }
.mkt-mega-icon--managers { background: linear-gradient(145deg, #fff7ed, #ffedd5); }
.mkt-mega-icon--managers::after { background: #ea580c; }
.mkt-mega-icon--executives { background: linear-gradient(145deg, #f0fdf4, #dcfce7); }
.mkt-mega-icon--executives::after { background: #16a34a; }
.mkt-mega-icon--employees { background: linear-gradient(145deg, #f5f3ff, #ede9fe); }
.mkt-mega-icon--employees::after { background: #7c3aed; }
.mkt-mega-icon--opportunities { background: linear-gradient(145deg, #ecfeff, #cffafe); }
.mkt-mega-icon--opportunities::after { background: #0891b2; }
.mkt-mega-icon--applications { background: linear-gradient(145deg, #eef2ff, #e0e7ff); }
.mkt-mega-icon--applications::after { background: #0f766e; }
.mkt-mega-icon--privacy-trust { background: linear-gradient(145deg, #f0fdf4, #dcfce7); }
.mkt-mega-icon--privacy-trust::after { background: #16a34a; }

.mkt-mega-card-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mkt-mega-card-copy strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--mkt-ink);
  letter-spacing: -0.015em;
}
.mkt-mega-card-copy span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--mkt-ink-muted);
}
.mkt-mega-arrow {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0;
  color: var(--mkt-accent);
  transition: opacity 0.15s, transform 0.15s;
}

.mkt-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.mkt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.mkt-btn-ghost {
  color: var(--mkt-ink-soft);
  background: transparent;
}
.mkt-btn-ghost:hover {
  color: var(--mkt-ink);
  background: rgba(12, 18, 34, 0.04);
}
.mkt-btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #121a2e 0%, #0c1222 100%);
  border-color: #0c1222;
  box-shadow: 0 1px 2px rgba(12, 18, 34, 0.2), 0 6px 20px rgba(12, 18, 34, 0.18);
}
.mkt-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(12, 18, 34, 0.22), 0 10px 28px rgba(12, 18, 34, 0.22);
}
.mkt-header-user {
  font-size: 13px;
  color: var(--mkt-ink-muted);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mkt-header-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--mkt-line-strong);
  border-radius: 10px;
  background: var(--mkt-surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
}
.mkt-header-toggle-line {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--mkt-ink);
  border-radius: 1px;
  transition: transform 0.2s ease;
}
body.mkt-nav-open .mkt-header-toggle-line:first-child {
  transform: translateY(4px) rotate(45deg);
}
body.mkt-nav-open .mkt-header-toggle-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mkt-main { padding-top: var(--mkt-header-h); min-height: 60vh; }

@media (max-width: 1023px) {
  .mkt-header-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--mkt-header-h);
    padding: 12px 0;
  }
  .mkt-header-toggle { display: flex; }
  .mkt-header-nav { justify-content: flex-start; }
  .mkt-header-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 0 10px;
    border-top: 1px solid var(--mkt-line);
  }
  body.mkt-nav-open .mkt-header-panel,
  body.mlx-nav-open .mkt-header-panel { display: flex; }
  .mkt-nav-list { flex-direction: column; align-items: stretch; width: 100%; }
  .mkt-nav-item { position: relative; }
  .mkt-nav-trigger,
  .mkt-nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 10px;
    font-size: 16px;
  }
  .mkt-mega-layer {
    position: static;
    pointer-events: auto;
  }
  .mkt-mega {
    position: static;
  }
  .mkt-mega-panel {
    box-shadow: none;
    border: none;
    animation: none;
  }
  .mkt-mega-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 8px 0 12px;
  }
  .mkt-mega-aside {
    border-right: none;
    padding-right: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--mkt-line);
  }
  .mkt-mega-headline { font-size: 18px; }
  .mkt-mega-grid--wide { grid-template-columns: 1fr; }
  .mkt-header-scrim { display: none !important; }
  .mkt-header-actions {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--mkt-line);
  }
  .mkt-btn { width: 100%; padding: 14px; }
}
