/* ===== Fonts (Persian) ===== */
@font-face {
  font-family: "Vazirmatn";
  src: url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ===== Design tokens ===== */
:root {
  /* بژ / beige — warm & layered */
  --beige-50: #fcf9f2;
  --beige-100: #f5eee0;
  --beige-200: #ece0ca;
  --beige-300: #ddc9a6;

  /* طلایی شامپاینی — لهجه‌ی لاکچری (هم‌خانواده‌ی بژ) */
  --gold: #c9a24b;
  --gold-soft: #e7d3a3;

  /* سبز آبی / teal — deep & rich */
  --teal-400: #35b0a0;
  --teal-500: #218a7e;
  --teal-600: #1a7368;
  --teal-700: #155a52;
  --teal-800: #0f4741;
  --teal-100: #d6ebe8;

  --ink: #16302b;      /* سبز آبی خیلی تیره به‌جای مشکی */
  --muted: #5f726d;
  --white: #ffffff;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  /* سایه‌های نرم و لایه‌ای برای حس لاکچری */
  --shadow: 0 18px 44px -12px rgba(21, 90, 82, 0.22), 0 6px 16px -8px rgba(21, 90, 82, 0.12);
  --shadow-sm: 0 8px 22px -10px rgba(21, 90, 82, 0.18);
  --shadow-gold: 0 12px 30px -10px rgba(201, 162, 75, 0.35);
  --container: 1160px;
  --transition: 0.32s cubic-bezier(.22, .61, .36, 1);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--beige-50);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { letter-spacing: -0.01em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 16px 34px; font-size: 16px; }
.btn--primary {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn--primary:hover { box-shadow: var(--shadow); }
.btn--ghost {
  background: transparent;
  color: var(--teal-700);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 0 var(--gold-soft);
}
.btn--ghost:hover { background: var(--beige-100); border-color: var(--teal-500); }

/* ===== Badge ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-soft);
}
.badge--soft {
  background: var(--beige-100);
  color: var(--teal-700);
  border: 1px solid var(--gold-soft);
  box-shadow: none;
}
.badge--soft::before { background: var(--gold); }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 246, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--beige-200);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--gold-soft), var(--shadow-sm);
}
.brand__logo img { width: 100%; height: 100%; object-fit: contain; }
.brand__name { font-weight: 800; font-size: 21px; color: var(--teal-700); letter-spacing: -0.01em; }

.nav { display: flex; gap: 6px; }
.nav__link {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover { color: var(--teal-700); background: var(--beige-100); }

.header__cta { flex-shrink: 0; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--teal-700);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, var(--teal-100), transparent 60%),
    linear-gradient(160deg, var(--beige-100), var(--beige-50) 60%);
  padding: 84px 0 100px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero__title { font-size: clamp(32px, 5vw, 56px); line-height: 1.28; margin-bottom: 20px; font-weight: 800; }
.hl { color: var(--teal-600); }
.hero__sub { font-size: 18px; color: var(--muted); margin-bottom: 32px; max-width: 520px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__stats {
  display: flex; gap: 20px; flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--beige-200);
}
.hero__stats li { display: flex; flex-direction: column; gap: 2px; padding-inline-end: 22px; }
.hero__stats li:not(:last-child) { border-inline-end: 1px solid var(--beige-200); }
.hero__stats strong { font-size: 26px; font-weight: 800; color: var(--teal-700); }
.hero__stats span { font-size: 13px; color: var(--muted); }

/* Phone mockup */
.hero__art { display: grid; place-items: center; }
.phone {
  position: relative;
  width: 270px;
  background: var(--white);
  border: 10px solid var(--ink);
  border-radius: 40px;
  padding: 22px 14px;
  box-shadow: var(--shadow);
}
.phone__notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 8px; background: var(--ink); border-radius: 999px;
}
.phone__screen { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.mini-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--beige-100);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.mini-card__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--teal-500); flex-shrink: 0; }
.mini-card__dot--alt { background: var(--beige-300); }
.mini-card__title { font-weight: 700; font-size: 14px; }
.mini-card__time { font-size: 12px; color: var(--muted); }
.mini-card__check { margin-inline-start: auto; color: var(--teal-600); font-weight: 700; }
.mini-card__bell { margin-inline-start: auto; }
.mini-card--ai { flex-direction: column; align-items: flex-start; background: var(--teal-100); }
.mini-card__ai { font-size: 13px; color: var(--teal-700); }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section__title { font-size: clamp(24px, 4vw, 36px); margin-bottom: 12px; }
.section__lead { color: var(--muted); font-size: 17px; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--beige-200);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute; top: 0; inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal-500));
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.card:hover::after { opacity: 1; }

