/* Mudrium — custom styles layered on top of Tailwind.
   Keeps Tailwind utility-first for layout; adds polish for typography,
   reusable component classes, scroll-reveal animations, and form atoms. */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset for fixed nav */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  text-rendering: optimizeLegibility;
}

/* ─── Nav scroll polish ──────────────────────────────────────────── */
#site-header {
  backdrop-filter: blur(0);
  background-color: rgba(255, 255, 255, 0);
}
#site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
}

/* ─── Scroll-reveal ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Industry card ─────────────────────────────────────────────── */
.industry-card {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.industry-card::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(30, 156, 156, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.industry-card:hover {
  transform: translateY(-4px);
  border-color: #1E9C9C;
  box-shadow: 0 14px 40px -16px rgba(15, 43, 77, 0.20);
}
.industry-card:hover::after { opacity: 1; }

.industry-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.industry-card h3 {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Lexend', ui-sans-serif, system-ui, sans-serif;
  color: #0F2B4D;
}
.industry-card p {
  margin-top: 8px;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  flex-grow: 1;
}

/* ─── Industry status badge (top-right pill) ───────────────────── */
.industry-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  font-family: 'Lexend', ui-sans-serif, system-ui, sans-serif;
  z-index: 1;
}
.industry-badge--live {
  background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.industry-badge--live .badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: pulse-dot 2s ease-out infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.industry-badge--soon {
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  color: #92400E;
  border: 1px solid #FDE68A;
}
.industry-badge .badge-icon { stroke: currentColor; }

/* ─── "Coming Soon" card — subtle shimmer + softer surface ─────── */
.industry-card[data-status="soon"] {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}
.industry-card[data-status="soon"]::before {
  /* Diagonal sweep that runs on hover — sense of anticipation. */
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(30, 156, 156, 0.06), transparent);
  transition: left 0.9s ease;
  pointer-events: none;
}
.industry-card[data-status="soon"]:hover::before { left: 150%; }
.industry-card[data-status="soon"] .industry-icon {
  filter: saturate(0.85);
}

/* ─── Card CTA (bottom link) ───────────────────────────────────── */
.industry-cta {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0F2B4D;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: gap 0.18s ease, color 0.15s ease;
  width: fit-content;
}
.industry-cta svg { transition: transform 0.18s ease; }
.industry-cta:hover {
  color: #1E9C9C;
  gap: 9px;
}
.industry-cta:hover svg { transform: translateX(2px); }
.industry-cta--soon { color: #92400E; }
.industry-cta--soon:hover { color: #C2410C; }

/* ─── Solution card ─────────────────────────────────────────────── */
.solution-card {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.solution-card:hover {
  transform: translateY(-3px);
  border-color: #C7D2FE;
  box-shadow: 0 12px 32px -16px rgba(15, 43, 77, 0.18);
}
.solution-num {
  font-family: 'Lexend', ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #1E9C9C;
}
.solution-card h3 {
  margin-top: 6px;
  font-size: 16.5px;
  font-weight: 700;
  font-family: 'Lexend', ui-sans-serif, system-ui, sans-serif;
  color: #0F2B4D;
}
.solution-card p {
  margin-top: 8px;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
}

/* ─── Why Mudrium card ──────────────────────────────────────────── */
.why-card {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -16px rgba(15, 43, 77, 0.20);
}
.why-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0F2B4D, #1E4880);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.why-card h3 {
  margin-top: 18px;
  font-size: 19px;
  font-weight: 700;
  font-family: 'Lexend', ui-sans-serif, system-ui, sans-serif;
  color: #0F2B4D;
}
.why-card p {
  margin-top: 8px;
  font-size: 14.5px;
  color: #475569;
  line-height: 1.65;
}

/* ─── Step card ─────────────────────────────────────────────────── */
.step-card {
  position: relative;
  padding: 28px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #F8FAFC 0%, #ffffff 100%);
  border: 1px solid #E2E8F0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -16px rgba(15, 43, 77, 0.18);
}
.step-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1E9C9C, #0F6B6B);
  color: white;
  font-family: 'Lexend', ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px -8px rgba(30, 156, 156, 0.5);
}
.step-card h3 {
  margin-top: 18px;
  font-size: 19px;
  font-weight: 700;
  font-family: 'Lexend', ui-sans-serif, system-ui, sans-serif;
  color: #0F2B4D;
}
.step-card p {
  margin-top: 8px;
  font-size: 14.5px;
  color: #475569;
  line-height: 1.65;
}

/* ─── Testimonials ──────────────────────────────────────────────── */
.testimonial-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 28px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -18px rgba(15, 43, 77, 0.22);
}
.testimonial-quote {
  color: #1E9C9C;
  opacity: 0.25;
}
.testimonial-card blockquote {
  margin-top: 14px;
  font-size: 15.5px;
  font-weight: 500;
  color: #1E293B;
  line-height: 1.7;
}
.testimonial-card figcaption {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── FAQ ───────────────────────────────────────────────────────── */
.faq-item {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover {
  border-color: #C7D2FE;
}
.faq-item[open] {
  border-color: #1E9C9C;
  box-shadow: 0 8px 24px -12px rgba(30, 156, 156, 0.25);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-size: 15.5px;
  font-weight: 600;
  color: #0F2B4D;
  font-family: 'Lexend', ui-sans-serif, system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: #1E9C9C;
  font-weight: 600;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 20px 20px;
  font-size: 14.5px;
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

/* ─── Form atoms ────────────────────────────────────────────────── */
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: #0F172A;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input:focus {
  border-color: #1E9C9C;
  box-shadow: 0 0 0 4px rgba(30, 156, 156, 0.12);
}
.form-input::placeholder { color: #94A3B8; }
.form-error {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #DC2626;
  display: none;
}
.form-error.show { display: block; }

/* ─── Terms-of-use checkbox ─────────────────────────────────────── */
.terms-checkbox {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  margin-top: 4px;
}
.terms-checkbox:hover {
  border-color: #1E9C9C;
  background: #F0FDFA;
}
.terms-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.terms-checkbox__box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid #94A3B8;
  border-radius: 5px;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.15s ease;
  margin-top: 1px;
}
.terms-checkbox input[type="checkbox"]:checked + .terms-checkbox__box {
  background: #1E9C9C;
  border-color: #1E9C9C;
  color: #FFFFFF;
}
.terms-checkbox input[type="checkbox"]:focus-visible + .terms-checkbox__box {
  box-shadow: 0 0 0 4px rgba(30, 156, 156, 0.18);
}
.terms-checkbox__text {
  font-size: 12.5px;
  line-height: 1.55;
  color: #334155;
}
.terms-checkbox__text a {
  color: #1E9C9C;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.terms-checkbox__text a:hover { color: #0F6B6B; }

/* ─── Module tabs (CSR / HRM / …) ──────────────────────────────────
   Each tab is a free-standing pill (own background + own border).
   Sufficient gap between them so they read as distinct modules,
   not as adjacent halves of a single segmented control. */
.module-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  min-width: 180px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: 'Lexend', ui-sans-serif, system-ui, sans-serif;
  color: #475569;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease,
              box-shadow 0.15s ease, border-color 0.15s ease,
              transform 0.15s ease;
}
.module-tab:hover {
  color: #0F2B4D;
  border-color: #C7D2FE;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -8px rgba(15, 43, 77, 0.18);
}
.module-tab--active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #0F2B4D 0%, #1E4880 100%);
  border-color: #0F2B4D;
  box-shadow: 0 8px 20px -10px rgba(15, 43, 77, 0.45);
}
.module-tab--active:hover { color: #FFFFFF; border-color: #0F2B4D; }
.module-tab__label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  flex: 1;
}
.module-tab__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  position: relative;
}
.module-tab__dot--live {
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: module-pulse 2s ease-out infinite;
}
@keyframes module-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70%  { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.module-tab__dot--soon { background: #FBBF24; }
.module-tab__chip {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.2;
}
.module-tab__chip--live {
  color: #065F46;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
}
.module-tab__chip--soon {
  color: #92400E;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
}

/* ─── Footer atoms ──────────────────────────────────────────────── */
.footer-heading {
  font-family: 'Lexend', ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 14px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: #CBD5E1;
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: #1E9C9C; }

.social-link {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.social-link:hover {
  background: #1E9C9C;
  color: #ffffff;
}

/* ─── Reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ─── Print ─────────────────────────────────────────────────────── */
@media print {
  #site-header, #contact, footer { display: none; }
  .reveal { opacity: 1; transform: none; }
}


/* ============================================================
   HERO v3 — calm, light, layered (premium SaaS pacing)
   Soft pastel mesh + drifting orbs + breathing dashboard mockup.
   All animations 6–60s; nothing aggressive. GPU-only and reduced-
   motion-safe.
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, #FBFCFE 0%, #F4F7FB 60%, #ECF1F7 100%);
  padding: 6.5rem 0 6rem;
  color: #0F172A;
  overflow: hidden;
  min-height: 700px;
}
@media (min-width: 768px) { .hero { padding: 8.5rem 0 7rem; } }

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 4.5rem;
    padding: 0 2rem;
  }
}

/* L1 — pastel mesh gradient (slow, peaceful drift) */
.hero-mesh {
  position: absolute;
  inset: -10%;
  z-index: 0;
  background:
    radial-gradient(at 12% 22%, #FFE4D6 0%, transparent 45%),
    radial-gradient(at 88% 18%, #D1FAE5 0%, transparent 48%),
    radial-gradient(at 50% 92%, #DBEAFE 0%, transparent 50%),
    radial-gradient(at 78% 60%, #FEF3C7 0%, transparent 42%);
  filter: blur(50px);
  opacity: 0.75;
  animation: hero-mesh-drift 48s ease-in-out infinite alternate;
}
@keyframes hero-mesh-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1.04); }
  50%  { transform: translate3d(-2%, 1.5%, 0) scale(1.08); }
  100% { transform: translate3d(2%, -1.5%, 0) scale(1.06); }
}

/* L2 — drifting pastel orbs (slow, calm) */
.hero-orbs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  will-change: transform;
}
.hero-orb--peach {
  width: 420px; height: 420px;
  top: -80px; left: -80px;
  background: radial-gradient(circle, #FFD9C2 0%, transparent 65%);
  opacity: 0.55;
  animation: hero-orb-drift-a 42s ease-in-out infinite;
}
.hero-orb--mint {
  width: 380px; height: 380px;
  top: 12%; right: -100px;
  background: radial-gradient(circle, #BBF7D0 0%, transparent 65%);
  opacity: 0.45;
  animation: hero-orb-drift-b 55s ease-in-out infinite;
}
.hero-orb--sky {
  width: 520px; height: 520px;
  bottom: -180px; left: 28%;
  background: radial-gradient(circle, #BFDBFE 0%, transparent 65%);
  opacity: 0.5;
  animation: hero-orb-drift-c 60s ease-in-out infinite;
}
.hero-orb--cream {
  width: 320px; height: 320px;
  top: 55%; left: -60px;
  background: radial-gradient(circle, #FEF3C7 0%, transparent 65%);
  opacity: 0.4;
  animation: hero-orb-drift-a 50s ease-in-out 4s infinite;
}
@keyframes hero-orb-drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(80px, 50px, 0) scale(1.15); }
}
@keyframes hero-orb-drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-90px, 70px, 0) scale(1.2); }
}
@keyframes hero-orb-drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(60px, -60px, 0) scale(1.1); }
}

/* L3 — warm mouse spotlight */
.hero-spotlight {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 30%),
    rgba(255, 220, 170, 0.18),
    transparent 70%
  );
  transition: background 200ms ease;
  mix-blend-mode: multiply;
}

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(15, 43, 77, 0.08);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1E3A5F;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px -8px rgba(15,23,42,0.12);
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  animation: hero-fade-up 0.7s 0.05s ease-out forwards;
}
.hero-badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: hero-pulse-dot 2.4s ease-out infinite;
}
@keyframes hero-pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Headline */
.hero-headline {
  margin-top: 1.5rem;
  font-family: 'Lexend', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #0B1B3A;
}
.hero-headline__line {
  display: block;
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  animation: hero-fade-up 0.95s cubic-bezier(.18,.74,.32,1) forwards;
}
.hero-headline__line:nth-of-type(1) { animation-delay: 0.2s; }
.hero-headline__line:nth-of-type(2) { animation-delay: 0.42s; }
.hero-headline__line--gold {
  background: linear-gradient(120deg, #D4A017 0%, #C68E10 30%, #F5C95B 60%, #D4A017 100%);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: hero-fade-up 0.95s 0.42s cubic-bezier(.18,.74,.32,1) forwards, hero-gold-shimmer 8s ease-in-out 1.5s infinite;
}
@keyframes hero-fade-up {
  0%   { opacity: 0; transform: translate3d(0, 24px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes hero-gold-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Industry rotator */
.hero-rotator {
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  color: #334155;
  display: flex; align-items: baseline; gap: 0.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: hero-fade-up 0.7s 0.65s ease-out forwards;
}
.hero-rotator__static { font-weight: 500; }
.hero-rotator__slot {
  position: relative;
  display: inline-flex;
  height: 1.5em;
  overflow: hidden;
  vertical-align: bottom;
  min-width: 9em;
}
.hero-rotator__word {
  position: absolute; inset: 0;
  display: inline-block;
  font-weight: 700;
  color: #0F766E;
  opacity: 0;
  transform: translate3d(0, 100%, 0);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.18,.74,.32,1);
}
.hero-rotator__word.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.hero-rotator__word.is-leaving {
  opacity: 0;
  transform: translate3d(0, -100%, 0);
}

/* Subhead */
.hero-subhead {
  margin-top: 1.4rem;
  max-width: 36em;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #475569;
  opacity: 0;
  animation: hero-fade-up 0.7s 0.8s ease-out forwards;
}

/* CTAs */
.hero-cta {
  margin-top: 2rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  opacity: 0;
  animation: hero-fade-up 0.7s 0.95s ease-out forwards;
}
.hero-cta__primary,
.hero-cta__secondary {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border-radius: 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.hero-cta__primary {
  background: #0B1B3A;
  color: #fff;
  box-shadow: 0 12px 32px -10px rgba(11, 27, 58, 0.45), inset 0 1px 0 rgba(255,255,255,0.08);
}
.hero-cta__primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-150%) skewX(-20deg);
  animation: hero-cta-shine 5s 1.5s ease-in-out infinite;
  pointer-events: none;
}
.hero-cta__primary:hover {
  transform: translateY(-2px);
  background: #102449;
  box-shadow: 0 16px 38px -10px rgba(11, 27, 58, 0.55);
}
.hero-cta__secondary {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #0B1B3A;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-cta__secondary:hover {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.2);
  transform: translateY(-2px);
}
@keyframes hero-cta-shine {
  0%, 100% { transform: translateX(-150%) skewX(-20deg); }
  55%      { transform: translateX(180%)  skewX(-20deg); }
}

/* === Layered dashboard mockup === */
.hero-mock {
  position: relative;
  width: 100%;
  display: none;
  opacity: 0;
  animation: hero-fade-up 0.9s 0.55s cubic-bezier(.18,.74,.32,1) forwards;
}
@media (min-width: 1024px) { .hero-mock { display: block; } }

.hero-mock__halo {
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse at center, rgba(212, 160, 23, 0.18), transparent 60%);
  filter: blur(50px);
  z-index: 0;
  animation: hero-halo-pulse 6s ease-in-out infinite alternate;
}
@keyframes hero-halo-pulse {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.06); }
}

