:root {
  --bg: #08080b; --bg2: #0f0f14; --ink: #f4f2ec; --muted: rgba(244,242,236,.62); --line: rgba(255,255,255,.1);
  --accent: #d4ff3a; --violet: #7c5cff; --pink: #ff5c93; --cyan: #5fe1e6;
  --kq-bg: #121127; --kq-card: #1e1c3d; --kq-line: #34316a; --gold: #ffd34e;
  --r: 28px; --pad: clamp(20px, 5vw, 72px);
  --sans: "Inter Tight", system-ui, -apple-system, sans-serif; --serif: "Instrument Serif", Georgia, serif; --px: "Press Start 2P", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.02; font-weight: 700; }
h2 { font-size: clamp(40px, 6vw, 84px); }
h3 { font-size: 24px; letter-spacing: -.02em; line-height: 1.2; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.max { max-width: 620px; }
.tiny { font-size: 14px; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); display: inline-block; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 560px; }
section { position: relative; padding: clamp(90px, 13vw, 170px) var(--pad); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--accent); color: #0b0b0b; font: 600 17px var(--sans); text-decoration: none; border: 0; cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(212,255,58,.3); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { box-shadow: none; background: rgba(255,255,255,.12); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* nav */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(1180px, calc(100% - 28px)); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 22px; border-radius: 999px; background: rgba(12,12,16,.55); border: 1px solid var(--line); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.nav.hide { transform: translate(-50%, -130%); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 4px; }
.mark { width: 30px; height: 30px; }
.links { display: flex; align-items: center; gap: 6px; }
.links a:not(.btn) { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--muted); transition: color .2s, background .2s; }
.links a:not(.btn):hover { color: var(--ink); background: rgba(255,255,255,.06); }

