/* Public download page — "Midnight & Volt" (design/panah-brand/TOKENS.txt) */

@font-face {
  font-family: Vazirmatn;
  src: url('/fonts/vazirmatn-arabic.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: Vazirmatn;
  src: url('/fonts/vazirmatn-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 100 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF;
}

:root {
  --ink: #090B10; --page: #07090D; --surface: #0F131A; --card: #0E1218; --elevated: #161B24;
  --line: #262D3A; --line2: #232937; --line3: #2A3140;
  --text: #EEF2F7; --text2: #C8CFDA; --muted: #9AA4B5; --faint: #7D8798;
  --volt: #C5F94B; --volt-hi: #E2FFA0; --on-volt: #0B0F05; --amber: #FFB547; --sky: #6AA8FF;
  --r: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  background: var(--page); color: var(--text);
  font: 400 15px/1.8 Vazirmatn, Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
.mono, code { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.glow {
  position: fixed; top: 0; left: 0; right: 0; height: 90vh; pointer-events: none; z-index: 0;
  background:
    radial-gradient(50% 55% at 50% 10%, rgba(197,249,75,.10), transparent 70%),
    radial-gradient(35% 40% at 85% 0%, rgba(106,168,255,.06), transparent 70%);
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: linear-gradient(var(--line2) 1px, transparent 1px), linear-gradient(90deg, var(--line2) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 45% at 50% 0%, #000, transparent 75%);
          mask-image: radial-gradient(60% 45% at 50% 0%, #000, transparent 75%);
}
header, main, footer { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- top ---- */
.top {
  max-width: 1120px; margin: 0 auto; padding: 22px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; }
.toplink {
  text-decoration: none; color: var(--text2); font-size: 14px;
  padding: 7px 14px; border: 1px solid var(--line2); border-radius: 999px; transition: border-color .2s, color .2s;
}
.toplink:hover { border-color: var(--volt); color: var(--volt); }

/* --------------------------------------------------------------- hero ---- */
.hero { max-width: 760px; margin: 0 auto; padding: 48px 20px 40px; text-align: center; }
.arch { width: 64px; height: 68px; margin: 0 auto 22px; filter: drop-shadow(0 0 22px rgba(197,249,75,.35)); }
.arch svg { width: 100%; height: 100%; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--volt);
  background: rgba(197,249,75,.10); border: 1px solid rgba(197,249,75,.22);
  padding: 3px 14px; border-radius: 999px; margin-bottom: 18px;
}
h1 { font-size: clamp(30px, 6vw, 48px); line-height: 1.35; font-weight: 800; letter-spacing: -.01em; margin: 0 0 16px; }
.lead { color: var(--muted); font-size: 16.5px; max-width: 560px; margin: 0 auto 30px; }

.cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cta-note { color: var(--faint); font-size: 13.5px; }
.cta-note a { color: var(--text2); }
.is-hidden { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border-radius: 14px; border: 1px solid transparent; padding: 13px 26px;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn .ic { width: 20px; height: 20px; display: inline-flex; }
.btn .ic svg { width: 100%; height: 100%; }
.btn-volt { background: var(--volt); color: var(--on-volt); box-shadow: 0 10px 30px -10px rgba(197,249,75,.55); }
.btn-volt:hover { background: var(--volt-hi); transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(197,249,75,.7); }
.btn-volt:focus-visible { outline: 2px solid var(--volt-hi); outline-offset: 3px; }
.cta .btn { font-size: 17px; padding: 15px 30px; }
.btn .ver {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600;
  background: rgba(11,15,5,.12); padding: 1px 9px; border-radius: 8px;
}
.btn-block { width: 100%; }

.pills { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.pills li { display: inline-flex; align-items: center; gap: 8px; color: var(--text2); font-size: 14px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 10px var(--volt); }

/* ---------------------------------------------------------- platforms ---- */
.platforms { max-width: 1120px; margin: 0 auto; padding: 40px 20px; scroll-margin-top: 10px; }
.platforms h2 { font-size: 22px; font-weight: 800; margin: 0 0 18px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.card {
  background: linear-gradient(180deg, var(--surface), var(--card));
  border: 1px solid var(--line); border-radius: var(--r); padding: 22px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: var(--line3); transform: translateY(-2px); }
.card.is-mine { border-color: rgba(197,249,75,.45); box-shadow: 0 0 0 1px rgba(197,249,75,.15), 0 20px 50px -25px rgba(197,249,75,.35); }

.card-head { display: flex; align-items: center; gap: 14px; }
.pic {
  flex: none; width: 48px; height: 48px; border-radius: 14px; padding: 11px;
  background: var(--elevated); border: 1px solid var(--line3); color: var(--volt);
}
.pic svg { width: 100%; height: 100%; display: block; }
.card h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.4; }
.req { color: var(--faint); font-size: 12.5px; }
.badge-you {
  display: none; margin-inline-start: auto; align-self: flex-start;
  font-size: 11.5px; font-weight: 700; color: var(--volt);
  background: rgba(197,249,75,.12); padding: 2px 10px; border-radius: 999px; white-space: nowrap;
}
.is-mine .badge-you { display: inline-block; }

.meta { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.meta div { background: var(--ink); border: 1px solid var(--line2); border-radius: 12px; padding: 8px 10px; }
.meta dt { color: var(--faint); font-size: 11.5px; }
.meta dd { margin: 0; font-weight: 700; font-size: 14px; color: var(--text); white-space: nowrap; }
.meta dd.mono { color: var(--volt); }

.fold { border-top: 1px solid var(--line2); padding-top: 10px; }
.fold + .fold { margin-top: -6px; }
.fold summary {
  cursor: pointer; list-style: none; color: var(--text2); font-size: 14px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; color: var(--faint); font-size: 18px; transition: transform .2s; }
.fold[open] summary::after { transform: rotate(45deg); }
.notes, .steps { margin: 8px 0 2px; padding-inline-start: 20px; color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.steps li::marker { color: var(--volt); font-weight: 700; }
.notes li::marker { color: var(--volt); }

.hash {
  margin-top: auto; display: flex; align-items: center; gap: 8px;
  background: var(--ink); border: 1px dashed var(--line3); border-radius: 12px; padding: 7px 8px 7px 10px;
}
.hash-label { font-size: 10.5px; color: var(--faint); font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
.hash code { flex: 1; width: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--muted); }
.copy {
  flex: none; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  color: var(--text2); background: var(--elevated); border: 1px solid var(--line3);
  border-radius: 8px; padding: 2px 10px; transition: color .2s, border-color .2s;
}
.copy:hover, .copy.ok { color: var(--volt); border-color: rgba(197,249,75,.4); }

.soon {
  margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--amber); font-weight: 600; font-size: 14px;
  background: rgba(255,181,71,.08); border: 1px dashed rgba(255,181,71,.35); border-radius: 14px; padding: 14px;
}
.soon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* -------------------------------------------------------------- trust ---- */
.trust {
  max-width: 1120px; margin: 10px auto 0; padding: 20px 20px 50px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.trust-item { display: flex; gap: 14px; padding: 18px; border-radius: var(--r); background: rgba(15,19,26,.6); border: 1px solid var(--line2); }
.ti { flex: none; width: 38px; height: 38px; padding: 8px; border-radius: 11px; color: var(--volt); background: rgba(197,249,75,.08); }
.ti svg { width: 100%; height: 100%; display: block; }
.trust-item b { display: block; font-size: 15px; margin-bottom: 2px; }
.trust-item span { color: var(--muted); font-size: 13.5px; line-height: 1.8; }

.foot {
  max-width: 1120px; margin: 0 auto; padding: 22px 20px 32px; border-top: 1px solid var(--line2);
  color: var(--faint); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center;
}

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 900px) {
  .grid, .trust { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .platforms h2 { max-width: 520px; margin-inline: auto; margin-bottom: 18px; }
}
@media (max-width: 480px) {
  .top, .hero, .platforms, .trust, .foot { padding-inline: 16px; }
  .hero { padding-top: 28px; }
  .cta .btn { width: 100%; padding-inline: 16px; }
  .foot-sep { display: none; }
  .card { padding: 18px; }
  .meta { gap: 6px; }
  .meta div { padding: 7px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
