/* Site20 Fast Site Builder — RTL, Ultra Fast, Zero Heavy Builder */
:root {
  --s20-primary: #2563eb;
  --s20-secondary: #7c3aed;
  --s20-accent: #06b6d4;
  --s20-text: #0f172a;
  --s20-surface: #f8fafc;
  --s20-font: "Vazirmatn", Tahoma, "IRANSans", "Segoe UI", system-ui, sans-serif;
  --s20-radius: 20px;
  --s20-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.1);
  --s20-border: rgba(148, 163, 184, 0.18);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.s20-body {
  margin: 0;
  font-family: var(--s20-font);
  color: var(--s20-text);
  background: var(--s20-surface);
  line-height: 1.8;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.s20-wrap { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.s20-skip { position: absolute; inset-inline-start: -999px; top: 10px; background: #fff; padding: 10px 16px; z-index: 9999; border-radius: 8px; font-weight: 700; }
.s20-skip:focus { inset-inline-start: 16px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Header */
.s20-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--s20-border);
  transition: all 0.3s ease;
}
.s20-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.s20-logo-text { font-weight: 800; font-size: 1.25rem; background: linear-gradient(135deg, var(--s20-primary), var(--s20-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.s20-nav { display: flex; align-items: center; gap: 24px; }
.s20-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 0.95rem; }
.s20-menu a { transition: color 0.2s ease; }
.s20-menu a:hover { color: var(--s20-primary); }
.s20-nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--s20-border); border-radius: 12px; background: #fff; place-items: center; cursor: pointer; }
.s20-nav-toggle span { width: 20px; height: 2px; background: var(--s20-text); display: block; margin: 4px auto; transition: 0.2s; }

/* Buttons */
.s20-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.s20-btn-sm { padding: 8px 18px; font-size: 0.88rem; }
.s20-btn-primary {
  background: linear-gradient(135deg, var(--s20-primary), var(--s20-secondary));
  color: #fff; box-shadow: 0 10px 22px -5px color-mix(in srgb, var(--s20-primary) 40%, transparent);
}
.s20-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -5px color-mix(in srgb, var(--s20-primary) 60%, transparent);
}
.s20-btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--s20-border);
  color: var(--s20-text);
  backdrop-filter: blur(10px);
}
.s20-btn-ghost:hover {
  background: #fff;
  transform: translateY(-2px);
  border-color: var(--s20-primary);
  color: var(--s20-primary);
}

/* Sections Common */
.s20-section { padding: 80px 0; }
.s20-section-alt { background: #fff; border-block: 1px solid var(--s20-border); }
.s20-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.s20-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 0 0 14px; font-weight: 800; line-height: 1.35; }
.s20-head p { margin: 0; opacity: 0.8; font-size: 1.05rem; }
.s20-eyebrow {
  display: inline-block; font-size: 0.88rem; font-weight: 700; color: var(--s20-primary);
  background: color-mix(in srgb, var(--s20-primary) 12%, transparent);
  padding: 4px 14px; border-radius: 999px; margin-bottom: 12px;
}