.feature__icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  font-size: 27px;
  background: linear-gradient(135deg, var(--teal-100), var(--beige-100));
  border: 1px solid var(--gold-soft);
  border-radius: 16px;
  margin-bottom: 18px;
}
.feature h3 { margin-bottom: 8px; font-size: 19px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ===== AI section ===== */
.section--ai { background: var(--beige-100); }
.ai__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.checklist { margin: 22px 0 28px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-inline-start: 30px; color: var(--muted); }
.checklist li::before {
  content: "✓";
  position: absolute; inset-inline-start: 0; top: 4px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); color: #fff;
  border-radius: 50%; font-size: 12px;
  box-shadow: 0 0 0 3px var(--teal-100);
}
.ai-card {
  background: var(--white);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  max-width: 380px;
  margin-inline: auto;
}
.ai-card__head {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; margin-bottom: 16px; color: var(--teal-700);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--beige-200);
}
.ai-card__avatar { font-size: 22px; }
.ai-bubble {
  background: var(--beige-100);
  padding: 12px 16px;
  border-radius: 14px;
  margin-bottom: 10px;
  font-size: 14px;
  max-width: 85%;
}
.ai-bubble--user {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); color: #fff;
  margin-inline-start: auto;
}

/* ===== Steps ===== */
.step { text-align: center; padding: 20px; }
.step__num {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); color: #fff;
  font-size: 22px; font-weight: 800;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--beige-100), 0 0 0 7px var(--gold-soft);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ===== Download ===== */
