/* ================================================================
   NORTHWIND HR · MegaHR NEXT — Custom Styles
   Companion to Bootstrap 5.3.8
   ================================================================ */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* ── Core palette ── */
  --primary:    #000ba0;
  --primary-dk: #1c64f2;
  --accent:     var(--primary);

  /* ── Semantic colors ── */
  --success: #00733B;
  --error:   #D92D20;
  --warn:    #EFBE12;
  --purple:  #800080;

  /* ── Light surface palette ── */
  --title:    #000330;
  --text:     #4D4F6E;
  --bg:       #F0F4FF;
  --surface:  #ffffff;
  --surface-2: #f7f9ff;
  --border:   #E0E4F0;

  /* ── Shadows ── */
  --card-shadow:    0 1px 0 rgba(255,255,255,.9) inset, 0 6px 28px rgba(0,11,160,.09), 0 1px 4px rgba(0,11,160,.06);
  --card-shadow-lg: 0 1px 0 rgba(255,255,255,.9) inset, 0 20px 60px rgba(0,11,160,.14), 0 2px 8px rgba(0,11,160,.08);

  /* ── Radii ── */
  --radius:    16px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* ── Motion ── */
  --ease:       cubic-bezier(.4, 0, .2, 1);
  --anim-speed: 1;

  /* ── Layout ── */
  --navbar-h: 70px;

  /* ── Alias tokens (hero & legacy) ── */
  --ink:      var(--title);
  --ink-2:    var(--text);
  --ink-3:    #7a7f9a;
  --card:     var(--surface);
  --card-bd:  var(--border);
  --chip-bg:  rgba(0, 11, 160, .06);
  --chip-bd:  rgba(0, 11, 160, .14);
  --track:    rgba(0, 11, 160, .05);
  --track-2:  rgba(0, 11, 160, .10);
  --line:     rgba(0, 11, 160, .18);
  --ticker-bg: var(--surface);
}



/* ── Base ───────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}
section {
  isolation: isolate;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .3s, color .3s;
}

button {
  font-family: inherit;
  cursor: pointer;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ── Shared card chrome ─────────────────────────────────────────── */
.hw-card {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--card-bd);
  box-shadow: var(--card-shadow);
}

/* ── Eyebrow chip ───────────────────────────────────────────────── */
.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-bd);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 24px;
}

.eyebrow-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Typography ─────────────────────────────────────────────────── */
.display-hero {
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 0 22px;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 460px;
  text-wrap: pretty;
  margin: 0 0 32px;
}

/* ── CTA Row ────────────────────────────────────────────────────── */
.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: var(--ink);
  color: var(--bg);
  border: 0;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.005em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity .2s;
}

.btn-hero-primary:hover {
  opacity: .82;
}

.btn-hero-ghost {
  background: transparent;
  color: var(--ink);
  border: 0;
  padding: 14px 6px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.play-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--chip-bg);
  border: 1px solid var(--chip-bd);
  display: grid;
  place-items: center;
  font-size: 9px;
  line-height: 1;
}

/* ── Trust strip ────────────────────────────────────────────────── */
.trust-label {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.trust-logos {
  display: flex;
  gap: 32px;
  align-items: center;
  opacity: .6;
  flex-wrap: wrap;
}

.trust-logo {
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
}

/* ── Avatar ─────────────────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'Inter Tight', Inter, sans-serif;
  font-weight: 600;
  flex-shrink: 0;
}

/* ── Module card shared ─────────────────────────────────────────── */
.mod-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mod-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #fff;
  background: var(--accent);
  padding: 3px 7px;
  border-radius: 3px;
  font-family: 'Inter Tight', Inter, sans-serif;
}

.mod-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}


/* ── Fixed Navbar ───────────────────────────────────────────────── */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background: rgba(246, 245, 241, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-bd);
  display: flex;
  align-items: center;
  padding: 0 48px;
  gap: 40px;
  transition: background .3s;
}

[data-theme="dark"] #main-nav {
  background: rgba(21, 19, 15, .92);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: background .3s;
}

.logo-diamond {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(45deg);
  transition: background .3s;
}

.brand-wordmark {
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  transition: color .3s;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Theme toggle */
.theme-toggle {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--track-2);
  border: 1px solid var(--card-bd);
  position: relative;
  cursor: pointer;
  transition: background .25s;
  flex-shrink: 0;
}

.theme-toggle::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  top: 2px;
  left: 2px;
  transition: transform .25s, background .25s;
}

[data-theme="dark"] .theme-toggle::after {
  transform: translateX(16px);
}

/* Accent picker */
.accent-picker {
  display: flex;
  gap: 6px;
}

.accent-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s, transform .15s;
}

.accent-dot:hover {
  transform: scale(1.2);
}

.accent-dot.active {
  border-color: var(--ink);
}

/* Search */
.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
}

.search-form input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  width: 200px;
  transition: border-color .2s;
}

.search-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-form button {
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-toggle {
  background: none;
  border: none;
  color: var(--ink-2);
  cursor: pointer;
  padding: 8px;
  margin-right: 8px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}

.search-toggle:hover {
  color: var(--ink);
  background: var(--track);
}

/* ── Section dot nav ────────────────────────────────────────────── */
#section-nav {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
  opacity: .35;
  cursor: pointer;
  transition: opacity .2s, transform .2s, background .2s;
}

.nav-dot:hover {
  opacity: .7;
  transform: scale(1.3);
}

.nav-dot.active {
  background: var(--accent);
  opacity: 1;
  transform: scale(1.4);
}

/* ── Hero sections – base layout ────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--navbar-h);
  transition: background .3s;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 0 56px 64px;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 520px;
}

.hero-right {
  position: relative;
  overflow: hidden;
}

/* ── A · Floating Cards ─────────────────────────────────────────── */
#hero-floating {
  grid-template-columns: 1.05fr 1fr;
}

.floating-card-wrapper {
  position: absolute;
}

.floating-card-wrapper .hw-card {
  padding: 16px;
}

/* profile mod card */
.mod-kv-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 10.5px;
}

