:root {
  --bg: #080b14;
  --panel: #121933;
  --panel-2: #10162b;
  --text: #f4f7ff;
  --muted: #bec6df;
  --hot: #73f7d2;
  --accent: #b58cff;
  --line: rgba(255, 255, 255, 0.14);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: radial-gradient(1300px 700px at 0% -20%, rgba(115,247,210,.14), transparent 56%),
              radial-gradient(1000px 700px at 100% -30%, rgba(181,140,255,.16), transparent 60%),
              var(--bg);
  overflow-x: hidden;
}
.bg-orb { position: fixed; width: 40vw; aspect-ratio: 1; border-radius: 50%; filter: blur(90px); opacity: .19; z-index: -2; }
.orb-a { background: #72f7d1; top: -14vw; left: -12vw; }
.orb-b { background: #b58cff; top: -16vw; right: -13vw; }

.webgl-edge {
  position: fixed;
  top: 0;
  width: min(24vw, 280px);
  height: 100vh;
  z-index: -3;
  pointer-events: none;
  opacity: .55;
  filter: blur(2px) saturate(1.04);
}
.webgl-left { left: 0; mask-image: linear-gradient(to right, rgba(0,0,0,.95), rgba(0,0,0,.22), transparent); -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,.95), rgba(0,0,0,.22), transparent); }
.webgl-right { right: 0; mask-image: linear-gradient(to left, rgba(0,0,0,.95), rgba(0,0,0,.22), transparent); -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,.95), rgba(0,0,0,.22), transparent); }
.webgl-edge canvas { width: 100% !important; height: 100% !important; display: block; }

.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.035) .6px, transparent .6px);
  background-size: 3px 3px;
}

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 6vw; border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(8, 11, 20, .68);
}
.logo { font: 700 1rem "Unbounded", sans-serif; letter-spacing: .06em; }
nav { display: flex; gap: 16px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
nav a:hover { color: var(--text); }

main { padding: 30px 6vw 62px; }
.hero {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px;
  padding: 28px;
  border: 1px solid var(--line); border-radius: 26px;
  background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  box-shadow: 0 24px 80px rgba(0,0,0,.38);
}
.eyebrow { margin: 0 0 10px; color: var(--hot); letter-spacing: .12em; font-size: .78rem; }
h1 {
  margin: 0; line-height: 1.07;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  max-width: 18ch;
}
.lead { margin: 16px 0 0; color: var(--muted); line-height: 1.65; max-width: 62ch; }
.hero-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 330px; z-index: 1; }
.hero-art { width: 100%; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 14px 50px rgba(0,0,0,.35); animation: float 5s ease-in-out infinite; mix-blend-mode: screen; opacity: .88; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.floating-chip {
  position: absolute; font-size: .78rem; font-weight: 700;
  padding: 8px 10px; border-radius: 999px; border: 1px solid var(--line);
  backdrop-filter: blur(8px); background: rgba(14, 18, 34, .7);
  animation: bob 3.2s ease-in-out infinite;
}
.chip-1 { left: -6px; top: 22px; }
.chip-2 { right: 12px; bottom: 18px; animation-delay: .5s; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-6px);} }

.stat-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.stat-grid article { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: rgba(16,22,43,.6); min-height: 70px; }
.stat-grid strong { display: block; }
.stat-grid span { color: var(--muted); font-size: .93rem; }

.feature-row {
  max-width: 1120px; margin: 16px auto 0;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px;
}
.card {
  border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  background: linear-gradient(180deg, rgba(16,22,43,.72), rgba(12,17,34,.72));
  min-height: 250px;
}
.card h2, .workflow h2, .game h2 { margin: 0 0 8px; font-family: "Unbounded", sans-serif; font-size: 1.02rem; line-height: 1.35; }
.card p, .workflow p, .game p { margin: 0; color: var(--muted); line-height: 1.6; }
.with-image img { width: 100%; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 10px; }
.card.accent { box-shadow: inset 0 0 0 1px rgba(115,247,210,.16); }

.workflow {
  max-width: 1120px; margin: 16px auto 0; padding: 18px;
  border: 1px solid var(--line); border-radius: 18px;
  background: rgba(13,19,38,.74);
}
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 10px; }
.steps div { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: rgba(18,25,49,.72); }
.steps span { font-family: "Unbounded", sans-serif; color: var(--hot); font-size: .82rem; }
.steps p { margin-top: 6px; }

.game {
  max-width: 1120px; margin: 16px auto 0;
  border: 1px solid var(--line); border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(12,17,35,.82), rgba(9,13,27,.82));
  box-shadow: inset 0 0 0 1px rgba(181,140,255,.12);
}
.game-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.hud { margin: 12px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--muted); }
#clawGame { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg,#171f3d,#0d1226); }
.touch-controls { display: none; gap: 12px; margin-top: 12px; }
.touch-controls button {
  flex: 1; min-height: 46px; border-radius: 12px;
  border: 1px solid var(--line); color: var(--text);
  background: linear-gradient(180deg, rgba(115,247,210,.18), rgba(181,140,255,.18));
  font-size: 1.2rem; font-weight: 700;
}

footer {
  max-width: 1120px; margin: 24px auto 34px;
  display: flex; gap: 14px; flex-wrap: wrap;
  color: var(--muted);
}
footer a { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; cursor: pointer;
  color: var(--text); font-weight: 700;
  padding: 11px 16px; border-radius: 999px; border: 1px solid transparent;
}
.btn-solid { background: linear-gradient(90deg, var(--hot), #87deff); color: #07131a; }
.btn-ghost { border-color: rgba(181,140,255,.8); background: rgba(181,140,255,.12); }
.btn-outline { border-color: var(--line); }
.btn.small { padding: 8px 13px; font-size: .92rem; }

.reveal { opacity: 0; transform: translateY(16px); transition: all .65s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .webgl-edge { width: min(18vw, 160px); opacity: .35; }
}

@media (max-width: 720px) {
  main { padding-top: 20px; }
  .hero { padding: 20px; }
  .stat-grid { grid-template-columns: 1fr; }
  .game-head { align-items: flex-start; }
  .touch-controls { display: flex; }
}
