/* «گیسو حرف می‌زند» — Gisoo's talking self-introduction (src/partials/gisoo.html, engine: gisoo.js).
   Rebuilt from netarz.ir's home section. Gisoo brand: gold #FFC700 on ink #0A0B10.
   Mark motion rules: strands slide on the lattice diagonals only, the core only scales, nothing rotates. */

.gsx-section { --gsx-gold: #FFC700; --gsx-gold-soft: #FFE07A; --gsx-ink: #0A0B10; padding: 96px 0 0; }

.gsx-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center;
  padding: 64px 64px 56px; border-radius: 28px; color: #fff;
  background: linear-gradient(160deg, #10121A 0%, var(--gsx-ink) 55%, #0B0D16 100%);
  box-shadow: 0 30px 70px -30px rgba(10, 11, 16, .55);
}
.gsx-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
}
.gsx-glow { position: absolute; z-index: -1; width: 460px; height: 460px; border-radius: 50%; pointer-events: none; filter: blur(10px); }
.gsx-glow-a { top: -200px; inset-inline-end: -140px; background: radial-gradient(closest-side, rgba(255, 199, 0, .16), rgba(255, 199, 0, 0)); }
.gsx-glow-b { bottom: -230px; inset-inline-start: -120px; background: radial-gradient(closest-side, rgba(99, 102, 241, .16), rgba(99, 102, 241, 0)); }