.mod-kv-row+.mod-kv-row {
  border-top: 1px solid var(--card-bd);
}

.mod-kv-k {
  color: var(--ink-3);
}

.mod-kv-v {
  color: var(--ink);
  font-weight: 500;
}

.mod-alert {
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

/* org mod card */
.mod-org-footer {
  margin-top: 6px;
  font-size: 10px;
  color: var(--ink-3);
}

/* time mod card */
.mod-time-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 10px;
}

.mod-time-cell {
  aspect-ratio: 1;
  border-radius: 4px;
}

.mod-time-footer {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
}

/* workflow mod card */
.wf-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 6px;
  font-size: 11px;
  border: 1px solid transparent;
}

.wf-bullet {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 700;
  flex-shrink: 0;
}

.wf-pending-tag {
  margin-left: auto;
  font-size: 9px;
  font-weight: 600;
  color: var(--accent);
}

/* reports mod card */
.mod-stat-big {
  font-size: 22px;
  font-weight: 600;
  font-family: 'Inter Tight', Inter, sans-serif;
  letter-spacing: -.02em;
  color: var(--ink);
}

.mod-stat-delta {
  font-size: 11px;
  color: #1f8a5b;
  font-weight: 500;
}

.mod-bar-row {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 44px;
  margin-top: 8px;
}

.mod-bar {
  flex: 1;
  border-radius: 3px;
}

.mod-auto-pill {
  margin-top: 8px;
  padding: 5px 8px;
  background: var(--bg);
  border-radius: 5px;
  font-size: 10px;
  color: var(--ink-3);
}

/* ── B · Avatar Grid ────────────────────────────────────────────── */
#hero-avatars {
  grid-template-columns: 1fr 1fr;
}

.avatar-grid-stage {
  position: relative;
  padding: 56px 56px 56px 0;
  height: 100%;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  height: 100%;
  align-content: center;
}

.avatar-tile-wrap {
  position: relative;
  transition: transform .25s cubic-bezier(.2, .7, .3, 1);
}

.avatar-tile {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .25s;
}

.avatar-tile-inner {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -.02em;
}

.avatar-tip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 6px);
  background: var(--card);
  border: 1px solid var(--card-bd);
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-2);
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 10;
}

.cursor-label {
  position: absolute;
  pointer-events: none;
  background: var(--ink);
  color: var(--bg);
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(20, 18, 15, .2);
  z-index: 10;
  opacity: 0;
  transform: translateX(-50%) translateY(-140%);
  transition: opacity .15s;
}

/* ── C · Stacked Product ────────────────────────────────────────── */
#hero-stacked {
  grid-template-columns: 1fr 1.05fr;
}

.stacked-perspective {
  position: relative;
  perspective: 1600px;
  height: 100%;
}

.stacked-stage {
  position: absolute;
  inset: 60px 56px 60px 0;
  transform-style: preserve-3d;
  transition: transform .3s ease;
}

.stacked-card {
  position: absolute;
  width: 440px;
  height: 280px;
  cursor: grab;
  transition: top .5s cubic-bezier(.2, .7, .3, 1),
    left .5s cubic-bezier(.2, .7, .3, 1),
    transform .25s;
}

.stacked-card:active {
  cursor: grabbing;
}

.stacked-card .hw-card {
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
}

.window-bar {
  height: 28px;
  border-bottom: 1px solid var(--card-bd);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}

.window-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--track-2);
}

.window-label {
  margin-left: 10px;
  font-size: 10px;
  color: var(--ink-3);
  font-weight: 500;
}

.screen-body {
  padding: 14px;
  height: calc(100% - 28px);
  overflow: hidden;
}

.scr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  height: 100%;
}

.scr-kpi {
  background: var(--bg);
  border-radius: 10px;
  padding: 10px;
}

.scr-kpi-l {
  font-size: 9px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.scr-kpi-v {
  font-size: 22px;
  font-weight: 600;
  font-family: 'Inter Tight', Inter, sans-serif;
  letter-spacing: -.02em;
  color: var(--ink);
}

.scr-kpi-d {
  font-size: 9px;
  color: var(--accent);
  font-weight: 500;
}

.scr-chart-area {
  grid-column: span 3;
  background: var(--bg);
  border-radius: 10px;
  padding: 10px;
}

.scr-chart-l {
  font-size: 9px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}

/* payroll screen */
.scr-payroll-big {
  font-size: 26px;
  font-weight: 600;
  font-family: 'Inter Tight', Inter, sans-serif;
  letter-spacing: -.02em;
  color: var(--ink);
}

.scr-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.scr-bar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.scr-bar-label {
  flex: 1;
  font-size: 11px;
  color: var(--ink-2);
}

.scr-bar-track {
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: var(--track);
  overflow: hidden;
}

.scr-bar-fill {
  height: 100%;
  background: var(--accent);
}

/* ── D · Org Chart ──────────────────────────────────────────────── */
#hero-org {
  grid-template-columns: 1fr 1.05fr;
}

.org-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.org-edges-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.org-node {
  position: absolute;
  transform: translate(-50%, -50%);
  transition: transform .2s cubic-bezier(.2, .7, .3, 1);
  cursor: pointer;
  z-index: 2;
}

.org-node-card {
  background: var(--card);
  border: 1px solid var(--card-bd);
  border-radius: 10px;
  padding: 6px 10px 6px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(20, 18, 15, .05);
  min-width: 110px;
  white-space: nowrap;
  transition: border-color .2s, box-shadow .2s;
}

.org-node-name {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink);
}

.org-node-role {
  font-size: 9px;
  color: var(--ink-3);
}

.org-edge {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  opacity: .5;
  transition: stroke .25s, opacity .25s, stroke-width .25s;
}

.org-edge.active {
  stroke: var(--accent);
  stroke-width: 1.6;
  opacity: 1;
}

/* ── E · Live Dashboard ─────────────────────────────────────────── */
#hero-dashboard {
  grid-template-columns: 1fr 1.15fr;
}

