/* Hathigen design system */
:root {
  --bg-0: #05070f; --bg-1: #070b1a; --bg-2: #0d1330;
  --glass: rgba(255,255,255,.055); --glass-2: rgba(255,255,255,.09); --line: rgba(255,255,255,.12); --line-2: rgba(255,255,255,.22);
  --text: #eef1ff; --muted: #a3abd1; --dim: #737ca6;
  --violet: #7c5cff; --blue: #5b8cff; --cyan: #22d3ee; --pink: #f472b6; --green: #34d399; --amber: #fbbf24;
  --accent: var(--violet);
  --r-lg: 24px; --r-md: 16px; --r-sm: 10px;
  --blur: 18px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: min(1180px, 92vw);
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); color: var(--text); line-height: 1.65; font-size: 16px; min-height: 100vh; overflow-x: hidden;
  background:
    radial-gradient(1100px 700px at 8% -8%, #1b1f5c 0%, transparent 60%),
    radial-gradient(900px 650px at 105% 6%, #0f3d52 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2) 60%, var(--bg-1));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
body::before { /* fine grain for depth */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(124,92,255,.45); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--violet); border-radius: 10px; }
.skip:focus { left: 12px; }

.orb { position: fixed; border-radius: 50%; filter: blur(90px); opacity: .5; z-index: -2; animation: float 20s ease-in-out infinite; pointer-events: none; }
.orb.o1 { width: 440px; height: 440px; background: var(--violet); top: 6%; left: -140px; }
.orb.o2 { width: 380px; height: 380px; background: var(--cyan); top: 48%; right: -120px; animation-delay: -7s; opacity: .4; }
.orb.o3 { width: 320px; height: 320px; background: var(--pink); bottom: -100px; left: 38%; animation-delay: -13s; opacity: .28; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-50px) scale(1.08); } }

/* layout */
.wrap { width: var(--wrap); margin: 0 auto; }
.section { padding: clamp(80px, 11vw, 130px) 0; position: relative; }
.section.tight { padding-top: 40px; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 .75rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.section-head.center .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.025em; line-height: 1.08; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin: 16px 0 16px; }
h3 { font-size: 1.25rem; line-height: 1.25; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 680px; }
.section-head.center .lead { margin: 0 auto; }
.grad { background: linear-gradient(92deg, #b6a2ff, var(--cyan) 50%, #f9a8d4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* glass */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  backdrop-filter: blur(var(--blur)) saturate(140%); -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.1);
}
.glow-border { position: relative; }
.glow-border::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(182,162,255,.6), rgba(34,211,238,.15) 40%, transparent 60%, rgba(244,114,182,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font: 600 .95rem/1 var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--violet), var(--blue)); box-shadow: 0 10px 30px -8px rgba(124,92,255,.7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(124,92,255,.85), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.06); border-color: var(--line); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: var(--line-2); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--text); }
.link-arrow svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--cyan); }
.link-arrow:hover svg { transform: translateX(4px); }

/* nav */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); width: min(1220px, 95vw); z-index: 60; border-radius: 999px; padding: 10px 10px 10px 22px; display: flex; align-items: center; gap: 20px; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(10,14,36,.72); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.12rem/1 var(--display); letter-spacing: -.02em; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; font: 800 1rem/1 var(--display); background: conic-gradient(from 210deg, var(--violet), var(--cyan), var(--pink), var(--violet)); box-shadow: 0 0 22px rgba(124,92,255,.55), inset 0 0 0 1px rgba(255,255,255,.25); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin-left: auto; }
.nav-links > li > a, .nav-links > li > button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font: 500 .92rem/1 var(--font); background: none; border: 0; cursor: pointer; transition: color .2s, background .2s; }
.nav-links > li > a:hover, .nav-links > li > button:hover, .nav-links > li > a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.07); }
.nav-links svg { width: 14px; height: 14px; transition: transform .2s; }
.has-menu { position: relative; }
.menu { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px); width: 560px; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s; background: rgba(12,16,40,.92); }
.has-menu:hover .menu, .has-menu:focus-within .menu, .has-menu.open .menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.has-menu:hover > button svg, .has-menu.open > button svg { transform: rotate(180deg); }
.menu a { display: flex; gap: 12px; padding: 12px; border-radius: 14px; text-decoration: none; transition: background .2s; }
.menu a:hover { background: rgba(255,255,255,.07); }
.menu .mi { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.menu .mi svg { width: 18px; height: 18px; }
.menu b { display: block; font-size: .92rem; }
.menu small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; margin-top: 2px; }
.nav-cta { margin-left: 8px; }
.burger { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text); cursor: pointer; place-items: center; }
.burger svg { width: 20px; height: 20px; }
.mobile-menu { display: none; }