/* ---- copy ---- */
.gsx-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  padding: 5px 14px 5px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--gsx-gold-soft);
  border: 1px solid rgba(255, 199, 0, .3); background: rgba(255, 199, 0, .08);
}
.gsx-eyebrow img { width: 16px; height: 16px; }
.gsx-section .gsx-card h2 { color: #fff; font-size: clamp(27px, 3vw, 38px); font-weight: 800; line-height: 1.5; }
.gsx-section .gsx-card h2 { text-wrap: balance; }
.gsx-hl { display: block; color: var(--gsx-gold); }
.gsx-text { margin-top: 18px; color: rgba(255, 255, 255, .74); font-size: 16.5px; line-height: 2; max-width: 540px; }
.gsx-feats { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.gsx-feats li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .86);
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .045);
}
.gsx-feats svg, .gsx-btn svg, .gsx-controls svg {
  width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.gsx-feats svg { color: var(--gsx-gold); }

.gsx-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.gsx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 54px; padding: 0 26px; border-radius: 14px; font-weight: 700; font-size: 15.5px; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.gsx-btn-gold { background: var(--gsx-gold); color: var(--gsx-ink); box-shadow: 0 12px 30px -10px rgba(255, 199, 0, .45); }
.gsx-btn-gold:hover { background: #FFD43D; transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(255, 199, 0, .55); }
.gsx-btn-line { color: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); }
.gsx-btn-line:hover { border-color: rgba(255, 199, 0, .55); color: #fff; }
.gsx-arrow { transition: transform .2s; }
.gsx-btn-line:hover .gsx-arrow { transform: translateX(-3px); }
[dir="ltr"] .gsx-arrow { transform: scaleX(-1); }
[dir="ltr"] .gsx-btn-line:hover .gsx-arrow { transform: scaleX(-1) translateX(-3px); }
.gsx-domain { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .6); letter-spacing: .3px; }
.gsx-card :focus-visible { outline: 2px solid var(--gsx-gold); outline-offset: 3px; }

/* ---- the talking mark ---- */
.gsx-player { position: relative; width: 100%; max-width: 520px; justify-self: center; }
.gsx-stage { --gsx-mark: clamp(7.5rem, 30vw, 10.5rem); position: relative; aspect-ratio: 16 / 10; width: 100%; }
.gsx-waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.gsx-halo {
  position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; opacity: .4; will-change: transform, opacity;
  background: radial-gradient(closest-side, rgba(255, 199, 0, .34), rgba(255, 199, 0, 0) 100%);
}
.gsx-ripples { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.gsx-ripples > span {
  position: absolute; left: calc(var(--gsx-mark) / -2); top: calc(var(--gsx-mark) / -2);
  width: var(--gsx-mark); height: var(--gsx-mark);
  border: 1.5px solid rgba(255, 199, 0, .7); border-radius: 18%; pointer-events: none;
}
.gsx-mark { position: absolute; left: 50%; top: 50%; width: var(--gsx-mark); height: var(--gsx-mark); translate: -50% -50%; }
.gsx-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: var(--gsx-gold); }
.gsx-echo { filter: blur(10px); }
.gsx-echo path { opacity: .15; }

/* The speech bubble: two lines tall, always, so the page never jumps. */
.gsx-bubble {
  position: relative; min-height: 6.2rem; margin-top: 6px; padding: 12px 20px 14px; text-align: center;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); border-radius: 20px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.gsx-bubble::before {
  content: ""; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; translate: -50% 0; rotate: 45deg;
  border-top: 1px solid rgba(255, 255, 255, .1); border-left: 1px solid rgba(255, 255, 255, .1); background: #17191F;
}
.gsx-who { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--gsx-gold-soft); margin-bottom: 4px; }
.gsx-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 199, 0, .5); transition: background-color .2s, box-shadow .2s; }
.gsx-live .gsx-dot { background: #3DDC84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .16); }
.gsx-cap { font-family: "Vazirmatn", Tahoma, sans-serif; font-size: 17px; font-weight: 700; line-height: 1.9; }
.gsx-cap > span { color: rgba(255, 255, 255, .5); transition: color .18s ease; }
.gsx-cap > span.is-on { color: #fff; }
.gsx-cap span[dir="ltr"] { unicode-bidi: isolate; }

.gsx-controls { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.gsx-voice {
  display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 700; white-space: nowrap; color: var(--gsx-gold-soft);
  border: 1px solid rgba(255, 199, 0, .45); background: rgba(255, 199, 0, .1);
  transition: background-color .2s, border-color .2s, color .2s;
}
.gsx-voice:hover { background: rgba(255, 199, 0, .2); border-color: rgba(255, 199, 0, .7); }
.gsx-voice[aria-pressed="true"] { background: var(--gsx-gold); border-color: var(--gsx-gold); color: var(--gsx-ink); }
.gsx-i-spin, .gsx-bars, .gsx-i-play { display: none; }
.gsx-voice.is-loading .gsx-i-vol, .gsx-voice[aria-pressed="true"] .gsx-i-vol { display: none; }
.gsx-voice.is-loading .gsx-i-spin { display: block; animation: gsx-spin .9s linear infinite; }
.gsx-voice[aria-pressed="true"]:not(.is-loading) .gsx-bars { display: inline-flex; }
.gsx-bars { gap: 2px; align-items: flex-end; width: 18px; height: 16px; justify-content: center; }
.gsx-bars i { width: 3px; border-radius: 2px; background: currentColor; animation: gsx-bar .9s ease-in-out infinite; }
.gsx-bars i:nth-child(2) { animation-delay: .15s; }
.gsx-bars i:nth-child(3) { animation-delay: .3s; }
@keyframes gsx-bar { 0%, 100% { height: 4px; } 50% { height: 15px; } }
@keyframes gsx-spin { to { transform: rotate(360deg); } }

.gsx-progress { position: absolute; bottom: -1px; inset-inline: 22px; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.gsx-progress i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; border-radius: 2px; background: rgba(255, 199, 0, .5); }
.gsx-live .gsx-progress i { background: var(--gsx-gold); }

.gsx-freeze {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; padding: 0;
  color: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04);
  transition: border-color .2s, color .2s, background-color .2s;
}
.gsx-freeze:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.gsx-freeze[aria-pressed="true"] .gsx-i-pause { display: none; }
.gsx-freeze[aria-pressed="true"] .gsx-i-play { display: block; }
.gsx-i-play { fill: currentColor !important; stroke-width: 1.2 !important; }

.gsx-lang-note { margin: 14px auto 0; max-width: 400px; text-wrap: balance; text-align: center; font-size: 13px; line-height: 1.8; color: rgba(255, 255, 255, .62); }
.gsx-lang-note:empty { display: none; }

/* ---- responsive ---- */
@media (max-width: 1080px) {
  .gsx-card { gap: 36px; padding: 52px 44px 48px; }
}
@media (max-width: 860px) {
  .gsx-section { padding: 72px 0 0; }
  .gsx-card { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 28px 40px; text-align: center; }
  .gsx-player { order: -1; }
  .gsx-text { margin-inline: auto; }
  .gsx-feats, .gsx-cta { justify-content: center; }
}
@media (max-width: 640px) {
  .gsx-section { padding: 48px 0 0; }
  .gsx-card { padding: 24px 18px 32px; border-radius: 22px; }
  .gsx-bubble { padding: 10px 14px 12px; min-height: 6.6rem; }
  .gsx-cap { font-size: 16px; }
  .gsx-text { font-size: 15.5px; }
  .gsx-feats { gap: 8px; }
  .gsx-feats li { font-size: 13px; padding: 5px 12px; }
  .gsx-cta { flex-direction: column; }
  .gsx-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .gsx-btn-gold:hover { transform: none; }
  .gsx-bars i { animation-duration: 2.4s; }
  .gsx-voice.is-loading .gsx-i-spin { animation-duration: 2.4s; }
  .gsx-cap > span { transition: none; }
}
