/* ======================================================================================
 * سکشن ویژه‌ی صفحه‌ی اصلی: «ساخت عکس با هوش مصنوعی» (partials/studio-showcase.ejs)
 * هم‌خانواده‌ی سکشن geo-showcase (قاب تیره، تیتر بزرگ، سه ویژگی، دو دکمه، ستون بصری)
 * ولی با پالت فیروزه‌ای/ارغوانی خودِ صفحه‌ی /ai-image. همه‌ی کلاس‌ها با پیشوند ss- و زیر ‎.ss‎.
 * ====================================================================================== */
.ss {
  --ss-cyan: #22e3f5;
  --ss-magenta: #ff3bd4;
  --ss-violet: #8b5cff;
  --ss-line: rgba(34, 227, 245, .28);
  --ss-text: #eef7fb;
  --ss-text-2: #b5cbd3;
  --ss-muted: #7f9ba7;
  --ss-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  padding: 26px 0 30px;
  color: var(--ss-text);
}
.ss-frame {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px; padding: 46px 44px;
  border: 1px solid rgba(255, 59, 212, .3);
  background: radial-gradient(120% 90% at 70% 40%, #170a24 0%, #08060f 55%, #030409 100%);
  box-shadow: 0 0 0 1px rgba(255, 59, 212, .05), 0 0 50px rgba(255, 59, 212, .10), inset 0 0 70px rgba(139, 92, 255, .05);
}
.ss-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ss-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 59, 212, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 59, 212, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 80% at 68% 45%, #000 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(70% 80% at 68% 45%, #000 0%, transparent 85%);
}
.ss-bg::after {
  content: ''; position: absolute; width: 560px; height: 440px; top: -90px; left: -120px;
  background: radial-gradient(closest-side, rgba(34, 227, 245, .10), transparent);
}
.ss-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 34px; align-items: center; }

