/* ==========================================================
   WorkUnit Labs website styles
   Brand colors and fonts: change them here and the whole site follows.
   ========================================================== */
:root {
  --navy: #0B2D4B;
  --deep: #0A2342;
  --blue: #1E7BFF;
  --sky: #0EA5FF;
  --cyan: #3FD5F5;
  --light: #F5F7FA;
  --tint: #EAF2FF;
  --ink: #0B2D4B;
  --body: #1F2A37;
  --muted: #5A6F84;
  --line: #DDE4EC;
  --white: #FFFFFF;
  --ok: #0F8A5F;
  --warn: #B4570B;
  --radius: 16px;
  --max: 1160px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--body); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; max-width: 760px; }
h3 { font-size: 18px; font-weight: 700; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 14px; }
.eyebrow.light { color: var(--cyan); }
.lede { font-size: 18px; color: var(--muted); max-width: 640px; margin: 18px 0 0; }
.lede.light { color: #B9C8D8; }
.section { padding: 112px 0; }
.alt { background: var(--light); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 11px; font: 600 15px var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 24px -10px rgba(30, 123, 255, .7); }
.btn-primary:hover { background: #1468E0; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(30, 123, 255, .8); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11, 45, 75, .5); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand img { height: 34px; width: auto; }
.links { display: flex; gap: 28px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; position: relative; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .25s var(--ease); }
.links a:hover { color: var(--ink); }
.links a:hover::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #F7FAFF 0%, var(--white) 100%); }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.orb-a { width: 520px; height: 520px; right: -120px; top: -140px; background: radial-gradient(circle, #BFE6FF, transparent 70%); animation: drift 18s ease-in-out infinite alternate; }
.orb-b { width: 420px; height: 420px; left: -160px; bottom: -180px; background: radial-gradient(circle, #D6E4FF, transparent 70%); animation: drift 22s ease-in-out infinite alternate-reverse; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; opacity: .35; mask-image: radial-gradient(ellipse at 70% 30%, black 10%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, black 10%, transparent 65%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 800; letter-spacing: -0.035em; }
.grad { background: linear-gradient(100deg, var(--blue) 10%, var(--sky) 60%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.fine { margin-top: 18px; font-size: 14px; color: var(--muted); }

.hero-art { position: relative; min-height: 480px; display: grid; place-items: center; }
.art-stage { position: relative; width: 100%; aspect-ratio: 1.15; max-width: 620px; }
.art-3d { position: absolute; inset: 8% 4%; width: 92%; filter: drop-shadow(0 40px 50px rgba(11, 45, 75, .22)); animation: float 7s ease-in-out infinite; transition: opacity .6s; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s; cursor: grab; touch-action: pan-y; }
.webgl-ready #hero-canvas { opacity: 1; }
.webgl-ready .art-3d { opacity: 0; animation: none; }
.chip { position: absolute; z-index: 2; pointer-events: none; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink); box-shadow: 0 16px 34px -18px rgba(11, 45, 75, .45); backdrop-filter: blur(6px); animation: chip-in .8s var(--ease) both, bob 7s ease-in-out infinite; }
.chip-a { top: 6%; right: 2%; animation-delay: .5s, 0s; }
.chip-b { bottom: 18%; left: -2%; animation-delay: .8s, -2s; }
.chip-c { bottom: 2%; right: 8%; animation-delay: 1.1s, -4s; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px #DDF3EA; }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 4px #FCEBDA; }

/* ---------- stats band ---------- */
.band { background: var(--deep); color: var(--white); padding: 44px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(100deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: #B9C8D8; font-size: 15px; }

/* ---------- how it works ---------- */
.how { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; margin-top: 56px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--blue), var(--cyan)); transform-origin: top; transform: scaleY(var(--progress, 0)); transition: transform .2s linear; }
.step { display: flex; gap: 20px; }
.step .num { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--tint); color: var(--blue); font-weight: 800; display: grid; place-items: center; position: relative; z-index: 1; border: 2px solid var(--white); }
.step p { margin: 6px 0 0; color: var(--muted); }

.demo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 26px; border-radius: 22px; background: linear-gradient(160deg, var(--deep), #10345C); box-shadow: 0 40px 80px -40px rgba(10, 35, 66, .7); }
.doc { position: relative; overflow: hidden; background: var(--white); border-radius: 12px; padding: 16px; font-size: 11.5px; color: var(--body); }
.doc-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 10px; }
.doc-head b { color: var(--ink); font-size: 12.5px; }
.doc-head span { color: var(--blue); font-weight: 700; font-size: 9.5px; letter-spacing: .04em; white-space: nowrap; }
.doc-line { height: 6px; border-radius: 3px; background: var(--light); margin: 6px 0; }
.w70 { width: 70%; } .w50 { width: 50%; }
.doc-rows { margin-top: 12px; border-top: 1px solid var(--line); }
.doc-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.doc-total { display: flex; justify-content: space-between; margin-top: 10px; padding: 7px 8px; background: var(--light); border-radius: 6px; }
.doc-total b { color: var(--ink); }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 46px; background: linear-gradient(180deg, transparent, rgba(30, 123, 255, .18), rgba(30, 123, 255, .5)); border-bottom: 2px solid var(--blue); animation: scan 4.8s ease-in-out infinite; }
.checks-live { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.cl { display: flex; align-items: center; gap: 10px; color: #DCE6F0; font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; padding: 9px 12px; opacity: 0; transform: translateX(12px); animation: check-in 9.6s var(--ease) infinite; animation-delay: calc(var(--d) * .8s + .6s); }
.cl .dot.ok { box-shadow: 0 0 0 4px rgba(15, 138, 95, .25); }
.cl .dot.warn { box-shadow: 0 0 0 4px rgba(180, 87, 11, .3); }
.cl.result { background: rgba(63, 213, 245, .12); border-color: rgba(63, 213, 245, .35); color: var(--white); }
.cl.result b { color: var(--cyan); }

/* ---------- compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 52px; }
.col { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.col h3 { margin-bottom: 14px; }
.col ul { list-style: none; padding: 0; margin: 0; }
.col li { padding: 12px 0 12px 32px; position: relative; border-top: 1px solid var(--line); color: var(--muted); }
.col li:first-child { border-top: 0; }
.col li::before { position: absolute; left: 0; top: 12px; font-weight: 800; }
.them li::before { content: "–"; color: #8FA0B2; }
.us { border: 2px solid var(--blue); box-shadow: 0 30px 60px -40px rgba(30, 123, 255, .6); }
.us li { color: var(--body); }
.us li::before { content: "✓"; color: var(--blue); }

/* ---------- checks ---------- */
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.check { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.check:hover { transform: translateY(-4px); border-color: #BCD4F5; box-shadow: 0 24px 40px -28px rgba(11, 45, 75, .45); }
.check .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--tint); color: var(--blue); font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.check p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.plan:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -40px rgba(11, 45, 75, .5); }
.plan.featured { border: 2px solid var(--blue); }
.badge { position: absolute; top: -13px; left: 28px; background: var(--blue); color: var(--white); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin-top: 10px; }
.price small { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.per { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.plan li { padding: 8px 0 8px 28px; position: relative; font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.note { margin-top: 26px; color: var(--muted); font-size: 15px; text-align: center; }

/* ---------- security ---------- */
.security { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.sec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.sec-list li { padding: 18px 20px 18px 54px; position: relative; border-radius: 14px; background: var(--light); color: var(--muted); }
.sec-list li::before { content: ""; position: absolute; left: 20px; top: 21px; width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(135deg, var(--cyan), var(--blue)); }
.sec-list b { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { margin-top: 36px; }
details { border-bottom: 1px solid var(--line); padding: 22px 0; }
summary { font-weight: 600; font-size: 18px; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-size: 24px; line-height: 1; transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 12px 0 0; }

/* ---------- sign-up ---------- */
.signup { position: relative; overflow: hidden; padding: 112px 0; background: radial-gradient(900px 500px at 85% 0%, #12457A, transparent 60%), var(--deep); color: var(--white); }
.signup h2 { color: var(--white); }
.signup-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.perks { list-style: none; padding: 0; margin: 28px 0 0; }
.perks li { padding: 8px 0 8px 30px; position: relative; color: #DCE6F0; }
.perks li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 800; }
.form { background: var(--white); color: var(--body); border-radius: 20px; padding: 32px; display: grid; gap: 16px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { font: 400 15px var(--font); padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--white); width: 100%; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 123, 255, .15); }
textarea { min-height: 96px; resize: vertical; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.form-fine { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.form-msg { display: none; padding: 14px; border-radius: 10px; font-size: 15px; }
.form-msg.ok { display: block; background: #E3F5EE; color: var(--ok); }
.form-msg.err { display: block; background: #FDEFE2; color: var(--warn); }

/* ---------- footer ---------- */
.footer { background: #071A31; padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer img { height: 30px; width: auto; }
.footer p { margin: 0; color: #8FA6BF; font-size: 14px; }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- animations ---------- */
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(-1deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-60px, 50px); } }
@keyframes chip-in { from { opacity: 0; transform: translateY(14px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes scan { 0% { transform: translateY(-50px); } 55% { transform: translateY(260px); } 100% { transform: translateY(260px); opacity: 0; } }
@keyframes check-in { 0% { opacity: 0; transform: translateX(12px); } 6%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .section, .signup { padding: 80px 0; }
  .hero-inner, .how, .security, .signup-inner, .compare { grid-template-columns: 1fr; }
  .hero-art { min-height: 360px; order: -1; }
  .plans, .checks { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .links { display: none; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 64px; }
  .plans, .checks, .row { grid-template-columns: 1fr; }
  .demo { grid-template-columns: 1fr; padding: 18px; }
  .chip { font-size: 12px; padding: 6px 11px; }
  .chip-b { left: 0; }
  .form { padding: 22px; }
  .brand img { height: 28px; }
  .nav-cta { padding: 10px 14px; font-size: 14px; white-space: nowrap; }
}

/* Respect people who turn off motion in their system settings */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .cl { opacity: 1; transform: none; }
}
