/* =================================================================
   JOB2ROAM — INSTITUTIONAL REDESIGN
   Sharp-cornered, navy + orange, editorial/Swiss-grid.
   No purple, no glass-blur atmosphere, no rounded everything.
   All class/ID hooks preserved for existing JS.
   ================================================================= */

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* ---- Single canonical token set ---- */
:root {
  --ink: #0f1d3d;          /* primary text / structure */
  --ink-soft: #33405e;     /* secondary text */
  --brand: #1a2c5b;        /* navy — structural color */
  --brand-deep: #122142;   /* navy pressed */
  --accent: #f27024;       /* orange — the ONE accent */
  --accent-deep: #d85f17;  /* orange pressed */
  --accent-tint: rgba(242, 112, 36, 0.08);
  --surface: #ffffff;
  --surface-alt: #f6f7f9;  /* flat warm-gray, no gradient wash */
  --border: #d9dde5;       /* slightly stronger so edges read */
  --border-strong: #1a2c5b;
  --muted: #6b7896;
  --ok: #16a34a;

  /* legacy aliases some markup/JS may still reference */
  --brandDeep: var(--brand-deep);
  --brandLight: var(--accent-tint);
  --inkSoft: var(--ink-soft);
  --selectedPill: var(--accent);
  --selectedPillBg: var(--accent-tint);

  --radius: 0px;           /* everything square */
}

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* Display face: editorial, condensed weight via tight tracking.
   Space Grotesk kept ONLY where Passion One isn't loaded; headings
   lean on weight + negative tracking rather than a novelty face. */
h1, h2, h3, h4 {
  font-family: "Space Grotesk", Inter, system-ui, -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* Flat institutional background — kill the radial purple/sky wash */
.soft-bg {
  background: var(--surface);
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(15, 29, 61, 0.025) 0 1px,
      transparent 1px 88px
    );
}

#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 70;
  background: var(--accent);
  transition: width 120ms linear;
}

/* =================================================================
   HEADER — flat white, hard 1px rule, no shadow float
   ================================================================= */
.saas-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
}
.saas-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.saas-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.saas-brand img {
  height: 84px;
  width: auto;
}
.saas-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.saas-nav-item { position: relative; }
.saas-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 0;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.saas-nav-link:hover,
.saas-nav-item:hover > .saas-nav-link {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.saas-nav-link.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.saas-nav-chevron {
  transition: transform 0.2s ease;
  color: var(--muted);
}
.saas-nav-item:hover .saas-nav-chevron {
  transform: rotate(180deg);
  color: var(--ink-soft);
}

/* Dropdown — square card, hard border, flat shadow */
.saas-dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 300px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: 8px 8px 0 rgba(15, 29, 61, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.saas-nav-item:hover .saas-dropdown,
.saas-nav-item:focus-within .saas-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.saas-dropdown::before {
  content: "";
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 10px;
}
.saas-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 0;
  text-decoration: none;
  color: var(--ink);
  border-left: 2px solid transparent;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.saas-dropdown-item:hover {
  background: var(--surface-alt);
  border-left-color: var(--accent);
}
.saas-dropdown-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.saas-dropdown-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.saas-dropdown-desc {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}

.saas-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.saas-signin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  border-radius: 0;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}
.saas-signin:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.saas-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  cursor: pointer;
  border-radius: 0;
  text-decoration: none;
  transition: background 0.15s ease;
}
.saas-cta:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.saas-cta svg { transition: transform 0.2s ease; }
.saas-cta:hover svg { transform: translateX(2px); }

#loginTooltip {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  padding: 4px 8px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  border-radius: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.saas-signin:hover #loginTooltip { opacity: 1; }

.saas-mobile-login,
.saas-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}
.saas-menu-btn {
  background: var(--surface);
  color: var(--ink);
}
.saas-mobile-login:hover { background: var(--accent); border-color: var(--accent); }
.saas-menu-btn:hover { background: var(--surface-alt); }

@media (max-width: 900px) {
  .saas-nav, .saas-signin { display: none; }
  .saas-mobile-login, .saas-menu-btn { display: inline-flex; }
  .saas-header-inner { padding: 8px 18px; }
  .saas-brand img { height: 64px; }
}

/* =================================================================
   COUNTRIES — neutral, no glow
   ================================================================= */
.countries-glow { display: none; }

/* =================================================================
   FEATURED JOBS — flat cards, hard borders, accent top-rule
   ================================================================= */