/* hero */
.hero { padding-top: clamp(140px, 18vw, 190px); padding-bottom: 60px; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; font-size: .84rem; color: var(--muted); text-decoration: none; }
.badge .pill { padding: 3px 9px; border-radius: 999px; font: 600 .7rem/1.4 var(--mono); letter-spacing: .06em; color: #0b1026; background: linear-gradient(90deg, var(--cyan), #a7f3d0); }
.hero h1 { margin: 24px 0 22px; }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.proof { display: flex; gap: clamp(20px, 4vw, 44px); margin-top: 46px; flex-wrap: wrap; }
.proof div { font-size: .84rem; color: var(--muted); }
.proof b { display: block; font: 700 1.7rem/1.1 var(--display); color: var(--text); letter-spacing: -.02em; }

.window { overflow: hidden; transform: perspective(1500px) rotateY(-9deg) rotateX(4deg); transition: transform .8s var(--ease); }
.window:hover { transform: perspective(1500px) rotateY(0) rotateX(0); }
.win-bar { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); align-items: center; background: rgba(255,255,255,.03); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.win-bar i:nth-child(1) { background: #ff5f57; } .win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-bar small { margin-left: 12px; color: var(--dim); font: 500 .74rem var(--mono); }
.win-body { display: grid; grid-template-columns: 62px 1fr; min-height: 360px; }
.win-side { border-right: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.win-side i { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.07); display: block; }
.win-side i.on { background: linear-gradient(135deg, var(--violet), var(--cyan)); box-shadow: 0 0 16px rgba(124,92,255,.5); }
.win-main { padding: 18px; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); align-content: start; }
.kpi { padding: 13px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
.kpi small { color: var(--muted); font-size: .72rem; } .kpi b { display: block; font: 700 1.35rem/1.2 var(--display); }
.kpi em { font: 600 .7rem var(--mono); font-style: normal; color: var(--green); }
.bars { grid-column: span 2; height: 150px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); display: flex; align-items: flex-end; gap: 8px; padding: 16px; }
.bars span { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--cyan), var(--violet)); opacity: .85; transform-origin: bottom; animation: grow 3.2s ease-in-out infinite alternate; }
.bars span:nth-child(odd) { animation-delay: -1.2s; } .bars span:nth-child(3n) { animation-delay: -2s; }
@keyframes grow { from { transform: scaleY(.55); } to { transform: scaleY(1); } }

/* marquee strip */
.strip { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: rgba(255,255,255,.02); }
.strip-inner { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.strip span { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font: 500 .95rem var(--font); white-space: nowrap; }
.strip span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 10px var(--violet); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* principles */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.tile { padding: 26px; }
.tile h3 { margin: 18px 0 8px; font-size: 1.12rem; }
.tile p { color: var(--muted); font-size: .93rem; }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--c, var(--cyan)); background: color-mix(in srgb, var(--c, var(--cyan)) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c, var(--cyan)) 40%, transparent); box-shadow: 0 0 24px -6px color-mix(in srgb, var(--c, var(--cyan)) 70%, transparent); }
.ico svg { width: 22px; height: 22px; }
.tile:hover .ico svg { animation: wiggle .6s var(--ease); }
@keyframes wiggle { 30% { transform: rotate(-10deg) scale(1.1); } 60% { transform: rotate(8deg) scale(1.05); } }

