/* SysHRIS marketing site — tokens, base, components */
:root {
  --radius: .75rem;
  --background: oklch(98.5% .004 250);
  --foreground: oklch(22% .05 258);
  --card: oklch(100% 0 0);
  --card-foreground: oklch(22% .05 258);
  --popover: oklch(100% 0 0);
  --popover-foreground: oklch(22% .05 258);
  --primary: oklch(30% .095 258);
  --primary-foreground: oklch(98.5% .004 250);
  --secondary: oklch(95% .015 250);
  --secondary-foreground: oklch(30% .095 258);
  --muted: oklch(95.5% .012 250);
  --muted-foreground: oklch(50% .03 255);
  --accent: oklch(95% .025 85);
  --destructive: oklch(57.7% .245 27.325);
  --border: oklch(91% .015 250);
  --chart-1: oklch(30% .095 258);
  --chart-2: oklch(62% .12 200);
  --chart-3: oklch(55% .15 255);
  --chart-4: oklch(82% .165 82);
  --chart-5: oklch(70% .17 50);
}
.dark {
  --background: oklch(17% .04 258);
  --foreground: oklch(97% .006 250);
  --card: oklch(22% .05 258);
  --card-foreground: oklch(97% .006 250);
  --popover: oklch(22% .05 258);
  --popover-foreground: oklch(97% .006 250);
  --primary: oklch(82% .165 82);
  --primary-foreground: oklch(20% .05 258);
  --secondary: oklch(28% .05 258);
  --muted: oklch(26% .045 258);
  --muted-foreground: oklch(72% .03 255);
  --accent: oklch(30% .05 258);
  --destructive: oklch(70.4% .191 22.216);
  --border: oklch(100% 0 0 / .12);
  --chart-1: oklch(70% .13 255);
  --chart-2: oklch(72% .12 200);
  --chart-3: oklch(60% .15 255);
}

*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--background); color: var(--foreground);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; cursor: pointer; }
svg.lucide { width: 1em; height: 1em; stroke-width: 2; flex-shrink: 0; }
[id] { scroll-margin-top: 4rem; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.text-muted { color: var(--muted-foreground); }
.balance { text-wrap: balance; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.25rem; padding: 0 1rem; border-radius: calc(var(--radius) - 2px);
  font-size: .875rem; font-weight: 500; white-space: nowrap; transition: background-color .2s, box-shadow .2s;
  background: var(--primary); color: var(--primary-foreground);
}
.btn:hover { background: color-mix(in oklab, var(--primary) 90%, transparent); }
.btn svg { width: 1rem; height: 1rem; }
.btn-lg { height: 2.5rem; padding: 0 1.5rem; }
.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.btn-secondary:hover { background: color-mix(in oklab, var(--secondary) 80%, transparent); }
.btn-ghost { background: transparent; color: inherit; }
.btn-ghost:hover { background: var(--accent); }
.btn-icon { width: 2.25rem; padding: 0; }
.btn-block { width: 100%; }

/* ── Badge / Card ── */
.badge {
  display: inline-flex; align-items: center; border-radius: 9999px; padding: .125rem .5rem;
  font-size: .75rem; font-weight: 500; width: fit-content; white-space: nowrap;
  background: var(--secondary); color: var(--secondary-foreground);
}
.badge-lg { padding: .25rem .75rem; }
.card {
  display: flex; flex-direction: column; gap: 1.5rem; border-radius: .75rem; border: 1px solid var(--border);
  background: var(--card); color: var(--card-foreground); padding: 1.5rem 0; box-shadow: 0 1px 2px rgb(0 0 0 / .05);
}
.card-pad { padding: 0 1.5rem; }
.card-title { font-weight: 600; line-height: 1; font-size: 1rem; }
.card-head { padding: 0 1.5rem; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 85%, transparent); backdrop-filter: blur(8px);
}
.header-row { display: flex; height: 4rem; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: .625rem; }
.logo-mark {
  position: relative; display: flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center;
  border-radius: .75rem; color: var(--primary-foreground); box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1);
  background: linear-gradient(to bottom right, var(--primary), var(--chart-3)); transition: transform .3s;
}
.dark .logo-mark { background: linear-gradient(to bottom right, var(--chart-4), var(--chart-5)); }
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }
.logo-mark svg { width: 1.25rem; height: 1.25rem; }
.logo-dot {
  position: absolute; right: -.25rem; top: -.25rem; width: .75rem; height: .75rem; border-radius: 9999px;
  border: 2px solid var(--background); background: var(--chart-4);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-size: 22px; font-weight: 800; letter-spacing: -.025em; }
