:root {
  --bp-desktop: 1200px;
  --bp-tablet: 820px;
  --color-bg: #eef5f9;
  --color-bg-ice: #d0e1eb;
  --color-bg-alt: #bcd2e0;
  --color-bg-deep: #b5ccd9;
  --color-surface: rgba(255, 255, 255, 0.78);
  --color-surface-solid: #f4f9fc;
  --color-surface-muted: rgba(208, 225, 235, 0.65);
  --color-chip: rgba(255, 255, 255, 0.55);
  --color-highlight: #3932dc;
  --color-accent: #0e94fb;
  --color-accent-soft: #57cdff;
  --color-dark: #050419;
  --color-dark-alt: #373647;
  --color-text: #050419;
  --color-text-light: #fcfcfc;
  --color-text-muted: #4d5b68;
  --color-border: rgba(45, 90, 120, 0.12);
  --color-border-dark: #373647;
  --shadow-soft: 0 8px 28px rgba(45, 90, 120, 0.08);
  --shadow-lift: 0 14px 36px rgba(45, 90, 120, 0.12);
  --font-ui: "Vazirmatn", system-ui, sans-serif;
  --font-body: "Vazirmatn", system-ui, sans-serif;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 18px;
  --text-lg: 24px;
  --text-xl: 36px;
  --text-2xl: 80px;
  --text-3xl: 96px;
  --tracking-wide: 0.72px;
  --tracking-tight: -0.04em;
  --tracking-tightest: -0.04em;
  --tracking-hero: -0.06em;
  --leading-none: 1;
  --leading-snug: 1.3;
  --space-md: 20px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 48px;
  --space-3xl: 96px;
  --space-4xl: 128px;
  --space-5xl: 192px;
  --radius-sm: 2px;
  --radius-md: 12px;
  --radius-card: 18px;
  --radius-full: 156px;
  --header-height: 80px;
  --btn-height: 40px;
  --icon-size: 48px;
  --ease-default: cubic-bezier(0.25, 1, 0.5, 1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-fast: 0.25s;
  --motion-med: 0.45s;
  --motion-slow: 0.7s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html.preload * {
  transition: none !important;
}

html.lenis,
html.lenis body {
  height: auto;
}

html.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

html.is-section-snap {
  overscroll-behavior-y: none;
}

html.is-section-snap body {
  overscroll-behavior-y: none;
}

.snap-section {
  scroll-margin-top: 0;
}

::selection {
  background: var(--color-highlight);
  color: #fff;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.45;
  color: var(--color-text);
  background: var(--color-bg-ice);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
  border: 0;
}

h1, h2, h3, p {
  margin: 0;
}

.pc {
  display: none;
}

.sp {
  display: none;
}

@media (min-width: 821px) {
  .pc {
    display: inline;
  }
}

@media (max-width: 820px) {
  .sp {
    display: inline;
  }
}


/* —— Theme scroll chrome —— */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(57, 50, 220, 0.35) transparent;
}

html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: rgba(57, 50, 220, 0.28);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover {
  background: rgba(57, 50, 220, 0.45);
  background-clip: padding-box;
}

.top {
  background: transparent;
}

/* —— Loader —— */
#loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  background: var(--color-bg-ice);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

#loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

.loader__mark {
  width: 72px;
  height: 72px;
  color: var(--color-highlight);
}

.loader__ring {
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
  transform-origin: center;
  animation: ring-draw 1.1s var(--ease) forwards, spin 1.4s linear 0.3s infinite;
}

.loader__core {
  transform-origin: center;
  animation: core-pop 0.6s var(--ease) 0.35s both;
}

@keyframes ring-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes core-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* —— Fixed WebGL-style canvas —— */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s ease-out;
}

#bg-canvas.is-ready {
  opacity: 1;
}

main,
.header,
.footer,
.mobile-nav {
  position: relative;
  z-index: 2;
}

/* —— Header —— */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  background: rgba(208, 225, 235, 0.82);
  color: var(--color-text);
  pointer-events: none;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  transition:
    background var(--motion-med) var(--ease),
    border-color var(--motion-med) var(--ease),
    box-shadow var(--motion-med) var(--ease);
}

