@font-face { font-family: 'Vazir'; src: url('../fonts/vazir/Vazir-Regular.woff2') format('woff2'); font-style: normal; font-weight: 100 500; font-display: swap; }
@font-face { font-family: 'Vazir'; src: url('../fonts/vazir/Vazir-Bold.woff2') format('woff2'); font-style: normal; font-weight: 600 900; font-display: swap; }
/* ─────────────────────────────────────────────────────────────
   BestGym design system — ported from the Compose client.
   Ink is the button color. Accent is the *attention* color, used
   on few things. No shadows: separation comes from contrast and a
   1px hairline. Rounded-boxy corners. Bold-forward type.
   ───────────────────────────────────────────────────────────── */
:root {
  /* Core three */
  --ink: #11120F;
  --accent: #F08935;
  --canvas: #F6F6F6;

  /* Surfaces & ink ramp */
  --surface-card: #FFFFFF;
  --surface-sunken: #F1F1F1;
  --surface-ink: #1F1F1F;
  --ink-pressed: #2A2A2A;

  /* Borders — warm hairlines, no shadows */
  --border-subtle: #EDE3D8;
  --border-strong: #D6C7B6;

  /* Text */
  --text: #11120F;
  --text-muted: #4A4D55;
  --text-faint: #6B6E76;
  --text-on-ink: #FAFAF8;
  --text-on-ink-muted: #A8AAA4;

  /* Semantic + category accents (muted on purpose) */
  --strength: #C0392F;  --strength-soft: #FAE9E7;
  --cardio:   #2E6BD1;  --cardio-soft:   #E6EEFB;
  --flex:     #10857C;  --flex-soft:     #E0F3F1;
  --core:     #B93B7E;  --core-soft:     #FBE8F1;
  --hiit:     #D16A16;  --hiit-soft:     #FBEDE0;
  --gold:     #D9A21B;  --gold-soft:     #FBF1D9;  --gold-deep: #8A6205;
  --success:  #17915A;  --success-soft:  #E3F5EC;

  /* Radii — rounded boxy */
  --r-tag: 8px;
  --r-chip: 12px;
  --r-btn: 16px;
  --r-card: 20px;
  --r-hero: 28px;
  --r-pill: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--canvas);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: min(100% - 48px, 1360px); margin: 0 auto; }

a { color: inherit; text-decoration: none; }

/* ── Icons ───────────────────────────────────────────────── */
.icon { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -0.2em; flex-shrink: 0; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px;
  border-radius: var(--r-btn);
  font-weight: 700; font-size: 16px; letter-spacing: normal;
  border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--text-on-ink); }
.btn-primary:hover { background: var(--ink-pressed); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--text-on-ink); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; }

/* ── Nav ─────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,246,246,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: normal; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.brand-mark span { transform: translateY(-1px); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link { font-weight: 600; font-size: 15px; color: var(--text-muted); }
.nav-links a.link:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ── Overline / eyebrow ──────────────────────────────────── */
.overline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: normal; text-transform: uppercase;
  color: var(--text-muted);
}
.overline .dot { width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--accent); }

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: 76px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(40px, 6vw, 66px); font-weight: 800; line-height: 1.02;
  letter-spacing: normal; margin: 20px 0 20px;
}
.hero h1 .mark { color: var(--accent); }
.hero p.lede { font-size: 19px; color: var(--text-muted); max-width: 30em; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 22px; margin-top: 30px; color: var(--text-faint); font-size: 14px; font-weight: 600; }
.hero-trust .sep { width: 1px; height: 16px; background: var(--border-strong); }

/* Hero visual — a stacked "phone" card mock, flat + boxy */
.device {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-hero);
  padding: 22px;
  position: relative;
}
.device-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.device-top .greet { font-size: 13px; color: var(--text-faint); font-weight: 600; }
.device-top .name { font-size: 18px; font-weight: 800; letter-spacing: normal; }
.device-top .lvl {
  background: var(--ink); color: var(--text-on-ink);
  font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: var(--r-pill);
}

