/* ============ DESIGN TOKENS ============ */
:root {
  --bg: #0a0e1a;
  --bg-alt: #0e1424;
  --surface: #141b30;
  --surface-2: #1a2340;
  --line: rgba(120, 150, 255, 0.14);
  --text: #eef1fa;
  --muted: #9aa5c4;
  --accent: #4f7cff;
  --accent-2: #36e2c4;
  --grad: linear-gradient(135deg, #4f7cff 0%, #36e2c4 100%);
  --radius: 18px;
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin-inline: auto; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  will-change: transform;
}
.btn--primary {
  background: var(--grad);
  color: #07101f;
  box-shadow: 0 8px 30px rgba(79, 124, 255, 0.35);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(54, 226, 196, 0.4); }
.btn--ghost { border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { background: rgba(120, 150, 255, 0.08); transform: translateY(-3px); }
.btn--sm { padding: 10px 22px; font-size: 0.85rem; }
.btn--lg { padding: 18px 40px; font-size: 1.05rem; }

/* ============ NAV ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 26, 0.65);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.nav__logo { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: 0.5px; }
.nav__logo span { color: var(--accent-2); }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
@media (max-width: 800px) { .nav__links { display: none; } }

/* ============ HERO ============ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow {
  position: absolute; width: 70vw; height: 70vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 124, 255, 0.18), transparent 65%);
  top: -25vw; right: -20vw; pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 60px; align-items: center;
  padding: 140px 0 80px;
}
.hero__eyebrow {
  color: var(--accent-2); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 22px;
}
.hero__title { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 800; margin-bottom: 24px; }
.hero__title .word { display: inline-block; }
.hero__sub { color: var(--muted); font-size: 1.1rem; max-width: 540px; margin-bottom: 36px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scrollhint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 2px solid var(--line); border-radius: 14px; z-index: 2;
}
.hero__scrollhint span {
  display: block; width: 4px; height: 8px; background: var(--accent-2);
  border-radius: 4px; margin: 7px auto 0; animation: scrollhint 1.8s ease-in-out infinite;
}
@keyframes scrollhint { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0.2; } }

/* Clock-in widget */
.widget {
  background: rgba(20, 27, 48, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.widget__head {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.9rem; margin-bottom: 16px;
}
.widget__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(54, 226, 196, 0.5); } 50% { box-shadow: 0 0 0 7px rgba(54, 226, 196, 0); } }
.widget__time { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.widget__feed { list-style: none; display: grid; gap: 10px; min-height: 168px; }
.widget__feed li {
  display: flex; justify-content: space-between; font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  padding: 10px 14px; border-radius: 10px;
}
.widget__feed li b { color: var(--accent-2); font-weight: 600; }
.widget__foot { margin-top: 16px; font-size: 0.78rem; color: var(--muted); text-align: center; }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 120px; }
  .hero__widget { max-width: 420px; }
}

/* ============ TRUST MARQUEE ============ */
.trust { padding: 50px 0; border-block: 1px solid var(--line); background: var(--bg-alt); }
.trust__label { text-align: center; color: var(--muted); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 26px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 70px; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: rgba(154, 165, 196, 0.55); white-space: nowrap; transition: color 0.3s; }
.marquee__track span:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__eyebrow { color: var(--accent-2); font-size: 0.8rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 14px; }
.section__title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; margin-bottom: 50px; max-width: 720px; }
.section__title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============ SERVICE CARDS ============ */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; position: relative; overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.35s, border-color 0.35s;
  will-change: transform;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(79, 124, 255, 0.13), transparent 65%);
  opacity: 0; transition: opacity 0.35s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(79, 124, 255, 0.45); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }
.card:hover::before { opacity: 1; }
.card__icon { font-size: 1.9rem; margin-bottom: 16px; }
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.88rem; margin-bottom: 18px; }
.card__link { font-size: 0.85rem; font-weight: 600; color: var(--accent-2); position: relative; z-index: 1; }
.card__link span { display: inline-block; transition: transform 0.25s; }
.card:hover .card__link span { transform: translateX(5px); }
.card--featured { border-color: rgba(54, 226, 196, 0.4); background: linear-gradient(160deg, var(--surface), rgba(54, 226, 196, 0.07)); }