.dashboard-right {
  padding: 70px 56px 70px 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.dashboard-window {
  width: 100%;
  height: 100%;
  transition: transform .3s ease;
  transform-style: preserve-3d;
}

.browser-bar {
  height: 38px;
  border-bottom: 1px solid var(--card-bd);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}

.bd-r {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b6b;
}

.bd-y {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb84d;
}

.bd-g {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5ed28a;
}

.browser-url {
  margin-left: 14px;
  font-size: 11px;
  color: var(--ink-2);
  font-weight: 500;
}

.browser-live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ed28a;
}

.live-text {
  font-size: 10px;
  color: var(--ink-3);
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 12px;
  padding: 14px;
  height: calc(100% - 38px);
}

.reactive-widget {
  background: var(--bg);
  border-radius: 10px;
  padding: 12px;
  height: 100%;
  transition: transform .2s, box-shadow .2s;
}

.reactive-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1.5px var(--accent), 0 6px 18px rgba(20, 18, 15, .08);
}

.w-label {
  font-size: 9px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
}

.w-val {
  font-size: 26px;
  font-weight: 600;
  font-family: 'Inter Tight', Inter, sans-serif;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-top: 4px;
}

.w-delta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
}

.w-delta .up {
  color: var(--accent);
}

.w-delta .muted {
  color: var(--ink-3);
}

.enps-bar {
  position: relative;
  height: 6px;
  margin-top: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #ff8a8a, var(--track), #5ed28a);
}

.enps-marker {
  position: absolute;
  left: 78%;
  top: -3px;
  width: 2px;
  height: 12px;
  background: var(--ink);
  border-radius: 1px;
}

.payroll-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.payroll-l {
  font-size: 9px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
}

.payroll-v {
  font-size: 22px;
  font-weight: 600;
  font-family: 'Inter Tight', Inter, sans-serif;
  letter-spacing: -.02em;
  color: var(--ink);
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-what {
  flex: 1;
  font-size: 10.5px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-when {
  font-size: 9.5px;
  color: var(--ink-3);
}

/* ── F · News Ticker ────────────────────────────────────────────── */
#hero-ticker {
  grid-template-columns: 1fr 1.05fr;
}

.ticker-right {
  padding: 60px 56px 60px 0;
  display: flex;
  align-items: center;
}

.ticker-widget {
  width: 100%;
  background: var(--ticker-bg);
  border-radius: 14px;
  border: 1px solid var(--card-bd);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(20, 18, 15, .08), 0 1px 3px rgba(20, 18, 15, .04);
  font-family: 'Inter Tight', Inter, sans-serif;
}

.channel-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-bd);
  background: var(--card);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 4px;
  background: #d93636;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  flex-shrink: 0;
}

.live-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: nwPulse calc(1.6s / var(--anim-speed, 1)) infinite;
}

.channel-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .04em;
}

.channel-sub {
  color: var(--ink-3);
  font-weight: 500;
}

.ticker-clock {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.ticker-clock .sec {
  color: var(--ink-3);
}

/* Ticker row layout */
.ticker-row {
  border-bottom: 1px solid var(--card-bd);
  overflow: hidden;
  display: flex;
}

.breaking-strip {
  background: #1a1815;
  color: #fff;
  flex: 1;
  overflow: hidden;
}

.breaking-label {
  background: #d93636;
  color: #fff;
  padding: 0 14px;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  flex-shrink: 0;
}

.metrics-strip {
  background: var(--bg);
  flex: 1;
  overflow: hidden;
}

.metrics-label {
  background: var(--ink);
  color: var(--bg);
  padding: 0 12px;
  display: flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  flex-shrink: 0;
}

.headline-strip {
  flex: 1;
  overflow: hidden;
}

.ticker-scroll {
  display: flex;
  width: max-content;
  white-space: nowrap;
}

.scroll-left {
  animation: nwScrollLeft calc(var(--dur, 40s) / var(--anim-speed, 1)) linear infinite;
}

.scroll-right {
  animation: nwScrollRight calc(var(--dur, 55s) / var(--anim-speed, 1)) linear infinite;
}

.breaking-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 22px;
  font-size: 12px;
  font-weight: 500;
}

.breaking-kind {
  color: #ff8a8a;
  font-weight: 700;
  letter-spacing: .08em;
  font-size: 10px;
}

.breaking-sep {
  color: rgba(255, 255, 255, .3);
}

.metrics-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-right: 1px solid var(--card-bd);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.metrics-lbl {
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
}

.metrics-val {
  color: var(--ink);
  font-weight: 700;
}

.metrics-up {
  color: #1f8a5b;
  font-weight: 600;
  font-size: 11px;
}

.metrics-dn {
  color: #c64a4a;
  font-weight: 600;
  font-size: 11px;
}

.headline-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-right: 1px solid var(--card-bd);
}

.headline-kind {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 3px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}

.headline-text {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

.headline-time {
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.ticker-lower {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card);
  border-top: 1px solid var(--card-bd);
}

.now-badge {
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  flex-shrink: 0;
}

.lower-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lower-sub {
  font-size: 10.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 2px;
}

.on-track {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-2);
  font-weight: 500;
  flex-shrink: 0;
}

.on-track-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ed28a;
}

/* ── G · MegaHR Features ─────────────────────────────────────────── */
#hero-features {
  display: block;
  min-height: auto;
  padding-top: var(--navbar-h);
}

.features-intro {
  padding: 40px 64px 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid var(--card-bd);
}

.features-headline {
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
  max-width: 720px;
}

.features-rows {
  padding: 40px 64px 80px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.feature-row {
  display: grid;
  gap: 48px;
  align-items: center;
}

.feature-row.normal {
  grid-template-columns: 1.1fr 1fr;
}

.feature-row.reverse {
  grid-template-columns: 1fr 1.1fr;
}

.feature-row.reverse .feature-text {
  order: -1;
}

.feature-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-family: 'Inter Tight', Inter, sans-serif;
}

.feature-h3 {
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.1;
  letter-spacing: -.025em;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: balance;
}

.feature-p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 18px;
}

.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-bullet {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink);
}

.bullet-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