.featured-jobs-section {
  position: relative;
  padding: 80px 0 90px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.featured-jobs-section::before,
.featured-jobs-section::after { content: none; }

.featured-jobs-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.featured-jobs-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 18px;
}
.featured-jobs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.featured-jobs-eyebrow .live-dot {
  width: 8px; height: 8px;
  border-radius: 0;
  background: var(--accent);
  position: relative;
}
.featured-jobs-eyebrow .live-dot::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 0;
  background: var(--accent);
  opacity: 0.35;
  animation: livePulse 1.8s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.6); opacity: 0; }
}
.featured-jobs-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink);
  margin: 0;
}
.featured-jobs-sub {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.55;
}
.featured-jobs-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.featured-jobs-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.featured-jobs-cta svg { transition: transform 0.2s ease; }
.featured-jobs-cta:hover svg { transform: translateX(3px); }

.featured-jobs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-right: 0;
  border-bottom: 0;
}
@media (max-width: 1100px) { .featured-jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .featured-jobs-grid { grid-template-columns: 1fr; } }

/* Cards share gridlines instead of floating with gaps */
.fj-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 24px 22px 20px;
  transition: background 0.15s ease;
  overflow: hidden;
  min-height: 288px;
}
.fj-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.fj-card:hover { background: var(--surface-alt); }
.fj-card:hover::before { transform: scaleX(1); }

.fj-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.fj-new-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 0;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
}
.fj-time {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}
.fj-title {
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fj-employer {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.fj-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.fj-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}
.fj-meta-row svg { color: var(--muted); flex-shrink: 0; }
.fj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.fj-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 0;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}
.fj-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.fj-apply {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 0;
  text-decoration: none;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 0.15s ease;
}
.fj-apply:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.fj-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 0;
  background: var(--surface);
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.fj-view:hover { background: var(--ink); color: #fff; }

/* Loading skeleton */
.fj-skeleton {
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 24px;
  min-height: 288px;
}
.fj-skeleton-bar {
  background: linear-gradient(90deg, #eef1f5 0%, #f6f8fb 50%, #eef1f5 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 0;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.fj-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-size: 14px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

/* =================================================================
   LOADING OVERLAY — flat, square spinner frame
   ================================================================= */
#loadingOverlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
#loadingOverlay.show { opacity: 1; pointer-events: auto; }
.spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 0;            /* square spinner reads as deliberate */
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: "Space Grotesk", system-ui, sans-serif;
}
.loading-subtext { font-size: 14px; color: var(--muted); text-align: center; }

/* =================================================================
   AUTH MODAL — institutional, fully squared
   ================================================================= */
.auth-card {
  width: 92%;
  max-width: 440px;
  background: #fff;
  border-radius: 0;
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 rgba(15, 29, 61, 0.1);
  overflow: hidden;
}
.auth-head {
  padding: 26px 28px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.auth-head::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 56px; height: 3px;
  background: var(--accent);
}
.auth-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.auth-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
}
.auth-subtitle {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}
.auth-subtitle.is-error { color: #b91c1c; }
.auth-controls { display: flex; align-items: center; gap: 8px; }
.auth-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 0;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms ease;
}
.auth-lang-toggle:hover { border-color: var(--ink); }
.auth-lang-label { opacity: 0.45; transition: opacity 160ms ease; }
.auth-lang-label.is-active { opacity: 1; color: var(--accent); }
.auth-lang-sep { opacity: 0.3; }
.auth-close {
  height: 38px; width: 38px;
  border-radius: 0;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
  color: var(--ink-soft);
}
.auth-close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Tabs — hard segmented control */
.auth-tabs { padding: 20px 28px 0; }
.auth-tabbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
}
.auth-tab {
  padding: 11px 12px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 160ms ease;
  font-family: inherit;
}
.auth-tab:first-child { border-right: 1px solid var(--ink); }
.auth-tab:hover { color: var(--ink); }
.auth-tab.is-active { color: #fff; background: var(--ink); }

/* Form */
.auth-body { padding: 22px 28px 28px; }
.auth-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.auth-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 0;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.auth-input::placeholder { color: #aab2c4; }
.auth-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-tint);
}
.auth-field { margin-bottom: 14px; }

