/* ── Page canvas ── */
:root {
  --page-bg: #e4ecf8;
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-dur: 1.05s;
}

body {
  background-color: #e8eef9 !important;
  background-image: none !important;
}

/* ── Persian kickers ── */
.section-kicker {
  font-family: "payda", sans-serif !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
}
.section-kicker .kicker-num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  opacity: 0.9;
}

/* ── Scroll reveal ──
   Delay only applies WHILE entering (.is-in), then cleared (.reveal-done)
   so hover transitions on cards are not lagged. */
.reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition: none;
  will-change: opacity, transform;
}
.reveal-down { transform: translate3d(0, -24px, 0); }
.reveal-left { transform: translate3d(32px, 0, 0); }
.reveal-right { transform: translate3d(-32px, 0, 0); }
.reveal-scale { transform: translate3d(0, 24px, 0) scale(0.96); }

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--reveal-dur) var(--reveal-ease),
    transform var(--reveal-dur) var(--reveal-ease);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Already scrolled past / mid-page refresh: show instantly */
.reveal.is-in.reveal-skip {
  transition: none !important;
  transition-delay: 0ms !important;
}

/* After entrance finishes — no leftover delay */
.reveal.reveal-done {
  transition-delay: 0ms !important;
  will-change: auto;
}

/* Card hover (shadow / lift) after scroll-reveal — overrides long reveal transition */
.reveal.reveal-done.shadow-glass,
.reveal.reveal-done.surface-card,
.shadow-glass.surface-motion-ready,
.surface-card.surface-motion-ready {
  transition:
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s ease,
    background-color 0.2s ease !important;
}

@media (hover: hover) {
  .reveal.reveal-done.shadow-glass:hover,
  .shadow-glass.surface-motion-ready:hover,
  .surface-card.surface-motion-ready.surface-card-interactive:hover,
  .group.shadow-glass.surface-motion-ready:hover {
    box-shadow: var(--shadow-glass-hover);
    transform: translateY(-6px);
  }
}

/* Panel social/account inputs — reliable focus ring (not Tailwind JIT) */
.social-input-shell {
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.social-input-shell:focus-within {
  border-color: rgb(59 130 246) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

/* ── Hero floating art ── */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes float-y-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
@keyframes float-x {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.04); }
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(6px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(6px) rotate(-360deg); }
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  pointer-events: none;
  user-select: none;
}
.hero-art .blob {
  position: absolute;
  inset: 12% 8% 18% 12%;
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.18), rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.16));
  filter: blur(2px);
  animation: pulse-soft 6s ease-in-out infinite;
}
.hero-art .card-a,
.hero-art .card-b,
.hero-art .card-c,
.hero-art .chip,
.hero-art .ring,
.hero-art .dot { position: absolute; }
.hero-art .card-a {
  inset-inline-end: 8%;
  top: 18%;
  width: 58%;
  height: 42%;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 20px 40px -16px rgba(37, 99, 235, 0.28), 0 8px 20px -8px rgba(15, 23, 42, 0.08);
  animation: float-y 5.5s ease-in-out infinite;
  padding: 1rem;
}
.hero-art .card-b {
  inset-inline-start: 4%;
  bottom: 16%;
  width: 52%;
  height: 34%;
  border-radius: 1.1rem;
  background: linear-gradient(160deg, #1e3a8a, #2563eb 55%, #0ea5e9);
  box-shadow: 0 22px 44px -14px rgba(37, 99, 235, 0.45);
  animation: float-y-slow 7s ease-in-out infinite;
  animation-delay: 0.4s;
  padding: 0.9rem 1rem;
  color: white;
}
.hero-art .card-c {
  inset-inline-start: 18%;
  top: 10%;
  width: 36%;
  height: 22%;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(191, 219, 254, 0.9);
  box-shadow: 0 14px 28px -12px rgba(14, 165, 233, 0.25);
  animation: float-x 6s ease-in-out infinite;
  animation-delay: 0.8s;
  padding: 0.7rem;
}
.hero-art .chip {
  inset-inline-end: 6%;
  bottom: 28%;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 8px 18px -10px rgba(16, 185, 129, 0.45);
  animation: float-y 4.8s ease-in-out infinite;
  animation-delay: 1.1s;
  white-space: nowrap;
}
.hero-art .ring {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #60a5fa;
  top: 42%;
  inset-inline-start: 8%;
  animation: orbit 10s linear infinite;
}
.hero-art .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15);
  top: 58%;
  inset-inline-end: 12%;
  animation: pulse-soft 3.5s ease-in-out infinite;
}
.hero-art .bar {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  margin-bottom: 8px;
}
.hero-art .bar.on { background: linear-gradient(90deg, #2563eb, #38bdf8); width: 72%; }
.hero-art .bar.mid { width: 54%; }
.hero-art .bar.sm { width: 40%; }
.hero-art .mini-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.hero-art .mini-row {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.28);
}
.hero-art .mini-row:nth-child(1) { width: 80%; }
.hero-art .mini-row:nth-child(2) { width: 62%; }
.hero-art .mini-row:nth-child(3) { width: 70%; background: rgba(255, 255, 255, 0.5); }
.hero-art .spark {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #1d4ed8;
}
.hero-art .spark i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* ── Mobile menu ── */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  cursor: pointer;
}
.mobile-nav {
  display: none;
  position: absolute;
  inset-inline: 1rem;
  top: calc(100% + 0.5rem);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px -16px rgba(15, 23, 42, 0.18);
  padding: 0.75rem;
  z-index: 60;
}
.mobile-nav.is-open {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
}
.mobile-nav a:hover,
.mobile-nav a.is-active {
  background: #eff6ff;
  color: #2563eb;
}

@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }
  .desktop-nav { display: none !important; }
  .hero-art {
    max-width: 280px;
    margin-bottom: 0.5rem;
  }
  .sticky > header,
  header.rounded-full {
    padding-inline: 0.85rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-in,
  .hero-art * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