.logo-name .sys {
  background: linear-gradient(to right, var(--chart-3), var(--chart-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dark .logo-name .sys { background-image: linear-gradient(to right, var(--chart-4), var(--chart-5)); }
.logo-sub { margin-top: .25rem; display: flex; align-items: center; gap: .375rem; }
.logo-sub i { display: block; height: 2px; width: 1.25rem; border-radius: 9999px; background: var(--chart-4); }
.logo-sub span { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .22em; color: var(--muted-foreground); }

.nav { display: none; align-items: center; gap: .25rem; }
.nav a {
  position: relative; display: flex; align-items: center; gap: .5rem; border-radius: .5rem; padding: .5rem .875rem;
  font-size: .875rem; font-weight: 600; color: var(--muted-foreground); transition: all .2s;
}
.nav a svg { width: 1rem; height: 1rem; transition: transform .2s; }
.nav a:hover { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1); }
.nav a:hover svg { transform: scale(1.1); color: var(--chart-4); }
.dark .nav a:hover svg { color: var(--primary-foreground); }
.nav a::after {
  content: ""; position: absolute; left: .75rem; right: .75rem; bottom: -2px; height: 2px; border-radius: 9999px;
  background: var(--chart-4); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav a:hover::after { transform: scaleX(1); }
.header-cta { display: none; }
.menu-btn { display: inline-flex; }
.mobile-menu { display: none; border-top: 1px solid var(--border); padding: .75rem 1rem; }
.mobile-menu.open { display: block; }
.mobile-menu a.m-link {
  display: flex; align-items: center; gap: .75rem; border-radius: calc(var(--radius) - 2px); padding: .625rem .75rem;
  font-size: .875rem; font-weight: 600; transition: background-color .2s, color .2s;
}
.mobile-menu a.m-link:hover { background: var(--primary); color: var(--primary-foreground); }
.mobile-menu a.m-link svg { width: 1rem; height: 1rem; }
.mobile-menu .btn { margin-top: .5rem; }
.mobile-menu > * + * { margin-top: .25rem; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 80% 0%, var(--accent), transparent 50%),
    radial-gradient(circle at 0% 100%, var(--secondary), transparent 50%);
}
.hero-grid { display: grid; align-items: center; gap: 3rem; padding: 4rem 1rem; }
.hero-copy > * + * { margin-top: 1.5rem; }
.hero h1 { font-size: 2.25rem; line-height: 1.25; font-weight: 800; letter-spacing: -.025em; }
.hero h1 span { color: var(--chart-3); }
.dark .hero h1 span { color: var(--chart-4); }
.hero-lead { max-width: 36rem; font-size: 1.125rem; line-height: 1.75rem; color: var(--muted-foreground); }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; font-size: .875rem; font-weight: 500; }
.checks li { display: flex; align-items: center; gap: .5rem; }
.checks svg { width: 1rem; height: 1rem; color: var(--chart-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-media { position: relative; }
.hero-media img { height: 18rem; width: 100%; border-radius: 1rem; object-fit: cover; box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); }
.stat-float {
  position: absolute; bottom: -1.25rem; left: 1rem; display: flex; align-items: center; gap: .75rem;
  border-radius: .75rem; border: 1px solid var(--border); background: var(--card); padding: .75rem 1.25rem .75rem .75rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
}
.icon-tile {
  display: flex; width: 2.5rem; height: 2.5rem; flex-shrink: 0; align-items: center; justify-content: center;
  border-radius: .5rem; background: var(--primary); color: var(--primary-foreground);
}
.icon-tile svg { width: 1.25rem; height: 1.25rem; }
.stat-float strong { display: block; font-size: 1.125rem; font-weight: 800; line-height: 1; }
.stat-float small { font-size: .75rem; color: var(--muted-foreground); }

/* ── Sections ── */
.section { padding: 5rem 0; }
.section-muted { background: color-mix(in oklab, var(--muted) 50%, transparent); }
.section-head { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.section-head h2, .h2 { font-size: 1.875rem; line-height: 1.2; font-weight: 800; }
.section-head p { margin-top: .75rem; color: var(--muted-foreground); }
.section-head.tight { margin-bottom: 2.5rem; }

/* Dashboard mock-up */
.dash {
  border-radius: 1.5rem; border: 1px solid var(--border); background: var(--background); padding: 1rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);
}
.dash > * + * { margin-top: 1rem; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.kpi { padding: 1rem 0; }
.kpi .card-pad { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; padding: 0 1rem; }
.kpi-label { font-size: .75rem; font-weight: 500; color: var(--muted-foreground); }
.kpi-value { margin-top: .25rem; font-size: 1.5rem; line-height: 2rem; font-weight: 800; }
.kpi-note { margin-top: .25rem; font-size: .75rem; color: var(--muted-foreground); }
.dash-row { display: grid; gap: 1rem; }
.bars { height: 18rem; display: flex; flex-direction: column; justify-content: space-around; }
.bar-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: .5rem; font-size: 11px; color: var(--muted-foreground); }
.bar-track { position: relative; height: 18px; }
.bar-fill { height: 100%; border-radius: 0 6px 6px 0; background: var(--chart-1); width: 0; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.bar-val { position: absolute; top: 50%; transform: translateY(-50%); margin-left: .375rem; font-size: 11px; font-weight: 600; color: var(--foreground); opacity: 0; transition: opacity .6s .6s; }
.in .bar-val { opacity: 1; }
.donut-wrap { height: 11rem; display: flex; align-items: center; justify-content: center; }
.donut-wrap svg { height: 100%; width: auto; }
.legend { margin-top: .75rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .375rem .75rem; font-size: .75rem; }
.legend li { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.legend i { width: .625rem; height: .625rem; flex-shrink: 0; border-radius: 9999px; }
.legend span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-foreground); }
.legend b { margin-left: auto; font-weight: 600; }
.expiry { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.expiry div { border-radius: .75rem; padding: 1rem; }
.expiry strong { display: block; font-size: 1.875rem; line-height: 2.25rem; font-weight: 800; }
.expiry small { font-size: .75rem; font-weight: 600; }
.tone-1 { background: color-mix(in oklab, var(--destructive) 10%, transparent); color: var(--destructive); }
.tone-7 { background: color-mix(in oklab, var(--chart-5) 15%, transparent); color: var(--chart-5); }
.tone-14 { background: color-mix(in oklab, var(--chart-4) 20%, transparent); color: var(--foreground); }
.tone-30 { background: color-mix(in oklab, var(--chart-2) 15%, transparent); color: var(--chart-2); }
.needs > * + * { margin-top: 1rem; }
.need-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .875rem; }
.need-top > div { min-width: 0; }
.need-top p:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.need-top p:last-child { font-size: .75rem; color: var(--muted-foreground); }
.progress { position: relative; height: .375rem; width: 100%; overflow: hidden; border-radius: 9999px; background: color-mix(in oklab, var(--primary) 20%, transparent); margin-top: .375rem; }
.progress i { display: block; height: 100%; background: var(--primary); width: 0; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.dash-note { margin-top: 1rem; text-align: center; font-size: .75rem; color: var(--muted-foreground); }

/* Features */
.features { display: grid; gap: 1.25rem; }
.feature { height: 100%; transition: box-shadow .2s; }
.feature:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); }
.feature .card-pad > * + * { margin-top: .75rem; }
.feature .icon-tile { width: 2.75rem; height: 2.75rem; border-radius: .75rem; }
.feature h3 { font-size: 1.125rem; font-weight: 700; }
.feature p { font-size: .875rem; color: var(--muted-foreground); }

/* Showcase rows */
.showcase { display: grid; gap: 5rem; }
.show-row { display: grid; align-items: center; gap: 2.5rem; }
.show-row img { height: 18rem; width: 100%; border-radius: 1rem; object-fit: cover; box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); }
.show-copy > * + * { margin-top: 1rem; }
.show-copy h3 { font-size: 1.5rem; line-height: 2rem; font-weight: 800; }
.show-copy p { color: var(--muted-foreground); }
.show-copy ul > * + * { margin-top: .5rem; }
.show-copy li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 500; }
.show-copy li svg { width: 1rem; height: 1rem; color: var(--chart-2); }