/* Feature visual */
.feature-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-bd);
  box-shadow: 0 4px 14px rgba(20, 18, 15, .05), 0 1px 3px rgba(20, 18, 15, .04);
  transition: box-shadow .25s, transform .25s;
  cursor: default;
}

.feature-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(20, 18, 15, .12), 0 1px 3px rgba(20, 18, 15, .04);
}

.feature-visual-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), var(--card));
}

.feature-visual-inner {
  position: absolute;
  inset: 0;
  padding: 18px;
}

.feature-index {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -.04em;
  color: var(--ink);
  opacity: .08;
  pointer-events: none;
}

/* Visual: profile */
.vp-wrap {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  height: 100%;
}

.vp-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.vp-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: 28px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(20, 18, 15, .12);
  transition: transform .25s;
}

.vp-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.vp-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--bg);
  border-radius: 7px;
  font-size: 10px;
}

.vp-row-k {
  color: var(--ink-3);
}

.vp-row-v {
  color: var(--ink);
  font-weight: 500;
}

.vp-alert {
  margin-top: auto;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

/* Visual: org chart (SVG handled inline) */

/* Visual: time */
.vt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.vt-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

.vt-legend {
  display: flex;
  gap: 10px;
  font-size: 9px;
  color: var(--ink-3);
  align-items: center;
}

.vt-leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 3px;
}

.vt-grid {
  display: grid;
  grid-template-columns: 52px repeat(7, 1fr);
  gap: 4px;
  align-items: center;
}

.vt-day-hdr {
  font-size: 9px;
  color: var(--ink-3);
  text-align: center;
  font-weight: 600;
}

.vt-team-lbl {
  font-size: 10px;
  color: var(--ink-2);
}

.vt-cell {
  aspect-ratio: 1;
  border-radius: 4px;
}

.vt-footer {
  margin-top: auto;
  padding: 7px 10px;
  background: var(--bg);
  border-radius: 7px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}

/* Visual: workflow */
.vwf-header {
  font-size: 10px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.vwf-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  margin-bottom: 6px;
}

.vwf-bullet {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}

.vwf-label {
  font-size: 11.5px;
  color: var(--ink);
  font-weight: 500;
}

.vwf-sub {
  font-size: 9.5px;
  color: var(--ink-3);
}

.vwf-time {
  font-size: 9px;
  color: var(--ink-3);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.vwf-pending {
  font-size: 9px;
  color: var(--accent);
  font-weight: 600;
  margin-left: auto;
}

/* Visual: reports */
.vrep-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.vrep-kpi {
  font-size: 26px;
  font-weight: 600;
  font-family: 'Inter Tight', Inter, sans-serif;
  letter-spacing: -.02em;
  color: var(--ink);
}

.vrep-delta {
  font-size: 12px;
  color: #1f8a5b;
  font-weight: 500;
  margin-left: 4px;
}

.vrep-periods {
  display: flex;
  gap: 4px;
}

.vrep-p {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-3);
}

.vrep-p.active {
  background: var(--ink);
  color: var(--bg);
}

.vrep-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 65px;
  margin: 10px 0;
}

.vrep-bar {
  flex: 1;
  border-radius: 4px;
  transition: height .35s cubic-bezier(.2, .7, .3, 1);
}

.vrep-footer {
  padding: 7px 10px;
  background: var(--bg);
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}

.vrep-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ed28a;
}

.vrep-lbl {
  color: var(--ink-3);
}

.vrep-val {
  color: var(--ink);
  font-weight: 600;
  margin-left: auto;
}

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes nwScrollLeft {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

@keyframes nwScrollRight {
  0% {
    transform: translateX(-50%)
  }

  100% {
    transform: translateX(0)
  }
}

@keyframes nwPulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .25
  }
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .hero-section {
    grid-template-columns: 1fr !important;
    min-height: auto;
  }

  .hero-left {
    padding: 40px 24px 40px 24px;
  }

  .hero-right {
    min-height: 55vw;
  }

  #hero-ticker .hero-right,
  #hero-ticker .ticker-right {
    padding: 24px;
  }

  #hero-dashboard .dashboard-right {
    padding: 24px;
  }

  .avatar-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .stacked-card {
    width: 90%;
    height: auto;
    aspect-ratio: 440/280;
  }

  .features-intro {
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .features-rows {
    padding: 32px 24px 64px;
    gap: 56px;
  }

  .feature-row.normal,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-text {
    order: 0;
  }

  #section-nav {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .nav-links {
    display: none;
  }

  .accent-picker {
    display: none;
  }

  .trust-logos {
    flex-wrap: wrap;
    gap: 16px;
  }

  .avatar-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .features-rows {
    gap: 40px;
  }
}

@media (max-width: 575.98px) {
  :root {
    --navbar-h: 56px;
  }

  #main-nav {
    padding: 0 20px;
  }

  .hero-left {
    padding: 28px 20px;
  }

  .avatar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================================================================
   H · MAGNETIC PULL — candidate cards attracted to cursor
   ================================================================ */
#hero-magnetic {
  grid-template-columns: 1fr 1fr;
}

.magnetic-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.magnetic-target {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  box-shadow:
    0 0 0 16px color-mix(in srgb, var(--accent) 14%, transparent),
    0 0 0 32px color-mix(in srgb, var(--accent) 7%, transparent);
  animation: targetPulse calc(2.2s / var(--anim-speed, 1)) ease-in-out infinite;
  z-index: 2;
}

@keyframes targetPulse {

  0%,
  100% {
    box-shadow:
      0 0 0 16px color-mix(in srgb, var(--accent) 14%, transparent),
      0 0 0 32px color-mix(in srgb, var(--accent) 7%, transparent);
  }

  50% {
    box-shadow:
      0 0 0 22px color-mix(in srgb, var(--accent) 10%, transparent),
      0 0 0 42px color-mix(in srgb, var(--accent) 4%, transparent);
  }
}

.magnetic-card {
  position: absolute;
  transform: translate(-50%, -50%);
  transition: transform .32s cubic-bezier(.2, .7, .3, 1);
  z-index: 1;
}