/* product showcase (home) */
.showcase { display: grid; gap: 26px; }
.prod { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 56px); padding: clamp(24px, 3vw, 40px); align-items: center; overflow: hidden; }
.prod:nth-child(even) .prod-visual { order: 2; }
.prod-tag { display: inline-flex; align-items: center; gap: 8px; font: 600 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.prod-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.prod h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 14px 0 8px; }
.prod .pitch { font-weight: 600; color: var(--c); margin-bottom: 12px; }
.prod p { color: var(--muted); }
.checks { list-style: none; display: grid; gap: 10px; margin: 20px 0 26px; }
.checks li { display: flex; gap: 12px; color: #d4d9f5; font-size: .94rem; align-items: flex-start; }
.checks li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--c, var(--cyan)); }
.js .reveal .checks li { opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in .checks li { opacity: 1; transform: none; }
.reveal.in .checks li:nth-child(2) { transition-delay: .08s; } .reveal.in .checks li:nth-child(3) { transition-delay: .16s; }
.reveal.in .checks li:nth-child(4) { transition-delay: .24s; } .reveal.in .checks li:nth-child(5) { transition-delay: .32s; } .reveal.in .checks li:nth-child(6) { transition-delay: .4s; }
.prod-links { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* stage visuals */
.stage { border-radius: var(--r-md); position: relative; overflow: hidden; background: radial-gradient(400px 220px at 70% 0%, color-mix(in srgb, var(--c, var(--violet)) 22%, transparent), transparent 70%), rgba(5,8,25,.55); border: 1px solid rgba(255,255,255,.09); aspect-ratio: 2 / 1; }
.stage svg { width: 100%; height: 100%; }
.stage .lbl { font: 600 9px var(--mono); fill: #8f98c4; letter-spacing: .04em; }
.stage-cap { position: absolute; left: 14px; bottom: 12px; font: 600 .68rem var(--mono); color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }

/* --- animations used inside stages --- */
.lims-step { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.16); }
.lims-dot { offset-path: path("M 20 85 L 320 85"); animation: lane 6s linear infinite; }
.lims-dot.d2 { animation-delay: -1.5s; } .lims-dot.d3 { animation-delay: -3s; } .lims-dot.d4 { animation-delay: -4.5s; }
@keyframes lane { 0% { offset-distance: 0%; opacity: 0; } 8%, 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.draw-tick { stroke-dasharray: 22; stroke-dashoffset: 22; animation: tick 6s ease-in-out infinite; }
@keyframes tick { 0%, 70% { stroke-dashoffset: 22; } 80%, 100% { stroke-dashoffset: 0; } }
.gp-mail { animation: fly 5s ease-in-out infinite; }
@keyframes fly { 0% { transform: translate(0,0) scale(1); opacity: 1; } 45% { transform: translate(150px,40px) scale(.6); opacity: 1; } 55%, 100% { transform: translate(160px,44px) scale(.4); opacity: 0; } }
.gp-bar { transform-box: fill-box; transform-origin: left; animation: barIn 5s ease-in-out infinite; }
.gp-bar.b2 { animation-delay: .3s; } .gp-bar.b3 { animation-delay: .6s; } .gp-bar.new { animation-name: barNew; }
@keyframes barIn { 0% { transform: scaleX(.2); } 30%, 100% { transform: scaleX(1); } }
@keyframes barNew { 0%, 50% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
.gp-bell { transform-box: fill-box; transform-origin: top center; animation: ring 5s ease-in-out infinite; }
@keyframes ring { 0%, 72%, 100% { transform: rotate(0); } 76% { transform: rotate(18deg); } 80% { transform: rotate(-16deg); } 84% { transform: rotate(10deg); } 88% { transform: rotate(0); } }
.wp-card { animation: drop 6s ease-in-out infinite; transform-box: fill-box; }
.wp-card.c2 { animation-delay: .4s; } .wp-card.c3 { animation-delay: .8s; } .wp-card.c4 { animation-delay: 1.2s; } .wp-card.c5 { animation-delay: 1.6s; } .wp-card.c6 { animation-delay: 2s; }
@keyframes drop { 0% { transform: translateY(-40px); opacity: 0; } 12%, 85% { transform: none; opacity: 1; } 100% { opacity: 0; } }
.wp-search { stroke-dasharray: 160; stroke-dashoffset: 160; animation: type 6s steps(16) infinite; }
@keyframes type { 0%, 40% { stroke-dashoffset: 160; } 70%, 100% { stroke-dashoffset: 0; } }
.wp-cursor { animation: cur 6s ease-in-out infinite; }
@keyframes cur { 0%, 60% { transform: translate(0,0); } 75%, 100% { transform: translate(-96px,-6px); } }
.ps-curve { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 1; }
.ps-sat { fill: none; stroke: var(--cyan); stroke-width: 2; }
.ps-proc { fill: none; stroke: #f9a8d4; stroke-width: 2.5; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 5s ease-in-out infinite; }
@keyframes draw { 0% { stroke-dashoffset: 260; } 60%, 100% { stroke-dashoffset: 0; } }
.pop { animation: pop 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.pop.p2 { animation-delay: .9s; } .pop.p3 { animation-delay: 1.8s; }
@keyframes pop { 0%, 10% { transform: scale(0); } 20%, 100% { transform: scale(1); } }
.tip { animation: tipfade 5s ease-in-out infinite; }
@keyframes tipfade { 0%, 60% { opacity: 0; } 70%, 95% { opacity: 1; } 100% { opacity: 0; } }
.doe-pt { animation: pop 6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.doe-fit { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-dasharray: 300; stroke-dashoffset: 300; animation: fit 6s ease-in-out infinite; }
@keyframes fit { 0%, 35% { stroke-dashoffset: 300; } 70%, 100% { stroke-dashoffset: 0; } }
.doe-opt { animation: glow 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes glow { 0%, 70% { opacity: 0; transform: scale(.4); } 80% { opacity: 1; transform: scale(1.3); } 90%, 100% { opacity: 1; transform: scale(1); } }
.pipe { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 8; stroke-linecap: round; }
.flow { fill: none; stroke: var(--cyan); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 10; animation: flowing 1.2s linear infinite; }
.flow.alt { stroke: var(--green); }
.flow.switch { animation: flowing 1.2s linear infinite, flowSwitch 6s steps(1) infinite; }
@keyframes flowing { to { stroke-dashoffset: -36; } }
@keyframes flowSwitch { 0% { opacity: 1; } 50% { opacity: .07; } }
.valve { transform-box: fill-box; transform-origin: center; animation: turn 6s ease-in-out infinite; }
@keyframes turn { 0%, 45% { transform: rotate(0); } 50%, 95% { transform: rotate(90deg); } 100% { transform: rotate(0); } }
.air { animation: airmove 2.6s linear infinite; }
.air.a2 { animation-delay: -.9s; } .air.a3 { animation-delay: -1.7s; } .air.a4 { animation-delay: -.4s; } .air.a5 { animation-delay: -1.3s; } .air.a6 { animation-delay: -2.1s; }
@keyframes airmove { from { transform: translateX(0); opacity: 0; } 10%, 90% { opacity: 1; } to { transform: translateX(300px); opacity: 0; } }
.xl-bar { transform-box: fill-box; transform-origin: bottom; animation: grow 2.4s ease-in-out infinite alternate; }
.xl-bar.x2 { animation-delay: -.8s; } .xl-bar.x3 { animation-delay: -1.6s; }
.xl-cell { animation: cellflash 4s ease-in-out infinite; }
.xl-cell.k2 { animation-delay: 1.3s; } .xl-cell.k3 { animation-delay: 2.6s; }
@keyframes cellflash { 0%, 100% { fill: rgba(255,255,255,.06); } 10%, 25% { fill: rgba(52,211,153,.45); } }
.spin { transform-box: fill-box; transform-origin: center; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pulse-ring { transform-box: fill-box; transform-origin: center; animation: ringout 2.4s ease-out infinite; }
@keyframes ringout { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }

/* product page */
.p-hero { padding-top: clamp(140px, 17vw, 180px); padding-bottom: 40px; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 70px); align-items: center; }
.crumbs { display: flex; gap: 8px; align-items: center; font: 500 .82rem var(--mono); color: var(--dim); margin-bottom: 18px; }
.crumbs a { text-decoration: none; color: var(--muted); } .crumbs a:hover { color: var(--text); }
.p-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); margin: 18px 0 14px; }
.p-hero .pitch { font: 600 clamp(1.1rem, 1.8vw, 1.35rem)/1.4 var(--display); color: var(--c); margin-bottom: 16px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 30px; }
.facts div { padding: 22px 24px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts b { display: block; font: 700 1.25rem/1.25 var(--display); }
.facts small { color: var(--muted); font-size: .84rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 26px; transition: transform .35s var(--ease), border-color .35s; }
.feature:hover { transform: translateY(-4px); border-color: var(--line-2); }
.feature h3 { margin: 18px 0 8px; font-size: 1.08rem; }
.feature p { color: var(--muted); font-size: .92rem; }
.flowline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.flowline::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px; background: linear-gradient(90deg, var(--violet), var(--cyan), var(--pink)); opacity: .35; }
.flowline::after { content: ""; position: absolute; top: 22px; left: 6%; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); animation: travel 5s ease-in-out infinite; }
@keyframes travel { 0% { left: 6%; } 100% { left: calc(94% - 12px); } }
.flowstep { position: relative; text-align: center; padding: 0 6px; }
.flowstep .n { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem var(--mono); background: var(--bg-2); border: 1px solid var(--line-2); position: relative; z-index: 1; }
.flowstep h3 { font-size: 1.02rem; margin-bottom: 6px; }
.flowstep p { color: var(--muted); font-size: .88rem; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.compare-wrap { overflow-x: auto; padding: 0; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: middle; }
.compare thead th { font: 600 .78rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.03); }
.compare thead th.us { color: var(--text); }
.compare td.us { background: color-mix(in srgb, var(--c, var(--violet)) 9%, transparent); font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }
.compare .y { color: var(--green); } .compare .n { color: var(--dim); } .compare .p { color: var(--amber); }
.compare svg { width: 18px; height: 18px; display: inline-block; vertical-align: -4px; }
.note { color: var(--dim); font-size: .82rem; margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 16px; border-radius: 999px; font-size: .9rem; color: #d4d9f5; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { padding: 0; border-radius: var(--r-md); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 18px; height: 18px; transition: transform .3s var(--ease); color: var(--muted); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--cyan); }
.faq .ans { padding: 0 24px 22px; color: var(--muted); }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.spec div { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; }
.spec div:nth-child(odd) { border-right: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: .9rem; } .spec dd { font-weight: 600; font-size: .92rem; text-align: right; }
.more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.more a { padding: 20px; text-decoration: none; display: block; transition: transform .3s var(--ease), border-color .3s; }
.more a:hover { transform: translateY(-4px); border-color: var(--line-2); }
.more b { display: block; margin: 12px 0 4px; font-family: var(--display); }
.more small { color: var(--muted); font-size: .84rem; }

/* services */
.svc { padding: 26px; display: flex; flex-direction: column; }
.svc h3 { margin: 22px 0 8px; font-size: 1.25rem; }
.svc p { color: var(--muted); font-size: .94rem; }
.svc .checks { margin: 16px 0 0; }
.svc-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); padding: clamp(24px, 3vw, 40px); align-items: center; margin-bottom: 26px; }
.svc-row:nth-child(even) .stage { order: 2; }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 26px; position: relative; overflow: hidden; }
.step .num { font: 600 .82rem var(--mono); color: var(--cyan); }
.step h3 { margin: 14px 0 8px; font-size: 1.08rem; }
.step p { color: var(--muted); font-size: .9rem; }
.step::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--violet), var(--cyan)); transition: width .8s var(--ease); }
.step.in::after { width: 100%; }

