/* DocuFlow marketing site */
:root {
  --navy: #0b2a6b;
  --blue: #1f6fe0;
  --sky: #38bdf8;
  --teal: #19b7c4;
  --green: #4cc38a;
  --lime: #8bdc6a;
  --grad: linear-gradient(120deg, #1f6fe0 0%, #19b7c4 50%, #4cc38a 100%);
  --grad-text: linear-gradient(100deg, #60a5fa 0%, #22d3ee 35%, #5eead4 60%, #86efac 100%);
  --ink: #0b1220;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --dark: #050b1a;
  --dark-2: #0a1530;
  --dark-line: rgba(148, 163, 184, .14);
  --dark-text: #a7b4c8;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(11, 18, 32, .10);
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.3, 1.4, .5, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.65; font-size: 17px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: "Plus Jakarta Sans", "Inter", sans-serif; color: var(--ink); line-height: 1.12; margin: 0 0 .55em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: #a5f3fc; color: var(--ink); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section-head p { color: var(--muted); font-size: 1.15rem; }
.grad-text {
  background: var(--grad-text); background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  color: transparent; animation: gradShift 6s linear infinite;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); background: #eaf2ff; padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px rgba(31, 111, 224, .15); }
.dark .eyebrow { color: #7dd3fc; background: rgba(56, 189, 248, .1); border: 1px solid rgba(56, 189, 248, .2); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 200; }

/* Dark surfaces */
.dark { background: var(--dark); color: var(--dark-text); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .section-head p { color: var(--dark-text); }

/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 120; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .25s; will-change: transform;
}
.btn:hover { text-decoration: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--grad); background-size: 160% 100%; color: #fff; box-shadow: 0 10px 30px rgba(25, 183, 196, .35), inset 0 1px 0 rgba(255, 255, 255, .25); overflow: hidden; }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 16px 40px rgba(25, 183, 196, .45); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .05); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .1); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--teal); color: var(--blue); }
.btn-white { background: #fff; color: var(--navy); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

/* Topbar */
.topbar { background: #030712; color: #94a3b8; font-size: .84rem; border-bottom: 1px solid var(--dark-line); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar-contact, .topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar a, .topbar span { color: #94a3b8; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar svg { width: 15px; height: 15px; fill: #5eead4; flex-shrink: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; transition: background .35s, box-shadow .35s, border-color .35s; border-bottom: 1px solid transparent; }
.site-header.on-dark { background: rgba(5, 11, 26, .55); backdrop-filter: blur(16px) saturate(160%); border-bottom-color: var(--dark-line); }
.site-header.on-dark .nav-links a:not(.btn) { color: #cbd5e1; }
.site-header.on-dark .nav-links a:not(.btn):hover, .site-header.on-dark .nav-links a[aria-current="page"]:not(.btn) { color: #fff; }
.site-header.on-dark .wordmark { color: #fff; }
.site-header.on-dark .nav-toggle path { stroke: #fff; }
.site-header.scrolled { background: rgba(5, 11, 26, .94); box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 40px; height: 40px; border-radius: 11px; background: #fff; padding: 3px; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); transition: transform .5s var(--spring); }
.brand:hover .brand-logo { transform: rotate(-10deg) scale(1.08); }
.wordmark { color: var(--ink); transition: color .35s; }
.wordmark span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { position: relative; color: var(--text); font-weight: 500; font-size: .97rem; transition: color .2s; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-links a:not(.btn):hover { text-decoration: none; }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.nav-links .btn { color: #fff; padding: 10px 20px; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 110px 0 140px; margin-top: -75px; padding-top: 185px; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.aurora { position: absolute; inset: -20%; z-index: -2; filter: blur(80px); opacity: .65; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: aurora 18s ease-in-out infinite; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: 0; top: 0; background: #1d4ed8; }
.aurora i:nth-child(2) { width: 40vw; height: 40vw; right: 5%; top: 10%; background: #0e7490; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 38vw; height: 38vw; left: 30%; bottom: 0; background: #15803d; animation-delay: -12s; opacity: .7; }
.grid-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 100%); }
.hero-inner { text-align: center; max-width: 920px; margin: 0 auto; }
.hero h1 { color: #fff; margin-bottom: 24px; font-size: clamp(2.3rem, 5.4vw, 4.3rem); }
.hero .lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: #b6c2d6; max-width: 700px; margin: 0 auto; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 38px 0 26px; }
.hero-points { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0; margin: 0; color: #94a3b8; font-size: .94rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(76, 195, 138, .18); color: #86efac; font-size: .7rem; font-weight: 800; }
.badge-new { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #cbd5e1; font-size: .88rem; margin-bottom: 28px; backdrop-filter: blur(6px); }
.badge-new b { background: var(--grad); color: #fff; font-size: .72rem; padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; }
.badge-new:hover { text-decoration: none; border-color: rgba(94, 234, 212, .4); }

/* Split headline words for entrance */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .18em; margin-bottom: -.18em; }
.split-words .w > span { display: inline-block; transform: translateY(110%); animation: wordUp 1s var(--ease) forwards; animation-delay: calc(.15s + var(--wi) * 70ms); }
.split-words .w > span.grad-text { animation: wordUp 1s var(--ease) forwards, gradShift 6s linear infinite; animation-delay: calc(.15s + var(--wi) * 70ms), 0s; }
html:not(.js) .split-words .w > span { transform: none; }

.fade-in { opacity: 0; animation: fadeUp 1s var(--ease) forwards; }
.fade-in.d1 { animation-delay: .55s; } .fade-in.d2 { animation-delay: .7s; } .fade-in.d3 { animation-delay: .85s; } .fade-in.d4 { animation-delay: 1s; }

/* App mockup */
.stage { perspective: 1800px; margin: 80px auto 0; max-width: 1080px; position: relative; }
.stage::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: -40px; height: 120px; background: radial-gradient(ellipse at center, rgba(25, 183, 196, .45), transparent 70%); filter: blur(30px); z-index: -1; }
.app {
  border-radius: 20px; background: linear-gradient(180deg, rgba(15, 25, 50, .92), rgba(8, 15, 34, .96));
  border: 1px solid rgba(148, 163, 184, .2); box-shadow: 0 50px 120px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
  overflow: hidden; transform: rotateX(var(--rx, 14deg)) rotateY(var(--ry, 0deg)) scale(var(--s, .96)); transform-style: preserve-3d;
  transition: transform .5s var(--ease); opacity: 0; animation: appIn 1.4s .9s var(--ease) forwards; text-align: left;
}
.app-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(148, 163, 184, .12); }
.app-bar i { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.app-bar i:nth-child(1) { background: #f87171; } .app-bar i:nth-child(2) { background: #fbbf24; } .app-bar i:nth-child(3) { background: #4ade80; }
.app-url { margin-left: 16px; flex: 1; max-width: 360px; height: 26px; border-radius: 8px; background: rgba(148, 163, 184, .1); display: flex; align-items: center; padding: 0 12px; font-size: .74rem; color: #64748b; gap: 6px; }
.app-body { display: grid; grid-template-columns: 200px 1fr 280px; min-height: 430px; }
.app-side { border-right: 1px solid rgba(148, 163, 184, .1); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.app-side .s-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: #94a3b8; font-size: .8rem; }
.app-side .s-item.on { background: linear-gradient(90deg, rgba(31, 111, 224, .28), rgba(25, 183, 196, .12)); color: #fff; }
.app-side .s-item b { width: 16px; height: 16px; border-radius: 5px; background: rgba(148, 163, 184, .25); flex-shrink: 0; }
.app-side .s-item.on b { background: var(--grad); }
.app-main { padding: 20px; min-width: 0; }
.app-search { display: flex; align-items: center; gap: 10px; height: 40px; border-radius: 11px; border: 1px solid rgba(56, 189, 248, .35); background: rgba(56, 189, 248, .06); padding: 0 14px; color: #e2e8f0; font-size: .86rem; box-shadow: 0 0 0 4px rgba(56, 189, 248, .06); }
.app-search svg { width: 16px; height: 16px; stroke: #7dd3fc; fill: none; stroke-width: 2; flex-shrink: 0; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: #7dd3fc; vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.app-label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #64748b; margin: 18px 0 10px; font-weight: 600; }
.doc-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; border: 1px solid rgba(148, 163, 184, .08); background: rgba(148, 163, 184, .04); margin-bottom: 8px; color: #e2e8f0; font-size: .84rem; transition: background .3s, border-color .3s, transform .3s; }
.doc-row small { display: block; color: #64748b; font-size: .72rem; }
.doc-row.hit { border-color: rgba(94, 234, 212, .45); background: rgba(94, 234, 212, .08); transform: translateX(4px); }
.doc-row mark { background: rgba(250, 204, 21, .3); color: #fde68a; border-radius: 3px; padding: 0 2px; }
.ficon { width: 34px; height: 40px; border-radius: 7px; position: relative; display: grid; place-items: end center; padding-bottom: 5px; font-size: .55rem; font-weight: 800; color: #fff; letter-spacing: .03em; }
.ficon::before { content: ""; position: absolute; right: 0; top: 0; border-width: 0 10px 10px 0; border-style: solid; border-color: transparent var(--dark-2) rgba(255, 255, 255, .35) transparent; border-radius: 0 0 0 3px; }
.ficon.pdf { background: linear-gradient(160deg, #f87171, #dc2626); } .ficon.doc { background: linear-gradient(160deg, #60a5fa, #1d4ed8); }
.ficon.xls { background: linear-gradient(160deg, #4ade80, #15803d); } .ficon.img { background: linear-gradient(160deg, #c084fc, #7c3aed); }
.chip { font-size: .66rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.chip.green { background: rgba(74, 222, 128, .15); color: #86efac; } .chip.amber { background: rgba(251, 191, 36, .15); color: #fcd34d; }
.chip.blue { background: rgba(56, 189, 248, .15); color: #7dd3fc; } .chip.violet { background: rgba(192, 132, 252, .15); color: #d8b4fe; }
.app-panel { border-left: 1px solid rgba(148, 163, 184, .1); padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.sig-card { border-radius: 14px; background: #fff; padding: 14px; color: var(--ink); font-size: .78rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.sig-card .sig-line { border-bottom: 1.5px dashed #cbd5e1; height: 62px; position: relative; margin: 6px 0 8px; }
.sig-card svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sig-path { fill: none; stroke: #1d4ed8; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.signing .sig-path { animation: draw 2.4s ease-in-out forwards; }
.sig-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; }
.flow-card { border-radius: 14px; border: 1px solid rgba(148, 163, 184, .12); background: rgba(148, 163, 184, .05); padding: 14px; color: #e2e8f0; font-size: .78rem; }
.flow-card h5 { margin: 0 0 12px; font-size: .74rem; color: #94a3b8; letter-spacing: .08em; text-transform: uppercase; }
.fstep { display: flex; align-items: center; gap: 10px; padding: 6px 0; position: relative; }
.fstep + .fstep::before { content: ""; position: absolute; left: 10px; top: -8px; height: 12px; width: 2px; background: rgba(148, 163, 184, .2); }
.fstep .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(148, 163, 184, .3); display: grid; place-items: center; font-size: .65rem; transition: all .4s var(--spring); flex-shrink: 0; }
.fstep.done .dot { background: var(--green); border-color: var(--green); color: #052e16; transform: scale(1.05); }
.fstep.active .dot { border-color: var(--sky); box-shadow: 0 0 0 5px rgba(56, 189, 248, .15); animation: ring 1.6s infinite; }
.fstep .who { flex: 1; }
.fstep .st { font-size: .66rem; color: #64748b; }
.fstep.done .st { color: #86efac; } .fstep.active .st { color: #7dd3fc; }

/* Floating badges around mockup */
.float-tag { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-radius: 14px; background: rgba(255, 255, 255, .96); color: var(--ink); font-size: .82rem; font-weight: 600; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); opacity: 0; animation: popIn .8s var(--spring) forwards, bob 6s ease-in-out infinite; }
.float-tag small { display: block; color: var(--muted); font-weight: 500; font-size: .72rem; }
.float-tag .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1rem; }
.float-tag.t1 { left: -46px; top: 22%; animation-delay: 2s, 2.8s; } .float-tag.t1 .ic { background: #dcfce7; }
.float-tag.t2 { right: -48px; bottom: 34px; animation-delay: 2.3s, 3.2s; } .float-tag.t2 .ic { background: #dbeafe; }
.float-tag.t3 { left: 12%; bottom: -26px; animation-delay: 2.6s, 3.6s; } .float-tag.t3 .ic { background: #fef3c7; }

/* Marquee */
.marquee-wrap { padding: 34px 0; border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); background: #040916; overflow: hidden; }
.marquee-wrap p { text-align: center; color: #64748b; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.marquee { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-mask { mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee:hover { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--dark-line); color: #cbd5e1; font-size: .92rem; white-space: nowrap; background: rgba(148, 163, 184, .04); }
.marquee span i { font-style: normal; }

/* ---------- Bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento > * { grid-column: span 2; }
.bento .wide { grid-column: span 3; }
.bento .xwide { grid-column: span 4; }
.tile {
  position: relative; border-radius: 22px; background: #fff; border: 1px solid var(--line); padding: 30px; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; isolation: isolate;
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(25, 183, 196, .12), transparent 45%); }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(31, 111, 224, .7), transparent 50%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; pointer-events: none; }
.tile:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(11, 18, 32, .12); border-color: transparent; }
.tile:hover::before, .tile:hover::after { opacity: 1; }
.tile p { color: var(--muted); margin: 0; font-size: .98rem; }
.tile h3 { margin-top: 4px; }
.tile .demo { margin: -6px -6px 24px; height: 170px; border-radius: 16px; background: var(--bg-alt); border: 1px solid var(--line); position: relative; overflow: hidden; display: grid; place-items: center; }
.ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(135deg, #eaf2ff, #e6fbf5); transition: transform .5s var(--spring); }
.ico svg { width: 24px; height: 24px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile:hover .ico, .card:hover .ico { transform: rotate(-8deg) scale(1.12); }

/* Demo: OCR scan */
.scan-doc { width: 120px; height: 140px; background: #fff; border-radius: 10px; box-shadow: 0 10px 25px rgba(11, 18, 32, .1); padding: 16px 14px; position: relative; overflow: hidden; }
.scan-doc i { display: block; height: 7px; border-radius: 4px; background: #e2e8f0; margin-bottom: 9px; transition: background .3s; }
.scan-doc i:nth-child(2) { width: 80%; } .scan-doc i:nth-child(4) { width: 60%; } .scan-doc i:nth-child(6) { width: 70%; }
.scan-doc .beam { position: absolute; left: 0; right: 0; height: 36px; top: -36px; background: linear-gradient(180deg, transparent, rgba(25, 183, 196, .35)); border-bottom: 2px solid var(--teal); animation: scan 2.6s ease-in-out infinite; }
.scan-doc i.lit { background: linear-gradient(90deg, #a5f3fc, #bbf7d0); }
.scan-words { position: absolute; right: 16px; top: 22px; display: grid; gap: 6px; }
.scan-words span { font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #fff; color: var(--blue); box-shadow: 0 4px 10px rgba(11, 18, 32, .08); animation: wordPop 2.6s ease-in-out infinite; }
.scan-words span:nth-child(2) { animation-delay: .4s; } .scan-words span:nth-child(3) { animation-delay: .8s; }

/* Demo: versions */
.versions { display: flex; align-items: center; gap: 0; }
.versions .v { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: var(--muted); position: relative; animation: vPulse 4s ease-in-out infinite; animation-delay: calc(var(--i) * .5s); }
.versions .bar { width: 34px; height: 2px; background: linear-gradient(90deg, var(--line), var(--teal), var(--line)); background-size: 200% 100%; animation: shine 2s linear infinite; }
.versions .v.cur { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(25, 183, 196, .4); animation: none; }
.restore { position: absolute; bottom: 16px; font-size: .74rem; font-weight: 600; color: var(--blue); background: #fff; padding: 5px 12px; border-radius: 999px; box-shadow: 0 6px 14px rgba(11, 18, 32, .08); }

/* Demo: folders + tags */
.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 260px; }
.tagcloud span { font-size: .76rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; animation: floatY 5s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }

/* Demo: share link */
.share-ui { width: 82%; background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 10px 25px rgba(11, 18, 32, .08); font-size: .78rem; }
.share-link { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; color: var(--muted); overflow: hidden; white-space: nowrap; }
.share-link b { color: var(--blue); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.share-meta { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); }
.copied { color: var(--green); font-weight: 700; animation: copied 3s ease-in-out infinite; }

/* Demo: roles */
.avatars { display: flex; }
.avatars span { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; margin-left: -10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .8rem; box-shadow: 0 6px 14px rgba(11, 18, 32, .12); transition: transform .4s var(--spring); }
.tile:hover .avatars span { transform: translateY(-6px); }
.tile:hover .avatars span:nth-child(2) { transition-delay: .05s; } .tile:hover .avatars span:nth-child(3) { transition-delay: .1s; }
.tile:hover .avatars span:nth-child(4) { transition-delay: .15s; } .tile:hover .avatars span:nth-child(5) { transition-delay: .2s; }

/* Demo: activity feed */
.feed { width: 88%; display: grid; gap: 7px; }
.feed div { display: flex; align-items: center; gap: 9px; background: #fff; border-radius: 9px; padding: 7px 10px; font-size: .74rem; color: var(--text); box-shadow: 0 3px 8px rgba(11, 18, 32, .05); animation: feedIn 6s ease-in-out infinite; animation-delay: calc(var(--i) * .6s); }
.feed b { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Demo: API */
.code { width: 90%; background: #0b1220; border-radius: 12px; padding: 14px 16px; font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: .72rem; color: #94a3b8; line-height: 1.7; text-align: left; box-shadow: 0 10px 25px rgba(11, 18, 32, .2); }
.code .k { color: #7dd3fc; } .code .s { color: #86efac; } .code .p { color: #f9a8d4; }

/* ---------- Sticky storyboard (e-signatures) ---------- */
.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.story-steps { display: grid; gap: 0; }
.story-step { padding: 34px 0 34px 34px; border-left: 2px solid var(--dark-line); position: relative; min-height: 40vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transition: opacity .5s; }
.story-step::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease); }
.story-step.active { opacity: 1; }
.story-step.active::before { transform: scaleY(1); }
.story-step .num { font-family: "Plus Jakarta Sans", sans-serif; font-size: .8rem; font-weight: 800; color: var(--teal); letter-spacing: .1em; margin-bottom: 10px; }
.story-step h3 { font-size: 1.6rem; }
.story-step p { color: var(--dark-text); margin: 0; }
.story-visual { position: sticky; top: 120px; height: 520px; border-radius: 26px; background: linear-gradient(160deg, #0d1b3d, #071026); border: 1px solid var(--dark-line); overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, .45); }
.story-visual::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(25, 183, 196, .35), transparent 70%); top: -120px; right: -100px; filter: blur(20px); }
.scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 40px; opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.scene.on { opacity: 1; transform: none; }
.paper { width: 300px; background: #fff; border-radius: 14px; padding: 26px 24px; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); position: relative; color: var(--ink); font-size: .8rem; }
.paper .ln { height: 7px; border-radius: 4px; background: #e2e8f0; margin-bottom: 9px; }
.paper .ln.s { width: 60%; } .paper .ln.m { width: 82%; }
.paper h6 { margin: 0 0 14px; font-size: .9rem; font-family: "Plus Jakarta Sans", sans-serif; }
.field { position: absolute; border: 2px dashed; border-radius: 8px; font-size: .66rem; font-weight: 700; display: grid; place-items: center; padding: 6px 10px; }
.field.sig { border-color: #1f6fe0; color: #1f6fe0; background: rgba(31, 111, 224, .08); width: 130px; height: 42px; left: 24px; bottom: 30px; }
.field.date { border-color: #0d9488; color: #0d9488; background: rgba(13, 148, 136, .08); right: 24px; bottom: 36px; }
.field.ini { border-color: #9333ea; color: #9333ea; background: rgba(147, 51, 234, .08); right: 24px; top: 70px; }
.scene.on .field { animation: dropIn .7s var(--spring) both; }
.scene.on .field.date { animation-delay: .35s; } .scene.on .field.ini { animation-delay: .7s; }
.cursor { position: absolute; width: 22px; height: 22px; z-index: 3; }
.scene.on .cursor { animation: dragCursor 2.4s var(--ease) both; }
.mail { width: 330px; display: grid; gap: 12px; }
.mail-item { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--dark-line); border-radius: 14px; padding: 13px 15px; color: #e2e8f0; font-size: .84rem; }
.mail-item small { display: block; color: #64748b; font-size: .72rem; }
.mail-item .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: .8rem; flex-shrink: 0; }
.mail-item .chip { margin-left: auto; }
.scene.on .mail-item { animation: slideIn .7s var(--ease) both; }
.scene.on .mail-item:nth-child(2) { animation-delay: .5s; } .scene.on .mail-item:nth-child(3) { animation-delay: 1s; }
.order-arrow { color: #475569; text-align: center; font-size: .8rem; margin: -4px 0; }
.big-sig { width: 340px; background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); color: var(--ink); }
.big-sig .pad { height: 120px; border: 1.5px dashed #cbd5e1; border-radius: 10px; position: relative; margin: 12px 0 14px; background: repeating-linear-gradient(0deg, transparent, transparent 29px, #f1f5f9 30px); }
.big-sig svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene.on .big-sig .sig-path { animation: draw 2.6s .3s ease-in-out forwards; }
.big-sig .row { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--muted); }
.cert { width: 330px; background: #fff; border-radius: 16px; padding: 22px; color: var(--ink); box-shadow: 0 30px 60px rgba(0, 0, 0, .4); font-size: .76rem; position: relative; }
.cert h6 { margin: 0 0 4px; font-size: .95rem; font-family: "Plus Jakarta Sans", sans-serif; }
.cert .sub { color: var(--muted); margin-bottom: 14px; }
.cert-row { display: grid; grid-template-columns: 1fr auto; gap: 4px; padding: 9px 0; border-top: 1px solid var(--line); }
.cert-row span { color: var(--muted); }
.seal { position: absolute; right: -18px; top: -18px; width: 70px; height: 70px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 1.6rem; box-shadow: 0 10px 25px rgba(25, 183, 196, .5); }
.scene.on .seal { animation: stamp .8s .4s var(--spring) both; }
.scene.on .cert-row { animation: fadeUp .5s var(--ease) both; animation-delay: calc(.2s + var(--i) * .15s); }

/* ---------- Generic cards / splits ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfe3fb; }
.card p { color: var(--muted); margin: 0; }
.card ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.dark .card { background: rgba(148, 163, 184, .05); border-color: var(--dark-line); }
.dark .card:hover { border-color: rgba(94, 234, 212, .35); box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.dark .card p { color: var(--dark-text); }
.dark .ico { background: linear-gradient(135deg, rgba(31, 111, 224, .2), rgba(76, 195, 138, .15)); }
.dark .ico svg { stroke: #7dd3fc; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split + .split { margin-top: 120px; }
.split.reverse > :first-child { order: 2; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.checklist li { padding-left: 34px; position: relative; margin-bottom: 12px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #dbeafe, #dcfce7); color: var(--blue); font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.dark .checklist li::before { background: rgba(76, 195, 138, .15); color: #86efac; }

/* Workflow visual */
.wf { border-radius: 24px; background: linear-gradient(160deg, #eef5ff, #ecfdf5); padding: 40px; position: relative; overflow: hidden; }
.wf-track { display: grid; gap: 16px; position: relative; }
.wf-track::before { content: ""; position: absolute; left: 27px; top: 20px; bottom: 20px; width: 2px; background: #dbe4ef; }
.wf-track::after { content: ""; position: absolute; left: 27px; top: 20px; width: 2px; height: calc((100% - 40px) * var(--wp, 0)); background: var(--grad); transition: height .8s var(--ease); }
.wf-item { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 14px; padding: 14px 18px 14px 14px; box-shadow: 0 8px 20px rgba(11, 18, 32, .06); position: relative; z-index: 1; transition: transform .5s var(--spring), box-shadow .5s; }
.wf-item .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e2e8f0; color: var(--muted); font-weight: 800; font-size: .78rem; transition: all .5s var(--spring); flex-shrink: 0; }
.wf-item.done .n { background: var(--green); color: #fff; }
.wf-item.active { transform: scale(1.03); box-shadow: 0 16px 34px rgba(31, 111, 224, .18); }
.wf-item.active .n { background: var(--blue); color: #fff; box-shadow: 0 0 0 6px rgba(31, 111, 224, .15); }
.wf-item .t { flex: 1; font-size: .95rem; color: var(--ink); font-weight: 600; }
.wf .chip.green { background: #dcfce7; color: #15803d; } .wf .chip.blue { background: #dbeafe; color: #1d4ed8; } .wf .chip.amber { background: #fef3c7; color: #b45309; }
.wf-item .t small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }

/* Phone mockup */
.phone-wrap { display: grid; place-items: center; position: relative; }
.phone-wrap::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: conic-gradient(from 0deg, #1f6fe0, #19b7c4, #4cc38a, #1f6fe0); filter: blur(70px); opacity: .35; animation: spin 14s linear infinite; }
.phone { width: 270px; height: 550px; border-radius: 44px; background: #0b1220; padding: 12px; box-shadow: 0 50px 100px rgba(0, 0, 0, .5), inset 0 0 0 2px #1e293b; position: relative; animation: bob 7s ease-in-out infinite; }
.phone-screen { width: 100%; height: 100%; border-radius: 34px; background: #0f172a; overflow: hidden; position: relative; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 20px; background: #000; z-index: 3; }
.cam-view { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, #334155, #0f172a 70%); }
.cam-doc { position: absolute; left: 40px; right: 40px; top: 100px; height: 230px; background: #fff; border-radius: 6px; transform: rotate(-4deg); padding: 22px 18px; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
.cam-doc i { display: block; height: 6px; border-radius: 3px; background: #e2e8f0; margin-bottom: 9px; }
.cam-doc i:nth-child(3n) { width: 70%; }
.cam-frame { position: absolute; left: 30px; right: 30px; top: 88px; height: 254px; border-radius: 10px; }
.cam-frame b { position: absolute; width: 26px; height: 26px; border-color: #5eead4; border-style: solid; }
.cam-frame b:nth-child(1) { left: 0; top: 0; border-width: 3px 0 0 3px; border-radius: 8px 0 0 0; }
.cam-frame b:nth-child(2) { right: 0; top: 0; border-width: 3px 3px 0 0; border-radius: 0 8px 0 0; }
.cam-frame b:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 3px 3px; border-radius: 0 0 0 8px; }
.cam-frame b:nth-child(4) { right: 0; bottom: 0; border-width: 0 3px 3px 0; border-radius: 0 0 8px 0; }
.cam-frame { animation: lockOn 4s ease-in-out infinite; }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: flash 4s ease-in-out infinite; }
.cam-btn { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); width: 62px; height: 62px; border-radius: 50%; border: 4px solid #fff; background: rgba(255, 255, 255, .25); }
.cam-toast { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 112px; background: rgba(255, 255, 255, .96); border-radius: 14px; padding: 10px 12px; font-size: .74rem; color: var(--ink); display: flex; gap: 10px; align-items: center; animation: toast 4s ease-in-out infinite; }
.cam-toast b { width: 28px; height: 28px; border-radius: 8px; background: #dcfce7; display: grid; place-items: center; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-box { text-align: center; padding: 34px 20px; border-radius: 22px; background: rgba(148, 163, 184, .05); border: 1px solid var(--dark-line); }
.stat-box .big { font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; line-height: 1; margin-bottom: 10px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-box p { margin: 0; color: var(--dark-text); font-size: .95rem; }

/* Industries */
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tags span { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 11px 20px; font-weight: 500; transition: all .3s var(--ease); }
.tags span:hover { border-color: transparent; color: #fff; background: var(--grad); transform: translateY(-3px); box-shadow: 0 12px 24px rgba(25, 183, 196, .3); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding: 34px 30px 30px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: 18px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step p { color: var(--muted); margin: 0; }

/* FAQ */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; background: #fff; transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: #bfdbfe; box-shadow: 0 14px 30px rgba(31, 111, 224, .08); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 1.06rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #eff6ff; color: var(--blue); font-size: 1.3rem; transition: transform .35s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--grad); color: #fff; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* CTA */
.cta { position: relative; overflow: hidden; border-radius: 30px; padding: 90px 40px; text-align: center; background: var(--dark); isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: -50%; z-index: -1; background: conic-gradient(from 0deg at 50% 50%, #1f6fe0, #19b7c4, #4cc38a, #0b2a6b, #1f6fe0); animation: spin 16s linear infinite; filter: blur(60px); opacity: .7; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(5, 11, 26, .35), rgba(5, 11, 26, .85)); }
.cta h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.4rem); }
.cta p { color: #cbd5e1; font-size: 1.15rem; max-width: 620px; margin: 0 auto 34px; }
.cta .hero-actions { margin: 0; }

/* Inner page hero */
.page-hero { position: relative; overflow: hidden; margin-top: -75px; padding: 190px 0 110px; text-align: center; isolation: isolate; }
.page-hero p { color: #b6c2d6; font-size: 1.2rem; max-width: 740px; margin: 0 auto; }
.page-hero h1 { color: #fff; }
.breadcrumb { font-size: .9rem; color: #64748b; margin-bottom: 18px; }
.breadcrumb a { color: #94a3b8; }

/* Feature detail list (features page) */
.fgroup { display: grid; grid-template-columns: 340px 1fr; gap: 56px; padding: 70px 0; border-top: 1px solid var(--line); }
.fgroup:first-child { border-top: 0; padding-top: 0; }
.fgroup-head { position: sticky; top: 110px; align-self: start; }
.fgroup-head p { color: var(--muted); }
.fgroup-head .ico { width: 58px; height: 58px; border-radius: 16px; }
.fitems { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fitem { padding: 22px 24px; border-radius: 16px; border: 1px solid var(--line); background: #fff; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.fitem:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe3fb; }
.fitem h4 { font-size: 1.02rem; margin-bottom: 6px; }
.fitem p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Table */
.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--bg-alt); color: var(--ink); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--green); font-weight: 700; }

/* Forms */
.form { display: grid; gap: 18px; position: relative; padding: 36px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(11, 18, 32, .1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 7px; font-size: .93rem; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 13px 15px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(25, 183, 196, .18); }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
.contact-info { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-info li { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: #fff; transition: transform .3s var(--ease), box-shadow .3s; }
.contact-info li:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.contact-info .ico { margin: 0; width: 44px; height: 44px; flex-shrink: 0; }
.contact-info strong { display: block; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 12px; font-weight: 500; animation: fadeUp .4s both; }
.form-status.ok { background: #dcfce7; color: #166534; }
.form-status.err { background: #fee2e2; color: #991b1b; }
button[disabled] { opacity: .7; cursor: wait; }

/* Footer */
.site-footer { background: #030712; color: #8291a8; padding: 80px 0 30px; font-size: .95rem; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(25, 183, 196, .6), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #8291a8; transition: color .2s; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .brand { margin-bottom: 16px; }
.site-footer .wordmark { color: #fff; }
.footer-bottom { border-top: 1px solid #111c33; margin-top: 54px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-word { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: clamp(4rem, 15vw, 13rem); line-height: .8; letter-spacing: -.05em; text-align: center; margin: 60px 0 -20px; background: linear-gradient(180deg, rgba(148, 163, 184, .14), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }

/* Back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; font-size: 1.2rem; cursor: pointer; box-shadow: 0 10px 25px rgba(25, 183, 196, .4); opacity: 0; transform: translateY(20px) scale(.8); transition: all .4s var(--spring); pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* Cursor glow (desktop only, follows the pointer) */
.cursor-glow { position: fixed; left: 0; top: 0; width: 500px; height: 500px; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(circle, rgba(25, 183, 196, .09), transparent 60%); transform: translate(var(--cx, -999px), var(--cy, -999px)) translate(-50%, -50%); transition: opacity .3s; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal="up"], .js [data-reveal=""] { transform: translateY(46px); }
.js [data-reveal="left"] { transform: translateX(-60px); }
.js [data-reveal="right"] { transform: translateX(60px); }
.js [data-reveal="zoom"] { transform: scale(.88); filter: blur(8px); }
.js [data-reveal="blur"] { filter: blur(14px); transform: translateY(20px); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
.js .tile[data-reveal].in:hover, .js .card[data-reveal].in:hover { transform: translateY(-6px); }

/* ---------- Keyframes ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes wordUp { to { transform: none; } }
@keyframes appIn { from { opacity: 0; transform: rotateX(30deg) translateY(80px) scale(.9); } to { opacity: 1; } }
@keyframes aurora { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(8vw, 6vh) scale(1.15); } 66% { transform: translate(-6vw, 4vh) scale(.9); } }
@keyframes gradShift { to { background-position: 200% center; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, .45); } 100% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); } }
@keyframes popIn { from { opacity: 0; transform: scale(.6) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scan { 0% { top: -36px; } 60%, 100% { top: 140px; } }
@keyframes wordPop { 0%, 30% { opacity: 0; transform: translateX(-10px) scale(.8); } 45%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes vPulse { 0%, 100% { border-color: var(--line); } 50% { border-color: var(--teal); color: var(--blue); } }
@keyframes shine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes copied { 0%, 40% { opacity: 0; } 50%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes feedIn { 0% { opacity: 0; transform: translateY(10px); } 10%, 80% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-30px) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes dragCursor { 0% { left: 70%; top: 10%; opacity: 0; } 15% { opacity: 1; } 60% { left: 35%; top: 74%; } 100% { left: 38%; top: 78%; opacity: 0; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes stamp { from { opacity: 0; transform: scale(2.4) rotate(-30deg); } to { opacity: 1; transform: none; } }
@keyframes lockOn { 0%, 20% { transform: scale(1.12); opacity: .6; } 45%, 100% { transform: scale(1); opacity: 1; } }
@keyframes flash { 0%, 52% { opacity: 0; } 55% { opacity: .85; } 65%, 100% { opacity: 0; } }
@keyframes toast { 0%, 58% { opacity: 0; transform: translateY(20px); } 68%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .split-words .w > span, .fade-in, .app, .float-tag { opacity: 1; transform: none; }
  .sig-path { stroke-dashoffset: 0; }
  .hero-canvas, .cursor-glow { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .app-body { grid-template-columns: 170px 1fr; }
  .app-panel { display: none; }
  .float-tag.t1 { left: 0; } .float-tag.t2 { right: 0; }
}
@media (max-width: 960px) {
  .split, .grid-2, .story, .fgroup { grid-template-columns: 1fr; }
  .split { gap: 48px; }
  .split.reverse > :first-child { order: 0; }
  .grid-3, .grid-4, .stats { grid-template-columns: 1fr 1fr; }
  .bento > *, .bento .wide, .bento .xwide { grid-column: span 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .story { gap: 24px; }
  .story-visual { top: 84px; height: 320px; order: -1; z-index: 2; }
  .story-step { min-height: 55vh; }
  .scene, .scene.on { transform: scale(.82); }
  .fgroup-head { position: static; }
  .topbar-hide-md { display: none !important; }
  .topbar-inner { justify-content: center; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .grid-3, .grid-4, .form-row, .footer-grid, .fitems { grid-template-columns: 1fr; }
  .bento > *, .bento .wide, .bento .xwide { grid-column: span 6; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; box-shadow: 0 20px 40px rgba(0, 0, 0, .15); }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 0; }
  .site-header.on-dark .nav-links a:not(.btn) { color: var(--text); }
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app-side { display: none; }
  .float-tag { display: none; }
  .stage { margin-top: 56px; }
  .cta { padding: 60px 22px; }
  .form { padding: 24px; }
  .topbar-hide-sm { display: none !important; }
  .topbar-contact { gap: 16px; }
  .scene, .scene.on { padding: 10px; transform: scale(.74); }
  .to-top { right: 14px; bottom: 14px; }
}
@media (hover: none) { .cursor-glow { display: none; } }