.magnetic-card-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--card-bd);
  border-radius: 999px;
  box-shadow: var(--card-shadow);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, transform .15s;
}

.magnetic-card.selected .magnetic-card-inner {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent),
    var(--card-shadow);
  transform: scale(1.07);
}

/* ================================================================
   I · SVG PATH DRAW — workflow lines draw in on scroll
   ================================================================ */
#hero-pathdraw {
  grid-template-columns: 1fr 1fr;
}

.pathdraw-right {
  padding: 48px 48px 48px 0;
  display: flex;
  align-items: center;
  height: 100%;
}

.workflow-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wf-edge {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
  stroke-linecap: round;
}

.wf-edge.animate {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset .75s ease-in-out, stroke .3s;
}

.wf-edge.animate.active {
  stroke-dashoffset: 0;
  stroke: var(--accent);
}

.wf-edge.side {
  stroke-dasharray: 5 4;
}

.wf-edge.side.animate.active {
  stroke-dasharray: 5 4;
}

.wf-node-g {
  cursor: default;
}

.wf-node-rect {
  fill: var(--card);
  stroke: var(--card-bd);
  stroke-width: 1.5;
  transition: stroke .3s;
}

.wf-node-g.active .wf-node-rect {
  stroke: var(--accent);
}

.wf-node-title {
  font-size: 11px;
  font-weight: 600;
  fill: var(--ink);
  font-family: 'Inter', sans-serif;
}

.wf-node-sub {
  font-size: 9px;
  fill: var(--ink-3);
  font-family: 'Inter', sans-serif;
}

.wf-check-bg {
  fill: var(--accent);
  opacity: 0;
  transition: opacity .3s;
}

.wf-check-txt {
  font-size: 9px;
  font-weight: 700;
  fill: #fff;
  opacity: 0;
  transition: opacity .3s;
  font-family: 'Inter', sans-serif;
}

.wf-node-g.active .wf-check-bg,
.wf-node-g.active .wf-check-txt {
  opacity: 1;
}

/* ================================================================
   J · 3D CARD FLIP — employee cards reveal review on hover
   ================================================================ */
#hero-cardflip {
  grid-template-columns: 1fr 1.1fr;
}

.cardflip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  padding: 56px 48px 56px 0;
  align-content: center;
  height: 100%;
}

.flip-card {
  perspective: 900px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
  transform-style: preserve-3d;
  aspect-ratio: 3/4;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 13px;
  border: 1px solid var(--card-bd);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.flip-card-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--card);
  padding: 14px;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: var(--card);
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fc-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: 17px;
  font-weight: 600;
}

.fc-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}

.fc-role {
  font-size: 9.5px;
  color: var(--ink-3);
  text-align: center;
}

.fc-back-lbl {
  font-size: 8.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
}

.fc-stars {
  display: flex;
  gap: 3px;
}

.fc-star {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.fc-quote {
  font-size: 9.5px;
  color: var(--ink-2);
  line-height: 1.45;
  font-style: italic;
  flex: 1;
}

.fc-metrics {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
}

.fc-metric {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  padding: 3px 0;
  border-top: 1px solid var(--card-bd);
}

.fc-mk {
  color: var(--ink-3);
}

.fc-mv {
  color: var(--ink);
  font-weight: 600;
}

/* ================================================================
   K · SCROLL COUNTER — numbers count up when section enters view
   ================================================================ */
#hero-counter {
  display: block;
  background: #14110d;
  min-height: 55vh;
  padding: 0 64px 80px;
  overflow: hidden;
  position: relative;
}

[data-theme="dark"] #hero-counter {
  background: #0b0906;
}

.counter-ambient {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at 75% 50%,
      color-mix(in srgb, var(--accent) 10%, transparent), transparent 65%);
  pointer-events: none;
}

.counter-top {
  padding-top: calc(var(--navbar-h) + 52px);
  margin-bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding-bottom: 36px;
}

.counter-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 20px;
}

.counter-eyebrow-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}

.counter-tagline {
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 500;
  color: #fff;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
  max-width: 560px;
}

.counter-cta {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition: opacity .2s;
}

.counter-cta:hover {
  opacity: .85;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.counter-item {
  padding: 40px 24px;
  border-right: 1px solid rgba(255, 255, 255, .08);
  transition: background .2s;
}

.counter-item:last-child {
  border-right: none;
}

.counter-item:hover {
  background: rgba(255, 255, 255, .03);
}

.counter-num {
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 600;
  letter-spacing: -.04em;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.counter-accent {
  color: var(--accent);
}

.counter-label {
  font-size: 12px;
  color: rgba(255, 255, 255, .42);
  line-height: 1.5;
}

/* ================================================================
   L · TYPEWRITER CYCLE — headline cycles through HR moments
   ================================================================ */
#hero-typewriter {
  grid-template-columns: 1.1fr 1fr;
}

.typewriter-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0 64px 64px;
}

.tw-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.tw-headline-wrap {
  font-family: 'Inter Tight', Inter, sans-serif;
  font-size: clamp(26px, 3vw, 46px);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 500;
  color: var(--ink);
  min-height: 2.8em;
}

.tw-cursor {
  display: inline-block;
  width: 3px;
  height: .82em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 3px;
  animation: twBlink 1s step-end infinite;
}

@keyframes twBlink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.tw-detail {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-3);
  min-height: 1.6em;
  transition: opacity .35s;
}

.tw-progress {
  display: flex;
  gap: 6px;
  margin-top: 28px;
}

.tw-pip {
  height: 3px;
  border-radius: 999px;
  background: var(--track-2);
  flex: 1;
  cursor: pointer;
  transition: background .3s;
}

.tw-pip.active {
  background: var(--accent);
}

.tw-pip:hover {
  background: var(--ink-3);
}

.tw-cta {
  margin-top: 28px;
}

.typewriter-right {
  display: flex;
  align-items: center;
  padding: 56px 56px 56px 0;
}

.tw-card-stage {
  width: 100%;
}

