/* BitPerp — لندینگ پیج.

   پالت از خودِ لوگو گرفته شده: مشکیِ عمیقِ پس‌زمینه و طلایی که در شش‌ضلعی
   هست. طلا عمداً کم مصرف می‌شود — فقط روی چیزی که باید کلیک شود و روی
   خودِ برند. اگر همه‌جا طلایی باشد، هیچ‌جا مهم به نظر نمی‌رسد. */

:root {
  --bg:        #0a0d10;
  --bg-1:      #11161c;
  --bg-2:      #171e26;
  --line:      #222c37;
  --line-soft: #1a232c;

  --fg:        #eef2f6;
  --fg-mid:    #9aa5b1;
  --fg-dim:    #6c7884;

  --gold:      #f0b90b;
  --gold-lit:  #ffe08a;
  --gold-deep: #c98a08;

  --up:        #0ecb81;
  --down:      #f6465d;

  --r:   10px;
  --r-lg: 16px;
  --max: 1200px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 Inter, 'Segoe UI', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: Poppins, Inter, system-ui, sans-serif; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ── دکمه‌ها ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn.gold {
  background: linear-gradient(135deg, var(--gold-lit), var(--gold) 45%, var(--gold-deep));
  color: #1a1400;
}
.btn.gold:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(240,185,11,.25); }
.btn.ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-lit); }

.link { color: var(--gold); font-weight: 600; font-size: 14px; }
.link:hover { color: var(--gold-lit); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ── برند ────────────────────────────────────────────────────────────────── */

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; flex: none; }

.brand-word {
  font-family: Poppins, sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
}
/* همان تقسیمِ رنگیِ لوگو: Bit نقره‌ای، Perp طلایی */
.brand-word b {
  background: linear-gradient(180deg, #fff, #dfe4ea 55%, #aab1ba);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800;
}
.brand-word i {
  background: linear-gradient(180deg, var(--gold-lit), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: normal; font-weight: 800;
}

/* ── هدر ─────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10,13,16,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav.stuck { border-bottom-color: var(--line-soft); background: rgba(10,13,16,.94); }

.nav-inner { display: flex; align-items: center; gap: 26px; height: 66px; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav-links > a, .menu-btn {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--fg-mid);
  font-size: 15px;
  font-weight: 500;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.nav-links > a:hover, .menu-btn:hover { color: var(--fg); background: var(--bg-1); }
.caret { font-size: 10px; opacity: .7; }

.menu { position: relative; }
.menu-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 290px;
  padding: 8px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 48px rgba(0,0,0,.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.menu.open .menu-pop { opacity: 1; visibility: visible; transform: none; }
.menu-pop a, .menu-pop .soon-item { display: block; padding: 10px 12px; border-radius: var(--r); }
.menu-pop a:hover { background: var(--bg-2); }
.menu-pop b { display: block; font-size: 14px; font-weight: 600; }
.menu-pop small { display: block; color: var(--fg-dim); font-size: 12px; margin-top: 2px; }

/* آیتمی که هنوز محصولش آماده نیست — دیده می‌شود ولی کلیک‌شدنی نیست، تا
   کاربر نه به صفحهٔ ۴۰۴ برسد نه فکر کند چیزی هست که نیست. */
.menu-pop .soon-item { cursor: default; }
.menu-pop .soon-item b { color: var(--fg-mid); }
.soon-tag {
  margin-inline-start: 7px;
  padding: 1px 7px;
  border-radius: 20px;
  background: rgba(240,185,11,.12);
  border: 1px solid rgba(240,185,11,.3);
  color: var(--gold);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .04em;
  vertical-align: 1px;
}

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 8px 18px; font-size: 14px; }

.burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { width: 20px; height: 2px; background: var(--fg); border-radius: 2px; }

/* ── هیرو ────────────────────────────────────────────────────────────────── */

.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
/* درخششِ طلاییِ پشتِ متن — همان نورِ زیرِ ورد‌مارکِ لوگو، در مقیاسِ بزرگ */
.hero::before {
  content: '';
  position: absolute;
  top: -160px; left: 50%;
  width: 900px; height: 520px;
  transform: translateX(-62%);
  background: radial-gradient(closest-side, rgba(240,185,11,.16), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 56px;
  align-items: start;
}

.hero h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 800; letter-spacing: -.03em; }
.lead { margin-top: 20px; font-size: 17px; color: var(--fg-mid); max-width: 52ch; }

.signup { display: flex; gap: 10px; margin-top: 30px; max-width: 480px; flex-wrap: wrap; }
.signup input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 13px 16px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
}
.signup input::placeholder { color: var(--fg-dim); }
.signup input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.signup.big { max-width: 540px; margin-inline: auto; }