/* hero */
.hero { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding-top: 140px; overflow: hidden; }
.hero h1 { font-size: clamp(46px, 6.6vw, 104px); font-weight: 800; }
.hero .lede { margin: 26px 0 36px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; will-change: transform; }
.o1 { width: 620px; height: 620px; background: var(--violet); opacity: .42; left: -180px; top: -120px; }
.o2 { width: 520px; height: 520px; background: var(--accent); opacity: .16; right: -120px; top: 30%; }
.o3 { width: 420px; height: 420px; background: var(--pink); opacity: .22; left: 40%; bottom: -220px; }
.grid-bg { position: absolute; inset: -20% 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse at 60% 40%, #000 10%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 10%, transparent 65%); opacity: .5; pointer-events: none; }
.hero-copy { position: relative; z-index: 2; }
.hero-stage { position: relative; height: min(720px, 80vh); z-index: 1; }
.layer, .chip { position: absolute; will-change: transform; }
.layer:nth-child(1) { left: 2%; top: 16%; width: 78%; }
.layer:nth-child(2) { left: 6%; top: 30%; width: 34%; }
.layer:nth-child(3) { right: 6%; top: 4%; width: 42%; }
.browser { border-radius: 18px; overflow: hidden; background: #131319; border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0,0,0,.5); transform: rotate(-3deg); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #1a1a22; font-size: 12px; color: var(--muted); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a46; }
.browser-bar span { margin-left: 12px; padding: 3px 12px; border-radius: 99px; background: rgba(255,255,255,.06); }
.browser-body { padding: 18px; display: grid; gap: 14px; }
.bb-hero { height: 150px; border-radius: 12px; background: linear-gradient(120deg, var(--violet), var(--pink) 60%, var(--accent)); opacity: .85; }
.bb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bb-row span { height: 60px; border-radius: 10px; background: rgba(255,255,255,.06); }
.bb-lines { display: grid; gap: 8px; }
.bb-lines b { height: 9px; border-radius: 5px; background: rgba(255,255,255,.08); }
.phone { position: relative; aspect-ratio: 9/19; border-radius: 44px; padding: 10px; background: linear-gradient(160deg, #2b2b33, #0d0d11); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 50px 120px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.2); }
.phone .notch { position: absolute; top: 18px; left: 50%; width: 30%; height: 22px; margin-left: -15%; border-radius: 20px; background: #000; z-index: 2; }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; background: #070614; }
.phone-kq { transform: rotate(4deg); }
.phone-ui { transform: rotate(-7deg); }
.ui { height: 100%; border-radius: 34px; background: #111117; padding: 50px 14px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.ui-top { display: flex; justify-content: space-between; align-items: center; }
.ui-top b { width: 50%; height: 12px; border-radius: 6px; background: rgba(255,255,255,.5); }
.ui-top i { width: 26px; height: 26px; border-radius: 50%; background: var(--violet); }
.ui-card { height: 70px; border-radius: 16px; background: rgba(255,255,255,.06); }
.ui-card.short { height: 46px; }
.ui-chart { height: 100px; padding: 10px; }
.ui-chart svg { width: 100%; height: 100%; }
.ui-pills { display: flex; gap: 8px; }
.ui-pills span { flex: 1; height: 30px; border-radius: 99px; background: rgba(212,255,58,.18); }
.ui-pills span + span { background: rgba(124,92,255,.25); }
.chip { padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.c1 { left: 0; top: 8%; } .c2 { left: 38%; bottom: 6%; } .c3 { right: 0; top: 64%; } .c4 { left: 46%; top: 0; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--line); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink); animation: sh 1.8s infinite; }
@keyframes sh { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; background: var(--bg2); }
.track { display: flex; gap: 40px; width: max-content; animation: mq 30s linear infinite; font-size: clamp(28px, 4vw, 54px); font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.track i { font-style: normal; color: var(--accent); font-size: .6em; align-self: center; }
@keyframes mq { to { transform: translateX(-50%); } }

/* statement */
.statement { max-width: 1240px; margin: 0 auto; }
.statement p { margin: 0; font-size: clamp(30px, 4.4vw, 62px); font-weight: 600; line-height: 1.14; letter-spacing: -.03em; }
.statement .w { color: rgba(244,242,236,.16); transition: color .3s; }
.statement .w.on { color: var(--ink); }

/* services */
.services { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 100px); max-width: 1320px; margin: 0 auto; }
.sticky-head { position: sticky; top: 130px; align-self: start; }
.sticky-head p.muted { margin-top: 24px; max-width: 420px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { padding: 30px; border-radius: var(--r); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--line); transition: border-color .3s, transform .4s cubic-bezier(.2,.8,.2,1); }
.card:nth-child(even) { transform: translateY(60px); }
.card:hover { border-color: rgba(212,255,58,.45); }
.card .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(212,255,58,.1); margin-bottom: 26px; }
.card .ic svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); font-size: 16px; margin: 12px 0 18px; }
.card ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.card li { font-size: 13px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }

/* Kaizen Quest */
.kq { background: var(--kq-bg); overflow: hidden; border-radius: 48px; margin: 80px clamp(8px, 2vw, 24px); font-family: var(--sans); }
.stars { position: absolute; inset: -40% 0; pointer-events: none; background-repeat: repeat; image-rendering: pixelated; }
.s1 { background-image: radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(2px 2px at 140px 90px, var(--cyan) 50%, transparent 51%), radial-gradient(3px 3px at 240px 170px, var(--gold) 50%, transparent 51%); background-size: 300px 220px; opacity: .55; }
.s2 { background-image: radial-gradient(1.5px 1.5px at 60px 60px, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 190px 20px, #b48cff 50%, transparent 51%); background-size: 230px 160px; opacity: .4; }
.kq-head { position: relative; text-align: center; max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.kq-eye .dot { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 99px; background: rgba(255,211,78,.1); border: 1px solid rgba(255,211,78,.4); color: #ffe48a; font-size: 14px; font-weight: 600; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(255,211,78,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255,211,78,0); } 100% { box-shadow: 0 0 0 0 rgba(255,211,78,0); } }
.kq-logo { width: min(300px, 70vw); margin: 34px 0 26px; image-rendering: pixelated; filter: drop-shadow(0 0 30px rgba(255,211,78,.25)); }
.kq h2 { font-size: clamp(36px, 5vw, 70px); }
.px { font-family: var(--px); font-size: .72em; color: var(--gold); letter-spacing: 0; text-shadow: 4px 4px 0 #8e2b3f; }
.px-sm { font-family: var(--px); font-size: .62em; color: var(--cyan); letter-spacing: 0; line-height: 1.6; }
.kq .lede { margin: 24px auto 0; color: #c9c5ee; }
.kq-scene { position: relative; height: clamp(320px, 34vw, 460px); max-width: 1200px; margin: 50px auto 30px; }
.sprite { position: absolute; image-rendering: pixelated; will-change: transform; }
.glow-c { filter: drop-shadow(0 0 14px rgba(95,225,230,.7)); }
.glow-g { filter: drop-shadow(0 0 14px rgba(255,179,26,.7)); }
.glow-o { filter: drop-shadow(0 0 16px rgba(255,138,61,.8)); }
.features { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1200px; margin: 0 auto; }
.feat { padding: 28px; border-radius: 24px; background: var(--kq-card); border: 2px solid var(--kq-line); }
.feat h3 { font-size: 21px; margin-top: 18px; }
.feat p { color: #a9a5d6; font-size: 16px; margin: 10px 0 0; }
.fi { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; font-size: 22px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 2px solid color-mix(in srgb, var(--c) 55%, transparent); }
.kq-video { position: relative; display: grid; grid-template-columns: 320px 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; max-width: 980px; margin: 110px auto 0; }
.phone-lg { width: 100%; }
.kq-video-copy h3 { font-size: clamp(30px, 3.4vw, 46px); }
.kq-video-copy p { color: #c9c5ee; }
.kq-video-copy .tiny { color: #a9a5d6; margin-top: 18px; }
.kq-video-copy .tiny a { color: var(--cyan); }
.btn-kq { background: var(--gold); margin-top: 10px; border-radius: 14px; box-shadow: 0 6px 0 #b8890f; }
.btn-kq:hover { box-shadow: 0 8px 0 #b8890f, 0 16px 40px rgba(255,211,78,.3); }

/* coming soon */
.soon { padding-top: 40px; }
.soon-card { position: relative; overflow: hidden; max-width: 1200px; margin: 0 auto; padding: clamp(40px, 6vw, 80px); border-radius: 40px; border: 1px solid var(--line); background: var(--bg2); }
.soon-card > *:not(.soon-blur) { position: relative; }
.soon-card .muted { max-width: 520px; margin: 20px 0 30px; }
.soon-blur { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); display: flex; gap: 20px; filter: blur(14px); opacity: .55; }
.soon-blur span { width: 150px; height: 300px; border-radius: 30px; background: linear-gradient(160deg, var(--violet), var(--pink)); animation: float 6s ease-in-out infinite; }
.soon-blur span:nth-child(2) { background: linear-gradient(160deg, var(--accent), var(--cyan)); animation-delay: -2s; }
.soon-blur span:nth-child(3) { background: linear-gradient(160deg, var(--gold), var(--pink)); animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-24px); } }

/* process */
.process { max-width: 1320px; margin: 0 auto; }
.process .muted { margin-top: 22px; }
.steps { list-style: none; margin: 70px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { padding: 30px 26px 34px; border-top: 2px solid var(--line); position: relative; }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0; background: var(--accent); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.steps li.in::before { width: 100%; }
.steps span { font: 400 15px var(--px); color: var(--accent); }
.steps h3 { margin: 18px 0 10px; font-size: 26px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* contact */
.contact { overflow: hidden; text-align: center; display: flex; flex-direction: column; align-items: center; }
.o4 { width: 700px; height: 700px; background: var(--violet); opacity: .3; left: 50%; top: 10%; margin-left: -350px; }
.contact h2 { position: relative; font-size: clamp(44px, 7vw, 104px); }
.contact .lede { position: relative; margin: 26px auto 46px; }
.form { position: relative; width: min(760px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; padding: 28px; border-radius: 32px; background: rgba(255,255,255,.04); border: 1px solid var(--line); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { font: 16px var(--sans); color: var(--ink); background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-height: 50px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .tiny { text-align: center; margin: 4px 0 0; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 40px var(--pad); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--ink); }

/* reveal */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1), filter 1s; }
.reveal.in { opacity: 1; transform: none; filter: none; }
.card.reveal.in:nth-child(even) { transform: translateY(60px); }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }

/* responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-stage { height: 520px; }
  .services { grid-template-columns: 1fr; }
  .sticky-head { position: static; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .kq-video { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .phone-lg { width: 260px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .links a:not(.btn) { display: none; }
  .nav { padding-left: 16px; }
  .hero-stage { height: 440px; }
  .layer:nth-child(1) { width: 92%; left: 0; }
  .layer:nth-child(2) { width: 40%; }
  .layer:nth-child(3) { width: 48%; right: 0; }
  .chip { font-size: 12px; padding: 8px 12px; }
  .cards, .features, .steps { grid-template-columns: 1fr; }
  .card:nth-child(even), .card.reveal.in:nth-child(even) { transform: none; }
  .kq { border-radius: 28px; margin-inline: 8px; }
  .kq-scene { height: 260px; }
  .sprite { scale: .6; }
  .form { grid-template-columns: 1fr; padding: 20px; }
  .soon-blur { opacity: .25; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .track, .soon-blur span, .scroll-hint span, .pulse { animation: none; }
}
