/* v58.75 — iriva.ir · shared look of the app landing and the share-link pages */
@font-face { font-family: "Vazirmatn"; src: url("fonts/Vazirmatn.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #F4F5FF; --bg2: #ECEBFF; --ink: #17163A; --muted: #646487; --hint: #9796B5;
  --card: rgba(255, 255, 255, .78); --card-solid: #fff; --line: rgba(79, 107, 245, .14);
  --brand: #4F6BF5; --brand2: #8A6CFF; --teal: #12B5A0; --pink: #F2558F; --amber: #F3A02B; --red: #FF3B5C;
  --glow1: rgba(138, 108, 255, .28); --glow2: rgba(52, 211, 180, .22); --glow3: rgba(79, 107, 245, .25);
  --shadow: 0 24px 60px -28px rgba(46, 52, 140, .45);
  --radius: 28px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0B1E; --bg2: #11122B; --ink: #EEF0FF; --muted: #A9ABCE; --hint: #7476A0;
    --card: rgba(24, 25, 56, .72); --card-solid: #17183A; --line: rgba(160, 170, 255, .14);
    --glow1: rgba(138, 108, 255, .30); --glow2: rgba(52, 211, 180, .18); --glow3: rgba(79, 107, 245, .30);
    --shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font-family: "Vazirmatn", Tahoma, sans-serif; line-height: 1.8; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* aurora background */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .9; animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 520px; height: 520px; background: var(--glow1); top: -160px; inset-inline-end: -120px; }
.aurora i:nth-child(2) { width: 460px; height: 460px; background: var(--glow2); bottom: -180px; inset-inline-start: -140px; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 380px; height: 380px; background: var(--glow3); top: 40%; inset-inline-start: 30%; animation-delay: -11s; }
.aurora::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(120, 120, 200, .16) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, #000, transparent 75%); }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* top bar */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--bg) 70%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; letter-spacing: -.3px; }
.brand-mark { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand2)); box-shadow: 0 10px 24px -10px var(--brand); }
.brand-mark img { width: 30px; height: 30px; object-fit: contain; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0; line-height: 1.2; }
.nav .grow { flex: 1; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 12px; font-size: 14px; color: var(--muted); font-weight: 600; transition: .2s; }
.nav-links a:hover { color: var(--ink); background: var(--line); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 18px; font: inherit; font-weight: 800; font-size: 15.5px; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; -webkit-tap-highlight-color: transparent; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2)); box-shadow: 0 16px 34px -14px var(--brand); }
.btn-primary:hover { box-shadow: 0 20px 40px -12px var(--brand); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); background: var(--card); border: 1.5px solid var(--line); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 13px; font-size: 13.5px; }
.btn-block { width: 100%; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
@media (prefers-color-scheme: dark) { .chip { color: #AEB9FF; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* download card */
.dl { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.dl-head { display: flex; align-items: center; gap: 12px; }
.dl-icon { width: 54px; height: 54px; border-radius: 17px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand2)); box-shadow: 0 12px 26px -12px var(--brand); }
.dl-icon img { width: 40px; height: 40px; object-fit: contain; }
.dl-t b { display: block; font-size: 16px; }
.dl-t span { font-size: 12.5px; color: var(--muted); }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.dl-meta span { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--line); padding: 3px 10px; border-radius: 10px; }
.dl-notes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dl-notes li { display: flex; gap: 8px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.dl-notes li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 8px; border-radius: 3px; background: linear-gradient(135deg, var(--teal), var(--brand)); }

.foot { padding: 34px 0 40px; text-align: center; color: var(--hint); font-size: 12.5px; }
.foot a { color: var(--muted); font-weight: 700; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .aurora i, .reveal { animation: none !important; transition: none !important; opacity: 1; transform: none; } }

@media (max-width: 720px) { .nav-links { display: none; } }