/* about */
.wordmark { font: 700 clamp(3rem, 9vw, 6.5rem)/1 var(--display); letter-spacing: -.045em; margin: 34px 0 10px; }
.wordmark .ha { color: #b6a2ff; } .wordmark .hi { color: var(--cyan); } .wordmark .gen { color: #f9a8d4; } .wordmark .t { color: var(--dim); }
.part { font: 600 2rem var(--mono); }

/* CTA + contact */
.cta { padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: var(--violet); filter: blur(130px); opacity: .32; right: -120px; top: -140px; z-index: -1; }
.contact-points { list-style: none; display: grid; gap: 14px; margin-top: 30px; }
.contact-points li { display: flex; gap: 12px; align-items: center; color: #d4d9f5; font-size: .95rem; }
.contact-points svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }
.form { display: grid; gap: 12px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font: 600 .74rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.input { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); font: inherit; font-size: .95rem; outline: none; transition: border-color .2s, background .2s, box-shadow .2s; }
.input:focus { border-color: var(--cyan); background: rgba(255,255,255,.08); box-shadow: 0 0 0 4px rgba(34,211,238,.12); }
select.input option { background: var(--bg-2); }
textarea.input { resize: vertical; min-height: 120px; }
.input::placeholder { color: #6f78a3; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 1.4em; font-size: .9rem; color: var(--muted); }
.form-status.ok { color: #6ee7b7; } .form-status.err { color: #fca5a5; }
.fine { color: var(--dim); font-size: .8rem; }

/* footer */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 64px 0 36px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.25)); }
.foot { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot h4 { font: 600 .78rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot a { display: block; color: #c6cbe8; text-decoration: none; font-size: .92rem; margin-bottom: 10px; transition: color .2s; }
.foot a:hover { color: var(--cyan); }
.foot p { color: var(--muted); font-size: .92rem; max-width: 320px; margin-top: 16px; }
.copy { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--dim); font-size: .84rem; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

/* 404 */
.nf { min-height: 80vh; display: grid; place-items: center; text-align: center; padding-top: 120px; }
.nf .code { font: 700 clamp(6rem, 18vw, 11rem)/1 var(--display); letter-spacing: -.06em; }

/* responsive */
@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: grid; }
  .mobile-menu { display: block; position: fixed; inset: 76px 3vw auto; z-index: 59; padding: 14px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s var(--ease); background: rgba(12,16,40,.95); max-height: calc(100vh - 100px); overflow: auto; }
  .mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
  .mobile-menu a { display: block; padding: 13px 14px; border-radius: 12px; text-decoration: none; color: var(--text); }
  .mobile-menu a:hover { background: rgba(255,255,255,.07); }
  .mobile-menu .sub { padding-left: 26px; color: var(--muted); font-size: .94rem; }
  .mobile-menu .btn { display: flex; margin-top: 10px; }
  .grid-4, .steps, .more { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero, .p-hero, .prod, .cta, .svc-row { grid-template-columns: 1fr; }
  .prod:nth-child(even) .prod-visual, .svc-row:nth-child(even) .stage { order: 0; }
  .window { transform: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .flowline { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .flowline::before, .flowline::after { display: none; }
  .spec { grid-template-columns: 1fr; }
  .spec div:nth-child(odd) { border-right: 0; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-4, .steps, .feature-grid, .more { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .flowline { grid-template-columns: 1fr; }
  .hero .actions .btn, .p-hero .actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ps-proc, .doe-fit, .wp-search, .draw-tick { stroke-dashoffset: 0; }
  .js .reveal, .js .reveal .checks li { opacity: 1; transform: none; }
}

/* logo image + pause off-screen animations */
.logo-img { width: 32px; height: 32px; border-radius: 9px; }
.stage * { animation-play-state: var(--play, running); }
.badge { white-space: nowrap; }
.badge svg { width: 14px; height: 14px; flex: none; }
svg:not([width]):not([class]) { max-width: 100%; }
.hbar { transform-box: fill-box; transform-origin: left; animation: hgrow 2.6s ease-in-out infinite alternate; }
.hbar.x2 { animation-delay: -.9s; } .hbar.x3 { animation-delay: -1.7s; }
@keyframes hgrow { from { transform: scaleX(.55); } to { transform: scaleX(1); } }
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.use { padding: 20px; }
.use h4 { font-size: 1rem; margin: 14px 0 6px; }
.use p { color: var(--muted); font-size: .88rem; }
@media (max-width: 900px) { .uses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .uses { grid-template-columns: 1fr; } }
.knob { animation: knob 5s ease-in-out infinite alternate; }
@keyframes knob { 0%, 15% { transform: translateX(0); } 85%, 100% { transform: translateX(62px); } }

/* Keystone wordmark */
.logo-word { height: 20px; width: auto; display: block; margin-top: 3px; }
.foot .logo-word { height: 24px; }