.header.is-scrolled {
  background: rgba(208, 225, 235, 0.92);
  border-bottom-color: var(--color-border);
  box-shadow: 0 10px 30px rgba(45, 90, 120, 0.1);
}

.header a,
.header button {
  pointer-events: auto;
}

.header__nav-left,
.header__nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__nav-right {
  justify-content: flex-end;
}

.header__nav-left a {
  padding: 16px;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: opacity 0.3s var(--ease-default);
}

.header__nav-left a:hover {
  opacity: 0.7;
}

.header__logo_link {
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.header__ctas {
  display: none;
  gap: 10px;
  align-items: center;
}

.menu-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
}

.menu-btn__icon {
  display: grid;
  gap: 5px;
}

.menu-btn__line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.menu-btn[aria-expanded="true"] .menu-btn__line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .menu-btn__line:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] .menu-btn__line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-height) 0 auto;
  z-index: 99;
  display: grid;
  gap: 4px;
  padding: 24px;
  background: rgba(208, 225, 235, 0.94);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav > a {
  padding: 16px 0;
  border-bottom: 1px solid rgba(5, 4, 25, 0.08);
  font-size: 18px;
  font-weight: 500;
}

.mobile-nav__ctas {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* —— Pills —— */
.pill-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  letter-spacing: 0.28px;
  text-transform: uppercase;
  overflow: hidden;
  transition: color 0.3s var(--ease-default);
}

.pill-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--color-highlight);
  opacity: 0;
  transition: opacity 0.3s var(--ease-default);
}

.pill-btn:hover::before {
  opacity: 1;
}

.pill-btn-span {
  position: relative;
  z-index: 1;
}

.pill-btn--dark {
  background: var(--color-dark);
  color: var(--color-text-light);
}

.pill-btn--glass {
  background: rgba(5, 4, 25, 0.08);
  backdrop-filter: blur(10px);
  color: var(--color-text);
}

.pill-btn--glass:hover {
  color: var(--color-text-light);
}

.pill-btn--light {
  background: var(--color-bg);
  color: var(--color-text);
}

.header .pill-btn--glass {
  color: var(--color-text);
  background: rgba(5, 4, 25, 0.08);
}

.header .pill-btn--dark {
  background: var(--color-dark);
  color: var(--color-text-light);
}

.header .pill-btn:hover {
  color: #fff;
}

/* —— Hero —— */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 3;
}


.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.5vw, 28px);
  text-align: center;
  color: var(--color-text);
  padding: calc(var(--header-height) + 64px) 24px 0;
  max-width: 1100px;
  width: 100%;
}