.ring-row { display: flex; gap: 14px; margin-bottom: 16px; }
.ring-card {
  flex: 1; background: var(--ink); color: var(--text-on-ink);
  border-radius: var(--r-card); padding: 18px;
}
.ring-card .cap { font-size: 12px; font-weight: 700; color: var(--text-on-ink-muted); letter-spacing: normal; }
.ring-card .big { font-size: 34px; font-weight: 800; letter-spacing: normal; line-height: 1.1; margin-top: 6px; }
.ring-card .big .unit { font-size: 15px; font-weight: 700; color: var(--text-on-ink-muted); }
.streak-card { background: var(--accent); color: var(--ink); }
.streak-card .cap { color: rgba(17,18,15,0.7); }

.track { height: 8px; background: var(--surface-sunken); border-radius: var(--r-pill); overflow: hidden; margin-top: 14px; }
.track > i { display: block; height: 100%; background: var(--accent); border-radius: var(--r-pill); }

.mini-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.mini-row {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border-subtle); border-radius: var(--r-chip);
  padding: 12px 14px;
}
.mini-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.mini-row .t { font-weight: 700; font-size: 14px; }
.mini-row .s { font-size: 12px; color: var(--text-faint); font-weight: 600; }
.mini-row .chk { margin-inline-start: auto; color: var(--success); font-weight: 800; }

/* ── Stat strip ──────────────────────────────────────────── */
.stats { padding: 26px 0 60px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--r-card); padding: 22px 24px;
}
.stat .num { font-size: 38px; font-weight: 800; letter-spacing: normal; line-height: 1; }
.stat .num .accent { color: var(--accent); }
.stat .lbl { margin-top: 8px; font-size: 14px; color: var(--text-muted); font-weight: 600; }

/* ── Section heading ─────────────────────────────────────── */
section.block { padding: 60px 0; }
.sec-head { max-width: 40em; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: normal; line-height: 1.05; margin: 14px 0 14px; }
.sec-head p { font-size: 18px; color: var(--text-muted); }

/* ── Feature grid ────────────────────────────────────────── */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feat {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--r-card); padding: 28px;
  transition: border-color .15s ease, transform .15s ease;
}
.feat:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feat-ic {
  width: 52px; height: 52px; border-radius: var(--r-btn);
  display: grid; place-items: center; font-size: 24px; margin-bottom: 18px;
}
.feat-ic .icon { width: 26px; height: 26px; }
.feat h3 { font-size: 21px; font-weight: 800; letter-spacing: normal; margin-bottom: 8px; }
.feat p { color: var(--text-muted); font-size: 15.5px; }
.feat .tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: var(--r-tag);
  background: var(--surface-sunken); color: var(--text-muted);
}

/* ── Category chips row ──────────────────────────────────── */
.cats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--border-subtle); background: var(--surface-card);
  font-weight: 700; font-size: 15px;
}
.cat-chip .swatch { width: 12px; height: 12px; border-radius: var(--r-pill); }

/* ── Gamification (dark Ink section) ─────────────────────── */
.dark {
  background: var(--ink); color: var(--text-on-ink);
  border-radius: var(--r-hero); padding: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.dark .overline { color: var(--text-on-ink-muted); }
.dark h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: normal; line-height: 1.05; margin: 14px 0 16px; }
.dark p.lede { color: var(--text-on-ink-muted); font-size: 17px; max-width: 30em; }
.badge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.badge {
  background: var(--surface-ink); border: 1px solid #33332f;
  border-radius: var(--r-card); padding: 20px;
}
.badge .b-ic { font-size: 22px; margin-bottom: 12px; color: var(--accent); }
.badge .b-num { font-size: 30px; font-weight: 800; letter-spacing: normal; }
.badge .b-num.accent { color: var(--accent); }
.badge .b-num.gold { color: var(--gold); }
.badge .b-lbl { font-size: 13px; color: var(--text-on-ink-muted); font-weight: 600; margin-top: 4px; }