.signup-note { margin-top: 12px; font-size: 13px; color: var(--fg-dim); }
.signup-note.err { color: var(--down); }

.hero-points { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 11px; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-mid); }
.hero-points svg {
  width: 17px; height: 17px; flex: none;
  fill: none; stroke: var(--gold); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ── پنل‌های قیمت ────────────────────────────────────────────────────────── */

.hero-panels { display: grid; gap: 14px; }

.panel {
  background: linear-gradient(180deg, var(--bg-1), var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px;
}
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.panel-head h2 { font-size: 15px; font-weight: 700; }
.panel-head a { margin-left: auto; font-size: 12px; color: var(--fg-dim); }
.panel-head a:hover { color: var(--gold); }

.badge-new {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 20px;
  background: rgba(240,185,11,.14);
  border: 1px solid rgba(240,185,11,.34);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}

.tickers { list-style: none; margin: 0; padding: 0; }
.tickers li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.tickers li:last-child { border-bottom: 0; }

.t-name { min-width: 0; }
.t-name b { display: block; font-size: 14px; font-weight: 600; }
.t-name small { display: block; color: var(--fg-dim); font-size: 11px; }
.t-price { font-size: 14px; font-variant-numeric: tabular-nums; }
.t-chg {
  min-width: 68px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.up { color: var(--up); } .down { color: var(--down); }

/* اسکلتِ بارگذاری — بدونش پنل موقعِ لود می‌پرد و صفحه تکان می‌خورد */
.skel { height: 40px; border-bottom: 1px solid var(--line-soft); }
.skel::after {
  content: '';
  display: block;
  height: 12px;
  margin-top: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-2), var(--line), var(--bg-2));
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── نوارِ قیمتِ متحرک ─────────────────────────────────────────────────────── */

.strip {
  border-block: 1px solid var(--line-soft);
  background: var(--bg-1);
  overflow: hidden;
}
.strip .wrap { padding: 0; max-width: none; }
.strip-rail {
  display: flex;
  gap: 34px;
  padding: 13px 0;
  white-space: nowrap;
  will-change: transform;
}
.strip-rail.run { animation: marquee 48s linear infinite; }
.strip:hover .strip-rail.run { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.s-item { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13px; }
.s-item b { font-weight: 600; }
.s-item span { color: var(--fg-mid); font-variant-numeric: tabular-nums; }

/* ── بخش‌ها ──────────────────────────────────────────────────────────────── */

.sec { padding: 84px 0; }
.sec.alt { background: var(--bg-1); border-block: 1px solid var(--line-soft); }

.sec-head { max-width: 680px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.sec-lead { margin-top: 16px; color: var(--fg-mid); font-size: 16px; }

/* پنج دسته هست. با minmax(230px) روی عرضِ معمولِ دسکتاپ چهار ستون می‌شود و
   کارتِ پنجم تنها به خطِ بعد می‌افتد. 200px هر پنج را در یک ردیف جا می‌دهد
   و در عرضِ کمتر مرتب به ۳ و ۲ و ۱ می‌شکند. */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.cat {
  position: relative;
  padding: 26px 22px 46px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .18s, transform .18s;
}
.sec.alt .cat { background: var(--bg-2); }
.cat:hover { border-color: rgba(240,185,11,.45); transform: translateY(-2px); }
.cat-ico { font-size: 24px; margin-bottom: 12px; }
.cat h3 { font-size: 17px; font-weight: 700; }
.cat p { margin-top: 8px; font-size: 14px; color: var(--fg-mid); }
.cat-count {
  position: absolute;
  left: 22px; bottom: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.tool {
  padding: 26px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.tool h3 { font-size: 18px; font-weight: 700; }
.tool p { margin: 10px 0 16px; font-size: 14px; color: var(--fg-mid); }

.sec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.sec-grid article {
  padding: 24px 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.sec-grid h3 { font-size: 16px; font-weight: 700; color: var(--gold-lit); }
.sec-grid p { margin-top: 9px; font-size: 14px; color: var(--fg-mid); }

/* ── پلتفرم‌ها ───────────────────────────────────────────────────────────── */

.plat-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.plat-list { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 14px; }
.plat-list li { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plat-list b { min-width: 86px; font-size: 15px; }
.plat-list span { color: var(--fg-mid); font-size: 14px; }
.plat-list .soon {
  padding: 1px 9px;
  border-radius: 20px;
  background: rgba(240,185,11,.12);
  border: 1px solid rgba(240,185,11,.3);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
}
.plat-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.art-window {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.art-bar { display: flex; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.art-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.art-bar i:first-child { background: #f6465d66; }
.art-bar i:nth-child(2) { background: #f0b90b66; }
.art-bar i:nth-child(3) { background: #0ecb8166; }
.art-body { padding: 18px; }
.art-chart { height: 150px; }
.art-chart svg { width: 100%; height: 100%; }
.art-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 7px rgba(240,185,11,.45));
}
.art-rows { display: grid; gap: 9px; margin-top: 18px; }
.art-rows span { height: 9px; border-radius: 5px; background: var(--bg-2); }
.art-rows span:nth-child(1) { width: 78%; }
.art-rows span:nth-child(2) { width: 54%; }
.art-rows span:nth-child(3) { width: 66%; }
.art-rows span:nth-child(4) { width: 42%; }
.art-rows span:nth-child(5) { width: 60%; }

/* ── CTA ─────────────────────────────────────────────────────────────────── */

.cta { position: relative; padding: 86px 0; text-align: center; overflow: hidden; }
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(60% 130% at 50% 0%, rgba(240,185,11,.13), transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.cta p { margin-top: 14px; color: var(--fg-mid); }
.cta .signup { margin-top: 28px; justify-content: center; }

/* ── فوتر ────────────────────────────────────────────────────────────────── */

.foot { border-top: 1px solid var(--line-soft); background: var(--bg-1); padding: 52px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.foot-brand p { margin-top: 14px; font-size: 14px; color: var(--fg-dim); max-width: 32ch; }
.tg { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--gold); font-weight: 600; }

.foot nav { display: flex; flex-direction: column; gap: 9px; }
.foot h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--fg); margin-bottom: 4px; }
.foot nav a { font-size: 14px; color: var(--fg-dim); }
.foot nav a:hover { color: var(--gold); }

.foot-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.foot-bottom p { font-size: 12px; color: var(--fg-dim); }
.risk { margin-top: 10px; max-width: 86ch; line-height: 1.8; }

/* ── واکنش‌گرا ───────────────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .hero-grid, .plat-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 66px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--bg-1);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform .22s;
  }
  .nav-links.open { transform: none; }
  .nav-links > a, .menu-btn { padding: 13px 14px; text-align: left; width: 100%; }
  .menu { width: 100%; }
  .menu-pop {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 8px 12px;
    display: none;
  }
  .menu.open .menu-pop { display: block; }
  .burger { display: flex; }
  .nav-cta .btn.ghost { display: none; }
  .sec { padding: 60px 0; }
  .hero { padding: 48px 0 40px; }
}