/* Hero Section */
.s20-hero {
  position: relative; overflow: hidden;
  padding: 70px 0 90px;
  background:
    radial-gradient(800px 400px at 100% 0%, color-mix(in srgb, var(--s20-primary) 18%, transparent), transparent 60%),
    radial-gradient(600px 350px at 0% 40%, color-mix(in srgb, var(--s20-secondary) 15%, transparent), transparent 50%),
    linear-gradient(180deg, #fff, var(--s20-surface));
}
.s20-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.s20-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 700;
  background: color-mix(in srgb, var(--s20-primary) 12%, #fff);
  color: var(--s20-primary); border: 1px solid color-mix(in srgb, var(--s20-primary) 25%, transparent);
}
.s20-hero-title { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.3; font-weight: 900; margin: 0 0 18px; }
.s20-lead { font-size: 1.15rem; opacity: 0.85; margin: 0 0 28px; line-height: 1.9; }
.s20-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.s20-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0; margin: 0; list-style: none; }
.s20-stats li {
  background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 16px; padding: 14px; text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.s20-stats strong { display: block; font-size: 1.6rem; color: var(--s20-primary); font-weight: 800; }
.s20-stats span { font-size: 0.82rem; opacity: 0.8; font-weight: 600; }

/* Hero Card Graphic */
.s20-glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--s20-radius);
  box-shadow: var(--s20-shadow);
  padding: 26px; position: relative;
  animation: s20-float 6s ease-in-out infinite;
}
.s20-window { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; border-bottom: 1px solid var(--s20-border); padding-bottom: 12px; }
.s20-window span { width: 10px; height: 10px; border-radius: 50%; background: #f87171; display: inline-block; }
.s20-window span:nth-child(2) { background: #fbbf24; }
.s20-window span:nth-child(3) { background: #34d399; }
.s20-window-title { margin-inline-start: auto; font-size: 0.75rem; opacity: 0.5; font-weight: 600; }
.s20-skel {
  height: 16px; border-radius: 8px; margin-bottom: 12px;
  background: linear-gradient(90deg, #e2e8f0, #f1f5f9, #e2e8f0);
  background-size: 200% 100%;
  animation: s20-shimmer 2s linear infinite;
}
.s20-skel-short { width: 65%; margin-bottom: 24px; }
.s20-mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.s20-mini-box {
  background: #fff; border: 1px solid var(--s20-border); border-radius: 12px;
  padding: 14px 8px; text-align: center; font-size: 0.8rem; font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.s20-live-pulse-badge {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: color-mix(in srgb, #10b981 12%, #fff); color: #059669;
  border-radius: 999px; padding: 6px 14px; font-size: 0.8rem; font-weight: 700;
}
.s20-pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); animation: s20-pulse 2s infinite; }
.s20-orb { position: absolute; border-radius: 50%; filter: blur(30px); pointer-events: none; opacity: 0.6; }
.s20-orb-a { width: 220px; height: 220px; inset-inline-end: -60px; top: 10%; background: var(--s20-primary); animation: s20-float 8s ease-in-out infinite; }
.s20-orb-b { width: 180px; height: 180px; inset-inline-start: -40px; bottom: 10%; background: var(--s20-secondary); animation: s20-float 7s ease-in-out infinite reverse; }

/* Grid Layouts */
.s20-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.s20-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }

/* Cards & Features */
.s20-card {
  background: #fff; border: 1px solid var(--s20-border);
  border-radius: var(--s20-radius); padding: 32px 24px;
  box-shadow: var(--s20-shadow); transition: all 0.3s ease;
}
.s20-card:hover { transform: translateY(-6px); border-color: var(--s20-primary); }
.s20-icon {
  width: 54px; height: 54px; border-radius: 16px;
  background: color-mix(in srgb, var(--s20-primary) 12%, transparent);
  color: var(--s20-primary); display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 20px; font-weight: 800;
}
.s20-card h3 { margin: 0 0 10px; font-size: 1.2rem; font-weight: 800; }
.s20-card p { margin: 0; opacity: 0.8; font-size: 0.95rem; }

/* Pricing Cards */
.s20-price {
  background: var(--s20-surface); border: 1px solid var(--s20-border);
  border-radius: var(--s20-radius); padding: 36px 28px; position: relative;
  display: flex; flex-direction: column; transition: all 0.3s ease;
}
.s20-price.is-featured {
  background: #fff; border: 2px solid var(--s20-primary);
  box-shadow: 0 20px 45px -10px color-mix(in srgb, var(--s20-primary) 25%, transparent);
  transform: scale(1.03);
}
.s20-plan-badge {
  position: absolute; top: -14px; inset-inline-end: 24px;
  background: linear-gradient(135deg, var(--s20-primary), var(--s20-secondary));
  color: #fff; padding: 4px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
}
.s20-price h3 { margin: 0 0 8px; font-size: 1.3rem; font-weight: 800; }
.s20-amount { margin: 0 0 24px; font-size: 1.1rem; }
.s20-amount strong { font-size: 2.2rem; color: var(--s20-primary); font-weight: 900; }
.s20-price ul { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; font-size: 0.95rem; opacity: 0.9; }
.s20-price .s20-btn { margin-top: auto; width: 100%; }

/* Testimonials */
.s20-quote {
  margin: 0; background: #fff; border: 1px solid var(--s20-border);
  border-radius: var(--s20-radius); padding: 30px; box-shadow: var(--s20-shadow);
  display: flex; flex-direction: column; justify-content: space-between;
}
.s20-stars { color: #f59e0b; margin-bottom: 12px; font-size: 1.1rem; }
.s20-quote p { margin: 0 0 20px; font-size: 0.98rem; line-height: 1.8; opacity: 0.85; }
.s20-quote footer strong { display: block; font-size: 1rem; color: var(--s20-text); }
.s20-quote footer span { font-size: 0.85rem; opacity: 0.7; }

/* Custom HTML Box */
.s20-custom-html-wrapper {
  background: #fff; border: 1px solid var(--s20-border);
  border-radius: var(--s20-radius); padding: 30px; box-shadow: var(--s20-shadow);
}

/* Trust / Namad */
.s20-trust-box {
  background: #fff; border: 1px solid var(--s20-border);
  border-radius: var(--s20-radius); padding: 36px 20px; text-align: center;
  box-shadow: var(--s20-shadow);
}
.s20-seals { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; }
.s20-trust-empty { opacity: 0.6; margin: 0; font-size: 0.95rem; }

/* Animated Footer & Ticker */
.s20-footer {
  background: #0f172a; color: #f8fafc; position: relative;
  overflow: hidden; padding-top: 0;
}
.s20-wave-container { line-height: 0; color: #0f172a; margin-top: -1px; }
.s20-wave path { fill: #0f172a; }
.s20-ticker {
  background: linear-gradient(90deg, var(--s20-primary), var(--s20-secondary));
  color: #fff; padding: 14px 0; overflow: hidden; white-space: nowrap; font-weight: 700; font-size: 0.95rem;
}
.s20-ticker-track { display: flex; width: max-content; animation: s20-marquee 25s linear infinite; }
.s20-ticker-track:hover { animation-play-state: paused; }
.s20-ticker-group { display: flex; align-items: center; gap: 20px; padding-inline-end: 20px; }
.s20-ticker-dot { opacity: 0.6; }
.s20-footer-main { padding: 50px 0 30px; display: grid; gap: 30px; }
.s20-footer-brand strong { font-size: 1.3rem; display: block; margin-bottom: 6px; }
.s20-footer-brand p { margin: 0; opacity: 0.7; font-size: 0.92rem; max-width: 500px; }
.s20-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 24px;
  font-size: 0.88rem; opacity: 0.8;
}
.s20-copy { margin: 0; }
.s20-back-top {
  background: rgba(255, 255, 255, 0.1); padding: 6px 14px;
  border-radius: 999px; transition: background 0.2s; font-weight: 700;
}
.s20-back-top:hover { background: var(--s20-primary); color: #fff; }

/* Keyframe Animations */
@keyframes s20-marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(50%); }
}
@keyframes s20-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes s20-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes s20-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Scroll Reveal */
.s20-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.s20-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .s20-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .s20-actions { justify-content: center; }
  .s20-stats { max-width: 480px; margin-inline: auto; }
  .s20-nav { display: none; }
  .s20-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; inset-inline: 0; top: 74px; background: #fff;
    padding: 24px; box-shadow: var(--s20-shadow); border-bottom: 1px solid var(--s20-border);
  }
  .s20-menu { flex-direction: column; align-items: stretch; gap: 14px; text-align: center; }
  .s20-nav-toggle { display: grid; }
}