/* ── Steps ───────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--r-card); padding: 28px;
}
.step .n {
  width: 42px; height: 42px; border-radius: var(--r-chip);
  background: var(--accent); color: var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 18px;
}
.step h3 { font-size: 19px; font-weight: 800; letter-spacing: normal; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 15px; }

/* ── CTA band ────────────────────────────────────────────── */
.cta-band {
  background: var(--accent); border-radius: var(--r-hero);
  padding: 60px; text-align: center;
}
.cta-band h2 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; letter-spacing: normal; color: var(--ink); line-height: 1.02; }
.cta-band p { color: rgba(17,18,15,0.72); font-size: 18px; font-weight: 600; margin: 16px auto 30px; max-width: 34em; }
.cta-band .btn-primary:hover { background: #000; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border-subtle); margin-top: 40px; padding: 44px 0 40px; }
.foot { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot .brand { margin-bottom: 12px; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: normal; color: var(--text-faint); font-weight: 700; margin-bottom: 14px; }
.foot-col a { display: block; color: var(--text-muted); font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.foot-col a:hover { color: var(--ink); }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-note { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border-subtle); color: var(--text-faint); font-size: 14px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════
   Exercise pages (detail + hubs) — built on the same system.
   ═══════════════════════════════════════════════════════════ */

/* ── Breadcrumbs ─────────────────────────────────────────── */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 22px 0 0; font-size: 13px; font-weight: 600; color: var(--text-faint); }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs .icon { width: 15px; height: 15px; color: var(--border-strong); }
.crumbs .current { color: var(--text); }

/* ── Detail layout ───────────────────────────────────────── */
.ex-head { padding: 20px 0 8px; }
.ex-head .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: normal; text-transform: uppercase; padding: 7px 13px; border-radius: var(--r-pill); }
.ex-head h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: normal; line-height: 1.03; margin: 16px 0 10px; }
.ex-lede { font-size: 17px; color: var(--text-muted); max-width: 44em; }

/* Media block — video is the main subject, spanning the full content width. */
.ex-media { width: 100%; margin: 20px 0 0; }
/* The frame just clips corners. The aspect-ratio lives on the media element
   itself so it stays in normal document flow (nothing can slide underneath it)
   while still reserving its full height before the video loads (no size pop).
   max-height keeps a full-width video from getting absurdly tall. */
.ex-media-frame {
  width: 100%;
  border-radius: var(--r-hero); overflow: hidden;
  background: var(--ink); border: 1px solid var(--border-subtle);
}
.ex-media-frame > .ex-media-main {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9; max-height: 72vh;
  object-fit: contain; background: var(--ink);
  border: 0; border-radius: 0;
}
.ex-media-frame > .no-media {
  aspect-ratio: 16 / 9; max-height: 72vh; display: grid; place-items: center;
  color: var(--text-on-ink-muted);
}
.ex-media-frame > .no-media .icon { width: 56px; height: 56px; }
.ex-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.ex-thumbs img { width: 66px; height: 66px; object-fit: cover; border-radius: var(--r-chip); border: 1px solid var(--border-subtle); }

/* Metadata, stacked below the video */
.ex-meta { margin-top: 30px; }

/* ── Fact grid (equipment / level / mechanic / force / met) ─ */
.facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 8px; }
.fact {
  flex: 0 1 200px; min-width: 160px;
  border: 1px solid var(--border-subtle); border-radius: var(--r-card);
  background: var(--surface-card); padding: 16px 18px;
}
.fact .k { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: normal; text-transform: uppercase; color: var(--text-faint); }
.fact .v { margin-top: 6px; font-size: 18px; font-weight: 800; letter-spacing: normal; }
.fact .v a:hover { color: var(--accent); }

/* ── Content sections ────────────────────────────────────── */
.ex-section { padding: 8px 0 4px; }
.ex-section h2 { font-size: 22px; font-weight: 800; letter-spacing: normal; margin: 24px 0 14px; display: flex; align-items: center; gap: 10px; }
.ex-section h2 .icon { color: var(--accent); width: 22px; height: 22px; }

