/* gishe.xyz — Gisheh's download page. Night blue and the logo's red from the app; the ticket gold from the site. */
@font-face { font-family: Vazirmatn; font-weight: 400; font-display: swap; src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2'); }
@font-face { font-family: Vazirmatn; font-weight: 700; font-display: swap; src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2'); }
@font-face { font-family: Vazirmatn; font-weight: 900; font-display: swap; src: url('/assets/fonts/Vazirmatn-Black.woff2') format('woff2'); }

:root {
  --night: #0b0f1a;
  --night-2: #10162a;
  --card: #151c31;
  --card-2: #1b2340;
  --line: rgba(241, 233, 218, 0.1);
  --line-strong: rgba(241, 233, 218, 0.2);
  --text: #f2f4f8;
  --muted: #a3abbe;
  --red: #c61c1c;
  --red-bright: #e5322d;
  --red-glow: rgba(229, 50, 45, 0.45);
  --gold: #efb553;
  --gold-dim: rgba(239, 181, 83, 0.55);
  --telegram: #2aa3e0;
  --wrap: 1120px;
  --gutter: 16px;
  --radius: 18px;
  color-scheme: dark;
}
@media (min-width: 600px) { :root { --gutter: clamp(20px, 5vw, 48px); } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 16px/1.75 Vazirmatn, Tahoma, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; right: -9999px; }
.skip:focus { right: var(--gutter); top: 12px; z-index: 10; background: var(--gold); color: var(--night); padding: 8px 14px; border-radius: 8px; }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 20px; border-radius: 14px;
  font: 700 16px/1.3 Vazirmatn, Tahoma, sans-serif; text-decoration: none; text-align: start;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn small { display: block; font-weight: 400; font-size: 13px; opacity: 0.85; margin-top: 2px; }
.btn-primary { background: linear-gradient(135deg, #a8161a, var(--red-bright)); color: #fff; box-shadow: 0 10px 30px -12px var(--red-glow); }
.btn-primary:hover { background: linear-gradient(135deg, #b71a1e, #f0403a); box-shadow: 0 14px 34px -10px var(--red-glow); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }
.btn-lg { min-height: 60px; padding: 10px 24px; font-size: 17px; border-radius: 16px; }
.btn-lg .icon { width: 24px; height: 24px; }
.btn-telegram { background: var(--telegram); color: #fff; }
.btn-telegram:hover { background: #38b0ea; }

/* ── header ──────────────────────────────────────────────────────────────── */
.top { position: relative; z-index: 2; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 10px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-site { display: none; align-items: center; gap: 6px; }
.nav-site .icon { width: 18px; height: 18px; }
@media (min-width: 720px) {
  .top .wrap { padding-block: 22px; }
  .brand img { height: 48px; }
  .nav { gap: 10px; }
  .nav-site { display: inline-flex; border: 1px solid var(--line-strong); }
}

/* ── hero: the promise beside a lit marquee sign ──────────────────────────── */
.hero { position: relative; isolation: isolate; }
.hero::before { /* the red stage light, fading out before the tickets */
  content: ''; position: absolute; inset: -120px 0 -200px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 45% at 22% 38%, rgba(198, 28, 28, 0.32), rgba(198, 28, 28, 0) 70%),
    radial-gradient(40% 35% at 85% 10%, rgba(239, 181, 83, 0.07), rgba(239, 181, 83, 0) 70%);
}
.hero-grid { display: grid; gap: 36px; padding-block: 20px 56px; }
.chip {
  display: inline-block; margin: 0 0 16px; padding: 4px 14px; border-radius: 999px;
  border: 1px solid var(--gold-dim); color: var(--gold); font-size: 14px; font-weight: 700;
}
.hero h1 { font-weight: 900; font-size: clamp(2.3rem, 9vw, 4.4rem); line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--red-bright); text-shadow: 0 0 28px var(--red-glow); }
.lede { color: var(--muted); font-size: clamp(1.02rem, 2.4vw, 1.2rem); max-width: 36ch; margin: 16px 0 28px; }
.cta { display: grid; gap: 12px; }
.cta .btn { width: 100%; }
/* one primary button for the visitor's device; without a match (or without JavaScript) the general one */
.for-android, .for-ios, .for-tv { display: none !important; }
[data-device='android'] .for-android, [data-device='ios'] .for-ios, [data-device='tv'] .for-tv { display: inline-flex !important; }
[data-device='android'] .for-other, [data-device='ios'] .for-other, [data-device='tv'] .for-other { display: none; }
[data-device='tv'] .hero:not(:has(.for-tv)) .for-other { display: inline-flex; } /* no TV build yet */

/* the marquee sign: the 3D logo inside a frame of bulbs */
.marquee { display: flex; justify-content: center; }
.marquee-sign {
  --bulb: radial-gradient(circle, #ffe7b0 0 2.6px, rgba(239, 181, 83, 0.5) 3.4px, rgba(239, 181, 83, 0) 7px);
  position: relative; width: min(100%, 520px); padding: 34px 30px 24px; border-radius: 26px;
  background: linear-gradient(180deg, #1a2140, #10162a);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -30px rgba(198, 28, 28, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
}
.marquee-sign::before { /* the bulbs, 22px apart on every edge */
  content: ''; position: absolute; inset: 9px; border-radius: 19px; pointer-events: none;
  background:
    var(--bulb) top / 22px 14px repeat-x,
    var(--bulb) bottom / 22px 14px repeat-x,
    var(--bulb) left / 14px 22px repeat-y,
    var(--bulb) right / 14px 22px repeat-y;
  animation: bulbs 2.4s steps(2) infinite;
}
@keyframes bulbs { 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .marquee-sign::before { animation: none; } }
.marquee-sign img { width: 100%; height: auto; margin-inline: auto; filter: drop-shadow(0 10px 24px rgba(198, 28, 28, 0.45)); }
.marquee-sign p {
  margin: 14px auto 0; padding: 4px 18px; width: fit-content; border-radius: 8px;
  background: var(--gold); color: #2a1b0e; font-weight: 900; font-size: 15px; letter-spacing: 0.02em;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 56px; padding-block: 48px 96px; }
  .cta { display: flex; flex-wrap: wrap; }
  .cta .btn { width: auto; }
  .marquee-sign { padding: 48px 40px 30px; }
}

/* ── downloads: one ticket per device ─────────────────────────────────────── */
.downloads { padding-block: 24px 64px; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 900; }
.section-head p { color: var(--muted); margin: 8px 0 0; max-width: 60ch; }
.tickets { display: grid; gap: 20px; }
@media (min-width: 900px) { .tickets { grid-template-columns: repeat(3, 1fr); align-items: start; } }
/* the visitor's own device comes first and is lit */
[data-device='android'] .ticket[data-for='android'],
[data-device='ios'] .ticket[data-for='ios'],
[data-device='tv'] .ticket[data-for='tv'] { order: -1; border-color: var(--gold-dim); box-shadow: 0 0 0 1px var(--gold-dim), 0 24px 60px -30px rgba(239, 181, 83, 0.45); }
.yours { display: none; }
[data-device='android'] .ticket[data-for='android'] .yours,
[data-device='ios'] .ticket[data-for='ios'] .yours,
[data-device='tv'] .ticket[data-for='tv'] .yours {
  display: inline-block; margin: 0 0 12px; padding: 2px 12px; border-radius: 999px; background: var(--gold); color: #2a1b0e; font-size: 13px; font-weight: 900;
}

.ticket {
  --notch: 13px;
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.ticket-main { padding: 22px 22px 24px; }
.ticket-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ticket-icon { width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: rgba(229, 50, 45, 0.12); color: var(--red-bright); stroke-width: 1.6; }
.ticket h3 { font-size: 1.35rem; font-weight: 900; }
.ticket-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.22); }
.meta div { display: flex; flex-direction: column; }
.meta dt { color: var(--muted); font-size: 12px; }
.meta dd { margin: 0; font-weight: 700; font-size: 15px; }
.ticket .btn { width: 100%; }
.soon { margin: 0; padding: 14px; border-radius: 12px; border: 1px dashed var(--line-strong); color: var(--muted); text-align: center; font-weight: 700; }

/* the stub: torn off along a perforation, with a notch at each end */
.ticket-stub { position: relative; border-top: 2px dashed var(--line-strong); padding: 0 22px; }
.ticket-stub::before, .ticket-stub::after {
  content: ''; position: absolute; top: calc(-1 * var(--notch) - 1px); width: calc(2 * var(--notch)); height: calc(2 * var(--notch));
  border-radius: 50%; background: var(--night); border: 1px solid var(--line);
}
.ticket-stub::before { right: calc(-1 * var(--notch) - 1px); clip-path: inset(0 50% 0 0); }
.ticket-stub::after { left: calc(-1 * var(--notch) - 1px); clip-path: inset(0 0 0 50%); }
.ticket-stub summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0; cursor: pointer; list-style: none; font-weight: 700; color: var(--gold);
}
.ticket-stub summary::-webkit-details-marker { display: none; }
.ticket-stub summary::after { content: '+'; font-size: 22px; line-height: 1; font-weight: 400; transition: transform 0.2s ease; }
.ticket-stub[open] summary::after { transform: rotate(45deg); }
.steps { margin: 0; padding: 0 0 4px; list-style: none; counter-reset: step; }
.steps li { position: relative; counter-increment: step; padding: 0 38px 12px 0; font-size: 15px; line-height: 1.8; }
.steps li::before {
  content: counter(step, persian); position: absolute; right: 0; top: 1px;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(239, 181, 83, 0.14); color: var(--gold); font-weight: 900; font-size: 13px;
}
.steps a, .note a { color: var(--gold); }
.note { margin: 0 0 18px; padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); color: var(--muted); font-size: 14px; }
.note b { color: var(--text); }

/* ── telegram + support ──────────────────────────────────────────────────── */
.help { padding-block: 16px 72px; }
.help-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .help-grid { grid-template-columns: 1fr 1fr; } }
.panel { padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.panel h2 { font-size: 1.45rem; font-weight: 900; margin-top: 14px; }
.panel > p { color: var(--muted); margin: 8px 0 20px; }
.panel-icon { width: 48px; height: 48px; padding: 11px; border-radius: 14px; stroke-width: 1.6; }
.panel-telegram { background: linear-gradient(160deg, rgba(42, 163, 224, 0.16), rgba(42, 163, 224, 0) 55%), var(--card); }
.panel-telegram .panel-icon { background: rgba(42, 163, 224, 0.16); color: var(--telegram); }
.panel-telegram .btn { width: 100%; }
.panel-support .panel-icon { background: rgba(239, 181, 83, 0.14); color: var(--gold); }
@media (min-width: 600px) { .panel { padding: 30px; } .panel-telegram .btn { width: auto; } }
.support-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.row-link {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px;
  background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line); text-decoration: none;
}
.row-link:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }
.row-link > .icon { width: 22px; height: 22px; color: var(--gold); }
.row-link span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.row-link b { font-weight: 700; }
.row-link small { color: var(--muted); font-size: 14px; text-align: right; overflow-wrap: anywhere; }
.row-link .chev { width: 18px; height: 18px; color: var(--muted); }

/* ── footer ──────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.foot img { height: 32px; width: auto; }
.foot p { margin: 0; }
.foot a { color: var(--text); font-weight: 700; text-decoration: none; }
.foot a:hover { color: var(--gold); }

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.notfound main { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 24px; text-align: center; }
.notfound img { width: 220px; height: auto; }
.notfound h1 { font-size: 1.6rem; }