.tw-card {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--card-bd);
  box-shadow: var(--card-shadow);
  padding: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s, transform .4s;
}

.tw-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.tw-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.tw-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── M · Universal Access ────────────────────────────────────────── */
.ua-feat-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ua-feat-list li {
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ua-feat-check {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.ua-demo-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Browser frame */
.ua-browser {
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--card-bd);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.ua-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--chip-bg);
  border-bottom: 1px solid var(--card-bd);
}

.ua-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--track-2);
  flex-shrink: 0;
}

.ua-url {
  flex: 1;
  font-size: 10px;
  color: var(--ink-3);
  text-align: center;
}

.ua-lang-toggle {
  display: flex;
  gap: 2px;
  background: var(--track);
  border-radius: 6px;
  padding: 2px;
}

.ua-lang {
  border: none;
  background: none;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  transition: all .25s;
}

.ua-lang.ua-lang-active {
  background: var(--card);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

/* Browser body — switches direction */
.ua-browser-body {
  display: flex;
  min-height: 195px;
  transition: direction .3s;
}

.ua-browser-body.rtl-view {
  direction: rtl;
}

.ua-sidebar {
  width: 84px;
  flex-shrink: 0;
  padding: 10px 0;
  border-inline-end: 1px solid var(--card-bd);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ua-nav-item {
  padding: 6px 10px;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--ink-3);
  border-radius: 6px;
  margin: 0 4px;
  cursor: default;
  transition: all .2s;
}

.ua-nav-item.ua-active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.ua-main {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ua-stat-row {
  display: flex;
  gap: 7px;
}

.ua-stat {
  flex: 1;
  background: var(--chip-bg);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  border: 1px solid var(--card-bd);
}

.ua-stat-val {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.ua-stat-lbl {
  display: block;
  font-size: 8px;
  color: var(--ink-3);
  margin-top: 2px;
}

.ua-bar-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ua-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 56px;
}

.ua-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  height: 100%;
}

.ua-bar-fill {
  width: 100%;
  border-radius: 3px 3px 0 0;
  background: var(--track-2);
  flex-shrink: 0;
}

.ua-bar-fill.ua-bar-accent {
  background: var(--accent);
}

.ua-bar-day {
  font-size: 8px;
  color: var(--ink-3);
}

/* Direction indicator */
.ua-dir-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 6px;
  padding: 4px 10px;
  align-self: flex-end;
  transition: all .3s;
}

/* Device strip */
.ua-device-strip {
  display: flex;
  gap: 8px;
}

.ua-device-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--card-bd);
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  transition: all .25s;
}

.ua-device-item svg {
  width: 18px;
  height: 18px;
}

.ua-device-item.ua-dev-active {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

/* Live badge */
.ua-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  align-self: center;
}

.ua-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: ua-pulse 1.8s ease-in-out infinite;
}

@keyframes ua-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .4;
    transform: scale(.75)
  }
}

/* ── Shared: platform feature list ──────────────────────────────── */
.pf-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pf-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}

.pf-ic {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--chip-bg);
  border: 1px solid var(--chip-bd);
  display: grid;
  place-items: center;
  font-size: 10px;
  margin-top: 1px;
}

.pf-ic--accent {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
}

.pf-ic--green {
  background: color-mix(in srgb, #22c55e 12%, transparent);
  border-color: color-mix(in srgb, #22c55e 22%, transparent);
}

/* ── Flip layout (visual left, text right) ───────────────────────── */
.hero-flip .hero-left {
  order: 2;
  padding: 48px 64px 56px 0;
}

.hero-flip .hero-right {
  order: 1;
}

/* Shared visual container padding */
.pf-vis-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 40px 40px 0;
}

.pf-vis-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 40px 40px;
}

/* ── N · Workflow visual ─────────────────────────────────────────── */
.wf-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--card-bd);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.wf-req-top {
  padding: 14px 16px 12px;
  background: var(--chip-bg);
  border-bottom: 1px solid var(--card-bd);
}

.wf-req-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.wf-tag {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}

.wf-reviewing-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: color-mix(in srgb, #f59e0b 14%, transparent);
  border: 1px solid color-mix(in srgb, #f59e0b 28%, transparent);
  color: #b45309;
  border-radius: 100px;
  padding: 2px 9px;
  font-size: 9.5px;
  font-weight: 600;
}

.wf-rdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  animation: ua-pulse 1.5s infinite;
}

.wf-req-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.wf-req-id {
  font-size: 9.5px;
  color: var(--ink-3);
}

.wf-chain {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wf-step {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  position: relative;
}

.wf-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--chip-bg);
  border: 1.5px solid var(--card-bd);
  color: var(--ink-2);
}

.wf-av-done {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: var(--accent);
  color: var(--accent);
}

.wf-av-deputy {
  border-style: dashed;
}

.wf-av-current {
  background: color-mix(in srgb, #f59e0b 14%, transparent);
  border-color: #f59e0b;
  color: #b45309;
  animation: wf-pulse-border 2s ease infinite;
}

@keyframes wf-pulse-border {

  0%,
  100% {
    border-color: #f59e0b
  }

  50% {
    border-color: #fde68a
  }
}

.wf-vline {
  position: absolute;
  left: 13px;
  top: 35px;
  width: 2px;
  height: 20px;
  z-index: 0;
}

.wf-vline-done {
  background: var(--accent);
}

.wf-vline-pending {
  background: var(--track-2);
  border-left: 2px dashed var(--track-2);
  width: 0;
}

.wf-info {
  flex: 1;
  min-width: 0;
}

.wf-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-dept {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 10.5px;
}

.wf-on-leave {
  font-size: 8.5px;
  padding: 1px 5px;
  border-radius: 4px;
  margin-inline-start: 4px;
  background: color-mix(in srgb, #f59e0b 15%, transparent);
  color: #b45309;
}

.wf-time {
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 1px;
}

.wf-reviewing-anim {
  color: #f59e0b;
  animation: wf-blink 1.4s ease-in-out infinite alternate;
}

@keyframes wf-blink {
  0% {
    opacity: .55
  }

  100% {
    opacity: 1
  }
}

.wf-deputy-tag {
  display: flex;
  gap: 4px;
  font-size: 9px;
  color: var(--ink-3);
  margin-top: 2px;
}

.wf-deputy-tag span {
  color: var(--accent);
}

.wf-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.wf-spinner-ring {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--track-2);
  border-top-color: #f59e0b;
  animation: wf-spin 1s linear infinite;
}

@keyframes wf-spin {
  to {
    transform: rotate(360deg);
  }
}

.wf-infinite-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--chip-bg);
  border: 1px dashed var(--chip-bd);
}