.steps-list { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.steps-list li {
  position: relative; padding: 16px 58px 16px 18px;
  border: 1px solid var(--border-subtle); border-radius: var(--r-card);
  background: var(--surface-card); font-size: 15.5px; color: var(--text);
}
.steps-list li::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 14px; top: 14px;
  width: 30px; height: 30px; border-radius: var(--r-chip);
  background: var(--accent); color: var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}

/* ── Taxonomy chips ──────────────────────────────────────── */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: var(--r-pill);
  border: 1px solid var(--border-subtle); background: var(--surface-card);
  font-weight: 700; font-size: 14px; color: var(--text); transition: border-color .12s, color .12s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.muted { color: var(--text-muted); }
.chip .icon { width: 16px; height: 16px; color: var(--text-faint); }

/* ── Exercise card grid (similar + hubs) ─────────────────── */
.ex-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ex-card {
  display: flex; flex-direction: column;
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--r-card); overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.ex-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.ex-card .thumb {
  width: 100%; height: clamp(160px, 16vw, 220px); max-height: 220px;
  overflow: hidden; flex: 0 0 auto;
  background: var(--surface-sunken); display: block;
}
.ex-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-card .thumb.empty { display: grid; place-items: center; color: var(--text-faint); }
.ex-card .thumb.empty .icon { width: 34px; height: 34px; }
.ex-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ex-card .title { font-weight: 800; font-size: 15px; letter-spacing: normal; line-height: 1.25; }
.ex-card .meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.ex-card .meta .tag { font-size: 11px; }