.hero__title {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(40px, 9vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin: 0;
  opacity: 0;
  transform: perspective(1000px) translateX(50%) translate3d(-222.2px, 88px, 0) rotateY(60deg) rotateX(35deg);
  transition:
    opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__title span {
  display: block;
}

.hero__subtitle {
  max-width: 620px;
  margin: 0;
  font-size: clamp(16px, 2.1vw, 24px);
  line-height: 1.35;
  color: rgba(5, 4, 25, 0.72);
  opacity: 0;
  transform: perspective(1000px) translateX(50%) translate3d(-222.2px, 88px, 0) rotateY(60deg) rotateX(35deg);
  transition:
    opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s,
    transform 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.hero__subtitle span {
  display: block;
}

.hero.is-shown .hero__title,
.hero.is-shown .hero__subtitle {
  opacity: 1;
  transform: perspective(1000px) translateX(0) translate3d(0, 0, 0) rotateY(0) rotateX(0);
}

.hero__scroll-btn {
  position: absolute;
  bottom: clamp(28px, 5vh, 56px);
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: rgba(5, 4, 25, 0.62);
  pointer-events: auto;
  cursor: pointer;
  height: 28px;
}

.hero__scroll-btn > span {
  display: block;
  overflow: hidden;
  height: 100%;
}

.hsbtn-in {
  display: inline-block;
  transform: translate3d(0, calc(100% + 7px), 0);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.85s;
}

.hero.is-shown .hsbtn-in {
  transform: translate3d(0, 0, 0);
}

.hero__scroll-btn:hover .hsbtn-in {
  color: var(--color-highlight);
}

@media (prefers-reduced-motion: reduce) {
  .hero__title,
  .hero__subtitle,
  .hsbtn-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.hero-spacer {
  position: relative;
  z-index: 1;
  height: 100svh;
  min-height: 100svh;
  width: 100%;
  pointer-events: none;
}

/* —— Flow —— */
.flow {
  --flow-height-multiplier: 1;
  position: relative;
  z-index: 3;
  height: calc(400svh * var(--flow-height-multiplier));
  width: 100%;
  background: transparent;
}

.flow__wrapper {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: transparent;
}

.flow__steps {
  position: relative;
  padding: 28px 32px 32px;
  margin: 0 var(--space-2xl) var(--space-3xl);
  display: flex;
  flex-direction: column;
  width: max-content;
  max-width: min(560px, calc(100vw - 48px));
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
}

.flow__step {
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
}

.flow__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
  padding: 10px 0;
}

.flow__step--active .flow__header {
  cursor: default;
  pointer-events: none;
}

.flow__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: var(--text-sm);
  flex-shrink: 0;
  position: relative;
}

.flow__number span {
  position: relative;
  z-index: 1;
}

.flow__number::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--color-bg);
  transform: scale(0);
  transition: transform 0.5s var(--ease);
}

.flow__step--active .flow__number::before {
  transform: scale(1);
  transition-duration: 0.6s;
}

.flow__title {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--text-lg);
  line-height: 1.3;
  margin: 0;
  transform: scale(0.5833);
  transform-origin: left center;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}

.flow__step--active .flow__title {
  transform: scale(1);
}

.flow__body {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.6s var(--ease);
}

.flow__step--active .flow__body {
  grid-template-rows: 1fr;
}

.flow__body-inner {
  display: flex;
  gap: var(--space-md);
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
}

.flow__step--active .flow__body-inner {
  padding-bottom: 12px;
}

.flow__track {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: var(--icon-size);
  flex-shrink: 0;
  min-height: 0;
}

.flow__track-bar {
  width: 2px;
  min-height: 72px;
  height: 100%;
  background: rgba(5, 4, 25, 0.2);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}

.flow__track-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-dark);
  transform: scaleY(0);
  transform-origin: top center;
  will-change: transform;
}

.flow__description {
  font-size: 16px;
  line-height: 1.45;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0;
  padding-top: 4px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.flow__step--active .flow__description {
  opacity: 1;
  transform: none;
}

/* —— Features: مقایسه قبل/بعد دقیقاً مثل Kora —— */
.features {
  position: relative;
  z-index: 3;
  width: 100%;
  background: #f3f3f0;
  padding: 0;
  box-sizing: border-box;
}

.compare {
  position: relative;
  height: 280vh;
}

.compare__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 12px) 20px 28px;
  box-sizing: border-box;
}

.compare__headline {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px) 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(16px, 3vw, 40px);
  pointer-events: none;
  font-size: clamp(28px, 4.8vw, 64px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.08;
  color: #1c1c1c;
  box-sizing: border-box;
}

.compare__line {
  display: block;
}

.compare__line--a {
  grid-column: 1;
  text-align: end;
  padding-inline-end: 8px;
}

.compare__line--b {
  display: none;
}

.compare__line--c {
  grid-column: 3;
  text-align: start;
  padding-inline-start: 8px;
}

.compare__stage {
  position: relative;
  z-index: 3;
  width: min(1100px, 100%);
  height: min(78svh, 640px);
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
}

.kora-panel {
  position: relative;
  flex: 0 0 auto;
  width: min(400px, 88vw);
  height: 100%;
  margin: 0;
  padding: clamp(28px, 3.5vw, 44px) clamp(22px, 3vw, 40px);
  border-radius: 36px;
  background: #f7f6f1;
  border: none;
  box-shadow: 0 18px 50px rgba(30, 35, 40, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  box-sizing: border-box;
  overflow: hidden;
}

.kora-panel--before {
  z-index: 2;
  color: #2a2a2a;
}

.kora-panel--after {
  width: 0;
  padding-left: 0;
  padding-right: 0;
  opacity: 0;
  pointer-events: none;
  background: #4fad7f;
  color: #fff;
  box-shadow: none;
}

.kora-panel__eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(40, 40, 40, 0.45);
  order: -2;
}

