:root{--ink:#111;--sky1:#1e6bff;--sky2:#5aa8ff;--grass:#3fae2a;--y:#ffe14d;--p:#ff4fa8;--g:#2ecc71;--card:#fff;
--rb:linear-gradient(90deg,#ff3b3b,#ff9d00,#ffe100,#2ed14a,#1fb6ff,#5a4bff,#c23bff)}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Space Grotesk',system-ui,sans-serif;color:var(--ink);font-size:18px;line-height:1.45;background:var(--sky1);overflow-x:hidden}
a{color:inherit}
/* sky backdrop */
.sky{position:fixed;inset:0;z-index:-1;background:linear-gradient(180deg,#0f5cff 0%,#3f8dff 55%,#8cc6ff 100%);overflow:hidden}
.rainbow{position:absolute;left:50%;top:14vh;width:150vw;height:150vw;transform:translateX(-50%);border-radius:50%;
background:radial-gradient(circle,transparent 55%,#c23bff 55%,#c23bff 57%,#5a4bff 57%,#5a4bff 59%,#1fb6ff 59%,#1fb6ff 61%,#2ed14a 61%,#2ed14a 63%,#ffe100 63%,#ffe100 65%,#ff9d00 65%,#ff9d00 67%,#ff3b3b 67%,#ff3b3b 69%,transparent 69%);opacity:.9}
.hill{position:absolute;left:-20vw;right:-20vw;bottom:-55vh;height:80vh;border-radius:50%;background:radial-gradient(ellipse at 50% 10%,#58c93a,#2f8f1f)}
.cloud{position:absolute;width:180px;height:56px;background:#fff;border-radius:60px;opacity:.9;animation:drift 60s linear infinite}
.cloud::before,.cloud::after{content:"";position:absolute;background:#fff;border-radius:50%}
.cloud::before{width:80px;height:80px;left:24px;top:-38px}.cloud::after{width:100px;height:100px;left:70px;top:-52px}
.c1{top:10vh;left:-200px}.c2{top:30vh;left:-200px;animation-delay:-25s;transform:scale(.7)}.c3{top:18vh;left:-200px;animation-delay:-45s;transform:scale(1.2)}
@keyframes drift{to{left:110vw}}

/* nav */
.nav{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 4vw;background:rgba(255,255,255,.92);border-bottom:3px solid var(--ink);backdrop-filter:blur(6px)}
.brand{display:flex;align-items:center;gap:10px;font-family:'Bungee';font-size:22px;text-decoration:none}
.brand img{width:38px;height:38px;border-radius:50%;border:3px solid var(--ink)}
.links{display:flex;gap:26px;font-weight:700}.links a{text-decoration:none}.links a:hover{color:var(--p)}
.btn{display:inline-flex;align-items:center;justify-content:center;font-family:'Bungee';font-size:15px;text-decoration:none;padding:10px 18px;border:3px solid var(--ink);background:var(--y);color:var(--ink);border-radius:12px;box-shadow:4px 4px 0 var(--ink);cursor:pointer;transition:transform .08s,box-shadow .08s}
.btn:hover{transform:translate(-2px,-2px);box-shadow:6px 6px 0 var(--ink)}
.btn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}
.btn.big{font-size:18px;padding:14px 24px}
.btn.ghost{background:#fff}
.btn.off{opacity:.55}
.link{background:none;border:none;font:inherit;font-weight:700;cursor:pointer;text-decoration:underline}

/* hero */
main{max-width:1180px;margin:0 auto;padding:0 4vw}
.hero{display:grid;grid-template-columns:1fr 1fr;gap:3vw;align-items:center;padding:6vh 0 2vh}
.pill{display:inline-block;background:#fff;border:3px solid var(--ink);border-radius:99px;padding:4px 14px;font-weight:700;margin-bottom:16px}
.pill b{color:var(--g)}
h1{font-family:'Bungee';font-size:clamp(48px,7vw,96px);line-height:.95;color:#fff;-webkit-text-stroke:3px var(--ink);text-shadow:6px 6px 0 var(--ink)}
.one{margin:20px 0;font-size:22px;color:#fff;font-weight:500;text-shadow:0 2px 0 rgba(0,0,0,.35)}
.one b{color:var(--y)}
.ca-box{display:flex;align-items:center;gap:10px;background:#fff;border:3px solid var(--ink);border-radius:12px;padding:8px 10px;max-width:520px;margin-bottom:16px}
.ca-tag{background:var(--ink);color:#fff;font-family:'Bungee';font-size:13px;padding:2px 8px;border-radius:6px}
.ca{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.ca-box button{background:var(--p);color:#fff;border:2px solid var(--ink);border-radius:8px;font:inherit;font-weight:700;padding:3px 12px;cursor:pointer}
.btns{display:flex;gap:12px;flex-wrap:wrap}
.stage{display:flex;justify-content:center}
.model-card{position:relative;width:100%;max-width:520px;aspect-ratio:1;border-radius:28px;border:4px solid var(--ink);box-shadow:10px 10px 0 var(--ink);
background:radial-gradient(circle at 50% 75%,#7fdc5a 0 28%,transparent 28.5%),radial-gradient(circle at 50% 120%,#fff 0 30%,transparent 30%),linear-gradient(180deg,#2b7bff,#9fd0ff);overflow:hidden}
model-viewer{width:100%;height:100%;--poster-color:transparent;background:transparent}
.drag{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);background:#fff;border:2px solid var(--ink);border-radius:99px;padding:3px 12px;font-size:14px;font-weight:700;pointer-events:none}
.wifi{position:absolute;top:6%;left:50%;transform:translateX(-50%);width:120px;height:80px;z-index:2;pointer-events:none}
.wifi i{position:absolute;left:50%;transform:translateX(-50%);border-radius:50% 50% 0 0;border:10px solid;border-bottom:none;animation:wf 1.6s infinite}
.wifi i:nth-child(1){width:120px;height:60px;top:0;border-color:#ff3b3b #ffa000 transparent #c23bff;animation-delay:.4s}
.wifi i:nth-child(2){width:82px;height:41px;top:19px;border-color:#ffe100 #2ed14a transparent #1fb6ff;animation-delay:.2s}
.wifi i:nth-child(3){width:44px;height:22px;top:38px;border-color:#2ed14a #1fb6ff transparent #5a4bff}
.wifi span{position:absolute;left:50%;top:62px;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:#c23bff}
@keyframes wf{0%,100%{opacity:1}50%{opacity:.35}}

/* blocks */
.block{background:var(--card);border:4px solid var(--ink);border-radius:28px;box-shadow:10px 10px 0 var(--ink);padding:32px;margin:48px 0}
.block-h{display:flex;gap:18px;align-items:flex-start;margin-bottom:22px}
.step{flex:none;width:52px;height:52px;border-radius:50%;background:var(--y);border:3px solid var(--ink);display:flex;align-items:center;justify-content:center;font-family:'Bungee';font-size:24px}
h2{font-family:'Bungee';font-size:clamp(28px,4vw,44px);line-height:1}
.block-h p{margin-top:8px;max-width:760px;color:#333}

/* chat */
.chat-block{margin-top:24px}
.chat{border:3px solid var(--ink);border-radius:18px;overflow:hidden;background:#f4f8ff}
.msgs{height:360px;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:12px}
.m{display:flex;gap:10px;max-width:85%;align-items:flex-end}
.m img{width:40px;height:40px;border-radius:50%;border:2px solid var(--ink);flex:none}
.m .b{padding:10px 14px;border:2px solid var(--ink);border-radius:16px 16px 16px 4px;background:#fff;font-family:'Comic Neue',cursive;font-size:19px}
.m.me{align-self:flex-end}
.m.me .b{background:var(--y);border-radius:16px 16px 4px 16px;font-family:'Space Grotesk';font-size:17px}
.typing .b::after{content:"● ● ●";letter-spacing:2px;animation:wf 1s infinite}
.chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 18px 14px}
.chips button{background:#fff;border:2px solid var(--ink);border-radius:99px;padding:6px 12px;font:inherit;font-size:15px;font-weight:700;cursor:pointer}
.chips button:hover{background:var(--y)}
.chat-in{display:flex;gap:10px;padding:12px;border-top:3px solid var(--ink);background:#fff}
.chat-in input,.scan-in input{flex:1;border:2px solid var(--ink);border-radius:10px;padding:12px 14px;font:inherit;font-size:17px;outline:none}
.chat-in input:focus,.scan-in input:focus{box-shadow:0 0 0 3px var(--y)}
.chat-foot{display:flex;justify-content:space-between;padding:8px 14px;font-size:14px;color:#555;border-top:1px solid #ddd;background:#fff}

/* lore cards */
.cards{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.card{border:3px solid var(--ink);border-radius:18px;overflow:hidden;background:#fff;display:flex;flex-direction:column;transition:transform .15s}
.card:hover{transform:translateY(-6px) rotate(-1deg)}
.card img{width:100%;aspect-ratio:4/3;object-fit:cover;border-bottom:3px solid var(--ink)}
.cbody{padding:14px;display:flex;flex-direction:column;gap:6px;flex:1}
.date{align-self:flex-start;background:var(--ink);color:#fff;font-family:'Bungee';font-size:13px;padding:2px 10px;border-radius:99px}
.card h3{font-size:18px;line-height:1.15}
.card p{font-size:15px;color:#333;flex:1}
.card a{font-size:14px;font-weight:700;color:#0a58ff}
.card.hot{background:#fff7cc}
.cd{font-family:'Bungee';font-size:14px;color:#d12}

/* scanner */
.scan-in{display:flex;gap:12px}
.how{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0}
.how div{border:2px dashed #999;border-radius:12px;padding:8px 10px;font-size:14px;display:flex;flex-direction:column}
.how span{color:#555}
.scan-run{display:flex;gap:14px;align-items:center;padding:14px;border:2px solid var(--ink);border-radius:14px;background:#f4f8ff;margin-top:10px;font-weight:700}
.spin{width:34px;height:34px;border-radius:50%;border:5px solid #ddd;border-top-color:var(--p);animation:sp 0.8s linear infinite;flex:none}
@keyframes sp{to{transform:rotate(1turn)}}
.scan-err{margin-top:12px;padding:12px 14px;border:2px solid #d12;border-radius:12px;background:#ffecec;font-weight:700}
.result{margin-top:16px;border:3px solid var(--ink);border-radius:20px;padding:20px;background:#fff}
.r-top{display:grid;grid-template-columns:72px 1fr auto;gap:14px;align-items:center}
.r-top img{width:72px;height:72px;border-radius:50%;border:3px solid var(--ink);object-fit:cover;background:#eee}
.r-name{font-family:'Bungee';font-size:24px}
.r-stats{font-size:14px;color:#444}
.stamp{font-family:'Bungee';font-size:20px;padding:8px 14px;border:4px solid var(--g);color:var(--g);border-radius:10px;transform:rotate(-6deg);text-align:center;animation:st .35s cubic-bezier(.2,2,.4,1)}
.stamp.no{border-color:#d12;color:#d12}
@keyframes st{from{transform:rotate(-6deg) scale(2.4);opacity:0}}
.r-score{display:flex;justify-content:space-between;align-items:baseline;margin-top:18px;font-weight:700}
.r-score b{font-family:'Bungee';font-size:40px}
.meter{position:relative;height:26px;border:3px solid var(--ink);border-radius:99px;overflow:hidden;background:#eee}
.meter i{display:block;height:100%;width:0;background:var(--rb);transition:width 1.2s cubic-bezier(.2,.9,.2,1)}
.meter em{position:absolute;top:0;bottom:0;border-left:3px dashed var(--ink);font-size:11px;font-style:normal;font-weight:700;padding-left:4px;line-height:20px}
.r-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:16px}
.met{border:2px solid var(--ink);border-radius:12px;padding:10px}
.met b{display:block;font-size:14px}.met strong{font-family:'Bungee';font-size:22px}
.met small{display:block;color:#555;font-size:12px}
.met .mb{height:8px;background:#eee;border-radius:9px;margin-top:6px;overflow:hidden}.met .mb i{display:block;height:100%;background:var(--g)}
.r-say{display:flex;gap:12px;align-items:flex-start;margin:16px 0 10px}
.r-say img{width:44px;height:44px;border-radius:50%;border:2px solid var(--ink)}
.r-say p{background:var(--y);border:2px solid var(--ink);border-radius:16px 16px 16px 4px;padding:10px 14px;font-family:'Comic Neue',cursive;font-size:19px}

.foot{display:flex;gap:16px;align-items:center;max-width:1180px;margin:0 auto 40px;padding:20px 4vw;color:#fff;font-size:14px}
.foot img{width:54px;height:54px;border-radius:50%;border:3px solid var(--ink)}
.foot b{font-family:'Bungee'}

[hidden]{display:none!important}
@media (max-width:980px){.cards{grid-template-columns:repeat(2,1fr)}.cards .hot{grid-column:span 2}}
@media (max-width:820px){
  .hero{grid-template-columns:1fr}.stage{order:-1}.links{display:none}
  .how,.r-metrics{grid-template-columns:1fr 1fr}.block{padding:20px}
  .r-top{grid-template-columns:56px 1fr}.stamp{grid-column:span 2;justify-self:start}
}