.section--download {
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(201,162,75,0.18), transparent 60%),
    linear-gradient(160deg, var(--teal-800), var(--teal-600));
  color: #fff;
}
.download__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}
.section--download .section__title,
.section--download .section__lead { color: #fff; }
.section--download .section__lead { opacity: 0.9; }
.section--download .badge { background: rgba(255,255,255,0.16); box-shadow: none; }
.section--download .badge::before { background: var(--gold-soft); }
/* دو دکمه‌ی دانلود: مستقیم + کافه‌بازار */
.download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 10px 0 14px;
}
.download__btn {
  flex: 1 1 240px;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 22px;
  text-align: start;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.download__btn span { display: flex; flex-direction: column; line-height: 1.5; }
.download__btn small { font-weight: 500; font-size: 12px; opacity: 0.8; }
.download__btn svg { flex-shrink: 0; }
.download__btn:hover { transform: translateY(-3px); }

/* دانلود مستقیم — سفید/کرم با لهجه‌ی طلایی */
.download__btn--direct {
  background: linear-gradient(135deg, #fff, var(--beige-100));
  color: var(--teal-700);
  border-color: var(--gold-soft);
  box-shadow: var(--shadow-gold);
}
.download__btn--direct:hover { background: #fff; }

/* کافه‌بازار — سبز آبی تیره با قاب طلایی */
.download__btn--bazaar {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-800));
  color: #fff;
  border-color: rgba(231, 211, 163, 0.5);
  box-shadow: var(--shadow-sm);
}
.download__btn--bazaar svg { color: var(--gold-soft); }
.download__btn--bazaar:hover { box-shadow: var(--shadow); }

.download__meta { font-size: 14px; opacity: 0.85; }

.note {
  margin-top: 22px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
}
.note summary { cursor: pointer; font-weight: 700; }
.note ol { margin: 12px 20px 0; display: grid; gap: 6px; font-size: 14px; opacity: 0.92; }

/* لوگوی اپلیکیشن در بخش دانلود */
.app-logo { text-align: center; }
.app-logo img {
  width: 200px;
  height: 200px;
  margin: 0 auto 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  padding: 18px;
  border: 1px solid rgba(231, 211, 163, 0.35);
  box-shadow: var(--shadow), 0 0 0 6px rgba(255, 255, 255, 0.04);
  animation: bob 6s ease-in-out infinite;
}
.app-logo p { font-size: 15px; opacity: 0.9; font-weight: 600; }

/* ===== Contact ===== */
.contact__item { text-align: center; }
.contact__icon { font-size: 30px; }
.contact__item h3 { margin: 10px 0 6px; }
.contact__item p { color: var(--muted); font-size: 15px; }

/* ===== Footer ===== */
.footer {
  background: linear-gradient(160deg, var(--teal-800), var(--ink));
  color: var(--beige-100);
  padding: 54px 0 24px;
  border-top: 3px solid var(--gold);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__brand .brand__name { color: #fff; }
.footer__brand p { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 8px; max-width: 280px; }
.footer__nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__nav a { color: rgba(255,255,255,0.75); font-size: 15px; transition: color var(--transition); }
.footer__nav a:hover { color: #fff; }
.footer__bottom { padding-top: 20px; text-align: center; }
.footer__bottom p { color: rgba(255,255,255,0.55); font-size: 13px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner, .ai__inner, .download__inner { grid-template-columns: 1fr; }
  .hero__art, .ai__art, .download__art { order: -1; }
  .header__cta { display: none; }

  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    gap: 4px;
    background: var(--beige-50);
    padding: 16px;
    border-bottom: 1px solid var(--beige-200);
    box-shadow: var(--shadow);
    transform: translateY(-140%);
    transition: transform var(--transition);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { text-align: center; }
  .nav__toggle { display: flex; }
}

@media (max-width: 560px) {
  .grid--3 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 50px 0 60px; }
  .hero__stats { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   ADVANCED LAYER — animations, dark mode, pro polish
   ========================================================================== */

/* ----- Dark mode tokens ----- */
:root { color-scheme: light; }
html[data-theme="dark"] {
  color-scheme: dark;
  --beige-50: #10201d;
  --beige-100: #16302b;
  --beige-200: #22423b;
  --beige-300: #2c5249;
  --teal-100: #143f39;
  --ink: #eaf3f1;
  --muted: #9fb4b0;
  --white: #16302b;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] body { background: #0c1a17; }
html[data-theme="dark"] .header { background: rgba(12, 26, 23, 0.85); }
html[data-theme="dark"] .hero { background: linear-gradient(160deg, #12241f, #0c1a17 60%); }
html[data-theme="dark"] .brand__name,
html[data-theme="dark"] .hl { color: #4fd1c0; }
html[data-theme="dark"] .card,
html[data-theme="dark"] .ai-card { border-color: var(--beige-200); }
html { transition: background .4s ease; }
body, .header, .hero, .card, .section--ai, .footer, .ai-card, .mini-card {
  transition: background .4s ease, color .4s ease, border-color .4s ease;
}

/* ----- Scroll progress bar ----- */
.scroll-progress {
  position: fixed;
  top: 0; inset-inline: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal-500), #4fd1c0);
  z-index: 100;
  transition: width .1s linear;
}

/* ----- Header shrink on scroll ----- */
.header { transition: box-shadow .3s ease, background .3s ease, height .3s ease; }
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header.is-scrolled .header__inner { height: 58px; }

/* ----- Theme toggle button ----- */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--beige-200);
  background: var(--beige-100);
  color: var(--teal-700);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition), color var(--transition);
}
.theme-toggle:hover { transform: rotate(-15deg) scale(1.05); background: var(--teal-100); }
.theme-toggle__moon { display: none; }
html[data-theme="dark"] .theme-toggle { color: #4fd1c0; }
html[data-theme="dark"] .theme-toggle__sun { display: none; }
html[data-theme="dark"] .theme-toggle__moon { display: block; }

/* ----- Scroll reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s var(--ease, cubic-bezier(.22,.61,.36,1)),
              transform .7s var(--ease, cubic-bezier(.22,.61,.36,1));
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--left  { transform: translateX(40px); }
.reveal--right { transform: translateX(-40px); }
.reveal--zoom  { transform: scale(.9); }
/* staggered children */
.reveal.is-visible[data-delay="1"] { transition-delay: .08s; }
.reveal.is-visible[data-delay="2"] { transition-delay: .16s; }
.reveal.is-visible[data-delay="3"] { transition-delay: .24s; }
.reveal.is-visible[data-delay="4"] { transition-delay: .32s; }
.reveal.is-visible[data-delay="5"] { transition-delay: .40s; }

/* ----- Animated gradient hero title ----- */
.hero__title .hl {
  background: linear-gradient(90deg, var(--teal-600), #4fd1c0, var(--teal-600));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

/* ----- Hero decorative blobs ----- */
.hero { position: relative; }
.hero__blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero__inner { position: relative; z-index: 1; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: .5;
}
.blob--1 { width: 320px; height: 320px; background: var(--teal-100); top: -60px; inset-inline-start: -80px; animation: float1 14s ease-in-out infinite; }
.blob--2 { width: 260px; height: 260px; background: var(--beige-300); bottom: -70px; inset-inline-end: -60px; animation: float2 18s ease-in-out infinite; }
.blob--3 { width: 180px; height: 180px; background: var(--teal-500); opacity: .18; top: 40%; inset-inline-end: 30%; animation: float1 12s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(24px,30px) scale(1.08); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px,-24px) scale(1.1); } }

/* ----- Floating phone + AI card ----- */
.phone { animation: bob 6s ease-in-out infinite; }
.ai-card { animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.mini-card--ai { animation: pulseGlow 3s ease-in-out infinite; }
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(42,157,143,0); }
  50%     { box-shadow: 0 0 0 6px rgba(42,157,143,.10); }
}

/* ----- Button shine sweep ----- */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: "";
  position: absolute; top: 0; inset-inline-start: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
  transition: inset-inline-start .6s ease;
}
.btn--primary:hover::after { inset-inline-start: 130%; }

/* ----- Card tilt + glow hover ----- */
.card { position: relative; }
.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--teal-500), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover::before { opacity: 1; }
.feature__icon { transition: transform var(--transition); }
.card:hover .feature__icon { transform: scale(1.12) rotate(-6deg); }

/* ----- Animated AI stat bars (reuse on ai-card if added) ----- */
.stat-bar { height: 8px; border-radius: 999px; background: var(--beige-200); overflow: hidden; }
.stat-bar > i {
  display: block; height: 100%; width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-500), #4fd1c0);
  transition: width 1.2s var(--ease, ease);
}

/* ----- Step connector line ----- */
.steps { position: relative; }
.step__num { position: relative; z-index: 1; transition: transform var(--transition), box-shadow var(--transition); }
.step:hover .step__num { transform: scale(1.1); box-shadow: 0 8px 20px rgba(42,157,143,.35); }

/* ----- Back to top ----- */
.to-top {
  position: fixed;
  inset-block-end: 24px; inset-inline-start: 24px;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: none; border-radius: 50%;
  background: var(--teal-500); color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transform: translateY(20px) scale(.8);
  transition: opacity .3s, transform .3s, visibility .3s, background var(--transition);
  z-index: 60;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--teal-600); transform: translateY(-3px); }

/* ----- Nicer focus + scrollbar ----- */
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; border-radius: 6px; }
html { scrollbar-color: var(--teal-500) var(--beige-100); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--beige-100); }
::-webkit-scrollbar-thumb { background: var(--teal-500); border-radius: 999px; border: 3px solid var(--beige-100); }
::-webkit-scrollbar-thumb:hover { background: var(--teal-600); }

/* ----- AI stat block inside the card ----- */
.ai-stats { margin-top: 16px; display: grid; gap: 14px; }
.ai-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; color: var(--muted); }
.ai-row b { color: var(--teal-700); }

/* ----- Link underline sweep (footer) ----- */
.footer__nav a { position: relative; }
.footer__nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -3px;
  height: 2px; background: currentColor; transform: scaleX(0);
  transform-origin: inline-end; transition: transform .3s ease;
}
.footer__nav a:hover::after { transform: scaleX(1); transform-origin: inline-start; }
.footer-enamad {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.footer-enamad img {
    width: 100px;
    height: auto;
    display: block;
    cursor: pointer;
}