/* ============================================================
   base.css — ریست، بوم، تایپ پایه، دکمه‌ها
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.85;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
main { overflow-x: clip; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 88% -8%, rgba(198, 255, 61, 0.10), transparent 62%),
    radial-gradient(800px 700px at 8% 12%, rgba(90, 140, 70, 0.08), transparent 60%),
    radial-gradient(900px 900px at 50% 115%, rgba(198, 255, 61, 0.05), transparent 65%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

img, svg, canvas { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

::selection {
  background: var(--volt);
  color: var(--volt-ink);
}

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #26302a;
  border: 3px solid var(--bg);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: #38463c; }

:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 2;
}

.section {
  position: relative;
  padding-block: var(--s-8);
  overflow-x: clip;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  inset-block-start: -100px;
  inset-inline-start: 16px;
  z-index: 100;
  background: var(--volt);
  color: var(--volt-ink);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 700;
  transition: inset-block-start var(--dur-2) var(--ease-out);
}
.skip:focus { inset-block-start: 16px; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--volt);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.display {
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  margin-block-end: var(--s-5);
}
.section-head h2 {
  font-size: var(--fs-h2);
  font-weight: 900;
  line-height: 1.25;
  margin-block-start: 10px;
}
.section-head p {
  color: var(--muted);
  max-width: 46ch;
  font-size: var(--fs-sm);
}
.section-head .head-note {
  color: var(--dim);
  font-size: var(--fs-xs);
  white-space: nowrap;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 2;
  max-width: 58ch;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--volt);
  --btn-ink: var(--volt-ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  transition: transform var(--dur-2) var(--ease-spring),
              box-shadow var(--dur-2) var(--ease-out),
              background var(--dur-2) var(--ease-out);
  will-change: transform;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.45) 45%, transparent 60%);
  transform: translateX(-130%);
  transition: transform var(--dur-3) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-volt); }
.btn:hover::after { transform: translateX(130%); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn svg { width: 18px; height: 18px; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-ink: var(--ink);
  border-color: var(--line-strong);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  border-color: rgba(198,255,61,.55);
  background: rgba(198,255,61,.06);
  box-shadow: none;
}

/* ---------- tag ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--tag-color, var(--volt));
  background: color-mix(in srgb, var(--tag-color, var(--volt)) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--tag-color, var(--volt)) 24%, transparent);
  border-radius: var(--r-pill);
  padding: 4px 11px;
}
.tag::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.cat--bodybuilding { --tag-color: var(--cat-bodybuilding); }
.cat--nutrition    { --tag-color: var(--cat-nutrition); }
.cat--science      { --tag-color: var(--cat-science); }
.cat--recovery     { --tag-color: var(--cat-recovery); }
.cat--wellness     { --tag-color: var(--cat-wellness); }
.cat--injury       { --tag-color: var(--cat-injury); }
.cat--functional   { --tag-color: var(--cat-functional); }
.cat--women        { --tag-color: var(--cat-women); }

/* ---------- misc ---------- */
.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.noise-word {
  font-weight: 900;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.18);
}