.hero-mock__card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1.5rem;
  box-shadow:
    0 30px 60px -20px rgba(15, 23, 42, 0.18),
    0 12px 24px -8px rgba(15, 23, 42, 0.08),
    0 2px 4px -1px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  animation: hero-mock-breathe 7s ease-in-out infinite;
  transform-origin: center 60%;
}
@keyframes hero-mock-breathe {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -8px, 0); }
}
.hero-mock__chrome {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, #FAFBFD 0%, #F5F7FA 100%);
}
.hero-mock__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.hero-mock__dot--r { background: #FBA5A5; }
.hero-mock__dot--y { background: #FCD34D; }
.hero-mock__dot--g { background: #86EFAC; }
.hero-mock__title {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748B;
}
.hero-mock__body {
  padding: 1.4rem;
}
.hero-mock__stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.hero-mock__stat {
  padding: 0.8rem 0.9rem;
  border-radius: 0.85rem;
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, 0.05);
}
.hero-mock__stat--gold  { background: linear-gradient(160deg, #FEF3C7 0%, #FDEFB9 100%); border-color: rgba(212, 160, 23, 0.15); }
.hero-mock__stat--teal  { background: linear-gradient(160deg, #CCFBF1 0%, #BCF3E5 100%); border-color: rgba(15, 118, 110, 0.14); }
.hero-mock__stat--green { background: linear-gradient(160deg, #D1FAE5 0%, #BBF7D0 100%); border-color: rgba(5, 150, 105, 0.14); }
.hero-mock__stat-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748B;
  margin: 0;
}
.hero-mock__stat-value {
  margin-top: 0.3rem;
  font-family: 'Lexend', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: #0B1B3A;
}
.hero-mock__stat--gold  .hero-mock__stat-value { color: #92400E; }
.hero-mock__stat--teal  .hero-mock__stat-value { color: #0F766E; }
.hero-mock__stat--green .hero-mock__stat-value { color: #047857; }

.hero-mock__chart {
  margin-top: 1.1rem;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 0.85rem;
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, 0.05);
}
.hero-mock__chart-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 0.65rem;
}
.hero-mock__chart-title {
  font-size: 12px; font-weight: 700; color: #0B1B3A; margin: 0;
}
.hero-mock__chart-sub {
  font-size: 10.5px; color: #94A3B8;
}
.hero-mock__bars { display: grid; gap: 0.5rem; }
.hero-mock__bar {
  display: grid;
  grid-template-columns: 60px 1fr 36px;
  align-items: center;
  gap: 0.6rem;
  font-size: 11.5px;
}
.hero-mock__bar-label { color: #475569; }
.hero-mock__bar-pct   { color: #0B1B3A; font-weight: 700; text-align: right; }
.hero-mock__bar-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.hero-mock__bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #1E3A8A 0%, #0F766E 100%);
  border-radius: 999px;
  animation: hero-bar-grow 1.6s cubic-bezier(.18,.74,.32,1) forwards;
}
.hero-mock__bar:nth-child(1) .hero-mock__bar-fill { animation-delay: 1.4s; }
.hero-mock__bar:nth-child(2) .hero-mock__bar-fill { animation-delay: 1.55s; }
.hero-mock__bar:nth-child(3) .hero-mock__bar-fill { animation-delay: 1.7s; }
.hero-mock__bar:nth-child(4) .hero-mock__bar-fill { animation-delay: 1.85s; }
@keyframes hero-bar-grow {
  to { width: var(--w); }
}

/* Floating notification (top-left) */
.hero-mock__notif {
  position: absolute;
  top: -22px; left: -28px;
  z-index: 3;
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0.95rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.18);
  animation: hero-notif-float 6s ease-in-out 0.4s infinite, hero-fade-in 0.7s 1.1s ease-out both;
}
.hero-mock__notif-icon {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.45);
}
.hero-mock__notif-title {
  margin: 0; font-size: 12.5px; font-weight: 700; color: #0B1B3A;
}
.hero-mock__notif-sub {
  margin: 1px 0 0; font-size: 11px; color: #64748B; font-variant-numeric: tabular-nums;
}
@keyframes hero-notif-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -10px, 0); }
}
@keyframes hero-fade-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* Floating mobile card (bottom-right) */
.hero-mock__phone {
  position: absolute;
  bottom: -34px; right: -24px;
  z-index: 3;
  width: 200px;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 1.1rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 20px 50px -16px rgba(15, 23, 42, 0.2);
  animation: hero-phone-float 7s ease-in-out 0.8s infinite, hero-fade-in 0.7s 1.25s ease-out both;
}
.hero-mock__phone-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748B;
  margin: 0;
}
.hero-mock__phone-num {
  margin: 0.35rem 0 0;
  font-family: 'Lexend', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  color: #0B1B3A;
  font-variant-numeric: tabular-nums;
}
.hero-mock__phone-num small { font-size: 0.85rem; color: #94A3B8; font-weight: 600; }
.hero-mock__phone-bar {
  margin-top: 0.55rem;
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.hero-mock__phone-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #0F766E 0%, #10B981 100%);
  border-radius: 999px;
  animation: hero-bar-grow 1.6s 1.6s cubic-bezier(.18,.74,.32,1) forwards;
}
.hero-mock__phone-foot {
  margin-top: 0.6rem;
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 11px; color: #64748B;
}
.hero-mock__phone-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #10B981;
  animation: hero-pulse-dot 2s ease-out infinite;
}
@keyframes hero-phone-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1.5deg); }
  50%      { transform: translate3d(0, 10px, 0) rotate(-1deg); }
}

/* Live ticker (under both columns, full-width) */
.hero-ticker {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 0.6rem 0.95rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12.5px;
  color: #334155;
  display: flex; align-items: center; gap: 0.55rem;
  box-shadow: 0 6px 18px -8px rgba(15,23,42,0.18);
  opacity: 0;
  animation: hero-fade-up 0.7s 1.8s ease-out forwards;
}
.hero-ticker__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10B981;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: hero-pulse-dot 2.4s ease-out infinite;
}
.hero-ticker__text {
  font-weight: 500;
  transition: opacity 0.4s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* Reduced motion — kill the lot */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh, .hero-orb,
  .hero-badge, .hero-badge__dot,
  .hero-cta__primary::after,
  .hero-headline__line, .hero-headline__line--gold,
  .hero-rotator, .hero-subhead, .hero-cta,
  .hero-mock, .hero-mock__card, .hero-mock__halo,
  .hero-mock__notif, .hero-mock__phone,
  .hero-mock__bar-fill, .hero-mock__phone-bar-fill,
  .hero-mock__phone-dot,
  .hero-ticker, .hero-ticker__dot {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-mock__bar-fill, .hero-mock__phone-bar-fill { width: var(--w) !important; }
}