.auth-submit {
  width: 100%;
  padding: 13px 16px;
  border-radius: 0;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 180ms ease, transform 120ms ease;
  font-family: inherit;
  margin-top: 4px;
}
.auth-submit:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.auth-submit:active { transform: translateY(1px); }
.auth-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.auth-legal {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 14px;
  text-align: center;
}
.auth-legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.auth-forgot { margin-top: 12px; text-align: center; }
.auth-link {
  color: var(--ink-soft);
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.auth-link:hover { color: var(--accent); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-trust-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-top: 14px;
}
.auth-trust-row span { display: inline-flex; align-items: center; gap: 5px; }
.auth-trust-row svg { color: var(--accent); }

/* =================================================================
   REVEAL ANIMATIONS
   ================================================================= */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
h1.reveal {
  color: var(--ink);
  font-family: "Passion One", cursive;
  font-size: 4rem;
  letter-spacing: 0.05em;
}
p.reveal { font-size: 1rem; letter-spacing: 0.08em; color: var(--ink); }
p.subtext {
  font-family: "Passion One";
  font-size: 8.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  -webkit-text-stroke: 2px var(--accent);
  color: transparent;
  margin: 3rem auto 5rem;
}
.reveal-left { transform: translateX(-20px); }
.reveal-right { transform: translateX(20px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1;
  transform: none;
}

.hairline { height: 1px; background: var(--ink); }

/* =================================================================
   INTAKE FORM FIELDS — squared, orange focus
   ================================================================= */
.field {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 14px;
}
.field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-tint);
}
.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-tint);
}
.pill { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 0; }
.pill.active { background: #fff; border-color: var(--ink); box-shadow: none; }

/* =================================================================
   LEGACY GLASS / ORB CLASSES — neutralized (kept so markup
   referencing them doesn't break, but stripped of purple/blur)
   ================================================================= */
.glass-blue,
.hj-wrap,
.hj-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hj-card:hover { transform: none; background: var(--surface-alt); box-shadow: none; }
.hj-line { height: 1px; background: var(--border); }
.hj-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.65rem;
  border-radius: 0;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.hj-dot { width: 8px; height: 8px; border-radius: 0; background: var(--accent); }
.orb { display: none !important; }
.hj-btn { box-shadow: none; }
.hj-btn:hover { transform: translateY(-1px); }

.gridlines {
  background:
    repeating-linear-gradient(90deg, rgba(15,29,61,0.05) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(0deg, rgba(15,29,61,0.04) 0 1px, transparent 1px 26px);
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  .hj-card, .hj-btn, .fj-card { transition: none !important; }
}

/* =================================================================
   STATS SECTION — flat, square cards
   ================================================================= */
.stats-section {
  position: relative;
  width: 100%;
  min-height: 0;
  height: auto;
  background: var(--surface-alt);
  overflow-x: hidden;
  overflow-y: clip;
}
.stats-section__cards { position: relative; width: 100%; height: 550px; }
.stat-card {
  position: absolute;
  width: 220px;
  padding: 32px 20px;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 0;
  text-align: center;
  box-shadow: 8px 8px 0 rgba(15,29,61,0.08);
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}
.stat-card-orange {
  background: var(--accent) !important;
  border-color: var(--accent-deep);
  color: #fff;
  box-shadow: 8px 8px 0 rgba(216,95,23,0.25);
}
.stat-card-orange .counter,
.stat-card-orange .stat-label { color: #fff; }
.counter { font-size: 3rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.03em; }
.stat-label { font-size: 0.95rem; color: var(--ink-soft); }
.floating-card-1 { top: 80px; left: 10%; animation-delay: 0s; }
.floating-card-2 { top: 280px; left: 8%; animation-delay: 1s; }
.floating-card-3 { top: 120px; right: 10%; animation-delay: 2s; }
.floating-card-4 { bottom: 90px; right: 18%; animation-delay: 3s; }
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-18px); }
  100% { transform: translateY(0px); }
}
.hero-man {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  height: 680px;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}

/* Live stats row */
.live-stats {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
}
.live-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  border-right: 1px solid var(--border);
}
.live-stats__item:last-child { border-right: none; }
.live-stats__number {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(56px, 9vw, 96px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.live-stats__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 640px) {
  .live-stats { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px 24px; }
  .live-stats__item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 32px; }
  .live-stats__item:last-child { border-bottom: none; }
}
@media (max-width: 768px) {
  .stats-section { height: auto; }
  .hero-man { height: 420px; bottom: 0; }
  .stat-card { width: 180px; padding: 24px 15px; }
  .counter { font-size: 2.2rem; }
  .floating-card-1 { top: 40px; left: 5%; }
  .floating-card-2 { top: 240px; left: 5%; }
  .floating-card-3 { top: 120px; right: 5%; }
  .floating-card-4 { bottom: 180px; right: 5%; }
}

/* word transitions (learn page reuse) */
.word-out { animation: wordOut 0.28s ease forwards; }
.word-in { animation: wordIn 0.42s cubic-bezier(0.2, 0.9, 0.2, 1) forwards; }
@keyframes wordOut {
  from { opacity: 1; transform: translateY(0) scale(1); filter: blur(0px); }
  to   { opacity: 0; transform: translateY(-10px) scale(0.98); filter: blur(6px); }
}
@keyframes wordIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0px); }
}

/* Footer alt-mail callout — squared */
.alternativeMail {
  margin-top: 1.5rem;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--surface-alt);
  border-radius: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.alternativeMail p { font-size: 0.7rem; }
.alternativeMail a { color: var(--accent); font-weight: 700; text-decoration: none; }
.alternativeMail a:hover { text-decoration: underline; }