@font-face { font-family: Vazirmatn; src: url(assets/fonts/Vazirmatn.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Estedad; src: url(assets/fonts/Estedad-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Estedad; src: url(assets/fonts/Estedad-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --navy: #172f4a; --deep: #0f2238; --burg: #852b49; --burg-dark: #6c2139;
  --white: #fff; --ink: #172f4a; --muted: #52647a; --soft: #c9d3df; --line: #e6e9ee; --tag: #f6e9ee;
  --head: 64px; --gutter: 16px; --panel: 42vw;
  --display: Vazirmatn, Tahoma, sans-serif; --ui: Estedad, Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.8 var(--ui); }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #e8b8c7; outline-offset: 3px; border-radius: 6px; }
.sprites { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; right: 12px; top: -60px; z-index: 50; background: var(--white); color: var(--navy); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; min-height: 52px; padding: 0 22px; border-radius: 12px;
  font: 700 16px/1 var(--ui); text-decoration: none; white-space: nowrap; }
.btn-solid { background: var(--burg); color: var(--white); }
.btn-solid:hover { background: var(--burg-dark); }
.btn-ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--white); }
.btn-line { color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-wide { flex: 1; justify-content: center; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; height: var(--head); display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter); background: var(--navy); color: var(--white); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand b { display: block; font: 900 22px/1.1 var(--display); }
.brand small { display: block; font-size: 12px; color: var(--soft); line-height: 1.4; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
.menu-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255,255,255,.1); display: grid; place-content: center; gap: 5px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; }
.menu { position: absolute; top: calc(var(--head) - 4px); left: var(--gutter); min-width: 230px; padding: 8px; background: var(--white);
  border-radius: 16px; box-shadow: 0 18px 50px rgba(15,34,56,.28); display: grid; }
.menu[hidden] { display: none; }
.menu a { color: var(--navy); text-decoration: none; padding: 11px 14px; border-radius: 10px; font-weight: 700; font-size: 15px; }
.menu a:hover, .menu a:focus-visible { background: #f1f4f8; }

/* ---------- static layout: no JS, or reduced motion ---------- */
.world, .chip, .coin-drop, .hint, .progress { display: none; }
.stage { display: flex; flex-direction: column; }
.band { order: -1; background: var(--navy); color: var(--white); padding: 48px var(--gutter) 40px; }
.band-inner { max-width: 1100px; margin: 0 auto; }
.headline { margin: 0; font: 850 clamp(46px, 12vw, 92px)/1.18 var(--display); }
.headline > span { display: block; }
.headline .l2 { position: relative; display: inline-block; padding: 0 .2em; margin-top: .06em; }
.headline .l2 > span:last-child { position: relative; }
.headline .l1 { width: fit-content; position: relative; padding-bottom: .2em; }
.trail { position: absolute; right: .04em; left: .04em; bottom: .02em; height: .16em; }
.trail .bar { position: absolute; right: 0; left: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px;
  background: rgba(255,255,255,.22); transform-origin: 100% 50%; transform: scaleX(var(--bar, 1)); }
.trail .fp { position: absolute; top: 50%; width: .24em; height: .36em; margin: -.3em 0 0 -.12em; fill: #e7a1b6;
  transform: rotate(-90deg) scale(var(--s, 1)); }
.trail .fp:nth-of-type(1) { right: 16%; } .trail .fp:nth-of-type(2) { right: 46%; fill: #a9bdd4; margin-top: -.12em; } .trail .fp:nth-of-type(3) { right: 76%; }
.ripple { position: absolute; left: 34%; top: 55%; width: 1.4em; height: 1.4em; margin: -.7em 0 0 -.7em; border-radius: 50%;
  border: 4px solid #f3c6d4; background: radial-gradient(circle, rgba(255,255,255,.35) 0 28%, transparent 30%); opacity: 0; pointer-events: none; }
.panel-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.panel-btn svg circle { fill: currentColor; stroke: none; }
.blk { position: absolute !important; inset: .1em 0 0 0; background: var(--burg); border-radius: 12px; transform-origin: 100% 50%; transform: scaleX(var(--blk, 1)); }
.sub { margin: 18px 0 0; max-width: 34em; color: var(--soft); font-size: clamp(16px, 4.2vw, 19px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.still { display: block; width: 100%; height: min(90vh, 900px); object-fit: cover; object-position: 50% 30%; }
.sheet { padding: 32px var(--gutter) 48px; max-width: 1100px; margin: 0 auto; }
.stations { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pane { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.pane h2 { margin: 0; font: 850 clamp(26px, 7vw, 34px)/1.35 var(--display); color: var(--navy); }
.pane h2 a { text-decoration: none; }
.pane h2 a:hover { color: var(--burg); }
.pane .dot { color: var(--burg); }
.pane p { margin: 8px 0 0; color: var(--muted); font-size: clamp(15px, 4vw, 18px); }
/* tappable stations: the whole card opens its page */
.pane { position: relative; }
.pane.go h2 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.pane.go:has(a:focus-visible) { outline: 3px solid #e8b8c7; outline-offset: -3px; }
.pane.go h2 a:focus-visible { outline: none; }
.go-arrow { position: absolute; left: 18px; top: 22px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: #f1f4f8; color: var(--burg); font: 700 18px/1 var(--ui); pointer-events: none; }
.pane.go:hover .go-arrow, .halves a:hover .go-arrow { background: var(--burg); color: var(--white); }
.halves { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.halves a { position: relative; display: block; min-height: 96px; padding: 14px 14px 14px 52px; border-radius: 16px; background: #f4f6f9; text-decoration: none; }
.halves a:hover { background: #edf1f6; }
.halves b { display: block; font: 850 clamp(19px, 5vw, 26px)/1.35 var(--display); color: var(--navy); }
.halves small { display: block; margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.halves .go-arrow { left: 10px; top: 12px; width: 34px; height: 34px; background: var(--white); }
@media (max-width: 520px) {
  .halves { grid-template-columns: 1fr; gap: 8px; }
  .halves a { min-height: 0; padding: 10px 14px 10px 54px; }
  .halves b { font-size: 21px; }
  .halves .go-arrow { top: 50%; margin-top: -17px; }
}
@media (max-width: 360px) { .top .brand small { display: none; } .top .btn { padding: 0 12px; } }
.motion .stage.hot { cursor: pointer; }
.snaps { display: none; }
.motion .snaps { display: block; position: absolute; inset: 0; pointer-events: none; }
.snaps i { position: absolute; right: 0; width: 1px; height: 1px; scroll-snap-align: start; }
html.motion { scroll-snap-type: y proximity; }
.tag { display: inline-block; margin-bottom: 8px; padding: 2px 12px; border-radius: 8px; background: var(--tag); color: var(--burg); font-weight: 700; font-size: 14px; }
.finale { grid-column: 1 / -1; }
.lockup { display: flex; align-items: center; gap: 14px; }
.lockup img { width: 64px; height: 64px; border-radius: 16px; }
.lockup h2 { font-size: clamp(38px, 10vw, 54px); font-weight: 900; }
.motto { color: var(--burg) !important; font-weight: 700; }
.note { font-size: 15px !important; }
.finale-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- motion layout: the scroll-driven journey ---------- */
.motion .top { position: fixed; inset: 0 0 auto 0; }
.motion .journey { height: var(--len, 760vh); position: relative; }
.motion .stage { display: block; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--navy); }
.motion .world { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.motion .still { display: none; }
.motion .band { position: absolute; inset: 0 0 auto 0; height: 100%; padding: 0; overflow: hidden; z-index: 4; }
.motion .band-inner { padding: calc(var(--head) + 22px) var(--gutter) 18px; max-width: none; }
.motion .headline { font-size: clamp(44px, 13vw, 88px); line-height: 1.2; }
/* phones: a slimmer top so the world shows from the first screen */
@media (max-width: 700px) {
  :root { --head: 56px; }
  .top .brand img { width: 36px; height: 36px; }
  .top .brand b { font-size: 20px; }
  .motion .band-inner { padding: calc(var(--head) + 14px) var(--gutter) 12px; }
  .motion .headline { font-size: clamp(36px, 10.6vw, 56px); line-height: 1.16; }
  .motion .sub { font-size: 14.5px; line-height: 1.75; margin-top: 8px; }
  .motion .hero-cta { flex-wrap: nowrap; gap: 8px; margin-top: 12px; }
  .motion .hero-cta .btn { min-height: 44px; padding: 0 14px; font-size: 14.5px; }
  .motion .hint { margin-top: 10px; font-size: 13px; }
}
.motion .sub { margin-top: 12px; }
.motion .hero-cta { margin-top: 16px; }
.motion .hint { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; color: var(--soft); font-size: 14px; }
.hint-steps { display: inline-flex; gap: 6px; }
.hint-steps i { width: 8px; height: 12px; border-radius: 50%; background: var(--burg); display: block; }
.hint-steps i + i { background: #8fa3bb; transform: translateY(-5px); }

.motion .sheet { position: absolute; z-index: 6; left: var(--gutter); right: var(--gutter); bottom: calc(var(--gutter) + env(safe-area-inset-bottom));
  margin: 0; padding: 0; max-width: none; background: var(--white); border-radius: 22px; overflow: hidden;
  box-shadow: 0 16px 50px rgba(15,34,56,.28); visibility: hidden; }
.motion .progress { display: block; position: absolute; top: 16px; right: 22px; left: 22px; height: 5px; border-radius: 3px; background: var(--line); }
.motion .progress i { position: absolute; top: 0; right: 0; height: 100%; width: 0; border-radius: 3px; background: var(--burg); }
.motion .stations { display: block; }
.motion .pane { position: absolute; top: 0; right: 0; left: 0; border: 0; border-radius: 0; padding: 38px 22px 22px; background: none; visibility: hidden; }
.motion .pane h2 { font-size: clamp(28px, 7.6vw, 44px); }
.motion .finale .lockup img { width: 56px; height: 56px; }
.motion .pane.go .go-arrow { top: 40px; }
.motion .pane.go h2 { padding-left: 52px; }

.motion .chip { display: block; position: absolute; z-index: 5; left: var(--gutter); margin: 0; width: min(56vw, 300px); cursor: pointer;
  padding: 7px; background: var(--white); border-radius: 20px; box-shadow: 0 14px 40px rgba(15,34,56,.35); opacity: 0; }
.motion .chip img { display: block; width: 100%; height: auto; border-radius: 14px; }
.motion .coin-drop { pointer-events: none; display: block; position: absolute; z-index: 7; width: 54px; height: 54px; left: 0; top: 0; opacity: 0; }

/* word reveal wrappers (added by journey.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .14em; margin-block: -.14em; }
.wi { display: inline-block; }

/* wide screens: the world on the left, a navy column on the right */
.motion.land .band { inset: 0 0 0 auto; width: 100%; height: 100%; }
.motion.land .band-inner { position: absolute; top: 50%; right: 0; width: var(--panel); transform: translateY(-50%); padding: 0 48px; }
.motion.land .headline { font-size: clamp(54px, 5.2vw, 92px); }
.motion.land .sheet { left: auto; right: 32px; bottom: auto; top: 50%; width: calc(var(--panel) - 64px); }
.motion.land .chip { left: auto; right: calc(var(--panel) + 40px); width: 340px; }

/* footer */
.foot { background: var(--navy); color: var(--white); border-top: 4px solid var(--burg); padding: 48px var(--gutter) 28px; position: relative; z-index: 2; }
.foot-grid { max-width: 1100px; margin: 0 auto; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.foot p { color: var(--soft); font-size: 15px; margin: 14px 0 0; }
.foot h3 { margin: 0 0 8px; font: 800 18px/1.4 var(--display); }
.foot nav a { display: block; padding: 6px 0; color: var(--soft); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--white); }
/* enamad seal: its logo is drawn for a light background, so it sits on a small white tile */
.trust-seal { display: inline-flex; align-items: center; justify-content: center; margin-top: 6px; padding: 8px; background: var(--white); border-radius: 12px; min-width: 96px; min-height: 104px; }
.trust-seal img { display: block; width: 80px; height: auto; }
.trust-seal:focus-visible { outline: 3px solid var(--burg); outline-offset: 3px; }
.foot-legal { max-width: 1100px; margin: 32px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot-legal a { color: var(--soft); text-decoration: none; font-size: 14px; padding: 6px 0; }
.foot-legal a:hover { color: var(--white); }
.foot-legal + .foot-line { margin-top: 12px; border-top: 0; padding-top: 6px; }
.foot-line { max-width: 1100px; margin: 32px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--soft); font-size: 13px; }
/* the Telegram logo on support links */
.tg-logo { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.foot nav a:has(.tg-logo) { display: flex; align-items: center; gap: 8px; }
/* small phones: both hero buttons stay, sharing the row and wrapping if they must (audit 2026-10-29) */
@media (max-width: 380px) {
  .motion .hero-cta { flex-wrap: wrap; }
  .motion .hero-cta .btn { flex: 1 1 auto; justify-content: center; padding: 0 10px; font-size: 13.5px; }
}
/* phones held sideways: the hero is sized to the short height, so both buttons are on the first screen */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 1100px) {
  .motion .band-inner { padding-top: calc(var(--head) + 8px); padding-bottom: 8px; }
  .motion .headline { font-size: clamp(28px, 12vh, 52px); line-height: 1.12; }
  .motion .sub { font-size: 14px; line-height: 1.6; margin-top: 6px; }
  .motion .hero-cta { margin-top: 10px; }
  .motion .hero-cta .btn { min-height: 42px; }
  .motion .hint { margin-top: 6px; }
}
