:root { color-scheme: light dark; --ink: #14162b; --muted: #5b6078; --bg: #ffffff; --soft: #f3f5fb; --line: #dfe3ee; --accent: #1e4fa8; --card: #ffffff; }
@media (prefers-color-scheme: dark) { :root { --ink: #eef0f8; --muted: #a5abc2; --bg: #0d0f1c; --soft: #14172a; --line: #2a2f4a; --accent: #7fb0ff; --card: #151830; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); overflow-x: hidden; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- navigation ---------- */
nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; position: relative; z-index: 3; }
nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: #fff; text-decoration: none; }
nav .brand svg { width: 38px; height: 38px; }
nav .links a { color: rgba(255,255,255,.86); text-decoration: none; margin-left: 22px; font-size: 15px; position: relative; }
nav .links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: #ffd564; transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
nav .links a:hover { color: #fff; }
nav .links a:hover::after { transform: scaleX(1); }
.mark .twin { transform-box: fill-box; transform-origin: center; animation: twin-out 1.4s cubic-bezier(.2,.8,.2,1) .3s both; }
.mark .lens { animation: lens-in .8s ease 1.2s both; }
@keyframes twin-out { from { transform: translateX(-9px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lens-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: #1b1464; padding-bottom: 96px; overflow: hidden; isolation: isolate; }
.aurora { position: absolute; inset: -20% -10%; z-index: -1; filter: blur(70px); }
.aurora i { position: absolute; border-radius: 50%; opacity: .9; will-change: transform; }
.aurora i:nth-child(1) { width: 56vw; height: 56vw; left: -8%; top: -20%; background: #3a22b8; animation: drift-a 19s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 50vw; height: 50vw; right: -6%; top: 6%; background: #1e63d6; animation: drift-b 23s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 46vw; height: 46vw; left: 30%; bottom: -34%; background: #10b3a6; animation: drift-c 27s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(14%, 18%) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-16%, 12%) scale(.9); } }
@keyframes drift-c { to { transform: translate(-12%, -16%) scale(1.2); } }
.grain { position: absolute; inset: 0; z-index: -1; opacity: .18; background-image: radial-gradient(rgba(255,255,255,.5) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000, transparent 75%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 36px; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -0.025em; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(3deg); animation: word-in .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.15s + var(--i) * .09s); }
.hero h1 .hl { background: linear-gradient(90deg, #ffd564, #ff9a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes word-in { to { opacity: 1; transform: none; } }
.hero p.lead { font-size: clamp(18px, 2vw, 21px); max-width: 44ch; margin: 0 0 30px; color: rgba(255,255,255,.92); }
.fade-up { opacity: 0; animation: fade-up .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, .6s); }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.btn { position: relative; display: inline-block; overflow: hidden; background: #fff; color: #1b1464; font-weight: 700; text-decoration: none; padding: 15px 28px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 46%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,213,100,.75), transparent); transform: skewX(-18deg); animation: shine 4.5s ease-in-out 1.6s infinite; }
@keyframes shine { 0%, 62% { left: -60%; } 100% { left: 130%; } }
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.32); }
.hero .note { font-size: 14px; color: rgba(255,255,255,.72); margin-top: 16px; }

/* ---------- animated scene: one app becomes two ---------- */
.stage { position: relative; height: 380px; perspective: 1200px; }
.win { position: absolute; left: 50%; top: 20px; width: 250px; height: 190px; margin-left: -125px; border-radius: 16px; background: rgba(18,20,40,.72); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 24px 60px rgba(0,0,0,.4); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 14px 16px; }
.win .bar { display: flex; gap: 6px; margin-bottom: 14px; }
.win .bar b { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.28); }
.win .who { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.win .who i { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px rgba(255,255,255,.16); }
.win .ln { height: 9px; border-radius: 6px; background: rgba(255,255,255,.16); margin-bottom: 9px; position: relative; overflow: hidden; }
.win .ln::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-100%); animation: sweep 3.2s ease-in-out infinite; }
.win .ln:nth-child(4) { width: 82%; } .win .ln:nth-child(5) { width: 64%; } .win .ln:nth-child(6) { width: 74%; }
@keyframes sweep { 60%, 100% { transform: translateX(100%); } }
.win.a { --c: #4fa3f7; animation: win-a 9s cubic-bezier(.6,0,.2,1) infinite; }
.win.b { --c: #36c275; animation: win-b 9s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes win-a { 0%, 12% { transform: translateX(0) rotateY(0); } 30%, 84% { transform: translateX(-112px) rotateY(9deg); } 100% { transform: translateX(0) rotateY(0); } }
@keyframes win-b { 0%, 12% { transform: translateX(0) scale(.92); opacity: 0; } 30%, 84% { transform: translateX(112px) rotateY(-9deg) scale(1); opacity: 1; } 100% { transform: translateX(0) scale(.92); opacity: 0; } }
.link { position: absolute; left: 50%; top: 96px; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; background: radial-gradient(circle, #ffd564, #ff9a3d 70%); box-shadow: 0 0 40px 10px rgba(255,170,70,.55); animation: link 9s ease-in-out infinite; }
@keyframes link { 0%, 14% { transform: scale(0); opacity: 0; } 30% { transform: scale(1.25); opacity: 1; } 38%, 80% { transform: scale(1); opacity: 1; } 96%, 100% { transform: scale(0); opacity: 0; } }
.dock { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 12px; padding: 12px 14px; border-radius: 24px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.ico { position: relative; width: 58px; height: 58px; flex: none; border-radius: 15px; background: linear-gradient(160deg, var(--a), var(--b)); display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px rgba(0,0,0,.28); }
.ico svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico::after { content: ""; position: absolute; bottom: -9px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: rgba(255,255,255,.85); opacity: var(--dot, 0); }
.ico .tag { position: absolute; left: 4px; right: 4px; bottom: 5px; border-radius: 6px; font-size: 8.5px; font-weight: 800; letter-spacing: .03em; text-align: center; line-height: 14px; color: #fff; background: var(--t); }
.ico.orig { --dot: 1; animation: bounce 9s ease-in-out infinite; }
.ico.orig .tag { animation: tag 9s ease infinite; }
.slot { width: 0; overflow: visible; animation: slot 9s cubic-bezier(.6,0,.2,1) infinite; }
.slot .ico { --dot: 1; animation: clone 9s cubic-bezier(.3,1.4,.4,1) infinite; }
@keyframes slot { 0%, 12% { width: 0; margin-left: -12px; } 30%, 84% { width: 58px; margin-left: 0; } 100% { width: 0; margin-left: -12px; } }
@keyframes clone { 0%, 14% { transform: scale(0) translateX(-40px); opacity: 0; } 32%, 84% { transform: scale(1); opacity: 1; } 98%, 100% { transform: scale(0) translateX(-40px); opacity: 0; } }
@keyframes tag { 0%, 16% { opacity: 0; transform: translateY(4px); } 32%, 84% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes bounce { 0%, 10% { transform: none; } 14% { transform: translateY(-14px); } 18% { transform: none; } 21% { transform: translateY(-6px); } 24%, 100% { transform: none; } }

/* ---------- screenshot with scroll tilt ---------- */
.shot-frame { perspective: 1600px; margin-top: 56px; }
.shot { width: 100%; display: block; border-radius: 18px; box-shadow: 0 40px 100px rgba(0,0,0,.45); transform: rotateX(calc(var(--tilt, 0) * 1deg)) scale(calc(1 - var(--tilt, 0) * .006)); transform-origin: 50% 0; will-change: transform; }

/* ---------- sections ---------- */
section { padding: 88px 0; position: relative; }
section.soft { background: var(--soft); }
h2 { font-size: clamp(27px, 3.4vw, 38px); letter-spacing: -0.015em; margin: 0 0 12px; line-height: 1.15; }
p.sub { color: var(--muted); max-width: 60ch; margin: 0 0 40px; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; padding: 24px 24px 26px; background: var(--card); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -40%), rgba(30,99,214,.16), transparent 60%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(20,30,90,.16); border-color: rgba(30,99,214,.45); }
.card:hover::before { opacity: 1; }
.card .gl { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; background: linear-gradient(135deg, #2a1b7a, #10a7a0); transition: transform .5s cubic-bezier(.3,1.5,.4,1); }
.card:hover .gl { transform: rotate(-8deg) scale(1.1); }
.card .gl svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }

/* ---------- steps with a line that fills on scroll ---------- */
ol.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; max-width: 780px; position: relative; }
ol.steps::before, ol.steps::after { content: ""; position: absolute; left: 33px; top: 30px; bottom: 30px; width: 3px; border-radius: 3px; background: var(--line); }
ol.steps::after { background: linear-gradient(180deg, #2a1b7a, #10a7a0); transform-origin: top; transform: scaleY(var(--fill, 0)); transition: transform .15s linear; }
ol.steps li { position: relative; z-index: 1; padding: 18px 22px 18px 82px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
ol.steps li .n { position: absolute; left: 16px; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%; background: linear-gradient(135deg, #2a1b7a, #10a7a0); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--soft); transform: scale(.4); opacity: 0; transition: transform .6s cubic-bezier(.3,1.6,.4,1), opacity .4s; transition-delay: calc(var(--d, 0s) + .15s); }
ol.steps li.in .n, html:not(.js) ol.steps li .n { transform: none; opacity: 1; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 22px; }
.shots figure { margin: 0; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); }
.shots img { width: 100%; display: block; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.shots figure:hover img { transform: scale(1.045); }

/* ---------- closing call ---------- */
.closing { text-align: center; color: #fff; background: linear-gradient(135deg, #2a1b7a 0%, #1e4fa8 55%, #10a7a0 100%); background-size: 180% 180%; animation: pan 14s ease-in-out infinite alternate; }
@keyframes pan { to { background-position: 100% 100%; } }
.closing h2 { margin-bottom: 26px; }
.closing .orbit { width: 96px; height: 96px; margin: 0 auto 22px; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- text pages ---------- */
.topbar { background: linear-gradient(135deg, #2a1b7a 0%, #1e4fa8 55%, #10a7a0 100%); }
.doc { max-width: 760px; padding: 60px 24px 84px; margin: 0 auto; }
.doc h1 { font-size: 38px; letter-spacing: -0.015em; margin: 0 0 10px; }
.doc h2 { font-size: 22px; margin-top: 38px; }
footer { border-top: 1px solid var(--line); padding: 30px 0 46px; color: var(--muted); font-size: 15px; }
footer a { margin-right: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 .w, .fade-up, .js .reveal, ol.steps li .n { opacity: 1 !important; transform: none !important; }
  .slot { width: 58px; margin-left: 0; } .win.a { transform: translateX(-112px); } .win.b { transform: translateX(112px); opacity: 1; }
  .shot { transform: none; } ol.steps::after { transform: none; }
}