/* How it works */
.how { background: var(--primary); color: var(--primary-foreground); }
.how h2 { margin-bottom: 3rem; text-align: center; font-size: 1.875rem; font-weight: 800; }
.steps { display: grid; gap: 2rem; }
.steps > div > * + * { margin-top: .75rem; }
.step-n {
  display: flex; width: 3rem; height: 3rem; align-items: center; justify-content: center; border-radius: 9999px;
  background: var(--chart-4); color: oklch(0.22 0.05 258); font-size: 1.125rem; font-weight: 800;
}
.steps h3 { font-size: 1.25rem; font-weight: 700; }
.steps p { font-size: .875rem; opacity: .8; }

/* Apps */
.apps-img { margin-bottom: 2.5rem; height: 12rem; width: 100%; border-radius: 1rem; object-fit: cover; }
.apps { display: grid; gap: 1.5rem; }
.app-card { overflow: hidden; border: 2px solid var(--border); transition: box-shadow .2s; }
.app-card:hover { box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); }
.app-card .card-pad > * + * { margin-top: 1rem; }
.app-top { display: flex; align-items: center; gap: 1rem; }
.app-code {
  display: flex; width: 4rem; height: 4rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 1rem;
  background: var(--primary); color: var(--primary-foreground); font-size: 1.25rem; font-weight: 800;
}
.app-top h3 { font-size: 1.25rem; font-weight: 700; }
.app-top p { font-size: .875rem; color: var(--muted-foreground); }
.app-desc { font-size: .875rem; color: var(--muted-foreground); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--card); }
.footer-row { display: flex; flex-direction: column; gap: 1rem; padding: 2rem 1rem; font-size: .875rem; color: var(--muted-foreground); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-weight: 500; }
.footer-links a:hover { color: var(--foreground); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ── Responsive (Tailwind breakpoints: sm 640, md 768, lg 1024) ── */
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) {
  .nav, .header-cta { display: flex; }
  .menu-btn, .mobile-menu, .mobile-menu.open { display: none; }
  .hero-grid { padding-top: 6rem; padding-bottom: 6rem; }
  .hero h1 { font-size: 3rem; line-height: 1; }
  .hero-media img { height: 24rem; }
  .section-head h2, .h2, .how h2 { font-size: 2.25rem; line-height: 2.5rem; }
  .dash { padding: 1.5rem; }
  .kpi-value { font-size: 1.875rem; line-height: 2.25rem; }
  .show-row { grid-template-columns: repeat(2, 1fr); }
  .show-row.flip img { order: 2; }
  .show-row img { height: 20rem; }
  .show-copy h3 { font-size: 1.875rem; line-height: 2.25rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .apps-img { height: 16rem; }
  .apps { grid-template-columns: repeat(2, 1fr); }
  .footer-row { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .dash-row { grid-template-columns: repeat(5, 1fr); }
  .span-3 { grid-column: span 3; }
  .span-2 { grid-column: span 2; }
}