.wf-inf-ic {
  font-size: 15px;
  color: var(--accent);
  line-height: 1;
}

.wf-inf-txt {
  font-size: 10px;
  color: var(--ink-3);
}

.wf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  border-top: 1px solid var(--card-bd);
  background: var(--chip-bg);
}

.wf-f-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  color: var(--ink-3);
}

.wf-fdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.wf-fdot-green {
  background: #22c55e;
}

.wf-fdot-amber {
  background: #f59e0b;
}

/* ── O · Analytics visual ────────────────────────────────────────── */
.an-dashboard {
  width: 100%;
  max-width: 390px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.an-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.an-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}

.an-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--ink-3);
}

.an-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.an-kpi {
  background: var(--chip-bg);
  border-radius: 10px;
  padding: 10px 6px;
  border: 1px solid var(--card-bd);
  text-align: center;
}

.an-kpi-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.an-kpi-lbl {
  font-size: 7.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

.an-kpi-chg {
  font-size: 9px;
  font-weight: 600;
  margin-top: 4px;
}

.an-kpi-chg.up {
  color: #22c55e;
}

.an-kpi-chg.ok {
  color: var(--accent);
}

.an-chart {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.an-chart-lbl {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-3);
}

.an-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 76px;
}

.an-bg {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.an-b {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: var(--track-2);
  flex-shrink: 0;
  transition: background .3s;
}

.an-b-active {
  background: var(--accent);
}

.an-bm {
  font-size: 7.5px;
  color: var(--ink-3);
}

.an-reports {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.an-rep {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--chip-bg);
  border: 1px solid var(--card-bd);
  font-size: 11px;
  color: var(--ink-2);
}

.an-rdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.an-rbadge {
  margin-inline-start: auto;
  font-size: 9px;
  font-weight: 600;
  background: color-mix(in srgb, #22c55e 14%, transparent);
  color: #16a34a;
  border-radius: 4px;
  padding: 1px 6px;
}

.an-rbadge-pending {
  background: color-mix(in srgb, #f59e0b 14%, transparent);
  color: #b45309;
}

/* ── P · Self-Service visual ─────────────────────────────────────── */
.ss-card {
  width: 100%;
  max-width: 370px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.ss-profile {
  display: flex;
  align-items: center;
  gap: 11px;
}

.ss-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: grid;
  place-items: center;
}

.ss-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.ss-role {
  font-size: 10.5px;
  color: var(--ink-3);
}

.ss-online {
  margin-inline-start: auto;
}

.ss-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.ss-kpi {
  background: var(--surface);
  border-radius: 10px;
  padding: 9px 6px;
  border: 1px solid var(--card-bd);
  text-align: center;
}

.ss-kpi-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.ss-kpi-lbl {
  font-size: 7.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

.ss-section-lbl {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-3);
}

.ss-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ss-action {
  background: var(--surface);
  border: 1px solid var(--card-bd);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, background .2s;
}

.ss-action i {
  margin-inline-end: 6px;
}

.ss-action:hover {
  border-color: var(--accent);
}

.ss-payslip {
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--card-bd);
  overflow: hidden;
}

.ss-ps-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--card-bd);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

.ss-ps-badge {
  font-size: 9px;
  color: #16a34a;
  background: color-mix(in srgb, #22c55e 14%, transparent);
  border-radius: 4px;
  padding: 1px 6px;
}

.ss-ps-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 12px;
  font-size: 10.5px;
  color: var(--ink-2);
}

.ss-deduct {
  color: #dc2626;
}

.ss-net {
  font-weight: 700;
  color: var(--ink);
  border-top: 1px solid var(--card-bd);
  padding-top: 6px;
}

/* ── Q · Time Management visual ──────────────────────────────────── */
.tm-card {
  width: 100%;
  max-width: 430px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tm-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.tm-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}

.tm-legend {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.tm-leg {
  font-size: 8.5px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
}

.tm-leg-present {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.tm-leg-leave {
  background: color-mix(in srgb, #22c55e 12%, transparent);
  color: #16a34a;
}

.tm-leg-late {
  background: color-mix(in srgb, #f59e0b 12%, transparent);
  color: #b45309;
}

.tm-leg-off {
  background: var(--chip-bg);
  color: var(--ink-3);
  border: 1px solid var(--card-bd);
}

.tm-grid {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--card-bd);
}

.tm-grid-hd {
  display: grid;
  grid-template-columns: 110px repeat(5, 1fr);
  background: var(--chip-bg);
  border-bottom: 1px solid var(--card-bd);
}

.tm-grid-hd>div {
  padding: 5px 4px;
  text-align: center;
  font-size: 8.5px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tm-grid-hd>div:first-child {
  text-align: left;
  padding-inline-start: 8px;
}

.tm-row {
  display: grid;
  grid-template-columns: 110px repeat(5, 1fr);
  border-bottom: 1px solid var(--card-bd);
}

.tm-row:last-child {
  border-bottom: none;
}

.tm-emp {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 5px 5px 8px;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--ink);
}

.tm-av {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 6.5px;
  font-weight: 700;
  color: #fff;
  display: grid;
  place-items: center;
}

.tm-cell {
  display: grid;
  place-items: center;
  font-size: 9.5px;
  padding: 5px 3px;
  border-inline-start: 1px solid var(--card-bd);
}

.tm-present {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  color: var(--accent);
}

.tm-leave {
  background: color-mix(in srgb, #22c55e 6%, transparent);
}

.tm-late {
  background: color-mix(in srgb, #f59e0b 8%, transparent);
  color: #b45309;
}

.tm-off {
  color: var(--ink-3);
}

.tm-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.tm-sum {
  background: var(--chip-bg);
  border-radius: 8px;
  border: 1px solid var(--card-bd);
  padding: 8px 4px;
  text-align: center;
}

.tm-sv {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.tm-sl {
  display: block;
  font-size: 7px;
  color: var(--ink-3);
  margin-top: 2px;
}

.tm-shifts {
  display: flex;
  gap: 5px;
}

.tm-shift {
  flex: 1;
  padding: 6px 6px;
  border-radius: 7px;
  background: var(--chip-bg);
  border: 1px solid var(--card-bd);
  font-size: 8.5px;
  font-weight: 500;
  color: var(--ink-3);
  text-align: center;
}

.tm-shift-active {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* ── Extra responsive overrides ─────────────────────────────────── */
@media (max-width: 991.98px) {

  #hero-magnetic,
  #hero-pathdraw,
  #hero-cardflip,
  #hero-access,
  #hero-workflow,
  #hero-analytics,
  #hero-selfservice,
  #hero-time,
  #hero-typewriter {
    grid-template-columns: 1fr !important;
  }

  .hero-flip .hero-left {
    order: 1;
    padding: 40px 24px;
  }

  .hero-flip .hero-right {
    order: 2;
  }

  .pf-vis-right,
  .pf-vis-left {
    padding: 24px;
  }

  .cardflip-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 24px;
  }

  .counter-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .counter-item:nth-child(3) {
    border-right: none;
  }

  .counter-item:nth-child(n+4) {
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

  #hero-counter {
    padding: 0 24px 64px;
  }

  .counter-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .typewriter-left {
    padding: 40px 24px;
  }

  .typewriter-right {
    padding: 24px;
  }
}

@media (max-width: 767.98px) {
  .cardflip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .counter-item:nth-child(2) {
    border-right: none;
  }

  .counter-item:nth-child(3) {
    border-right: 1px solid rgba(255, 255, 255, .08);
  }

  .magnetic-card-inner {
    padding: 6px 10px;
    font-size: 10px;
  }
}

/* ── Feature list (features_section / mega_section) ─────────────── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;

  .feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;

    .feature-icon {
      width: 40px;
      height: 40px;
      background: var(--primary);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 18px;
      flex-shrink: 0;
    }

    .feature-content {
      .feature-title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--title);
        margin-bottom: 4px;
      }

      .feature-description {
        font-size: 14px;
        line-height: 1.55;
        color: var(--text);
        margin: 0;
      }
    }
  }
}

[data-theme="dark"] .feature-icon {
  background: rgba(28, 100, 242, 0.12);
  color: var(--primary-dk);
}

 

/* ══════════════════════════════════════════════════════════════════
   PLATFORM LIVE PREVIEW — tabbed feature showcase
══════════════════════════════════════════════════════════════════ */
.plive-section {
  padding: 100px 0 90px;
  background: linear-gradient(160deg, #000330 0%, #040c8f 55%, #000ba0 100%);
  position: relative;
  overflow: hidden;
}

.plive-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* ── Header ── */
.plive-header {
  margin-bottom: 36px;
}

.plive-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 18px;
}

.plive-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-dk);
  animation: pulse 2s infinite;
}

.plive-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 16px;
}

.plive-cycle-wrap {
  display: block;
  position: relative;
  height: 1.3em;
  overflow: hidden;
}

.plive-cycle-item {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  color: var(--primary-dk);
  animation: plive-cycle 20s infinite;
}

.plive-cycle-item:nth-child(1) {
  animation-delay: 0s;
}

.plive-cycle-item:nth-child(2) {
  animation-delay: 5s;
}

.plive-cycle-item:nth-child(3) {
  animation-delay: 10s;
}

.plive-cycle-item:nth-child(4) {
  animation-delay: 15s;
}

@keyframes plive-cycle {

  0%,
  3% {
    opacity: 0;
    transform: translateX(-50%) translateY(14px);
  }

  8%,
  22% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  27%,
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
  }
}

.plive-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, .55);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Platform Smart Badges ── */
.plive-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.plive-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
  transition: background .2s, border-color .2s;
}