.kora-panel--after .kora-panel__eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.kora-panel__mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  order: -1;
  margin-bottom: 4px;
}

.kora-panel__mark-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #9be6bc 0 28%, transparent 30%),
    conic-gradient(from 210deg, #1f8f55, #5ecf90, #0f6b3e, #1f8f55);
}

.kora-panel__mark-dot--light {
  background:
    radial-gradient(circle at 35% 35%, #fff 0 28%, transparent 30%),
    conic-gradient(from 210deg, #e8fff2, #fff, #c8f0da, #e8fff2);
}

.kora-panel__mark-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: inherit;
}

.kora-panel--before .kora-panel__mark-name {
  color: rgba(40, 40, 40, 0.55);
}

.kora-panel__title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: inherit;
}

.kora-panel__list {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 34ch;
}

.kora-panel__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 500;
  line-height: 1.4;
  color: inherit;
}

.kora-panel--before .kora-panel__list li {
  color: rgba(40, 40, 40, 0.72);
}

.kora-panel__list a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.kora-panel__list a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.kora-panel__icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kora-panel__icon--x {
  background: #8a8a8a;
  color: #fff;
}

.kora-panel__icon--check {
  background: #fff;
  color: #4fad7f;
}

/* حالت نهایی دو ستونه */
.compare.is-split .compare__headline {
  opacity: 0;
}

.compare.is-split .kora-panel--before,
.compare.is-split .kora-panel--after {
  width: calc(50% - 8px);
  opacity: 1;
  pointer-events: auto;
  padding: clamp(28px, 3.5vw, 44px) clamp(22px, 3vw, 40px);
}

.compare.is-split .kora-panel--after {
  box-shadow: 0 18px 50px rgba(30, 35, 40, 0.08);
}