/* ============================== ستون متن ============================== */
.ss-text { position: relative; z-index: 2; }
.ss-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ss-magenta);
  padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 59, 212, .35); background: rgba(255, 59, 212, .06);
}
.ss-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--ss-cyan); box-shadow: 0 0 8px var(--ss-cyan); animation: ss-blink 1.8s infinite; }
@keyframes ss-blink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.ss-title { margin: 18px 0 0; font-size: clamp(28px, 3.1vw, 46px); font-weight: 900; line-height: 1.45; color: #fff; }
.ss-line1 { white-space: nowrap; }
.ss-grad {
  display: block;
  background: linear-gradient(90deg, var(--ss-cyan), #9ef3ff 35%, var(--ss-magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 16px rgba(255, 59, 212, .25));
}
.ss-rule { display: block; width: 120px; height: 3px; border-radius: 3px; margin: 16px 0 18px; background: linear-gradient(270deg, var(--ss-magenta), rgba(34, 227, 245, .15)); }
.ss-lead { margin: 0; color: var(--ss-text-2); font-size: 16px; line-height: 2.05; max-width: 540px; }

.ss-features { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ss-features li {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 18px 10px; border-radius: 16px; font-size: 13.5px; font-weight: 700; color: #fff;
  border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.ss-features li:hover { border-color: rgba(255, 59, 212, .45); box-shadow: 0 0 20px rgba(255, 59, 212, .14); transform: translateY(-2px); }
.ss-features svg { width: 30px; height: 30px; color: var(--ss-cyan); filter: drop-shadow(0 0 6px rgba(34, 227, 245, .5)); }

.ss-ctas { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.ss-btn {
  flex: 1 1 180px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 22px; border-radius: 14px; font-size: 16px; font-weight: 800; text-decoration: none; white-space: nowrap;
  transition: transform .15s, box-shadow .25s, background .25s, filter .25s;
}
.ss-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.ss-btn.primary {
  color: #12021a; background: linear-gradient(90deg, var(--ss-cyan), #8ef0ff 40%, var(--ss-magenta));
  box-shadow: 0 10px 30px rgba(255, 59, 212, .25), 0 0 26px rgba(34, 227, 245, .3);
}
.ss-btn.primary:hover { filter: brightness(1.07); box-shadow: 0 12px 34px rgba(255, 59, 212, .35), 0 0 34px rgba(34, 227, 245, .4); }
.ss-btn.outline { color: #fff; border: 1.5px solid rgba(255, 59, 212, .7); background: rgba(255, 59, 212, .05); }
.ss-btn.outline:hover { background: rgba(255, 59, 212, .12); box-shadow: 0 0 22px rgba(255, 59, 212, .2); }
.ss-btn:active { transform: translateY(1px); }
.ss-btn:focus-visible, .ss-thumbs a:focus-visible, .ss-out:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.ss-steps { list-style: none; margin: 18px 0 0; padding: 5px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .02); }
.ss-steps li { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 6px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ss-text-2); }
.ss-steps li b {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px;
  color: #12021a; background: linear-gradient(135deg, var(--ss-cyan), var(--ss-magenta));
}

/* ============================== ستون بصری ============================== */
.ss-visual {
  position: relative; display: grid; gap: 16px; align-items: center;
  grid-template-columns: minmax(0, .78fr) 46px minmax(0, 1.22fr);
  grid-template-areas: "in arrow out" "prompt prompt prompt" "thumbs thumbs thumbs";
}
.ss-orbit { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; left: 50%; top: 40%; }
.ss-orbit.o1 { width: 100%; height: 56%; transform: translate(-50%, -50%) rotate(-12deg); border: 1px solid rgba(34, 227, 245, .14); }
.ss-orbit.o2 { width: 76%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 1.5px dashed rgba(255, 59, 212, .2); animation: ss-spin 90s linear infinite; }
@keyframes ss-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* عکس کاربر */
.ss-in {
  grid-area: in; position: relative; z-index: 2; margin: 0; padding: 6px; border-radius: 16px;
  background: rgba(4, 14, 22, .75); border: 1.5px solid rgba(34, 227, 245, .7);
  box-shadow: 0 0 22px rgba(34, 227, 245, .3), inset 0 0 18px rgba(34, 227, 245, .1);
  transform: perspective(900px) rotateY(-12deg) rotateZ(2deg);
}
.ss-in-ph { position: relative; aspect-ratio: 3 / 4; border-radius: 11px; overflow: hidden; background: radial-gradient(90% 70% at 50% 30%, #123047, #050d16); }
.ss-in-ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ss-scanline { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ss-cyan); box-shadow: 0 0 12px 3px rgba(34, 227, 245, .7); animation: ss-scan 2.6s ease-in-out infinite; }
@keyframes ss-scan { 0%, 100% { top: 0; } 50% { top: calc(100% - 2px); } }
.ss-in figcaption {
  position: absolute; bottom: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: #fff;
  background: rgba(2, 8, 14, .8); border: 1px solid rgba(255, 255, 255, .18);
}
.ss-in figcaption svg { width: 15px; height: 15px; }

/* فلش «AI» */
.ss-arrow { grid-area: arrow; position: relative; z-index: 2; height: 46px; display: grid; place-items: center; }
.ss-arrow::before { /* خط نوری به سمت خروجی (چپ) */
  content: ''; position: absolute; top: 50%; right: -14px; left: -14px; height: 2px; transform: translateY(-50%);
  background: linear-gradient(270deg, rgba(34, 227, 245, .1), var(--ss-cyan), var(--ss-magenta));
  background-size: 200% 100%; animation: ss-flow 1.6s linear infinite;
}
@keyframes ss-flow { from { background-position: 0 0; } to { background-position: -200% 0; } }
.ss-arrow span {
  position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--ss-mono); font-size: 13px; font-weight: 800; color: #12021a; letter-spacing: .05em;
  background: linear-gradient(135deg, var(--ss-cyan), var(--ss-magenta));
  box-shadow: 0 0 22px rgba(255, 59, 212, .55), 0 0 0 6px rgba(255, 59, 212, .1);
  animation: ss-pulse 2.2s ease-in-out infinite;
}
@keyframes ss-pulse { 50% { box-shadow: 0 0 32px rgba(34, 227, 245, .7), 0 0 0 10px rgba(34, 227, 245, .08); } }

/* خروجی */
.ss-out {
  grid-area: out; position: relative; z-index: 2; display: block; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden;
  border: 1.5px solid rgba(255, 59, 212, .7); text-decoration: none;
  box-shadow: 0 0 34px rgba(255, 59, 212, .3), 0 18px 40px rgba(0, 0, 0, .45);
  transition: opacity .25s, transform .25s, box-shadow .25s;
}
.ss-out:hover { box-shadow: 0 0 44px rgba(255, 59, 212, .45), 0 18px 40px rgba(0, 0, 0, .45); transform: translateY(-2px); }
.ss-out.is-switching { opacity: .3; transform: scale(.985); }
.ss-out img, .ss-out-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ss-out-ph { background: linear-gradient(135deg, rgba(34, 227, 245, .3), rgba(255, 59, 212, .3)); }
.ss-out::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, transparent, rgba(5, 3, 10, .9)); }
.ss-out-badge {
  position: absolute; z-index: 1; top: 12px; right: 12px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 800;
  color: #12021a; background: linear-gradient(90deg, var(--ss-cyan), var(--ss-magenta));
}
.ss-out-title { position: absolute; z-index: 1; right: 14px; left: 14px; bottom: 14px; font-size: 16px; font-weight: 900; color: #fff; line-height: 1.7; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }

/* نوار ایده (نمادین) */
.ss-prompt {
  grid-area: prompt; position: relative; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 8px; padding-inline-start: 14px; border-radius: 14px;
  background: rgba(6, 10, 20, .85); border: 1px solid rgba(34, 227, 245, .3);
  box-shadow: 0 0 20px rgba(34, 227, 245, .12);
}
.ss-prompt-ico { font-size: 16px; }
.ss-prompt-text { flex: 1; min-width: 0; font-size: 13.5px; color: var(--ss-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-prompt-text::after { content: '|'; margin-inline-start: 2px; color: var(--ss-cyan); animation: ss-blink 1s steps(1) infinite; }
.ss-prompt-go { flex: 0 0 auto; padding: 7px 16px; border-radius: 10px; font-size: 13px; font-weight: 800; color: #12021a; background: linear-gradient(90deg, var(--ss-cyan), var(--ss-magenta)); }

/* بندانگشتی استایل‌ها */
.ss-thumbs { grid-area: thumbs; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ss-thumbs a { display: block; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); opacity: .55; transition: opacity .25s, border-color .25s, box-shadow .25s, transform .25s; }
.ss-thumbs a img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-thumbs a:hover { opacity: .9; transform: translateY(-2px); }
.ss-thumbs a.is-on { opacity: 1; border-color: var(--ss-magenta); box-shadow: 0 0 16px rgba(255, 59, 212, .45); }

/* ============================== ریسپانسیو ============================== */
@media (max-width: 1000px) {
  .ss-frame { padding: 34px 26px; }
  .ss-grid { grid-template-columns: 1fr; gap: 30px; }
  .ss-visual { max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  .ss { padding: 14px 0 22px; }
  .ss-frame { padding: 26px 16px; border-radius: 22px; }
  .ss-line1 { white-space: normal; }
  .ss-lead { font-size: 14.5px; }
  .ss-features { gap: 8px; }
  .ss-features li { padding: 14px 6px; font-size: 12.5px; }
  .ss-features svg { width: 26px; height: 26px; }
  .ss-btn { font-size: 15px; padding: 13px 16px; }
  .ss-steps li { font-size: 11.5px; gap: 4px; padding: 7px 2px; white-space: nowrap; }
  .ss-steps li b { width: 19px; height: 19px; font-size: 11px; }
  .ss-visual { grid-template-columns: minmax(0, .8fr) 34px minmax(0, 1.2fr); gap: 10px; }
  .ss-arrow span { width: 34px; height: 34px; font-size: 11px; }
  .ss-in figcaption { bottom: 10px; right: 10px; font-size: 11px; padding: 4px 8px; }
  .ss-out-title { font-size: 13.5px; bottom: 10px; right: 10px; left: 10px; }
  .ss-out-badge { font-size: 10.5px; top: 8px; right: 8px; }
  .ss-thumbs { gap: 6px; }
  .ss-prompt-text { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ss-orbit.o2, .ss-scanline, .ss-arrow::before, .ss-arrow span, .ss-eyebrow i { animation: none; }
}

/* ======================================================================================
 * بخش «ساخت ویدیو با هوش مصنوعی» (partials/video-showcase.ejs) — همان قاب ss- با چیدمان آینه‌ای
 * (بخش بصری سمت راست) و اجزای مخصوص ویدیو با پیشوند vs-.
 * ====================================================================================== */
.vs .ss-frame {
  border-color: rgba(34, 227, 245, .32);
  background: radial-gradient(120% 90% at 30% 40%, #061a24 0%, #050a12 55%, #020408 100%);
  box-shadow: 0 0 0 1px rgba(34, 227, 245, .05), 0 0 50px rgba(34, 227, 245, .10), inset 0 0 70px rgba(139, 92, 255, .05);
}
.vs .ss-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.vs .ss-visual { order: 1; }
.vs .ss-text { order: 2; }
.vs .ss-eyebrow { color: var(--ss-cyan); border-color: rgba(34, 227, 245, .35); background: rgba(34, 227, 245, .06); }
.vs .ss-eyebrow i { background: var(--ss-magenta); box-shadow: 0 0 8px var(--ss-magenta); }
.vs-models li span { font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.vs .vs-visual { grid-template-columns: minmax(0, 1fr); grid-template-areas: "prompt" "screen" "thumbs"; }
.vs-prompt { grid-area: prompt; }
.vs-screen {
  grid-area: screen; position: relative; z-index: 2; display: block; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; text-decoration: none;
  border: 1.5px solid rgba(34, 227, 245, .7); background: #000;
  box-shadow: 0 0 34px rgba(34, 227, 245, .28), 0 18px 40px rgba(0, 0, 0, .45);
  transition: opacity .25s, transform .25s, box-shadow .25s;
}
.vs-screen:hover { box-shadow: 0 0 46px rgba(34, 227, 245, .42), 0 18px 40px rgba(0, 0, 0, .45); transform: translateY(-2px); }
.vs-screen.is-switching { opacity: .3; }
.vs-screen video, .vs-screen img, .vs-screen .vs-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vs-ph { background: linear-gradient(120deg, #0b2a3a, #2a0f3d 45%, #0b2a3a); background-size: 300% 300%; animation: vs-pan 8s ease-in-out infinite; }
@keyframes vs-pan { 50% { background-position: 100% 50%; } }
.vs-screen::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, transparent, rgba(3, 5, 10, .9)); pointer-events: none; }
.vs-rec {
  position: absolute; z-index: 1; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px;
  font-family: var(--ss-mono); font-size: 11px; letter-spacing: .12em; color: #fff; background: rgba(2, 6, 12, .7); border: 1px solid rgba(255, 255, 255, .2); direction: ltr;
}
.vs-rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b6b; box-shadow: 0 0 8px #ff3b6b; animation: ss-blink 1.2s infinite; }
.vs-play {
  position: absolute; z-index: 1; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; color: #021118; background: rgba(34, 227, 245, .9); box-shadow: 0 0 26px rgba(34, 227, 245, .6);
  opacity: .9; transition: transform .25s;
}
.vs-screen:hover .vs-play { transform: scale(1.08); }
.vs-title { position: absolute; z-index: 1; right: 14px; left: 14px; bottom: 22px; font-size: 16px; font-weight: 900; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.vs-timeline { position: absolute; z-index: 1; right: 14px; left: 14px; bottom: 10px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); overflow: hidden; direction: ltr; }
.vs-timeline i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--ss-cyan), var(--ss-magenta)); animation: vs-time 5s linear infinite; }
@keyframes vs-time { from { width: 0; } to { width: 100%; } }
.vs-thumbs a { aspect-ratio: 16 / 10; }
@media (max-width: 1000px) {
  .vs .ss-grid { grid-template-columns: minmax(0, 1fr); }
  .vs .ss-visual { order: 2; }
  .vs .ss-text { order: 1; }
}
@media (max-width: 640px) {
  .vs-title { font-size: 13.5px; }
  .vs-play { width: 46px; height: 46px; margin: -23px 0 0 -23px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .vs-ph, .vs-timeline i, .vs-rec i { animation: none; } }