/* ============ TABS / INDUSTRIES ============ */
.tabs__nav { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.tabs__btn {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  padding: 12px 26px; border-radius: 999px; font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.25s;
}
.tabs__btn:hover { color: var(--text); border-color: var(--accent); }
.tabs__btn.is-active { background: var(--grad); color: #07101f; border-color: transparent; }
.tabs__panel { display: none; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.tabs__panel.is-active { display: grid; animation: fadeup 0.5s ease both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.tabs__text h3 { font-size: 1.5rem; margin-bottom: 14px; }
.tabs__text p { color: var(--muted); margin-bottom: 20px; }
.tabs__text ul { list-style: none; display: grid; gap: 10px; }
.tabs__text li { padding-left: 28px; position: relative; color: var(--text); font-size: 0.95rem; }
.tabs__text li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }
@media (max-width: 860px) { .tabs__panel.is-active { grid-template-columns: 1fr; } }

/* Phone mockup */
.mockup--phone {
  width: min(300px, 100%); margin-inline: auto;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 32px; padding: 14px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  transform: rotate(2deg); transition: transform 0.4s;
}
.mockup--phone:hover { transform: rotate(0deg) scale(1.02); }
.mockup__bar { width: 90px; height: 5px; border-radius: 5px; background: var(--line); margin: 4px auto 14px; }
.mockup__screen { background: var(--bg); border-radius: 20px; padding: 20px 16px; }
.mockup__screen strong { display: block; font-family: var(--font-display); margin-bottom: 14px; font-size: 0.95rem; }
.rosterrow {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: var(--muted);
  background: rgba(255, 255, 255, 0.04); border-radius: 9px;
  padding: 10px 12px; margin-bottom: 8px;
}
.rosterrow b { color: var(--accent-2); }
.rosterrow--warn b { color: #ffb35c; }
.mockup__cta {
  margin-top: 14px; text-align: center; background: var(--grad);
  color: #07101f; font-weight: 700; font-size: 0.85rem;
  padding: 11px; border-radius: 10px; cursor: pointer;
}

/* ============ DEMO / DASHBOARD ============ */
.browser { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5); }
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 13px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.browser__bar > span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.browser__bar > span:nth-child(1) { background: #ff6058; }
.browser__bar > span:nth-child(2) { background: #ffbd2e; }
.browser__bar > span:nth-child(3) { background: #29c940; }
.browser__url { margin-left: 14px; background: var(--bg); border-radius: 8px; padding: 6px 16px; font-size: 0.78rem; color: var(--muted); flex: 1; max-width: 340px; }
.dash { display: grid; grid-template-columns: 200px 1fr; min-height: 360px; }
.dash__side { border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 6px; }
.dash__nav {
  background: transparent; border: none; color: var(--muted); text-align: left;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  padding: 11px 16px; border-radius: 10px; cursor: pointer; transition: all 0.2s;
}
.dash__nav:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.dash__nav.is-active { background: rgba(79, 124, 255, 0.16); color: var(--text); font-weight: 600; }
.dash__main { padding: 28px; }
.dash__view { display: none; }
.dash__view.is-active { display: block; animation: fadeup 0.4s ease both; }
#view-overview.is-active { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.stat b { display: block; font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; color: var(--accent-2); }
.stat span { font-size: 0.8rem; color: var(--muted); }
.chart { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 12px; height: 130px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.chart div { flex: 1; height: var(--h); background: var(--grad); border-radius: 6px 6px 0 0; opacity: 0.85; transform-origin: bottom; animation: grow 0.8s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.chart div:nth-child(2) { animation-delay: 0.07s; } .chart div:nth-child(3) { animation-delay: 0.14s; }
.chart div:nth-child(4) { animation-delay: 0.21s; } .chart div:nth-child(5) { animation-delay: 0.28s; }
.chart div:nth-child(6) { animation-delay: 0.35s; } .chart div:nth-child(7) { animation-delay: 0.42s; }
@keyframes grow { from { transform: scaleY(0); } }
.siterow { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; margin-bottom: 10px; font-size: 0.9rem; }
.siterow b.ok { color: var(--accent-2); } .siterow b.warn { color: #ffb35c; }
.demo__caption { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 24px; }
@media (max-width: 760px) {
  .dash { grid-template-columns: 1fr; }
  .dash__side { flex-direction: row; border-right: none; border-bottom: 1px solid var(--line); }
  #view-overview.is-active { grid-template-columns: 1fr; }
}

/* ============ PROCESS ============ */
.process { position: relative; }
.process__line { position: absolute; top: 26px; left: 0; width: 100%; height: 4px; color: var(--accent); opacity: 0.7; }
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.step b {
  display: inline-grid; place-items: center; width: 52px; height: 52px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--accent);
  font-family: var(--font-display); font-weight: 700; color: var(--accent-2);
  margin-bottom: 18px; position: relative; z-index: 1;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.86rem; }
@media (max-width: 800px) { .process__steps { grid-template-columns: 1fr 1fr; } .process__line { display: none; } }

/* ============ RESULTS ============ */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 50px; }
.result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px; text-align: center; }
.result b { display: block; font-family: var(--font-display); font-size: 2.8rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.result p { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 760px) { .results { grid-template-columns: 1fr; } }
.quote { font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.55rem); font-weight: 600; max-width: 760px; margin-inline: auto; text-align: center; line-height: 1.5; }
.quote cite { display: block; margin-top: 18px; font-family: var(--font-body); font-style: normal; font-size: 0.9rem; color: var(--muted); font-weight: 400; }

/* ============ CTA ============ */
.cta { padding: 110px 0; background: radial-gradient(900px circle at 50% 0%, rgba(79, 124, 255, 0.16), transparent 70%), var(--bg-alt); border-top: 1px solid var(--line); }
.cta__inner { text-align: center; max-width: 640px; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 18px; }
.cta p { color: var(--muted); margin-bottom: 34px; }

/* ============ FOOTER ============ */
.footer { padding: 70px 0 30px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer__grid h4 { font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer__grid a { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; transition: color 0.2s; }
.footer__grid a:hover { color: var(--accent-2); }
.footer__tag { color: var(--muted); font-size: 0.88rem; margin-top: 12px; max-width: 280px; }
.footer__copy { text-align: center; color: var(--muted); font-size: 0.8rem; padding-top: 26px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ============ REVEAL DEFAULTS (pre-GSAP state handled in JS) ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* CTA phone line */
.cta__phone { margin-top: 22px; margin-bottom: 0 !important; font-size: 0.95rem; }
.cta__phone a { color: var(--accent-2); font-weight: 600; }
.cta__phone a:hover { text-decoration: underline; }

/* ============ EMA WORKFORCE CONNECT ============ */
.ema__intro { color: var(--muted); max-width: 700px; margin: -28px 0 46px; font-size: 1.05rem; }
.ema__grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 40px; align-items: center; margin-bottom: 54px; }
@media (max-width: 900px) { .ema__grid { grid-template-columns: 1fr; } }
.ema__dashbody { padding: 24px; }
.ema__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
@media (max-width: 600px) { .ema__stats { grid-template-columns: 1fr 1fr; } }
.emastat { background: var(--bg); border: 1px solid var(--line); border-left: 3px solid #4f7cff; border-radius: 12px; padding: 14px 16px; }
.emastat span { display: block; font-size: 0.72rem; color: var(--muted); margin-bottom: 4px; }
.emastat b { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; }
.emastat--green { border-left-color: #2fbf71; } .emastat--green b { color: #2fbf71; }
.emastat--amber { border-left-color: #ffb35c; } .emastat--amber b { color: #ffb35c; }
.emastat--violet { border-left-color: #a78bfa; } .emastat--violet b { color: #a78bfa; }
.ema__alerts { display: grid; gap: 8px; }
.emaalert { background: rgba(255, 179, 92, 0.08); border: 1px solid rgba(255, 179, 92, 0.25); color: #ffd9a8; font-size: 0.84rem; padding: 10px 14px; border-radius: 10px; }
.emaalert--ok { background: rgba(47, 191, 113, 0.08); border-color: rgba(47, 191, 113, 0.3); color: #9ae6bf; }
.ema__phone { transform: rotate(-2deg); }
.ema__features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 50px; }
@media (max-width: 900px) { .ema__features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ema__features { grid-template-columns: 1fr; } }
.emafeat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: transform 0.3s, border-color 0.3s; }
.emafeat:hover { transform: translateY(-5px); border-color: rgba(47, 191, 113, 0.45); }
.emafeat h3 { font-size: 1rem; margin-bottom: 10px; }
.emafeat p { color: var(--muted); font-size: 0.86rem; }
.ema__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: linear-gradient(135deg, rgba(79, 124, 255, 0.12), rgba(47, 191, 113, 0.12)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; }
.ema__cta p { color: var(--text); font-size: 1.02rem; margin: 0; }