/* ── Pagination ──────────────────────────────────────────── */
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px 0 0; }
.pager .btn-sm { min-width: 120px; }
.pager .count { font-weight: 700; color: var(--text-muted); font-size: 14px; }
.pager [aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* ── Search bar ──────────────────────────────────────────── */
.searchbar { display: flex; gap: 10px; margin: 8px 0 28px; max-width: 560px; }
.searchbar input {
  flex: 1; height: 52px; padding: 0 18px;
  border: 1px solid var(--border-strong); border-radius: var(--r-btn);
  font: inherit; font-size: 16px; background: var(--surface-card); color: var(--text);
}
.searchbar input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ── Taxonomy index grid ─────────────────────────────────── */
.tax-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.tax-tile {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 18px; border: 1px solid var(--border-subtle); border-radius: var(--r-card);
  background: var(--surface-card); font-weight: 700; transition: border-color .12s, transform .12s;
}
.tax-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.tax-tile .icon { color: var(--text-faint); }

/* ── Empty state ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-faint); }
.empty-state .icon { width: 48px; height: 48px; margin-bottom: 12px; color: var(--border-strong); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: 1fr; }
  .dark { grid-template-columns: 1fr; padding: 40px 28px; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .cta-band { padding: 44px 24px; }
  .ex-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .badge-grid { grid-template-columns: 1fr; }
  .hero-trust { flex-wrap: wrap; gap: 12px; }
  .facts .fact { flex: 1 1 100%; }
  .ex-cards { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   Home — wide editorial layout, orange / black / warm gray.
   ═══════════════════════════════════════════════════════════ */
.home-hero { overflow: hidden; background: #0d0d0d; color: #fff; }
.home-hero-grid { min-height: 680px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); align-items: center; gap: clamp(36px, 6vw, 96px); }
.home-hero-copy { position: relative; z-index: 2; padding: 88px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #e97924; font-size: 12px; font-weight: 800; letter-spacing: normal; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: currentColor; }
.home-hero h1 { max-width: 820px; margin: 22px 0 24px; font-size: clamp(52px, 6.4vw, 92px); font-weight: 800; letter-spacing: normal; line-height: .94; }
.home-hero h1 span { color: #f5822a; }
.home-hero-copy > p { max-width: 650px; color: #b9b9b5; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; }
.home-hero .hero-actions { margin-top: 34px; }
.btn-orange { background: #f5822a; color: #111; border-color: #f5822a; }
.btn-orange:hover { background: #ff9646; border-color: #ff9646; }
.btn-light { color: #fff; border-color: #454545; background: #171717; }
.btn-light:hover { border-color: #f5822a; background: #171717; }
.home-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: #a7a7a3; font-size: 13px; font-weight: 700; }
.home-proof li { display: flex; align-items: center; gap: 7px; }
.home-proof .icon { width: 16px; color: #f5822a; }
.home-hero-media { align-self: stretch; position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 620px; }
.home-hero-media img { position: relative; z-index: 1; display: block; width: min(100%, 590px); max-height: 650px; object-fit: contain; object-position: bottom; filter: contrast(1.04); }
.orange-frame { position: absolute; inset: 14% 2% 9% 9%; background: #f5822a; clip-path: polygon(18% 0, 100% 0, 88% 100%, 0 100%); }
.floating-stat { position: absolute; z-index: 2; inset-inline-end: 1%; bottom: 10%; display: flex; align-items: center; gap: 12px; min-width: 162px; padding: 14px 18px; background: #f3f3f1; color: #6b6b67; border: 1px solid #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: normal; }
.floating-stat strong { display: block; color: #111; font-size: 20px; line-height: 1.1; text-transform: none; letter-spacing: normal; }
.floating-icon { width: 36px; height: 36px; display: grid; place-items: center; background: #f5822a; color: #111; }

.home-metrics { background: #f5822a; }
.metric-row { min-height: 132px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.metric-row > div { padding: 20px clamp(18px, 3vw, 46px); border-inline-end: 1px solid rgba(17,17,17,.2); }
.metric-row > div:first-child { padding-inline-start: 0; }
.metric-row > div:last-child { border: 0; }
.metric-row strong { display: block; font-size: clamp(32px, 3.5vw, 50px); line-height: 1; letter-spacing: normal; }
.metric-row strong span { color: #fff; }
.metric-row small { display: block; margin-top: 8px; color: rgba(17,17,17,.72); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: normal; }

.home-section { padding: clamp(72px, 8vw, 118px) 0; }
.home-heading { margin-bottom: 48px; }
.home-heading h2, .process-intro h2, .cta-panel h2 { margin-top: 15px; font-size: clamp(38px, 4.5vw, 62px); line-height: 1; letter-spacing: normal; }
.home-heading > p { color: #62625e; font-size: 17px; line-height: 1.65; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 60px; }
.split-heading > p { max-width: 430px; padding-bottom: 5px; }
.home-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.home-feature {
  position: relative; min-height: 340px; display: flex; flex-direction: column;
  padding: 30px; overflow: hidden; color: #111; background: #ededeb;
  border: 1px solid #d9d9d5; border-radius: 6px;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.home-feature::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 4px; background: #f5822a; transform: scaleX(.18); transform-origin: right; transition: transform .22s ease; }
.home-feature:hover { transform: translateY(-3px); border-color: #c9c9c4; background: #f3f3f1; }
.home-feature:hover::before { transform: scaleX(1); }
.home-feature-primary, .home-feature-dark { color: #111; background: #ededeb; border-color: #d9d9d5; }
.feature-number { position: absolute; top: 31px; inset-inline-end: 30px; color: #9a9a94; font-size: 12px; font-weight: 800; letter-spacing: normal; }
.home-feature-primary .feature-number, .home-feature-dark .feature-number { color: #9a9a94; }
.feature-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 34px 0 42px; color: #111; background: #f5822a; border-radius: 5px; }
.home-feature-primary .feature-icon, .home-feature-dark .feature-icon { color: #111; background: #f5822a; }
.feature-icon .icon { width: 25px; height: 25px; }
.home-feature h3 { max-width: 240px; font-size: 23px; line-height: 1.15; letter-spacing: normal; }
.home-feature p, .home-feature-dark p { margin-top: 13px; color: #5e5e59; font-size: 14px; line-height: 1.7; }
.home-feature a { display: flex; align-items: center; gap: 7px; width: fit-content; margin-top: auto; padding-top: 24px; color: #111; font-size: 13px; font-weight: 800; }
.home-feature a .icon { width: 17px; }

.training-section { background: #e9e9e6; }
.centered-heading { max-width: 700px; margin-inline-start: auto; margin-inline-end: auto; text-align: center; }
.centered-heading .eyebrow { justify-content: center; }
.centered-heading > p { max-width: 580px; margin: 18px auto 0; }
.training-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.training-card { position: relative; overflow: hidden; min-height: 540px; padding: 18px; border: 1px solid #2b2b2b; border-radius: 8px; background: #111; }
.training-card img { width: calc(100% - 36px); height: calc(100% - 36px); position: absolute; inset: 18px; object-fit: contain; object-position: center; transition: transform .35s ease; }
.training-card::after { content: ""; position: absolute; inset: 38% 18px 18px; background: linear-gradient(transparent, rgba(0,0,0,.96)); pointer-events: none; }
.training-card:hover img { transform: scale(1.015); }
.training-overlay { position: absolute; z-index: 1; inset: auto 42px 39px; color: #fff; }
.training-overlay small { display: block; color: #f5822a; font-size: 11px; font-style: normal; font-weight: 800; letter-spacing: normal; text-transform: uppercase; }
.training-overlay strong { display: block; font-size: 30px; letter-spacing: normal; }
.training-overlay i { position: absolute; inset-inline-end: 0; bottom: 2px; width: 40px; height: 40px; display: grid; place-items: center; color: #111; background: #f5822a; border-radius: 4px; }

/* Mobile app showcase */
.app-showcase { overflow: hidden; background: #111; color: #fff; }
.app-showcase-grid { display: grid; grid-template-columns: minmax(420px, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(70px, 10vw, 150px); }
.app-preview { position: relative; min-height: 650px; display: grid; place-items: center; }
.app-preview::before { content: ""; position: absolute; width: 82%; aspect-ratio: 1; background: #f5822a; border-radius: 50%; }
.phone-shell { position: relative; z-index: 1; width: min(330px, 72vw); padding: 11px; background: #090909; border: 2px solid #3c3c3c; border-radius: 42px; box-shadow: 0 32px 70px rgba(0,0,0,.38); transform: rotate(-3deg); }
.phone-speaker { position: absolute; z-index: 3; top: 20px; left: 50%; width: 78px; height: 21px; transform: translateX(-50%); background: #080808; border-radius: 20px; }
.phone-screen { min-height: 586px; padding: 48px 19px 20px; color: #111; background: #f4f4f2; border-radius: 32px; }
.app-topline { display: flex; align-items: center; justify-content: space-between; }
.app-topline span { display: flex; flex-direction: column; }
.app-topline small { color: #777772; font-size: 10px; font-weight: 700; }
.app-topline strong { font-size: 18px; letter-spacing: normal; }
.app-topline > i { width: 36px; height: 36px; display: grid; place-items: center; color: #f5822a; background: #111; border-radius: 8px; }
.app-topline .icon { width: 18px; }
.app-progress-card { margin-top: 22px; padding: 20px; color: #fff; background: #111; border-radius: 12px; }
.app-progress-card small { color: #999; font-size: 9px; font-weight: 800; letter-spacing: normal; }
.app-progress-card > strong { display: block; margin-top: 7px; font-size: 29px; letter-spacing: normal; }
.app-progress-card strong span { color: #aaa; font-size: 12px; }
.app-progress-card > div { height: 5px; margin-top: 13px; overflow: hidden; background: #363636; border-radius: 5px; }
.app-progress-card > div i { display: block; width: 80%; height: 100%; background: #f5822a; }
.app-section-title { display: flex; justify-content: space-between; margin: 23px 2px 11px; }
.app-section-title strong { font-size: 13px; }
.app-section-title small { color: #777; font-size: 10px; font-weight: 700; }
.app-workout-row { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; padding: 12px; background: #fff; border: 1px solid #e1e1dd; border-radius: 10px; }
.app-workout-row > i { width: 38px; height: 38px; display: grid; place-items: center; color: #111; background: #f5822a; border-radius: 7px; }
.app-workout-row .icon { width: 18px; }
.app-workout-row span { display: flex; flex-direction: column; }
.app-workout-row strong { font-size: 11px; }
.app-workout-row small { margin-top: 2px; color: #888; font-size: 8px; font-weight: 600; }
.app-start { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 17px; height: 46px; color: #111; background: #f5822a; border-radius: 9px; font-size: 11px; font-weight: 800; }
.app-start .icon { width: 16px; }
.preview-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 11px; padding: 13px 16px; color: #111; background: #fff; border: 1px solid #ddd; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.preview-chip span { display: flex; flex-direction: column; color: #777; font-size: 9px; font-weight: 700; }
.preview-chip strong { color: #111; font-size: 16px; }
.preview-chip-top { top: 17%; inset-inline-end: -2%; }
.preview-chip-top > strong { color: #e86918; font-size: 24px; }
.preview-chip-bottom { bottom: 15%; inset-inline-start: -3%; }
.preview-chip-bottom > .icon { width: 30px; height: 30px; padding: 6px; color: #111; background: #f5822a; }
.app-showcase-copy h2 { max-width: 700px; margin: 16px 0 22px; font-size: clamp(40px, 4.8vw, 66px); line-height: .98; letter-spacing: normal; }
.section-lede { max-width: 620px; color: #a9a9a5; font-size: 17px; line-height: 1.7; }
.app-benefit-list { margin-top: 38px; }
.app-benefit-list article { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid #30302e; }
.app-benefit-list article > span { width: 46px; height: 46px; display: grid; place-items: center; color: #111; background: #f5822a; border-radius: 5px; }
.app-benefit-list article > span .icon { width: 21px; }
.app-benefit-list h3 { font-size: 17px; }
.app-benefit-list p { max-width: 520px; margin-top: 5px; color: #999; font-size: 13px; line-height: 1.6; }
.text-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; color: #f5822a; font-size: 14px; font-weight: 800; }
.text-link .icon { width: 18px; }

/* Benefit-led feature section */
.benefit-section { background: #f5822a; }
.benefit-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 52px; }
.benefit-heading .eyebrow { color: #111; align-self: flex-start; margin-top: 10px; }
.benefit-heading h2 { max-width: 880px; font-size: clamp(40px, 5vw, 68px); line-height: .98; letter-spacing: normal; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid #111; }
.benefit-grid article { min-height: 340px; display: flex; flex-direction: column; padding: 27px clamp(20px, 2.2vw, 32px); border-inline-end: 1px solid rgba(17,17,17,.25); }
.benefit-grid article:first-child { padding-inline-start: 0; }
.benefit-grid article:last-child { padding-inline-end: 0; border: 0; }
.benefit-index { align-self: flex-end; font-size: 11px; font-weight: 800; }
.benefit-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 35px 0 22px; color: #fff; background: #111; border-radius: 5px; }
.benefit-icon .icon { width: 22px; }
.benefit-grid h3 { font-size: 21px; letter-spacing: normal; }
.benefit-grid p { margin-top: 10px; color: rgba(17,17,17,.68); font-size: 14px; line-height: 1.65; }
.benefit-grid article > strong { margin-top: auto; padding-top: 20px; font-size: 11px; letter-spacing: normal; text-transform: uppercase; }

.process-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 9vw, 140px); padding: clamp(42px, 6vw, 82px); color: #fff; background: #111; border-radius: 8px; }
.eyebrow-dark { color: #f5822a; }
.process-intro h2 { margin-bottom: 18px; }
.process-intro p { max-width: 470px; color: #aaa; line-height: 1.7; }
.process-intro .btn { margin-top: 28px; }
.process-list { list-style: none; }
.process-list li { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid #343434; }
.process-list li:first-child { padding-top: 0; }
.process-list li:last-child { border: 0; padding-bottom: 0; }
.process-list li > span { color: #f5822a; font-size: 13px; font-weight: 800; }
.process-list h3 { font-size: 20px; }
.process-list p { margin-top: 6px; color: #aaa; font-size: 14px; line-height: 1.65; }

.home-cta { padding-top: 0; }
.cta-panel { display: flex; flex-direction: column; align-items: center; padding: clamp(55px, 8vw, 96px) 24px; text-align: center; background: #f5822a; border-radius: 8px; }
.cta-panel .eyebrow { color: #111; }
.cta-panel p { margin: 18px 0 28px; font-weight: 600; }
.btn-dark { background: #111; color: #fff; }
.btn-dark:hover { background: #292929; }
.btn-orange-outline { color: #111; border-color: #111; background: transparent; }
.btn-orange-outline:hover { color: #fff; background: #111; }

@media (max-width: 1050px) {
  .home-hero-grid { grid-template-columns: 1fr 420px; gap: 20px; }
  .home-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .home-feature { min-height: 320px; }
  .app-showcase-grid { grid-template-columns: minmax(360px, .8fr) 1.2fr; gap: 65px; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid article:nth-child(2) { border-inline-end: 0; }
  .benefit-grid article:nth-child(-n+2) { border-bottom: 1px solid rgba(17,17,17,.25); }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 32px, 1360px); }
  .home-hero-grid { min-height: auto; grid-template-columns: 1fr; }
  .home-hero-copy { padding: 68px 0 20px; }
  .home-hero h1 { letter-spacing: normal; }
  .home-hero-media { min-height: 500px; }
  .home-hero-media img { max-height: 520px; }
  .orange-frame { inset: 12% 4% 5%; }
  .floating-stat { inset-inline-end: 0; bottom: 7%; }
  .metric-row { grid-template-columns: repeat(2, 1fr); padding: 18px 0; }
  .metric-row > div { border-bottom: 1px solid rgba(17,17,17,.2); }
  .metric-row > div:nth-child(2) { border-inline-end: 0; }
  .metric-row > div:nth-child(n+3) { border-bottom: 0; }
  .metric-row > div:first-child { padding-inline-start: 18px; }
  .split-heading { display: block; }
  .split-heading > p { margin-top: 18px; }
  .training-grid { grid-template-columns: 1fr; }
  .training-card { min-height: 430px; }
  .app-showcase-grid { grid-template-columns: 1fr; }
  .app-preview { min-height: 620px; order: 2; }
  .app-showcase-copy { order: 1; }
  .preview-chip-top { inset-inline-end: 2%; }
  .preview-chip-bottom { inset-inline-start: 1%; }
  .benefit-heading { display: block; }
  .benefit-heading h2 { margin-top: 18px; }
  .process-panel { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-sm { padding: 0 13px; }
  .home-hero h1 { font-size: clamp(43px, 14vw, 62px); }
  .home-hero .hero-actions, .cta-panel .hero-actions { flex-direction: column; }
  .home-hero .btn, .cta-panel .btn { width: 100%; }
  .home-proof { gap: 10px 18px; }
  .home-hero-media { min-height: 400px; }
  .home-hero-media img { max-height: 420px; }
  .floating-stat { transform: scale(.88); transform-origin: bottom left; }
  .home-feature-grid { grid-template-columns: 1fr; }
  .home-feature { min-height: 300px; }
  .app-preview { min-height: 570px; }
  .phone-shell { width: 300px; transform: none; }
  .phone-screen { min-height: 540px; }
  .preview-chip { transform: scale(.86); }
  .benefit-grid { grid-template-columns: 1fr; border-top-width: 2px; }
  .benefit-grid article { min-height: 290px; padding: 27px 0; border-inline-end: 0; border-bottom: 1px solid rgba(17,17,17,.25); }
  .benefit-grid article:nth-child(-n+2) { border-bottom: 1px solid rgba(17,17,17,.25); }
  .benefit-grid article:last-child { border-bottom: 0; }
  .process-panel { width: 100%; padding: 42px 24px; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Persian typography needs room for joined letters and taller glyphs. */
body { line-height: 1.8; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, .home-hero h1, .home-heading h2, .process-intro h2,
.cta-panel h2, .app-showcase-copy h2, .benefit-heading h2,
.ex-head h1, .sec-head h2, .cta-band h2 { line-height: 1.4; }
.brand-mark { direction: ltr; }
.steps-list li::before { content: counter(step, persian); }
.home-feature::before { transform-origin: right; }
