/* ============================================================================
   TESTKAV SKILLS — HOME HERO v9 (first section of the landing page)
   Dark stage, brand yellow as the light. Copy: a question whose skill word
   rotates, the slogan, the search. Visual: a live gauge whose needle and score
   answer the question for each skill in turn.
   Always dark (both themes); site header/footer untouched; scoped to .tkh.
   ============================================================================ */
.tkh{--tkh-bg:#15171b;--tkh-ink:#f4f5f2;--tkh-soft:rgba(244,245,242,.68);--tkh-faint:rgba(244,245,242,.42);
  --tkh-line:rgba(244,245,242,.12);--tkh-line-strong:rgba(244,245,242,.2);--tkh-amber:#ffc218;--tkh-amber-deep:#e9ad00;
  position:relative;isolation:isolate;overflow:hidden;color:var(--tkh-ink);
  background:linear-gradient(180deg,var(--tkh-bg) 0%,var(--tk-charcoal) 100%);
  padding:clamp(44px,5vw,76px) 0 clamp(52px,5.6vw,84px)}
.tkh-glow{position:absolute;z-index:-1;inset:auto auto -10% -6%;width:min(760px,70vw);aspect-ratio:1;border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(255,194,24,.22),rgba(255,194,24,.07) 45%,transparent 72%)}
.tkh-grid{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);gap:0 clamp(32px,4.6vw,72px);align-items:center}
.tkh-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- copy ---------- */
.tkh-kicker{display:flex;align-items:center;gap:14px;margin:0;font-family:var(--tk-font-heading);font-size:14px;font-weight:600;line-height:1.6;color:var(--tkh-amber)}
.tkh-kicker::after{content:"";flex:0 1 96px;height:1px;border-top:1px solid var(--tkh-amber);opacity:.55;
  -webkit-mask-image:linear-gradient(to left,#000,transparent);mask-image:linear-gradient(to left,#000,transparent)}

.tkh .tkh-title{margin:18px 0 0;font-family:var(--tk-font-heading);font-weight:950;font-size:clamp(30px,3.2vw,46px);
  line-height:1.5;letter-spacing:0;color:var(--tkh-ink)}
.tkh-title__q,.tkh-title__a{display:block}
.tkh-word-wrap{display:inline-block;vertical-align:bottom;overflow:hidden;line-height:inherit}
.tkh-word{display:inline-block;color:var(--tkh-amber);white-space:nowrap;
  background:linear-gradient(var(--tkh-amber),var(--tkh-amber)) no-repeat 0 92%/100% 3px;padding-bottom:2px;
  transition:transform .32s var(--tk-ease),opacity .32s var(--tk-ease)}
.tkh-word.is-out{transform:translateY(-.55em);opacity:0}
.tkh-word.is-in{transform:translateY(.55em);opacity:0;transition:none}

.tkh-slogan{margin:14px 0 0;font-size:clamp(17px,1.4vw,20px);font-weight:800;line-height:1.8;color:var(--tkh-ink)}

.tkh-search{display:flex;align-items:center;gap:6px;box-sizing:border-box;max-width:540px;height:62px;margin-top:30px;
  padding:7px;padding-inline-start:20px;background:#fff;border-radius:999px;box-shadow:0 24px 60px -24px rgba(0,0,0,.7);
  transition:box-shadow .2s var(--tk-ease)}
.tkh-search:focus-within{box-shadow:0 0 0 4px rgba(255,194,24,.35),0 24px 60px -24px rgba(0,0,0,.7)}
.tkh-search__ic{width:21px;height:21px;flex:none;color:rgba(26,28,31,.5)}
.tkh .tkh-search__input{flex:1;min-width:0;height:100%;margin:0;padding:0 10px;border:0;border-radius:0;outline:0;box-shadow:none;
  background:transparent;-webkit-appearance:none;appearance:none;font:inherit;font-size:16px;color:#1a1c1f}
.tkh .tkh-search__input:focus{border:0;box-shadow:none;outline:0}
.tkh-search__input::placeholder{color:rgba(26,28,31,.5);opacity:1}
.tkh-search__input::-webkit-search-cancel-button{-webkit-appearance:none}
.tkh-search__btn{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 28px;border:0;
  border-radius:999px;background:var(--tkh-amber);color:#181a1d;font:inherit;font-size:15px;font-weight:800;cursor:pointer;
  transition:background .2s var(--tk-ease),transform .2s var(--tk-ease)}
.tkh-search__btn:hover{background:#ffd04a}
.tkh-search__btn:active{transform:scale(.98)}
.tkh-search__btn:focus-visible{outline:3px solid #fff;outline-offset:2px}
.tkh-search__btn svg{display:none;width:20px;height:20px}

.tkh-popular{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px}
.tkh-popular span{margin-inline-end:4px;font-size:13.5px;font-weight:600;color:var(--tkh-faint)}
.tkh-popular a{display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:999px;box-sizing:border-box;
  border:1px solid var(--tkh-line-strong);color:var(--tkh-ink);font-size:13.5px;font-weight:600;text-decoration:none;white-space:nowrap;
  transition:border-color .2s var(--tk-ease),background .2s var(--tk-ease),color .2s var(--tk-ease)}
.tkh-popular a:hover{border-color:var(--tkh-amber);background:rgba(255,194,24,.12);color:#fff}
.tkh-popular a:focus-visible{outline:3px solid var(--tkh-amber);outline-offset:2px}

.tkh-trust{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:10px 28px;margin:clamp(8px,1.4vw,20px) 0 0;padding:22px 0 0;list-style:none;border-top:1px solid var(--tkh-line)}
.tkh-trust li{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;color:var(--tkh-soft)}
.tkh-trust svg{width:15px;height:15px;flex:none;color:var(--tkh-amber)}

/* ---------- visual: the live gauge ---------- */
.tkh-visual{position:relative;display:flex;flex-direction:column;align-items:center;margin:0;padding:10px 0 0}
.tkh-gauge{position:relative;width:min(560px,100%);aspect-ratio:560/384}
.tkh-gauge__svg{display:block;width:100%;height:100%;overflow:visible}
.tkh-gauge__ticks{stroke:rgba(244,245,242,.22);stroke-width:1.5;stroke-linecap:round}
.tkh-gauge__ticks--major{stroke:rgba(244,245,242,.6);stroke-width:2.2}
.tkh-gauge__labels text{fill:var(--tkh-faint);font:600 13px/1 var(--tk-font);text-anchor:middle;dominant-baseline:middle}
.tkh-gauge__track{stroke:rgba(244,245,242,.1);stroke-width:14;stroke-linecap:round}
.tkh-gauge__arc{stroke-width:14;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:calc(100 - var(--tkh-v,0));
  filter:drop-shadow(0 0 14px rgba(255,194,24,.45));transition:stroke-dashoffset 1.5s cubic-bezier(.22,1,.36,1)}
.tkh-gauge__needle{transform-origin:280px 300px;transform:rotate(calc(-110deg + var(--tkh-v,0) * 2.2deg));
  transition:transform 1.5s cubic-bezier(.22,1,.36,1)}
.tkh-gauge__needle path{fill:#fff}
.tkh-gauge__needle circle{fill:var(--tkh-bg);stroke:var(--tkh-amber);stroke-width:4}
.tkh-gauge__num{position:absolute;left:0;right:0;top:88.5%;display:flex;align-items:baseline;justify-content:center;gap:8px;pointer-events:none}
.tkh-gauge__num b{font-family:var(--tk-font-heading);font-size:clamp(40px,3.7vw,54px);line-height:1;font-weight:900;color:var(--tkh-ink);
  font-variant-numeric:tabular-nums}
.tkh-gauge__num span{font-size:13px;font-weight:600;color:var(--tkh-faint)}

.tkh-readout{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:34px}
.tkh-readout__main{display:flex;align-items:center;gap:12px}
.tkh-readout__skill{font-size:20px;font-weight:800;color:var(--tkh-ink);transition:opacity .3s var(--tk-ease)}
.tkh-readout__skill.is-out{opacity:0}
.tkh-readout__level{display:inline-flex;align-items:center;height:30px;padding:0 13px;border-radius:999px;
  background:var(--tkh-amber);color:#181a1d;font-size:12.5px;font-weight:800;white-space:nowrap}
.tkh-readout__meta{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--tkh-soft)}
.tkh-readout__meta svg{width:15px;height:15px;color:var(--tkh-amber)}
.tkh-readout__meta b{font-weight:800;letter-spacing:.05em;color:var(--tkh-ink)}

/* ---------- motion ---------- */
@media (prefers-reduced-motion:no-preference){
  .tkh-copy>*{animation:tkh-rise .7s var(--tk-ease) both}
  .tkh-copy>:nth-child(2){animation-delay:.05s}
  .tkh-copy>:nth-child(3){animation-delay:.1s}
  .tkh-copy>:nth-child(4){animation-delay:.15s}
  .tkh-copy>:nth-child(5){animation-delay:.2s}
  .tkh-copy>:nth-child(6){animation-delay:.25s}
  .tkh-visual{animation:tkh-rise .9s .15s var(--tk-ease) both}
  .tkh-trust{animation:tkh-rise .9s .35s var(--tk-ease) both}
}
@media (prefers-reduced-motion:reduce){
  .tkh-gauge__arc,.tkh-gauge__needle,.tkh-word,.tkh-readout__skill{transition:none}
}
.tkh-gauge.is-still .tkh-gauge__arc,.tkh-gauge.is-still .tkh-gauge__needle{transition:none}
@keyframes tkh-rise{from{opacity:0;transform:translateY(14px)}}

/* ---------- responsive ---------- */
@media (max-width:1100px){
  .tkh-grid{grid-template-columns:minmax(0,1fr);gap:40px 0}
  .tkh-visual{padding-top:0}
  .tkh-gauge{width:min(480px,100%)}
}
@media (max-width:640px){
  .tkh{padding:34px 0 40px}
  .tkh-copy{display:flex;flex-direction:column;align-items:center;text-align:center}
  .tkh-kicker{justify-content:center;font-size:14.5px}
  .tkh-kicker::before,.tkh-kicker::after{content:"";flex:0 0 34px;height:1px;border-top:1px solid var(--tkh-amber);opacity:.55}
  .tkh-kicker::before{-webkit-mask-image:linear-gradient(to right,#000,transparent);mask-image:linear-gradient(to right,#000,transparent)}
  /* موبایل: تیتر سه‌خطی و درشت — «واقعاً چقدر» کوچک‌تر، مهارت روی خط خودش (طلایی)، «بلدی؟» زیر آن.
     بلندترین مهارت فهرست ≈ ۷٫۴em است؛ با این اندازه‌ها در ۳۲۰ تا ۴۳۰ پیکسل جا می‌گیرد. */
  .tkh .tkh-title{margin-top:14px;font-size:clamp(34px,11.2vw,46px);line-height:1.38}
  .tkh-title__q{font-size:.74em;font-weight:800;line-height:1.5;opacity:.94}
  .tkh-title__a{margin-top:2px}
  .tkh-word-wrap{display:block}
  .tkh-word{padding-bottom:4px;background-size:100% 4px;background-position:0 94%}
  .tkh-slogan{margin-top:12px;font-size:18px}
  .tkh-search{width:100%;height:58px;margin-top:26px;padding:5px;padding-inline-start:16px}
  .tkh-search__ic{display:none}
  .tkh .tkh-search__input{padding:0 4px;font-size:15px}
  .tkh-search__btn{width:46px;height:46px;padding:0}
  .tkh-search__btn svg{display:block}
  .tkh-search__btn span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .tkh-popular{justify-content:center;gap:8px;margin-top:14px}
  .tkh-popular span{display:none}
  .tkh-popular a{height:36px;padding:0 15px;font-size:14px}
  .tkh-trust{display:none}
  .tkh-gauge{width:min(340px,100%)}
  .tkh-gauge__labels text{font-size:16px}
  .tkh-gauge__num b{font-size:36px}
  .tkh-readout{margin-top:26px}
  .tkh-readout{margin-top:14px;gap:8px}
  .tkh-readout__skill{font-size:18px}
  .tkh-glow{inset:auto auto -4% -20%;width:min(520px,120vw)}
}