.plive-badge:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .25);
}

.plive-badge svg {
  opacity: .75;
}

/* ── Tab Nav ── */
.plive-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-bottom: 32px;
  list-style: none;
  padding: 0;
}

.plive-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  cursor: pointer;
  transition: all .2s;
}

.plive-tab:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .20);
  color: #fff;
}

.plive-tab.active {
  background: #fff;
  color: #000330;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
}

.plive-tab svg {
  opacity: .65;
  transition: opacity .2s;
}

.plive-tab.active svg {
  opacity: 1;
}

/* ── Stage + Panels ── */
.plive-stage {
  position: relative;
  min-height: 300px;
}

.plive-panel {
  display: none;
  animation: plive-panel-in .4s ease;
}

.plive-panel.active {
  display: block;
}

@keyframes plive-panel-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.plive-panel-num {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7dd3fc;
  margin-bottom: 10px;
}

.plive-panel-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -.02em;
}

.plive-panel-desc {
  font-size: .95rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.7;
  margin: 0 0 20px;
}

.plive-feat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plive-feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .875rem;
  color: rgba(255, 255, 255, .78);
}

.plive-feat-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .18);
  color: #22c55e;
  font-size: .65rem;
  font-weight: 700;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Preview card ── */
.plive-preview {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 16px;
  overflow: hidden;
}

.plive-preview .window-bar {
  background: var(--surface);
 }

.plive-preview .window-dot {
  background: var(--text);
}

.plive-preview .window-label {
  color: var(--title);
}

.plive-preview .screen-body {
  background: transparent;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plive-screen-img {
  width: 100%;
  display: block;
   border-radius: 0 0 14px 14px;
  aspect-ratio: 16 / 9;
   background: var(--bg);
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .plive-panel-inner {
    grid-template-columns: 1fr;
  }

   

  .plive-title {
    font-size: 2rem;
  }
}