:root {
  --bg: #0a0c11;
  --card: #13161f;
  --ink: #eef1f6;
  --muted: #939aab;
  --faint: #5a6070;
  --blue: #4d7cff;
  --blue-2: #82a4ff;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.14);
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace;
  --pad: clamp(20px, 5vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.bg span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.bg .o1 { width: 520px; height: 520px; top: -160px; right: -120px; background: #2b53d8; animation: drift1 22s ease-in-out infinite; }
.bg .o2 { width: 420px; height: 420px; top: 420px; left: -160px; background: #3f3aa8; opacity: 0.35; animation: drift2 28s ease-in-out infinite; }
.bg .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(130, 164, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 164, 255, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(120% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 70% at 50% 0%, #000 30%, transparent 75%);
  filter: none;
  opacity: 1;
}

@keyframes drift1 { 50% { transform: translate(-60px, 70px) scale(1.1); } }
@keyframes drift2 { 50% { transform: translate(80px, -50px) scale(1.08); } }

.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: var(--pad); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 13px 22px;
  border-radius: 11px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.btn:hover { background: #3d6cf5; box-shadow: 0 14px 32px -10px rgba(77, 124, 255, 0.8); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn .v { font-family: var(--mono); font-size: 12px; opacity: 0.85; font-weight: 500; }
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
}
.btn:hover::after { animation: shine 0.7s ease; }
@keyframes shine { to { left: 130%; } }

.btn.small { padding: 9px 16px; font-size: 14px; border-radius: 9px; }
.btn.lg { padding: 15px 26px; font-size: 16px; }

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 12, 17, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 18px; }
.brand .gem { width: 24px; height: 24px; border-radius: 7px; animation: bob 5s ease-in-out infinite; }
.brand span { font-weight: 700; }
@keyframes bob { 50% { transform: translateY(-3px) rotate(-3deg); } }

.links { display: flex; align-items: center; gap: 28px; }
.links > a:not(.btn) { color: var(--muted); font-size: 15px; }
.links > a:not(.btn):hover { color: var(--ink); }

.burger { display: none; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; padding: 11px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.burger span + span { margin-top: 5px; }

.hero { display: grid; grid-template-columns: 1.04fr 1.06fr; gap: clamp(36px, 5vw, 64px); align-items: center; padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 90px); }

.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.3px;
  color: var(--blue-2);
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(77, 124, 255, 0.08);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(38px, 6.4vw, 66px);
  line-height: 1.02;
  letter-spacing: -2px;
  font-weight: 700;
  margin-top: 22px;
}
.hero h1 em { font-style: normal; color: var(--blue-2); }

.hero p { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); margin-top: 22px; max-width: 44ch; }

.cta { margin-top: 34px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cta .note { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }

.preview { position: relative; perspective: 1100px; }
.preview::before {
  content: "";
  position: absolute;
  inset: -10% -6%;
  background: radial-gradient(58% 58% at 62% 38%, rgba(77, 124, 255, 0.4), transparent 70%);
  filter: blur(16px);
  z-index: -1;
  animation: glow 6.5s ease-in-out infinite;
}
.preview .ring {
  padding: 1.5px;
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(140, 170, 255, 0.6), rgba(77, 124, 255, 0.05) 42%, rgba(255, 255, 255, 0.08));
  box-shadow: 0 55px 110px -40px rgba(0, 0, 0, 0.9);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  transform-style: preserve-3d;
  will-change: transform;
}
.preview .ring img { width: 100%; display: block; border-radius: 14.5px; }

@keyframes glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.04); }
}

section { padding: clamp(54px, 8vw, 96px) 0; }
.head { max-width: 600px; }
.head .kicker { background: none; border: 0; padding: 0; }
.head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(27px, 4vw, 36px); letter-spacing: -1px; margin-top: 12px; }
.head p { color: var(--muted); margin-top: 10px; }

.list { margin-top: clamp(32px, 4vw, 48px); }
.item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 6px 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.list .item:last-child { border-bottom: 1px solid var(--line); }
.item .no { font-family: var(--mono); font-size: 14px; color: var(--blue-2); padding-top: 6px; }
.item h3 { font-family: var(--display); font-size: clamp(18px, 2.2vw, 21px); font-weight: 600; letter-spacing: -0.3px; }
.item p { color: var(--muted); margin-top: 7px; max-width: 60ch; font-size: 15px; }

.steps { margin-top: clamp(30px, 4vw, 46px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.step .tag { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.step h3 { font-family: var(--display); font-size: 18px; margin: 9px 0 6px; font-weight: 600; }
.step p { color: var(--muted); font-size: 14.5px; }

.faq { margin-top: clamp(28px, 3.5vw, 40px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 21px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(15.5px, 2vw, 17px);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 11px; height: 11px;
  flex: none;
  background:
    linear-gradient(var(--blue-2), var(--blue-2)) center / 11px 2px no-repeat,
    linear-gradient(var(--blue-2), var(--blue-2)) center / 2px 11px no-repeat;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: #fff; }
.faq .a { color: var(--muted); font-size: 15px; padding-bottom: 22px; max-width: 72ch; }
.faq .a b { color: var(--ink); font-weight: 600; }

.download {
  border: 1px solid var(--line-2);
  border-radius: 24px;
  padding: clamp(34px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(77, 124, 255, 0.18), transparent 60%),
    var(--card);
}
.download h2 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4vw, 38px); letter-spacing: -1px; max-width: 14ch; }
.download .right { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.download .right .note { color: var(--muted); font-size: 14px; }

footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 80px);
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12.5px;
}
footer .brand { font-size: 14px; color: var(--muted); }
footer .brand .gem { width: 18px; height: 18px; }

[data-r] { opacity: 0; transform: translateY(22px); }
html.js [data-r] {
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s);
}
html.js [data-r].show { opacity: 1; transform: none; }
html:not(.js) [data-r] { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .preview { order: -1; max-width: 560px; }
}

@media (max-width: 680px) {
  .links { display: none; }
  .burger { display: block; }
  header.open .links {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px var(--pad) 20px;
    background: rgba(12, 15, 22, 0.98);
    border-bottom: 1px solid var(--line);
  }
  header.open .links > a { padding: 12px 4px; font-size: 16px; }
  header.open .links > a.btn { justify-content: center; margin-top: 8px; }
  header.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  header.open .burger span:nth-child(2) { opacity: 0; }
  header.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .steps { grid-template-columns: 1fr; gap: 26px; }
  .item { grid-template-columns: 38px 1fr; gap: 2px 14px; padding: 22px 0; }
  .item .no { padding-top: 4px; font-size: 12.5px; }
  .download { flex-direction: column; align-items: flex-start; }
  .cta { gap: 14px; }
  .cta .btn { width: 100%; justify-content: center; }
}

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

/* live stats (downloads · playing now) */
.stats {
  display: flex; align-items: center; gap: 12px; margin-top: 18px;
  font-size: 14px; color: var(--muted);
}
.stats .stat { display: inline-flex; align-items: center; gap: 6px; }
.stats strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.stats .stat-dot { color: var(--faint); }
.stats .live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.5); animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

/* language toggle */
.lang-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2);
  color: var(--muted); border-radius: 999px; padding: 5px 11px;
  font-family: var(--body); font-size: 12px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.lang-toggle:hover { border-color: var(--blue); background: rgba(77, 124, 255, 0.1); }
.lang-toggle .lang-sep { color: var(--faint); }
.lang-toggle .lang-opt { color: var(--faint); transition: color .15s; }
.lang-toggle .lang-opt.active { color: var(--blue-2); }
