@font-face { font-family: "Vazirmatn"; src: url("../assets/fonts/Vazirmatn.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../assets/fonts/Outfit.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

/* Tokens (2026-12-06, after the owner's reference picture): a soft grey-to-butter background,
   frosted white cards, pill buttons — the active one near-black, the accent a warm yellow. */
:root {
  --ink: #1E1E1E;
  --ink-2: rgba(30, 30, 30, .7);
  --ink-3: rgba(30, 30, 30, .48);
  --rule: rgba(30, 30, 30, .1);
  --card: rgba(255, 255, 255, .62);
  --card-line: rgba(255, 255, 255, .85);
  --dark: #262626;
  --yellow: #F5CF4A;
  --yellow-2: #FBE7A1;
  --u: 1px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 18px 50px rgba(60, 52, 20, .1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink);
  background: linear-gradient(140deg, #D9DCE1 0%, #ECECE6 34%, #F6F0DA 64%, #F8E7A4 100%) fixed;
  font-family: "Vazirmatn", system-ui, sans-serif; font-size: 17px; line-height: 1.9;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.locked { overflow: hidden; }
.en { font-family: "Outfit", "Vazirmatn", sans-serif; direction: ltr; unicode-bidi: isolate; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.skip { position: fixed; top: 10px; right: 10px; z-index: 100; padding: 10px 16px; background: var(--dark); color: #fff; border-radius: 999px; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }

/* ---------- buttons: pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 8px 20px rgba(245, 207, 74, .35); }
.btn-yellow:hover { background: #F2C52C; }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14px; }

.icon-btn {
  width: 46px; height: 46px; display: grid; place-items: center; padding: 0; flex: none;
  border-radius: 50%; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: #fff; }
.icon-btn.sm { width: 40px; height: 40px; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px 0 18px; border-radius: 999px; border: 1px solid var(--ink-3); background: none; cursor: pointer; font-weight: 600; font-size: 14px; }
.pill-btn:hover { background: rgba(255,255,255,.6); }

/* ---------- top bar: logo pill · section pills · download ---------- */
.topbar {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(16px, 3vw, 44px);
  transition: opacity .4s, transform .5s var(--ease);
}
body.in-planet .topbar { opacity: 0; pointer-events: none; transform: translateY(-16px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 22px; padding: 6px 18px 6px 8px; border-radius: 999px; border: 1px solid var(--ink-3); background: rgba(255,255,255,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: #000F12; display: grid; place-items: center; }
.brand-mark img { width: 20px; height: 20px; }
.pills { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line), var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pills a { padding: 8px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background-color .25s, color .25s; }
.pills a:hover { color: var(--ink); }
.pills a.on { background: var(--dark); color: #fff; }

/* ---------- hero (the orbit) ---------- */
.hero { position: relative; z-index: 1; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; opacity: 0; transition: opacity .7s ease; touch-action: pan-y; }
.hero.ready { opacity: 1; }
.hero.grab { cursor: grab; }
.hero.dragging, .hero.dragging .planet { cursor: grabbing; }
.hero-tint { position: absolute; inset: 0; pointer-events: none; opacity: .55; }
.stage { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); direction: ltr; }
.orbit { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; will-change: transform, opacity; }
.orbit::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(30,30,30,.14); }
.orbit::after { content: ""; position: absolute; inset: calc(58 * var(--u)); border-radius: 50%; border: 1px dashed rgba(30,30,30,.12); }
.orbit i {
  position: absolute; inset: calc(29 * var(--u)); border-radius: 50%;
  background: repeating-conic-gradient(from -.6deg, rgba(30,30,30,.4) 0 1.2deg, transparent 1.2deg 51.43deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent calc(100% - 6 * var(--u)), #000 calc(100% - 5 * var(--u)));
  mask: radial-gradient(circle closest-side, transparent calc(100% - 6 * var(--u)), #000 calc(100% - 5 * var(--u)));
}
.planet { position: absolute; left: 0; top: 0; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; will-change: transform, opacity; -webkit-tap-highlight-color: transparent; touch-action: pan-y; }
.planet .body { position: absolute; inset: 0; transition: transform .5s var(--ease); }
.planet:hover .body { transform: scale(1.035); }
.planet svg { width: 100%; height: 100%; display: block; overflow: visible; }
.planet:focus-visible { outline: none; }
.planet:focus-visible .body { outline: 1.5px dashed var(--ink); outline-offset: -18%; border-radius: 50%; }
.planet.pop .body { animation: pop .7s var(--ease); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.planet.selected .body { animation: bob 10s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1%); } }
.spin { animation: turn 60s linear infinite; animation-play-state: paused; }
.planet.active .spin, .planet.selected .spin, .static-planet .spin { animation-play-state: running; }
@keyframes turn { to { transform: translateX(var(--w)); } }

.copy { position: absolute; direction: rtl; z-index: 30; will-change: opacity, transform; padding: calc(22 * var(--u)) calc(24 * var(--u)); border-radius: calc(30 * var(--u)); background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line), var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.c-index { margin: 0; display: flex; align-items: baseline; gap: 8px; font-family: "Outfit", sans-serif; direction: ltr; justify-content: flex-end; color: var(--ink-3); font-size: max(12px, calc(14 * var(--u))); letter-spacing: .1em; }
.c-index #cIndex { color: var(--ink); font-weight: 600; }
.c-index .c-en { order: -1; margin-right: auto; text-transform: uppercase; letter-spacing: .2em; }
.c-name { margin: calc(2 * var(--u)) 0 0; font-weight: 700; font-size: max(28px, calc(48 * var(--u))); line-height: 1.25; }
.c-short { margin: calc(6 * var(--u)) 0 calc(16 * var(--u)); color: var(--ink-2); font-size: max(14px, calc(15.5 * var(--u))); line-height: 1.85; min-height: 3.7em; }
.c-actions { display: flex; align-items: center; gap: 12px; }
.c-level { font-weight: 600; font-size: 13px; letter-spacing: .06em; padding: 7px 14px; border-radius: 999px; background: var(--yellow); color: var(--ink); white-space: nowrap; }
body.portrait .copy { text-align: center; }
body.portrait .c-index { justify-content: center; }
body.portrait .c-index .c-en { display: none; }
body.portrait .c-actions { justify-content: center; }

.title { position: absolute; margin: 0; z-index: 3; pointer-events: none; font-weight: 300; line-height: 1; letter-spacing: -.02em; white-space: nowrap; color: var(--ink); opacity: .9; }
.subtitle, .drag-hint { display: none; }

.hero-controls { position: absolute; z-index: 20; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line), var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: opacity .4s; }
.hero-controls .icon-btn { background: #fff; box-shadow: none; width: 42px; height: 42px; }
.dots { display: flex; gap: 2px; margin-inline: 4px; }
.dots button { position: relative; width: 24px; height: 42px; padding: 0; border: 0; background: none; cursor: pointer; }
.dots button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--ink-3); transition: transform .3s var(--ease), background-color .3s; }
.dots button[aria-selected="true"]::before { background: var(--ink); transform: scale(1.6); }
#pauseBtn .i-play { display: none; }
#pauseBtn[aria-pressed="true"] .i-play { display: block; }
#pauseBtn[aria-pressed="true"] .i-pause { display: none; }
body.in-planet .hero-controls { opacity: 0; pointer-events: none; }

.tip { position: fixed; left: 0; top: 0; z-index: 40; width: 250px; padding: 14px 16px 12px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .22s var(--ease); }
.tip.show { opacity: 1; transform: none; }
.tip-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tip-top b { font-size: 18px; font-weight: 700; }
.tip-top span { color: var(--ink-3); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.tip p { margin: 4px 0 10px; color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.tip-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--rule); padding-top: 8px; }

/* ---------- planet detail: short ---------- */
.detail { position: fixed; inset: 0; z-index: 35; pointer-events: none; visibility: hidden; transition: visibility 0s 1s; }
.detail.open { pointer-events: auto; visibility: visible; transition: none; }
.detail-panel {
  position: absolute; top: 16px; bottom: 16px; right: 16px; width: min(520px, 44vw);
  padding: 24px clamp(22px, 2.6vw, 40px) 40px; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(255,255,255,.82); border-radius: 34px; box-shadow: var(--shadow), inset 0 0 0 1px var(--card-line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; transform: translateX(32px); transition: opacity .35s ease, transform .5s var(--ease); direction: ltr;
}
.detail-panel > * { direction: rtl; }
.detail-panel:focus { outline: none; }
.detail.open .detail-panel { opacity: 1; transform: none; transition-delay: .45s; }
.d-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.d-nav { display: flex; gap: 8px; }
.d-body.fade { animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.d-index { margin: 0; display: flex; gap: 10px; align-items: baseline; color: var(--ink-3); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-family: "Outfit", sans-serif; direction: ltr; justify-content: flex-end; }
.d-index b { color: var(--ink); font-weight: 600; }
.d-name { margin: 0; font-size: clamp(38px, 4vw, 56px); font-weight: 700; line-height: 1.2; }
.d-facts { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.d-facts span { padding: 8px 16px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; }
.d-facts span.y { background: var(--yellow); }
.d-about { color: var(--ink-2); margin: 20px 0 0; font-size: 16px; line-height: 2; }
.d-foot { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.d-foot p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---------- sections ---------- */
main, .footer { position: relative; z-index: 2; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding: 110px 0 20px; scroll-margin-top: 20px; }
.h2 { margin: 0 0 22px; font-size: clamp(32px, 4.4vw, 58px); line-height: 1.3; font-weight: 400; letter-spacing: -.01em; }
.lead { color: var(--ink-2); font-size: 18px; line-height: 2; margin: 0; max-width: 46ch; }
.muted { color: var(--ink-3); }

/* about: big thin numbers + three cards */
.stats { display: flex; flex-wrap: wrap; gap: 12px 54px; margin: 6px 0 34px; }
.stats div { display: flex; align-items: flex-end; gap: 10px; }
.stats .num { font-size: clamp(48px, 6vw, 80px); font-weight: 200; line-height: .9; }
.stats .lab { font-size: 15px; color: var(--ink-2); padding-bottom: 6px; }
.cards { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.card { padding: 28px; border-radius: 34px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line), var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.card h3 { margin: 0 0 14px; font-size: 24px; font-weight: 500; line-height: 1.5; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.9; }
.card-tag { margin: 0 0 10px !important; font-size: 13px !important; color: var(--ink-3) !important; }
.card-dark { background: var(--dark); color: #fff; box-shadow: var(--shadow); }
.card-dark p { color: rgba(255,255,255,.75); }
.card-dark .card-tag { color: rgba(255,255,255,.55) !important; }
.chips { display: flex; gap: 8px; margin: 0 0 16px; flex-wrap: wrap; }
.chip { padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 14px; font-weight: 600; }
.chip-yellow { background: var(--yellow); color: var(--ink); }
.crew-row { display: flex; margin: 4px 0 16px; }
.crew-row img { width: 60px; height: 60px; border-radius: 50%; border: 3px solid #fff; background: #fff; object-fit: cover; }
.crew-row img + img { margin-inline-start: -14px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; }
.ticks li::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E1E1E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* download */
.dl-box { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: clamp(26px, 4vw, 48px); border-radius: 40px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line), var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.dl-list { display: grid; gap: 12px; }
.dl { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; border-radius: 28px; background: #fff; box-shadow: 0 6px 18px rgba(60,52,20,.06); transition: transform .2s var(--ease), box-shadow .2s; }
a.dl:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(60,52,20,.12); }
.dl-icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.dl-icon.dark { background: var(--dark); color: #fff; }
.dl-icon.green { background: #E3F4E8; color: #23864B; }
.dl-icon.yellow { background: var(--yellow-2); color: #7A5A00; }
.dl-txt { flex: 1; display: grid; line-height: 1.5; }
.dl-txt b { font-weight: 600; font-size: 16.5px; }
.dl-txt small { color: var(--ink-3); font-size: 13px; }
.dl-go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); font-size: 18px; }
.dl-tag { padding: 6px 12px; border-radius: 999px; background: #F1EFE8; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.dl.soon { opacity: .85; }

/* footer + e-Namad */
.footer { padding: 60px 0 40px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 16px 22px; border-radius: 34px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); }
.foot p { margin: 0; font-size: 14px; }
.foot .brand { font-size: 18px; padding: 4px 14px 4px 6px; }
.foot .brand-mark { width: 30px; height: 30px; }
.enamad a { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 22px; background: #fff; }
.enamad img { width: 80px; height: 80px; object-fit: contain; cursor: pointer; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card-dark { grid-column: 1 / -1; }
  .dl-box { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .topbar { padding: 12px 14px; gap: 8px; }
  .topbar .btn-sm { display: none; }
  .brand { font-size: 18px; padding: 4px 12px 4px 5px; }
  .brand-mark { width: 30px; height: 30px; }
  .pills a { padding: 7px 13px; font-size: 13.5px; }
  .section { padding-top: 80px; }
  .cards { grid-template-columns: 1fr; }
  .stats { gap: 12px 30px; }
  .foot { border-radius: 30px; justify-content: center; text-align: center; }
  .detail-panel { top: auto; left: 10px; right: 10px; bottom: 10px; width: auto; height: 60%; transform: translateY(50px); }
}
@media (max-width: 480px) {
  .hero-controls { bottom: 16px; gap: 4px; }
  .dots button { width: 20px; }
  .tip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