/* —— Feed boards: استک Before/After به سبک Kora —— */
.feed-boards {
  position: relative;
  z-index: 3;
  width: 100%;
  background: linear-gradient(180deg, #e8eef3 0%, var(--color-bg-ice) 40%, #dfe8ef 100%);
  padding: calc(var(--header-height) + 16px) 0 48px;
  box-sizing: border-box;
}

.feed-boards__panel {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

.feed-card {
  background: #f3f1ea;
  border: 1px solid rgba(45, 90, 120, 0.08);
  border-radius: 28px;
  padding: 28px 22px 22px;
  box-shadow: 0 18px 48px rgba(45, 90, 120, 0.1);
}

.feed-card--stack {
  position: sticky;
  top: calc(var(--header-height) + 12px);
  min-height: min(76svh, 620px);
  margin-bottom: 18vh;
  display: flex;
  flex-direction: column;
  transform-origin: center top;
  will-change: transform, filter;
  overflow: hidden;
}

.feed-card--stack:last-child {
  margin-bottom: 8vh;
}

.feed-card--light {
  background: #f3f1ea;
  color: var(--color-text);
}

.feed-card--accent {
  background: #2f6f5e;
  color: #f7faf8;
  border-color: transparent;
}

.feed-card--deep {
  background: #1e2430;
  color: #f4f7fb;
  border-color: transparent;
}

.feed-card__label {
  margin: 0 0 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.55;
}

.feed-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.feed-card__title {
  margin: 0;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: inherit;
  max-width: 12ch;
}

.feed-card__more {
  font-size: 13px;
  color: inherit;
  opacity: 0.7;
  white-space: nowrap;
  margin-top: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feed-card__more:hover {
  opacity: 1;
  color: inherit;
}

.feed-card--accent .feed-list__text,
.feed-card--deep .feed-list__text,
.feed-card--accent .feed-list__meta,
.feed-card--deep .feed-list__meta,
.feed-card--accent .feed-video__name,
.feed-card--deep .feed-video__name,
.feed-card--accent .feed-video__meta,
.feed-card--deep .feed-video__meta {
  color: inherit;
}

.feed-card--accent .feed-list__link:hover,
.feed-card--deep .feed-list__link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.feed-card--accent .feed-list__meta,
.feed-card--deep .feed-list__meta {
  opacity: 0.7;
}

.feed-card--stack .feed-list {
  gap: 6px;
  flex: 1;
}

.feed-card--stack .feed-list__link {
  padding: 12px 8px;
  border-radius: 14px;
}

.feed-card--stack .feed-list__text {
  font-size: 15px;
  font-weight: 600;
}

.feed-card--light .feed-list__link::before {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(5, 4, 25, 0.08);
  order: 0;
  position: relative;
}

.feed-card--accent .feed-list__link::before,
.feed-card--deep .feed-list__link::before {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  order: 0;
}

.feed-card--stack .feed-list__thumb,
.feed-card--stack .feed-list__playbtn {
  order: 3;
}


.feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feed-list__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  border-radius: 12px;
  transition: background 0.2s var(--ease);
}

.feed-list__link:hover {
  background: rgba(208, 225, 235, 0.45);
}

.feed-list__thumb {
  flex-shrink: 0;
  width: 44px;
  height: 56px;
  border-radius: 10px;
  display: block;
  order: 2;
}

.feed-list__thumb--wide {
  width: 72px;
  height: 48px;
}

.feed-list__thumb--a { background: linear-gradient(145deg, #3932dc, #0e94fb); }
.feed-list__thumb--b { background: linear-gradient(145deg, #050419, #3932dc); }
.feed-list__thumb--c { background: linear-gradient(145deg, #0e94fb, #57cdff); }
.feed-list__thumb--d { background: linear-gradient(145deg, #373647, #6a63f0); }
.feed-list__thumb--e { background: linear-gradient(145deg, #3932dc, #57cdff); }

.feed-list__text {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.45;
  order: 1;
  flex: 1;
}

.feed-list__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  order: 1;
  flex: 1;
}

.feed-list__meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

.feed-list__playbtn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #3932dc, #0e94fb);
  position: relative;
  order: 2;
}

.feed-list__playbtn::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
  transform: translateX(1px);
}

.feed-video--featured {
  display: block;
  margin-bottom: 8px;
  border-radius: 14px;
  overflow: hidden;
}

.feed-video__cover {
  display: grid;
  place-content: center;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 40% 35%, #d7e6ef, #7fa0b5 72%);
  position: relative;
}

.feed-video__play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  position: relative;
  box-shadow: 0 6px 18px rgba(5, 4, 25, 0.2);
}

.feed-video__play::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #3932dc;
  transform: translateX(2px);
}

.feed-video__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 4px 4px;
}

.feed-video__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}

.feed-video__meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* —— Utility row: ابزار / مقایسه / خبرنامه —— */
.utility-row {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 100svh;
  background: linear-gradient(180deg, var(--color-bg-ice) 0%, var(--color-bg) 100%);
  padding: calc(var(--header-height) + 8px) 0 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.utility-row__panel {
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.utility-card {
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 18px 16px 16px;
  box-shadow: var(--shadow-soft);
}

.utility-card__badge {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(57, 50, 220, 0.1);
  color: var(--color-highlight);
  font-size: 13px;
  font-weight: 700;
}

.utility-card__badge--blue {
  background: rgba(14, 148, 251, 0.12);
  color: #0e94fb;
}

.utility-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.utility-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.utility-card__more {
  font-size: 12px;
  color: var(--color-text-muted);
}

.utility-card__more:hover {
  color: var(--color-highlight);
}

.utility-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
}

.utility-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.utility-tool__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-chip);
  border: 1px solid var(--color-border);
  color: var(--color-highlight);
  display: grid;
  place-content: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.utility-tool__icon svg {
  width: 22px;
  height: 22px;
}

.utility-tool:hover .utility-tool__icon {
  background: rgba(57, 50, 220, 0.12);
}

.utility-tool__label {
  font-size: 12px;
  font-weight: 600;
  color: #373647;
  line-height: 1.35;
  max-width: 11ch;
}

.compare-duo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.compare-duo__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.compare-duo__img {
  width: 100%;
  aspect-ratio: 1;
  max-width: 120px;
  border-radius: 16px;
  display: block;
}

.compare-duo__item--a .compare-duo__img {
  background: linear-gradient(160deg, #373647, #1a1d24);
}

.compare-duo__item--b .compare-duo__img {
  background: linear-gradient(160deg, #6a63f0, #0e94fb);
}

.compare-duo__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
}

.compare-duo__vs {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 12px rgba(5, 4, 25, 0.08);
  display: grid;
  place-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--color-text-muted);
}

.compare-duo__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  background: var(--color-chip);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.compare-duo__btn:hover {
  background: rgba(57, 50, 220, 0.1);
  color: var(--color-highlight);
}

.newsletter__title {
  margin: 0 0 8px;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.newsletter__desc {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter__input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-muted);
  padding: 0 14px;
  font: inherit;
  color: var(--color-text);
  box-sizing: border-box;
}

.newsletter__input::placeholder {
  color: #8a8894;
}

.newsletter__input:focus {
  outline: 2px solid rgba(57, 50, 220, 0.35);
  outline-offset: 1px;
  background: var(--color-surface);
}

.newsletter__submit {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--color-highlight);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0 18px;
  transition: filter 0.2s var(--ease);
}

.newsletter__submit:hover {
  filter: brightness(1.08);
}

.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;
}


.utility-card:hover {
  box-shadow: var(--shadow-lift);
  border-color: rgba(57, 50, 220, 0.18);
  transform: translateY(-2px);
}

.utility-card {
  transition:
    border-color var(--motion-fast) var(--ease),
    box-shadow var(--motion-fast) var(--ease),
    transform var(--motion-fast) var(--ease),
    background var(--motion-fast) var(--ease);
  background: var(--color-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--motion-slow) var(--ease),
    transform var(--motion-slow) var(--ease);
  will-change: opacity, transform;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-reveal][data-reveal-delay="1"] { transition-delay: 0.06s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 0.12s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 0.18s; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* —— Footer —— */
.footer {
  position: relative;
  z-index: 3;
  background: linear-gradient(180deg, var(--color-bg-ice) 0%, var(--color-bg-alt) 55%, var(--color-bg-deep) 100%);
  color: var(--color-text);
  border-top: 1px solid var(--color-border);
}

.footer__panel {
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 40px 24px 20px;
  box-sizing: border-box;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.footer__logo span {
  color: var(--color-highlight);
  font-size: 14px;
}

.footer__about {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 34ch;
}

.footer__social {
  display: flex;
  gap: 8px;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  display: grid;
  place-content: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.footer__social-link:hover {
  background: rgba(57, 50, 220, 0.12);
  color: var(--color-highlight);
}

.footer__col-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.footer__col-title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--color-accent);
}

.footer__links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links-list a {
  font-size: 13px;
  color: var(--color-text-muted);
  transition: color 0.2s var(--ease);
}

.footer__links-list a:hover {
  color: var(--color-highlight);
}

.footer__bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(5, 4, 25, 0.08);
}

.footer__copyright {
  margin: 0;
  font-size: 12px;
  color: #8a8894;
}

.footer__bar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__bar-links a {
  font-size: 12px;
  color: #8a8894;
}

.footer__bar-links a:hover {
  color: var(--color-highlight);
}

@media (min-width: 821px) {
  .header__ctas {
    display: flex;
  }

  .menu-btn,
  .mobile-nav {
    display: none !important;
  }

  .flow__steps {
    padding: 32px 36px 40px;
  }

  .compare {
    height: 300vh;
  }

  .compare__pin {
    padding: calc(var(--header-height) + 20px) 28px 36px;
  }

  .compare__stage {
    height: min(76svh, 620px);
    gap: 16px;
  }

  .kora-panel {
    border-radius: 44px;
    padding: 44px 40px;
    gap: 22px;
  }

  .kora-panel__title {
    font-size: clamp(30px, 2.8vw, 42px);
  }

  .kora-panel__list {
    gap: 18px;
  }

  .feed-boards__panel {
    width: min(1100px, calc(100% - 64px));
    gap: 28px;
  }

  .feed-boards {
    padding: calc(var(--header-height) + 24px) 0 56px;
  }

  .feed-card--stack {
    border-radius: 36px;
    min-height: min(70svh, 600px);
    top: calc(var(--header-height) + 20px);
    margin-bottom: 22vh;
    padding: 36px 40px 28px;
  }

  .feed-card--stack:last-child {
    margin-bottom: 10vh;
  }

  .feed-card__title {
    max-width: 14ch;
  }

  .utility-row__panel {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 16px;
    padding: 0 40px;
  }

  .utility-tools {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .newsletter__form {
    flex-direction: row;
    align-items: stretch;
  }

  .newsletter__input {
    flex: 1;
  }

  .newsletter__submit {
    flex-shrink: 0;
  }

  .footer__panel {
    padding: 48px 40px 24px;
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
  }

  .footer__bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

}

@media (max-width: 820px) {
  :root {
    --header-height: 64px;
  }


  .features,
  .feed-boards,
  .utility-row {
    min-height: 0;
    justify-content: flex-start;
  }

  .feed-card--stack {
    position: relative;
    top: auto;
    min-height: 0;
    margin-bottom: 16px;
  }

  .feed-card--stack:last-child {
    margin-bottom: 0;
  }

  .compare {
    height: auto;
  }

  .compare__pin {
    position: relative;
    height: auto;
    min-height: 0;
    padding: calc(var(--header-height) + 20px) 16px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .compare__headline {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    gap: 0.15em;
    padding: 0 8px;
    font-size: clamp(28px, 8vw, 36px);
    text-align: right;
    opacity: 1 !important;
  }

  .compare__line--a,
  .compare__line--c {
    grid-column: auto;
    text-align: right;
    padding: 0;
  }

  .compare__stage {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .kora-panel,
  .kora-panel--after,
  .compare.is-split .kora-panel,
  .compare.is-split .kora-panel--after {
    position: relative;
    inset: auto;
    max-width: none;
    height: auto;
    min-height: 0;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    border-radius: 28px;
    padding: 28px 22px 30px;
  }

  .features {
    height: auto;
    background: #f3f3f0;
  }

  .flow {
    height: auto;
    min-height: 100svh;
    background: transparent;
    backdrop-filter: none;
  }

  .flow__wrapper {
    position: relative;
    height: auto;
    min-height: 100svh;
    background: transparent;
  }

  .pc {
    display: none;
  }
}


/* —— RTL —— */
html[dir="rtl"] {
  text-align: right;
}

html[dir="rtl"] .hero__title,
html[dir="rtl"] .hero__subtitle {
  transform: perspective(1000px) translateX(-50%) translate3d(222.2px, 88px, 0) rotateY(-60deg) rotateX(35deg);
}

html[dir="rtl"] .hero.is-shown .hero__title,
html[dir="rtl"] .hero.is-shown .hero__subtitle {
  transform: perspective(1000px) translateX(0) translate3d(0, 0, 0) rotateY(0) rotateX(0);
}

html[dir="rtl"] .flow__wrapper {
  justify-content: flex-end;
}

html[dir="rtl"] .flow__steps {
  margin-left: var(--space-2xl);
  margin-right: var(--space-2xl);
}

html[dir="rtl"] .flow__title {
  transform-origin: right center;
}

html[dir="rtl"] .footer__col-title::after {
  right: 0;
  left: auto;
}

html[dir="rtl"] .hero__title {
  letter-spacing: -0.03em;
}


html[dir="rtl"] .header__nav-left a,
html[dir="rtl"] .pill-btn,
html[dir="rtl"] .hero__scroll-btn {
  text-transform: none;
  letter-spacing: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero__title,
  .hero__subtitle,
  .hsbtn-in,
  .feature-item__content,
  .loader__ring,
  .loader__core {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  #loader {
    display: none;
  }
}
