/* =========================================================
   Diamond MTA — v2
   ========================================================= */
:root {
  color-scheme: dark;
  --bg: #070b16;
  --panel: #0d1528;
  --panel-2: #131e36;
  --panel-3: #1a2742;
  --line: rgba(120, 160, 230, 0.10);
  --line-2: rgba(120, 160, 230, 0.18);
  --indigo: #2d67cf;
  --indigo-2: #3b82f6;
  --indigo-3: #1f4fa8;
  --electric: #28bff0;
  --peri: #60a5fa;
  --text: #eef3fb;
  --muted: #8b97ad;
  --muted-2: #5d6a82;
  --green: #22c55e;

  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 76px;
  --font: "Vazirmatn", system-ui, sans-serif;
  --font-latin: "Unbounded", "Vazirmatn", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.75;
  color: var(--text); background: var(--bg);
  overflow-x: clip; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { line-height: 1.3; text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
::selection { background: rgba(82, 87, 245, .5); color: #fff; }
:focus-visible { outline: 2px solid var(--peri); outline-offset: 3px; border-radius: 8px; }
* { scrollbar-width: thin; scrollbar-color: #22355e transparent; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c2b4a; border-radius: 9px; border: 2px solid var(--bg); }

.num { font-family: var(--font-latin); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.hl { color: var(--peri); }
.accent {
  background: linear-gradient(90deg, #7cc4ff, #3b82f6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-mid { max-width: 960px; }

.skip-link { position: fixed; top: 10px; right: 10px; z-index: 300; background: var(--indigo); color: #fff; font-weight: 700; padding: 8px 16px; border-radius: 10px; transform: translateY(-160%); transition: transform .25s var(--ease); }
.skip-link:focus { transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 700; line-height: 1; white-space: nowrap; user-select: none;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .3s ease, color .25s ease, transform .15s var(--ease);
}
.btn-primary {
  color: #fff; background: linear-gradient(135deg, #3b82f6, #2d67cf);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 1px rgba(59,130,246,.6), 0 8px 24px -8px rgba(45,103,207,.9);
}
.btn-primary:hover { background: linear-gradient(135deg, #4b8ff8, #3574dd); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px rgba(96,165,250,.8), 0 10px 32px -8px rgba(59,130,246,1); }
.btn-outline {
  color: var(--text); background: rgba(10,10,16,.6);
  box-shadow: inset 0 0 0 1px rgba(96,165,250,.35);
}
.btn-outline:hover { background: rgba(45,103,207,.12); box-shadow: inset 0 0 0 1px rgba(96,165,250,.6); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-white { color: #0b1730; background: #fff; box-shadow: 0 8px 24px -10px rgba(255,255,255,.5); }
.btn-white:hover { background: #e3efff; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn-lg { height: 50px; padding: 0 28px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: 14px; }
.header-bar {
  height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-inline: 18px 10px; border-radius: 16px;
  background: rgba(14,15,22,.62); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled .header-bar { background: rgba(14,15,22,.85); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 16px 40px -20px rgba(0,0,0,.9); }
.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand span { font-family: var(--font-latin); font-weight: 700; font-size: 14px; color: var(--text); }
.brand b { color: var(--peri); font-weight: 700; }

.nav { display: none; align-items: center; gap: 2px; }
.nav a { padding: 7px 11px; border-radius: 9px; font-size: 13.5px; color: var(--muted); white-space: nowrap; transition: color .2s ease, background-color .2s ease; }
.nav a:hover { color: var(--text); }
.nav a.is-active { color: var(--text); background: rgba(255,255,255,.06); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.hide-lt-md { display: none; }
.menu-btn { width: 40px; height: 40px; border-radius: 11px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-2); }
.menu-btn span { width: 17px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav {
  margin-top: 8px; padding: 10px; border-radius: 16px;
  background: rgba(14,15,22,.96); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px #000; max-height: calc(100dvh - 100px); overflow-y: auto;
}
.mobile-nav nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 8px; }
.mobile-nav nav a { padding: 11px 14px; border-radius: 11px; color: var(--muted); }
.mobile-nav nav a:active, .mobile-nav nav a:hover { background: rgba(255,255,255,.05); color: var(--text); }

.scroll-progress { position: absolute; inset: auto 0 -2px 0; height: 2px; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: linear-gradient(270deg, var(--peri), var(--indigo), var(--electric)); transform-origin: right; transform: scaleX(0); opacity: .75; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding: calc(var(--header-h) + 34px) 0 0; overflow: hidden; }
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.stars {
  position: absolute; inset: 0; opacity: .75;
  background-image:
    radial-gradient(1px 1px at 8% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 62%, #cfe3ff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 36% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 40%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 8%, #93c5fd 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 74% 28%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 54%, #cfe3ff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 16%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 12% 84%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 80%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 44% 70%, #fff 50%, transparent 51%);
}
.stars::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 85%, rgba(255,255,255,.5) 50%, transparent 51%);
  background-size: 300px 300px;
}
/* spotlight from the top-left corner, like the reference */
.beam {
  position: absolute; top: -10%; left: -24%;
  width: clamp(160px, 18vw, 320px); height: 130%;
  transform-origin: top center; transform: rotate(-38deg);
  background: linear-gradient(90deg, transparent, rgba(59,130,246,.12) 30%, rgba(150,200,255,.42) 48%, rgba(225,240,255,.6) 50%, rgba(150,200,255,.38) 52%, rgba(59,130,246,.1) 70%, transparent);
  filter: blur(18px); mix-blend-mode: screen;
  animation: beam-breathe 10s ease-in-out infinite;
}
.beam-wide {
  width: clamp(360px, 46vw, 820px); left: -34%; opacity: .5;
  background: linear-gradient(90deg, transparent, rgba(45,103,207,.2) 40%, rgba(40,191,240,.12) 60%, transparent);
  filter: blur(50px); animation-name: beam-breathe-soft;
}
.beam-hit {
  position: absolute; left: 50%; top: 96px; width: 420px; height: 300px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(59,130,246,.28), transparent 70%);
}
@keyframes beam-breathe { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
@keyframes beam-breathe-soft { 0%, 100% { opacity: .4; } 50% { opacity: .6; } }

.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.news-pill {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  height: 34px; padding: 0 6px 0 12px; padding-inline: 5px 14px;
  border-radius: 999px; font-size: 13px; color: #c6c8d8;
  background: rgba(20,21,30,.7); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow .25s ease;
}
.news-pill:hover { box-shadow: inset 0 0 0 1px rgba(96,165,250,.45); }
.news-pill > span:not(.news-tag) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-tag { flex-shrink: 0; height: 24px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--indigo); color: #fff; font-size: 12px; font-weight: 700; }
.news-pill svg { flex-shrink: 0; color: var(--muted); }

.gem-stage { position: relative; width: clamp(150px, 18vw, 210px); aspect-ratio: 1; margin: 18px 0 4px; }
.gem-canvas, .gem-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.gem-fallback { display: none; padding: 10%; }
.gem-stage.no-webgl .gem-canvas { display: none; }
.gem-stage.no-webgl .gem-fallback { display: block; }
.gem-halo { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(59,130,246,.35), transparent 72%); filter: blur(14px); }

.hero-title { display: flex; flex-direction: column; align-items: center; font-weight: 800; font-size: clamp(1.95rem, 1.1rem + 4.6vw, 4.4rem); line-height: 1.22; letter-spacing: -.01em; }
.hero-lead { margin-top: 18px; max-width: 36em; color: #a6a8b8; font-size: clamp(.95rem, .9rem + .25vw, 1.08rem); line-height: 2; }
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* dashboard preview */
.preview-wrap { position: relative; margin-top: clamp(44px, 6vw, 72px); perspective: 1400px; }
.preview-glow { position: absolute; inset: 4% 10% auto; height: 70%; border-radius: 50%; background: radial-gradient(closest-side, rgba(45,103,207,.32), transparent 75%); filter: blur(40px); pointer-events: none; }
.preview {
  position: relative; border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #111b31, #0b1222 60%);
  border: 1px solid rgba(96,165,250,.16); border-bottom: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 -20px 80px -30px rgba(45,103,207,.6);
  padding: clamp(12px, 2vw, 20px);
  transform-origin: center top;
  padding-bottom: clamp(28px, 4vw, 44px);
  -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent);
          mask-image: linear-gradient(180deg, #000 86%, transparent);
}
.pv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); }
.pv-brand { font-family: var(--font-latin); font-size: 13px; font-weight: 700; }
.pv-brand b { color: var(--peri); }
.pv-live { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.18); }

.pv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 6px; }
.pv-hello { font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); font-weight: 700; }
.pv-stats { display: flex; gap: clamp(16px, 3vw, 34px); }
.pv-stats > div { display: flex; flex-direction: column-reverse; }
.pv-stats dt { font-size: 11.5px; color: var(--muted); }
.pv-stats dd { display: flex; align-items: center; gap: 8px; }
.pv-stats b { font-size: clamp(1.1rem, .9rem + .9vw, 1.7rem); font-weight: 700; }
.stat-ico { width: 20px; height: 20px; border-radius: 50%; position: relative; }
.stat-ico::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: currentColor; }
.ico-green { color: var(--green); background: rgba(34,197,94,.15); }
.ico-indigo { color: var(--peri); background: rgba(96,165,250,.15); }
.ico-blue { color: #38bdf8; background: rgba(40,191,240,.18); }

.pv-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.pv-card { border-radius: 16px; padding: 16px; background: var(--panel-2); border: 1px solid var(--line); }
.pv-card-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pv-card-title { font-size: 13px; font-weight: 700; color: #d6d7e3; }
.pv-chip { font-size: 11px; color: var(--muted); padding: 2px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.pv-list { margin-top: 10px; display: flex; flex-direction: column; }
.pv-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 13px; border-top: 1px solid var(--line); }
.pv-list li:first-child { border-top: 0; }
.pv-list span { color: var(--muted); }
.pv-list b { font-size: 12.5px; font-weight: 700; }
.pv-bars { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.pv-bars li { display: grid; grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 12px; }
.pv-bars .n { color: #c6c8d8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }
.pv-bars .track { height: 8px; border-radius: 99px; background: rgba(255,255,255,.05); overflow: hidden; }
.pv-bars .track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(270deg, #28bff0, #3b82f6 55%, var(--indigo)); transform-origin: right; }
.pv-bars li:nth-child(2n) .track i { background: linear-gradient(270deg, var(--peri), var(--indigo)); }
.pv-bars .v { color: var(--muted); font-size: 11.5px; direction: ltr; }
.pv-connect {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, rgba(40,191,240,.22), transparent 60%), linear-gradient(160deg, #164a63, #133349 60%, #112a44);
  border-color: rgba(40,191,240,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 40px -22px rgba(40,191,240,.6);
  display: flex; flex-direction: column; gap: 8px;
}
.pv-connect::before { content: ""; position: absolute; top: -40%; left: -30%; width: 60%; height: 180%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); transform: rotate(25deg); pointer-events: none; }
.pv-connect .pv-card-title { color: #5ed3f5; }
.pv-connect-text { font-size: 12.5px; color: rgba(255,255,255,.82); }
.pv-ip { margin-top: 4px; padding: 10px 12px; border-radius: 11px; background: rgba(3,22,48,.35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); font-size: 13px; font-weight: 700; text-align: left; }
.pv-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv-connect-btn, .pv-copy { height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; transition: background-color .2s ease, transform .15s var(--ease); }
.pv-connect-btn svg, .pv-copy svg { flex-shrink: 0; }
.pv-connect-btn { background: linear-gradient(135deg, #3596f4, #28bff0); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 20px -8px rgba(40,191,240,.8); }
.pv-connect-btn:hover { background: linear-gradient(135deg, #47a3f7, #3fcaf3); }
.pv-copy { background: rgba(3,22,48,.35); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.pv-copy:hover { background: rgba(3,22,48,.5); }
.pv-copy.is-done { background: rgba(34,197,94,.18); color: #86efac; box-shadow: inset 0 0 0 1px rgba(34,197,94,.5); }
.pv-ip-val { display: inline-flex; align-items: center; gap: 8px; }
.pv-ip-val b { line-height: 1; }
.icon-copy { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-2); transition: color .2s ease, background-color .2s ease; }
.icon-copy svg { display: block; }
.icon-copy:hover { color: #fff; background: rgba(45,103,207,.25); }
.icon-copy.is-done { color: var(--green); background: rgba(34,197,94,.14); }
.pv-list li { min-height: 46px; }

/* ---------- sections ---------- */
.section { position: relative; padding-top: clamp(80px, 10vw, 140px); }
.section-cta { padding-bottom: clamp(80px, 10vw, 130px); }
.sec-head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.sec-head h2 { font-weight: 800; font-size: clamp(1.75rem, 1.2rem + 2.3vw, 2.8rem); }
.sec-head p { margin-top: 12px; color: var(--muted); }

.card {
  position: relative; border-radius: 20px; padding: 24px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 24px 50px -30px rgba(0,0,0,.9);
  transition: border-color .3s ease;
}
.card:hover { border-color: var(--line-2); }
.card h3 { font-size: 1.08rem; font-weight: 700; margin-top: 16px; }
.card p { margin-top: 6px; font-size: .93rem; color: var(--muted); line-height: 1.9; }
.tilt { transform-style: preserve-3d; }
.panel { border-radius: 22px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 30px 60px -30px rgba(0,0,0,.95); }

.ico {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--peri); background: rgba(45,103,207,.12); box-shadow: inset 0 0 0 1px rgba(96,165,250,.22);
}
.ico-solid { color: #fff; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }

/* bento */
.bento { display: grid; grid-template-columns: 1fr; gap: 14px; }
.b-economy { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; overflow: hidden; }
.b-economy h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); font-weight: 800; }
.b-economy .card-copy p { max-width: 32em; }
.mini-chart { margin: 0 -24px -24px; height: 130px; }
.mini-chart svg { width: 100%; height: 100%; }
.toggle-row { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: #c6c8d8; }
.toggle { width: 38px; height: 22px; border-radius: 99px; background: #24324d; position: relative; }
.toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.toggle.is-on { background: var(--indigo); }
.toggle.is-on::after { transform: translateX(-16px); }
.avatars { margin-top: 18px; display: flex; }
.avatars i { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-family: var(--font-latin); font-size: 10.5px; font-weight: 700; color: #fff; background: linear-gradient(145deg, #3b82f6, #1f4fa8); border: 2px solid var(--panel); margin-inline-start: -8px; }
.avatars i:first-child { margin-inline-start: 0; }
.avatars i:nth-child(2) { background: linear-gradient(145deg, #2f80ff, #1a56b8); }
.avatars i:nth-child(3) { background: linear-gradient(145deg, #28bff0, #0e6f96); }
.avatars i:nth-child(4) { background: linear-gradient(145deg, #e0913f, #8a4b17); }
.avatars i:last-child { background: var(--panel-3); color: var(--muted); }

/* tutorial */
.tutorial { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.steps-wrap { position: relative; }
.steps-line { position: absolute; top: 10px; bottom: 10px; right: 21px; width: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.steps-line i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--peri), var(--indigo), var(--electric)); transform-origin: top; transform: scaleY(0); }
.steps { display: flex; flex-direction: column; gap: 14px; }
.step { position: relative; display: flex; gap: 18px; align-items: flex-start; padding: 14px 16px 14px 14px; border-radius: 16px; transition: background-color .35s ease, box-shadow .35s ease; }
.step-num {
  position: relative; z-index: 1; flex-shrink: 0; width: 44px; height: 44px; margin-right: -14px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--muted);
  background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 0 0 6px var(--bg);
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.step h3 { font-size: 1.05rem; font-weight: 700; }
.step p { margin-top: 4px; font-size: .93rem; color: var(--muted); }
.step.is-reached .step-num { color: #fff; background: var(--indigo); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 6px var(--bg), 0 8px 20px -6px rgba(45,103,207,.9); }
.step.is-current { background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line); }

.mta-window { border-radius: 16px; overflow: hidden; background: #0d1528; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(45,103,207,.6), 0 20px 50px -30px #000; font-size: 12.5px; }
.mw-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #131e36; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11.5px; }
.mw-bar i { width: 10px; height: 10px; border-radius: 50%; background: #263550; }
.mw-bar i:nth-child(1) { background: #ff5f57; } .mw-bar i:nth-child(2) { background: #febc2e; } .mw-bar i:nth-child(3) { background: #28c840; }
.mw-bar span { margin-left: 8px; }
.mw-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px; border-bottom: 1px solid var(--line); }
.mw-search span { color: var(--muted-2); font-size: 11.5px; }
.mw-search b { padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--font-latin); font-size: 12px; font-weight: 500; }
.mw-row { display: grid; grid-template-columns: 1fr 80px; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); align-items: center; }
.mw-head { color: var(--muted-2); font-size: 11px; }
.mw-row.is-sel { background: rgba(45,103,207,.16); box-shadow: inset 3px 0 0 var(--indigo); font-weight: 700; }
.mw-gem { display: inline-block; width: 10px; height: 10px; margin-right: 8px; transform: rotate(45deg); background: var(--peri); border-radius: 2px; vertical-align: 1px; }
.mw-skel { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.06); }
.mw-foot { display: flex; justify-content: flex-end; padding: 14px; }
.mw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 18px; border-radius: 9px; background: var(--indigo); color: #fff; font-weight: 700; font-size: 12px; line-height: 1; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 8px 20px -8px rgba(45,103,207,.9); transition: background-color .2s ease, transform .15s var(--ease); }
.mw-btn:hover { background: var(--indigo-2); }

/* downloads */
.downloads { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: stretch; }
.dl { display: flex; flex-direction: column; padding: 26px; }
.dl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dl-size { font-size: 12.5px; color: var(--muted); padding: 4px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.dl h3 { font-size: 1.15rem; margin-top: 20px; }
.dl .ltr-title { text-align: right; }
.dl > p { flex: 0; }
.dl-feats { margin: 18px 0 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dl-feats li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #c6c8d8; }
.dl-feats li::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; background: rgba(45,103,207,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa0ff' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/11px no-repeat; }
.dl-featured {
  color: #fff; border-color: rgba(140,180,255,.5);
  background: radial-gradient(120% 80% at 80% 0%, rgba(255,255,255,.18), transparent 50%), linear-gradient(165deg, #28bff0, #3596f4 40%, #2d67cf);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 30px 60px -24px rgba(40,191,240,.75);
}
.dl-featured p, .dl-featured .dl-feats li { color: rgba(255,255,255,.85); }
.dl-featured .dl-size { color: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.dl-featured .dl-feats li::before { background-color: rgba(255,255,255,.2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E"); }
.badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #0b1730; background: #fff; box-shadow: 0 6px 16px -6px rgba(0,0,0,.6); }

/* team */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.member { padding: 22px 12px; text-align: center; }
.member-av { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-latin); font-size: 15px; font-weight: 700; color: #fff; background: linear-gradient(145deg, #3b82f6, #1f4fa8); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 4px rgba(45,103,207,.12), 0 14px 28px -12px rgba(45,103,207,.8); }
.member[data-accent="blue"] .member-av { background: linear-gradient(145deg, #3aa0f5, #1a56b8); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 4px rgba(40,191,240,.12), 0 14px 28px -12px rgba(40,191,240,.8); }
.member[data-accent="ice"] .member-av { background: linear-gradient(145deg, #93c5fd, #2d67cf); }
.member h3 { margin-top: 14px; font-family: var(--font-latin); font-size: .92rem; }
.member p { margin-top: 2px; font-size: .8rem; }
.member .role { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; font-size: 11px; color: var(--peri); background: rgba(45,103,207,.12); }

/* leaderboard */
.lb-panel { padding: clamp(14px, 2.5vw, 24px); }
.lb-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; }
.seg-ind { position: absolute; top: 4px; bottom: 4px; right: 0; width: 0; border-radius: 999px; background: var(--indigo); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 16px -6px rgba(45,103,207,.9); transition: transform .45s var(--ease), width .45s var(--ease); }
.seg-btn { position: relative; z-index: 1; height: 36px; padding: 0 clamp(14px, 3vw, 24px); border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap; transition: color .3s ease; }
.seg-btn:hover { color: var(--text); }
.seg-btn.is-active { color: #fff; }
.seg-sm .seg-btn { height: 32px; font-size: 12.5px; padding: 0 clamp(12px, 2.5vw, 18px); }
.lb-list { transition: opacity .2s ease, transform .2s ease; }
.lb-list.is-switching { opacity: 0; transform: translateY(6px); }
.lb-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 6px; border-bottom: 1px solid var(--line); }
.lb-row:last-child { border-bottom: 0; }
.lb-rank { position: relative; width: 38px; height: 38px; border-radius: 11px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: var(--font-latin); font-weight: 700; font-size: 13px; color: var(--muted); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-2); }
.lb-rank img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lb-row.r1 .lb-rank { color: #fff; background: var(--indigo); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 18px -6px rgba(45,103,207,.9); }
.lb-row.r2 .lb-rank { color: #fff; background: var(--electric); }
.lb-row.r3 .lb-rank { color: #fff; background: #2b3a58; }
.lb-main { min-width: 0; }
.lb-name { display: block; font-weight: 700; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; unicode-bidi: plaintext; }
.lb-meter { display: block; margin-top: 8px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.05); overflow: hidden; max-width: 320px; }
.lb-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(270deg, var(--peri), var(--indigo)); transform-origin: right; }
.lb-val { font-size: 12.5px; font-weight: 700; color: var(--peri); white-space: nowrap; direction: ltr; }
.lb-empty { padding: 36px 10px; text-align: center; color: var(--muted); }

/* blog */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.blog-grid-extra { padding-top: 14px; }
.post { display: flex; flex-direction: column; text-align: right; width: 100%; padding: 22px; cursor: pointer; }
.post:hover .post-more svg { transform: translateX(-4px); }
.post-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--peri); background: rgba(45,103,207,.14); }
.chip-blue { color: #7dd3fc; background: rgba(40,191,240,.14); }
.chip-ice { color: #d9dbe8; background: rgba(255,255,255,.07); }
.post-date { font-size: 12px; color: var(--muted); }
.post h3 { margin-top: 16px; font-size: 1.08rem; line-height: 1.8; }
.post p { flex: 1; }
.post-more { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--peri); }
.post-more svg { transition: transform .3s var(--ease); }
.post.is-lead { background: radial-gradient(80% 120% at 100% 0%, rgba(45,103,207,.22), transparent 60%), linear-gradient(180deg, var(--panel-2), var(--panel)); }
.post.is-lead h3 { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.65rem); }
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.collapse.open { grid-template-rows: 1fr; }
.collapse > div { overflow: hidden; min-height: 0; }
.more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.chev { transition: transform .35s var(--ease); }
.chev.is-flipped { transform: rotate(180deg); }

/* updates (timeline) */
.updates-wrap { position: relative; padding-right: 28px; }
.updates-wrap::before { content: ""; position: absolute; top: 18px; bottom: 18px; right: 7px; width: 2px; background: linear-gradient(180deg, var(--indigo), rgba(45,103,207,.1)); border-radius: 2px; }
.updates { display: flex; flex-direction: column; gap: 12px; }
.updates-extra { padding-top: 12px; }
.update { position: relative; padding: 0; }
.update::before { content: ""; position: absolute; top: 26px; right: -27px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--indigo); }
.update:first-child::before { background: var(--indigo); box-shadow: 0 0 0 4px rgba(45,103,207,.25); }
.update.is-open { border-color: var(--line-2); }
.update-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: right; }
.update-info { flex: 1; min-width: 0; }
.update-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 2px; }
.update-ver { font-size: 11.5px; color: var(--muted); }
.update-date { font-size: 12px; color: var(--muted); margin-inline-start: auto; }
.update-title { display: block; font-size: 1rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev-box { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--peri); background: rgba(45,103,207,.1); }
.update.is-open .chev { transform: rotate(180deg); }
.update-body ul { margin: 0 18px; padding: 14px 0 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.change { display: flex; align-items: flex-start; gap: 12px; }
.change-type { flex-shrink: 0; margin-top: 3px; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 11px; font-weight: 700; white-space: nowrap; color: var(--peri); background: rgba(45,103,207,.12); }
.change-type.t-blue { color: #7dd3fc; background: rgba(40,191,240,.13); }
.change-type.t-ice { color: #d9dbe8; background: rgba(255,255,255,.06); }
.change-text { font-size: .92rem; color: #b4b6c6; line-height: 1.9; }

/* CTA */
.cta { position: relative; overflow: hidden; text-align: center; border-radius: 28px; padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 60px); background: radial-gradient(70% 100% at 50% 120%, rgba(45,103,207,.45), transparent 65%), linear-gradient(180deg, #0f182c, #080d1a); border: 1px solid rgba(96,165,250,.14); }
.cta-beam { position: absolute; top: -40%; left: -4%; width: 22%; height: 200%; transform: rotate(-36deg); transform-origin: top center; background: linear-gradient(90deg, transparent, rgba(150,200,255,.3) 48%, rgba(225,240,255,.4) 50%, rgba(150,200,255,.25) 52%, transparent); filter: blur(16px); pointer-events: none; }
.cta-stars { position: absolute; inset: 0; opacity: .5; pointer-events: none; background-image: radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 80% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 60% 70%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 35% 80%, #fff 50%, transparent 51%); }
.cta h2 { position: relative; font-weight: 800; font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); }
.cta p { position: relative; margin: 14px auto 0; max-width: 30em; color: #a6a8b8; }
.cta-actions { position: relative; margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 24px; background: linear-gradient(180deg, transparent, rgba(45,103,207,.04)); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; }
.f-brand p { margin-top: 14px; max-width: 26em; font-size: 13.5px; color: var(--muted); }
.f-title { font-size: 13.5px; font-weight: 700; margin-bottom: 14px; }
.f-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; align-content: start; }
.f-links .f-title { grid-column: 1 / -1; margin-bottom: 6px; }
.f-links a { font-size: 13.5px; color: var(--muted); transition: color .2s ease; }
.f-links a:hover { color: var(--text); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.social { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line-2); transition: color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.social:hover { color: #fff; background: var(--indigo); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.enamad { display: inline-block; margin-top: 18px; }
.enamad img { width: 88px; height: auto; border-radius: 10px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 12.5px; color: var(--muted-2); }

/* floating */
.to-top { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); left: 20px; z-index: 40; width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: var(--text); background: rgba(20,21,30,.88); box-shadow: inset 0 0 0 1px var(--line-2), 0 14px 30px -14px #000; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s ease, transform .35s var(--ease); }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.toast { position: fixed; z-index: 120; bottom: max(20px, env(safe-area-inset-bottom)); right: 20px; max-width: calc(100vw - 40px); padding: 12px 18px; border-radius: 13px; font-size: 14px; background: rgba(20,21,30,.96); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -18px #000; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .3s ease, transform .4s var(--ease); }
.toast.is-visible { opacity: 1; transform: none; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,3,6,.8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-panel { position: relative; width: 100%; max-width: 720px; max-height: min(86dvh, 860px); overflow-y: auto; overscroll-behavior: contain; padding: clamp(22px, 4vw, 40px); border-radius: 24px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px #000; }
.modal-close { position: absolute; top: 16px; left: 16px; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--muted); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-2); }
.modal-close:hover { color: var(--text); }
.modal-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-left: 48px; font-size: 13px; }
.modal-panel > h3 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); font-weight: 800; line-height: 1.6; margin-bottom: 18px; padding-left: 48px; }
.prose { color: #b4b6c6; line-height: 2.05; font-size: .98rem; }
.prose > * + * { margin-top: 14px; }
.prose h2 { font-size: 1.3rem; color: var(--text); font-weight: 800; margin-top: 24px; }
.prose h3 { font-size: 1.08rem; color: var(--text); font-weight: 700; margin-top: 22px; }
.prose ul, .prose ol { padding-right: 1.2em; }
.prose ul li { position: relative; }
.prose ul li::before { content: ""; position: absolute; right: -1em; top: .85em; width: 6px; height: 6px; border-radius: 50%; background: var(--indigo-2); }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--peri); text-decoration: underline; text-underline-offset: 3px; }
.prose strong, .prose b { color: var(--text); }
.prose p:empty { display: none; }
.text-red-500 { color: #ff6b7a; }
.text-blue-500 { color: #7aa7ff; }

/* ---------- click effects (fx.js) ---------- */
.fx-host { position: relative; overflow: hidden; overflow: clip; isolation: isolate; }
.pv-connect, .b-economy, .cta, .post, .hero, .sky, .mta-window { overflow: clip; }
.fx-ripple {
  position: absolute; z-index: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.42) 0%, rgba(150,210,255,.22) 35%, rgba(255,255,255,0) 68%);
  mix-blend-mode: screen; transform: scale(0); opacity: 1;
  animation: fx-ripple .7s cubic-bezier(.22,.8,.24,1) forwards;
}
.btn-white .fx-ripple, .pv-connect-btn .fx-ripple { mix-blend-mode: normal; background: radial-gradient(circle, rgba(40,191,240,.35), rgba(40,191,240,0) 65%); }
@keyframes fx-ripple { to { transform: scale(1); opacity: 0; } }

.fx-layer { position: fixed; inset: 0; z-index: 400; pointer-events: none; overflow: hidden; }
.fx-shock { position: absolute; width: 90px; height: 90px; border-radius: 50%; border: 2px solid rgba(40,191,240,.85); box-shadow: 0 0 18px rgba(40,191,240,.6), inset 0 0 12px rgba(96,165,250,.5); }
.fx-spark { position: absolute; width: 7px; height: 7px; border-radius: 1.5px; background: linear-gradient(135deg, #fff, #7dd3fc 45%, #3b82f6); box-shadow: 0 0 8px rgba(40,191,240,.9); }
.fx-star { width: 10px; height: 10px; border-radius: 0; background: #e0f4ff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); box-shadow: none; filter: drop-shadow(0 0 4px #28bff0); }

.fx-ico { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; flex-shrink: 0; z-index: 1; }
.fx-ico > * { grid-area: 1 / 1; }
.fx-ico svg { display: block; transition: transform .45s cubic-bezier(.34,1.56,.64,1), opacity .3s ease; }
.fx-done { opacity: 0; transform: scale(.4) rotate(-30deg); color: #4ade80; }
.fx-check-path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.fx-ico.is-done .fx-main { opacity: 0; transform: scale(.3) rotate(45deg); }
.fx-ico.is-done .fx-done { opacity: 1; transform: none; }
.fx-ico.is-done .fx-check-path { animation: fx-draw .45s .12s ease-out forwards; }
@keyframes fx-draw { to { stroke-dashoffset: 0; } }
.pv-connect-btn .fx-done { color: #fff; }
.btn-white .fx-done { color: #2d67cf; }
.pv-copy.is-done .fx-done, .icon-copy.is-done .fx-done { color: #4ade80; }

/* download: arrow falls into the tray, tray glows, then a check */
.fx-download .fx-arrow { transition: none; }
.fx-download.is-drop .fx-arrow { animation: fx-drop .5s cubic-bezier(.55,0,.75,.3) forwards; }
.fx-download.is-drop .fx-tray { animation: fx-tray .5s .35s ease-out; }
.fx-download.is-done .fx-main { transform: none; opacity: 0; }
@keyframes fx-drop { 0% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(5px); opacity: 1; } 100% { transform: translateY(9px); opacity: 0; } }
@keyframes fx-tray { 50% { stroke: #7dd3fc; filter: drop-shadow(0 0 4px #28bff0); } }
.fx-download svg path { transform-box: fill-box; }

/* connect: arrow flies out, a spinning ring loads, then a check */
.fx-ring { width: 18px; height: 18px; border-radius: 50%; opacity: 0; transform: scale(.5);
  background: conic-gradient(from 0deg, transparent 0 25%, currentColor 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  transition: opacity .25s ease, transform .3s ease; }
.fx-connect.is-load .fx-main { opacity: 0; transform: translateX(-10px) scale(.6); }
.fx-connect.is-load .fx-ring { opacity: 1; transform: scale(1); animation: fx-spin .7s linear infinite; }
@keyframes fx-spin { to { transform: rotate(360deg); } }

.fx-label { display: block; line-height: 1; }
.mw-btn .fx-main { transform: scaleX(-1); }
.mw-btn .fx-label { position: relative; top: 2px; font-family: var(--font-latin); font-weight: 500; font-size: 11.5px; letter-spacing: .02em; }
.mw-btn .fx-done { color: #fff; }
.pv-connect-btn.is-flying .fx-ico svg { filter: drop-shadow(0 0 6px rgba(255,255,255,.9)) drop-shadow(0 0 12px rgba(40,191,240,.9)); }
.pv-connect-btn.is-flying > span:not(.fx-ico):not(.fx-ripple) { text-shadow: 0 0 10px rgba(255,255,255,.55); }
.pv-connect-btn .fx-ico { will-change: transform; }

/* motion pre-states (only when JS runs) */
.js [data-load], .js [data-gem], .js [data-preview], .js [data-reveal], .js [data-reveal-group] > * { opacity: 0; }
.js.motion-off [data-load], .js.motion-off [data-gem], .js.motion-off [data-preview], .js.motion-off [data-reveal], .js.motion-off [data-reveal-group] > * { opacity: 1 !important; }
.js.motion-off [data-load], .js.motion-off [data-reveal], .js.motion-off [data-reveal-group] > * { transform: none !important; }

/* =========================================================
   Breakpoints
   ========================================================= */
@media (max-width: 559px) {
  .pv-head { flex-direction: column; align-items: flex-start; }
  .pv-stats { width: 100%; justify-content: space-between; }
  .lb-row { grid-template-columns: auto minmax(0, 1fr); }
  .lb-val { grid-column: 2; justify-self: start; margin-top: -6px; font-size: 12px; }
  .lb-row .lb-main { grid-column: 2; }
}
@media (max-width: 479px) {
  .team > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .hide-sm { display: none; }
  .pv-live span { display: none; }
  .hero-cta .btn { flex: 1 1 140px; }
}
@media (max-width: 380px) {
  .header-bar { padding-inline: 12px 6px; gap: 6px; }
  .site-header .wrap { padding-inline: 10px; }
  .brand span { font-size: 12.5px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-sm { padding: 0 13px; }
  .pv-stats { gap: 14px; }
}
@media (min-width: 480px) {
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .pv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pv-connect { grid-column: 1 / -1; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-economy { grid-column: 1 / -1; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post.is-lead { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-brand { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .hide-lt-md { display: inline-flex; }
  .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-featured { grid-column: 1 / -1; order: -1; }
  .post.is-lead { padding: 30px; }
}
@media (min-width: 900px) {
  .pv-grid { grid-template-columns: 1fr 1.35fr 1fr; }
  .pv-connect { grid-column: auto; }
  .team { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tutorial { grid-template-columns: 1fr 1fr; gap: 56px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .f-brand { grid-column: auto; }
}
@media (min-width: 1024px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .mobile-nav { display: none !important; }
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); }
  .b-economy { grid-column: span 2; grid-row: span 1; }
  .b-community { grid-column: span 1; }
  .downloads { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .dl-featured { grid-column: auto; order: 0; translate: 0 -12px; }
  .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post.is-lead { grid-column: span 2; grid-row: span 2; justify-content: flex-end; }
}
@media (min-width: 1024px) and (max-width: 1239px) {
  .nav a { padding: 7px 8px; font-size: 13px; }
  .header-actions .hide-lt-md { display: none; }
}
@media (min-width: 1440px) {
  .wrap { max-width: 1280px; }
  .wrap-mid { max-width: 980px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
