:root {
  --pink: #ff2bd6;
  --violet: #8b5cff;
  --cyan: #00e5ff;
  --bg: #07060f;
  --surface: #110e22;
  --surface2: #18142e;
  --border: #2a2346;
  --text: #ecebf7;
  --muted: #9d97bf;
  --neon: linear-gradient(90deg, var(--pink), var(--violet), var(--cyan));
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
code { font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: .9em; background: #ffffff10; padding: .1em .4em; border-radius: 6px; }

.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 15% 0%, #8b5cff33, transparent 60%),
    radial-gradient(50vw 50vh at 90% 10%, #ff2bd622, transparent 60%),
    radial-gradient(70vw 60vh at 50% 110%, #00e5ff18, transparent 60%);
}

/* ------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 5vw, 64px);
  background: #07060fcc; backdrop-filter: blur(14px);
  border-bottom: 1px solid #ffffff0d;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 900; font-size: 1.25rem; letter-spacing: .02em; }
.brand span { background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav nav { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 28px); }
.nav nav a:not(.btn) { color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav nav a:not(.btn):hover { color: var(--text); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface2); color: var(--text); font-weight: 600; cursor: pointer;
  transition: transform .15s, box-shadow .25s, background .2s; font: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary {
  border: 0; color: #fff; background: var(--neon); background-size: 200% 100%;
  box-shadow: 0 0 22px #8b5cff66, 0 0 48px #ff2bd633;
  animation: shift 6s ease-in-out infinite;
}
.btn-primary:hover { box-shadow: 0 0 30px #8b5cffaa, 0 0 70px #00e5ff55; }
.btn-big { padding: 16px 30px; font-size: 1.1rem; border-radius: 16px; }
.btn-small { padding: 8px 16px; font-size: .9rem; border-radius: 12px; }
.btn-ghost { background: transparent; }
@keyframes shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ------------------------------------------------------------ hero */
.hero {
  position: relative; min-height: calc(100vh - 70px);
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  padding: 40px clamp(16px, 6vw, 96px) 140px; overflow: hidden;
}
.eyebrow { color: var(--cyan); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 700; margin: 0 0 12px; }
.neon-title {
  margin: 0; font-size: clamp(3rem, 9vw, 6.5rem); line-height: .95; font-weight: 900; letter-spacing: .02em;
  color: #ffe9fb;
  text-shadow: 0 0 6px #fff, 0 0 18px var(--pink), 0 0 42px var(--pink), 0 0 80px #ff2bd688;
  animation: flicker 7s infinite;
}
.neon-title span {
  color: #e8fdff;
  text-shadow: 0 0 6px #fff, 0 0 18px var(--cyan), 0 0 42px var(--cyan), 0 0 80px #00e5ff88;
}
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: .45; }
}
.lead { font-size: 1.15rem; color: #cfcbe8; max-width: 38rem; margin: 22px 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.counter-pill {
  display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px;
  background: #ffffff0a; border: 1px solid var(--border); color: var(--muted);
}
.counter-pill strong { color: var(--text); font-variant-numeric: tabular-nums; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #2ed47a; margin-right: 10px; box-shadow: 0 0 0 0 #2ed47a88; animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px #2ed47a00; } 100% { box-shadow: 0 0 0 0 #2ed47a00; } }
.hint { color: var(--muted); font-size: .9rem; margin-top: 18px; }

.hero-visual { position: relative; display: grid; place-items: center; height: 420px; perspective: 900px; }
.logo3d { animation: float3d 7s ease-in-out infinite; transform-style: preserve-3d; filter: drop-shadow(0 0 28px #8b5cffaa) drop-shadow(0 0 60px #ff2bd655); }
.logo3d img { width: clamp(180px, 22vw, 280px); }
@keyframes float3d {
  0%, 100% { transform: rotateY(-22deg) rotateX(8deg) translateY(0); }
  50% { transform: rotateY(22deg) rotateX(-6deg) translateY(-18px); }
}
.rings { position: absolute; inset: 0; display: grid; place-items: center; }
.rings i {
  position: absolute; width: 260px; height: 260px; border-radius: 50%;
  border: 2px solid transparent; background: var(--neon) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; animation: ring 3.6s ease-out infinite;
}
.rings i:nth-child(2) { animation-delay: 1.2s; }
.rings i:nth-child(3) { animation-delay: 2.4s; }
@keyframes ring { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

.grid-floor {
  position: absolute; left: -50%; right: -50%; bottom: -10px; height: 260px;
  background-image:
    linear-gradient(to right, #ff2bd655 1px, transparent 1px),
    linear-gradient(to top, #00e5ff55 1px, transparent 1px);
  background-size: 60px 40px;
  transform: perspective(300px) rotateX(62deg); transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  animation: grid 2.2s linear infinite; pointer-events: none;
}
@keyframes grid { to { background-position: 0 40px; } }

/* ------------------------------------------------------------ showcase */
.showcase { padding: 0 clamp(16px, 6vw, 96px); margin-top: -60px; position: relative; z-index: 1; }
.window-frame {
  max-width: 1100px; margin: 0 auto; border-radius: 16px; overflow: hidden;
  border: 1px solid #ffffff1a;
  box-shadow: 0 30px 80px #000a, 0 0 0 1px #8b5cff33, 0 0 60px #8b5cff33;
  transform: perspective(1400px) rotateX(6deg); transition: transform .6s;
}
.window-frame:hover { transform: perspective(1400px) rotateX(0deg); }

/* ------------------------------------------------------------ sections */
.section { padding: 110px clamp(16px, 6vw, 96px) 40px; max-width: 1240px; margin: 0 auto; }
.section.narrow { max-width: 860px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; margin: 0 0 48px; }
.section-title::after { content: ""; display: block; width: 90px; height: 3px; margin: 14px auto 0; border-radius: 3px; background: var(--neon); box-shadow: 0 0 14px var(--violet); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  position: relative; padding: 26px; border-radius: var(--radius);
  background: linear-gradient(160deg, #1a1534, #0f0c20); border: 1px solid var(--border);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); border-color: #8b5cff88; box-shadow: 0 0 34px #8b5cff33; }
.card .icon { font-size: 1.8rem; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: #ffffff0c; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }

/* steps */
.step { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: center; margin-bottom: 80px; }
.step:nth-of-type(even) .step-text { order: 2; }
.step-no {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  font-weight: 900; font-size: 1.3rem; color: #fff; background: var(--neon); box-shadow: 0 0 22px #8b5cff77;
}
.step h3 { font-size: 1.5rem; margin: 16px 0 10px; }
.step p { color: #cfcbe8; }
.note { font-size: .92rem; color: var(--muted) !important; border-left: 3px solid var(--violet); padding-left: 12px; }
.step-shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid #ffffff1a; box-shadow: 0 20px 60px #0009, 0 0 40px #8b5cff22; transition: transform .4s; }
.step-shot:hover { transform: scale(1.02); }
.step-shot.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #ffffff1a; }

/* download */
.download-card {
  max-width: 760px; margin: 0 auto; text-align: center; padding: 48px clamp(20px, 5vw, 56px);
  border-radius: 28px; position: relative;
  background: linear-gradient(160deg, #1d1640, #0c0a1c);
  box-shadow: 0 0 0 2px #8b5cff55, 0 0 60px #8b5cff33, 0 0 120px #ff2bd622;
}
.dl-logo { margin: 0 auto 10px; filter: drop-shadow(0 0 20px #8b5cff99); animation: float3d 7s ease-in-out infinite; }
.download-card h2 { font-size: 2rem; margin: 6px 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.big-counter { margin: 30px 0 18px; display: flex; flex-direction: column; align-items: center; }
.big-counter strong {
  font-size: clamp(2.6rem, 7vw, 4rem); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums;
  background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 16px #8b5cff88);
}
.big-counter span { color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin-top: 6px; }
.big-counter.bump strong { animation: bump .6s ease; }
@keyframes bump { 40% { transform: scale(1.18); } }
.checksum { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.checksum span { color: var(--muted); font-size: .85rem; }
.checksum code { word-break: break-all; font-size: .78rem; max-width: 100%; }

/* faq */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; transition: border-color .2s; }
details[open] { border-color: #8b5cff77; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; position: relative; padding-right: 30px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.4rem; color: var(--cyan); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 0 0 16px; }

/* footer */
.footer { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px 16px; color: var(--muted); border-top: 1px solid #ffffff0d; margin-top: 60px; flex-wrap: wrap; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: var(--surface2); border: 1px solid #8b5cff77; border-radius: 14px; padding: 12px 20px;
  box-shadow: 0 0 30px #8b5cff44; z-index: 20;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-bottom: 120px; }
  .hero-cta { justify-content: center; }
  .lead { margin-inline: auto; }
  .hero-visual { height: 300px; order: -1; }
  .step { grid-template-columns: 1fr; gap: 20px; }
  .step:nth-of-type(even) .step-text { order: 0; }
  .nav nav a:not(.btn) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
