/* ============================================================
   keystoneseller - Modern Design System (Persian / RTL)
   Dark premium landing + Light clean app areas
   ============================================================ */

:root {
  /* Dark landing tokens */
  --d-bg: #070b16;
  --d-bg-2: #0d1326;
  --d-surface: #121a33;
  --d-surface-2: #1a2342;
  --d-border: rgba(148, 163, 255, 0.14);
  --d-text: #eef1ff;
  --d-muted: #97a0c8;
  --d-accent: #667eea;
  --d-accent-2: #9b6bf0;
  --d-mint: #2dd4bf;
  --d-gradient: linear-gradient(135deg, #667eea 0%, #9b6bf0 55%, #38bdf8 110%);

  /* Light app tokens */
  --l-bg: #f4f6fb;
  --l-surface: #ffffff;
  --l-border: #e6eaf4;
  --l-text: #171c2e;
  --l-muted: #6c7693;
  --l-primary: #6d28d9;
  --l-primary-2: #5f7df2;
  --l-gradient: linear-gradient(135deg, #6d28d9 0%, #7c3aed 58%, #5f7df2 100%);
  --l-success: #10b981;
  --l-danger: #ef4444;
  --l-warning: #f59e0b;

  /* Shared */
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 34px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.16);
  --glow: 0 0 0 1px rgba(102, 126, 234, 0.25), 0 14px 44px rgba(102, 126, 234, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  direction: rtl;
  text-align: right;
  background: var(--d-bg);
  color: var(--d-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.8;
}

img { max-width: 100%; }
a { text-decoration: none; transition: color .25s var(--ease); }

/* ---------- Typography helpers ---------- */
.gradient-text {
  background: var(--d-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(102, 126, 234, 0.12);
  border: 1px solid rgba(102, 126, 234, 0.35);
  color: #b7c2ff;
  backdrop-filter: blur(8px);
}

/* ---------- Buttons ---------- */
.btn-modern {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
}
.btn-modern::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.35) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn-modern:hover::after { transform: translateX(120%); }
.btn-modern:hover { transform: translateY(-3px); }

.btn-gradient { background: var(--d-gradient); color: #fff; box-shadow: 0 10px 30px rgba(102,126,234,.35); }
.btn-gradient:hover { color: #fff; box-shadow: var(--glow); }
.btn-ghost {
  background: rgba(148, 163, 255, 0.08);
  color: var(--d-text);
  border: 1px solid var(--d-border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { color: #fff; border-color: rgba(148, 163, 255, 0.4); background: rgba(148, 163, 255, 0.14); }
.btn-lg { padding: 17px 38px; font-size: 16px; }

/* ---------- Glass navbar ---------- */
.nav-modern {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav-modern.scrolled {
  padding: 10px 0;
  background: rgba(7, 11, 22, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--d-border);
  box-shadow: 0 12px 40px rgba(2, 6, 18, 0.45);
}
.nav-modern .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #fff; }
.nav-brand img { width: 44px; height: 44px; border-radius: 12px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative;
  color: var(--d-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 100px;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-links a:hover { color: #fff; background: rgba(148, 163, 255, 0.1); }
.nav-links a.active { color: #fff; background: rgba(102, 126, 234, 0.18); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--d-border); background: rgba(148,163,255,.08); color: #fff; font-size: 18px; cursor: pointer; }
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(7, 11, 22, 0.96);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { color: #fff; font-size: 22px; font-weight: 600; padding: 14px 20px; }
.mobile-menu a:hover { color: #b7c2ff; }
.mobile-menu .close-mobile { position: absolute; top: 24px; inset-inline-start: 24px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--d-border); background: transparent; color: #fff; font-size: 22px; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-actions .hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero-modern {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(102, 126, 234, 0.28), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(155, 107, 240, 0.24), transparent 60%),
    radial-gradient(1000px 700px at 50% 110%, rgba(56, 189, 248, 0.12), transparent 60%),
    var(--d-bg);
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 75%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: float-orb 12s ease-in-out infinite;
  pointer-events: none;
}
.hero-orb.o1 { width: 380px; height: 380px; top: -120px; inset-inline-start: -100px; background: #667eea; }
.hero-orb.o2 { width: 300px; height: 300px; bottom: 5%; inset-inline-end: -80px; background: #9b6bf0; animation-delay: -4s; }
.hero-orb.o3 { width: 200px; height: 200px; top: 40%; inset-inline-start: 45%; background: #38bdf8; opacity: 0.3; animation-delay: -8s; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(102, 126, 234, 0.12);
  border: 1px solid rgba(102, 126, 234, 0.35);
  color: #b7c2ff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 26px;
  backdrop-filter: blur(8px);
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--d-mint);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.2);
  animation: pulse-dot 2s ease-in-out infinite;
}
.hero-title {
  font-size: clamp(34px, 5.4vw, 66px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}
.hero-sub {
  color: var(--d-muted);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 620px;
  line-height: 2;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 54px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 560px;
  border-top: 1px solid var(--d-border);
  padding-top: 30px;
}
.hero-stat b { display: block; font-size: 30px; font-weight: 800; color: #fff; }
.hero-stat span { color: var(--d-muted); font-size: 13px; }
@media (max-width: 640px) { .hero-stats { grid-template-columns: 1fr; } }

.hero-visual { position: relative; }
.hero-visual .glass-panel {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 28px;
  background: linear-gradient(160deg, rgba(148, 163, 255, 0.1), rgba(148, 163, 255, 0.03));
  border: 1px solid var(--d-border);
  backdrop-filter: blur(14px);
  box-shadow: 0 40px 90px rgba(2, 6, 18, 0.5);
  animation: float-y 7s ease-in-out infinite;
}
.hero-visual .glass-panel .bar { height: 10px; border-radius: 6px; background: rgba(148,163,255,.14); margin-bottom: 12px; }
.hero-visual .glass-panel .bar.short { width: 55%; }
.hero-visual .glass-panel .mini-row { display: flex; gap: 10px; margin-top: 18px; }
.hero-visual .glass-panel .mini-card {
  flex: 1; height: 86px; border-radius: 12px;
  background: linear-gradient(135deg, #1a2342, #232e5c);
  border: 1px solid rgba(148, 163, 255, 0.12);
  animation: float-y 5s ease-in-out infinite;
}
.hero-visual .glass-panel .mini-card:nth-child(2) { animation-delay: -2s; }
.hero-visual .glass-panel .mini-card:nth-child(3) { animation-delay: -4s; }
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(18, 26, 51, 0.85);
  border: 1px solid var(--d-border);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  animation: float-y 6s ease-in-out infinite;
}
.float-chip .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--d-gradient); font-size: 14px; }
.float-chip.c1 { top: -26px; inset-inline-end: 8%; animation-delay: -2s; }
.float-chip.c2 { bottom: -22px; inset-inline-start: 6%; animation-delay: -4s; }

/* ---------- Sections ---------- */
.section-modern { position: relative; padding: 110px 0; }
.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 800; margin: 16px 0 12px; }
.section-head p { color: var(--d-muted); font-size: 16px; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  background: linear-gradient(160deg, rgba(148, 163, 255, 0.08), rgba(148, 163, 255, 0.02));
  border: 1px solid var(--d-border);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--d-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover { transform: translateY(-10px); border-color: rgba(148, 163, 255, 0.35); box-shadow: 0 24px 60px rgba(2, 6, 18, 0.5); }
.feature-icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: grid; place-items: center;
  font-size: 24px;
  background: var(--d-gradient);
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.35);
  transition: transform .4s var(--ease);
}
.feature-emoji { font-size: 26px; line-height: 1; }
.feature-card:hover .feature-icon { transform: rotate(-8deg) scale(1.08); }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--d-muted); font-size: 14px; margin: 0; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.step-card:hover { transform: translateY(-8px); border-color: rgba(148, 163, 255, 0.35); }
.step-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  color: #38bdf8;
  background: linear-gradient(145deg, rgba(37, 99, 235, .22), rgba(14, 165, 233, .08));
  border: 1px solid rgba(56, 189, 248, .3);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(14, 165, 233, .13), inset 0 1px 0 rgba(255,255,255,.1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.step-icon .ks-local-icon { width: 29px; height: 29px; fill: #38bdf8; stroke: #38bdf8; }
.step-card:hover .step-icon { transform: translateY(-3px) rotate(-4deg); box-shadow: 0 16px 34px rgba(14,165,233,.22); }
.step-card .num { font-size: 13px; font-weight: 700; color: #b7c2ff; }
.step-card h3 { font-size: 18px; font-weight: 700; margin: 8px 0 10px; }
.step-card p { color: var(--d-muted); font-size: 14px; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Stats band ---------- */
.stats-band {
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(102,126,234,.25), transparent 60%),
    radial-gradient(600px 300px at 90% 100%, rgba(155,107,240,.22), transparent 60%),
    var(--d-surface);
  border: 1px solid var(--d-border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stats-band .s b { font-size: 40px; font-weight: 900; }
.stats-band .s span { color: var(--d-muted); font-size: 14px; }
@media (max-width: 760px) { .stats-band { grid-template-columns: 1fr 1fr; } }

/* ---------- Templates showcase ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tpl-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.tpl-card:hover { transform: translateY(-12px) scale(1.01); border-color: rgba(148, 163, 255, 0.4); box-shadow: 0 30px 70px rgba(2, 6, 18, 0.55); }
.tpl-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.tpl-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tpl-thumb .tpl-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); }
.tpl-thumb .tpl-slide.active { opacity: 1; }
.tpl-card:hover .tpl-thumb img.active { transform: scale(1.12); }
.tpl-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--d-surface), transparent 55%);
  z-index: 2;
  pointer-events: none;
}
.tpl-card .tpl-body { padding: 20px 22px 24px; }
.tpl-card .tpl-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.tpl-card .tpl-body p { color: var(--d-muted); font-size: 13px; margin: 0; }
.tpl-card .tpl-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px 18px; border-top: 1px solid var(--d-border); font-size: 13px; color: var(--d-muted); }
.tpl-card .tpl-foot .tpl-cat { color: var(--d-accent); font-weight: 600; }
.tpl-rating { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--d-muted); }
.tpl-rating .stars { display: inline-flex; gap: 2px; letter-spacing: 1px; }
.tpl-rating .stars .fa-star { color: #fbbf24; }
.tpl-rating .stars .fa-star.off { color: rgba(148, 163, 255, 0.25); }
.tpl-rating .avg { font-weight: 700; color: #fbbf24; }
.tpl-rating .cnt { font-size: 11px; }
.tpl-badge {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2;
  padding: 5px 12px; border-radius: 50px; font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg, var(--d-accent), #764ba2); color: #fff;
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.45);
}
.tpl-price {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2;
  padding: 5px 14px; border-radius: 50px; font-size: 12px; font-weight: 700;
  background: rgba(255, 159, 67, 0.92); color: #fff; backdrop-filter: blur(4px);
}
.tpl-price.free { background: rgba(46, 204, 113, 0.92); }
.tpl-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(7, 11, 22, 0.2) 0%, rgba(7, 11, 22, 0.75) 100%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.tpl-card:hover .tpl-overlay { opacity: 1; }
.tpl-preview {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 50px; font-size: 13px; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px); transition: background .25s var(--ease), transform .25s var(--ease);
}
.tpl-preview:hover { background: rgba(255, 255, 255, 0.25); transform: translateY(-2px); }
@media (max-width: 960px) { .tpl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .tpl-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testi-card {
  border-radius: var(--radius-lg);
  padding: 30px;
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.testi-card:hover { transform: translateY(-8px); border-color: rgba(148, 163, 255, 0.35); }
.testi-card .stars { color: #fbbf24; margin-bottom: 14px; }
.testi-card p { color: #c6cdee; font-size: 15px; line-height: 2; }
.testi-card .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testi-card .who .av {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--d-gradient);
  color: #fff; font-weight: 800; font-size: 15px;
}
.testi-card .who b { display: block; font-size: 14px; }
.testi-card .who span { color: var(--d-muted); font-size: 12px; }
@media (max-width: 960px) { .testi-grid { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.price-card.popular {
  border-color: transparent;
  background: linear-gradient(160deg, rgba(102,126,234,.16), rgba(155,107,240,.08)) padding-box,
              var(--d-gradient) border-box;
  transform: scale(1.04);
  box-shadow: 0 30px 80px rgba(102, 126, 234, 0.28);
}
.price-card .tag {
  position: absolute; top: -13px; inset-inline-start: 50%;
  transform: translateX(-50%);
  background: var(--d-gradient);
  color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 5px 16px;
  border-radius: 100px;
}
.price-card h3 { font-size: 17px; font-weight: 700; }
.price-card .amount { font-size: 44px; font-weight: 900; margin: 14px 0 4px; }
.price-card .amount small { font-size: 14px; color: var(--d-muted); font-weight: 500; }
.price-card ul { list-style: none; margin: 22px 0 28px; padding: 0; flex: 1; }
.price-card ul li { padding: 9px 0; color: #c6cdee; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.price-card ul li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--d-mint); font-size: 13px; }
.price-card ul li.no::before { content: '\f00d'; color: #f87171; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } .price-card.popular { transform: none; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  border-radius: var(--radius-md);
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  overflow: hidden;
  transition: border-color .3s var(--ease);
}
.faq-item.open { border-color: rgba(148, 163, 255, 0.4); }
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--d-text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: right;
}
.faq-q .fa { transition: transform .35s var(--ease); color: var(--d-accent); }
.faq-item.open .fa-chevron-down { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 22px 22px; color: var(--d-muted); font-size: 14px; margin: 0; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 70px 50px;
  text-align: center;
  overflow: hidden;
  background: var(--d-gradient);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: repeating-linear-gradient(45deg, transparent 0 24px, rgba(255,255,255,.05) 24px 48px);
}
.cta-band h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 800; color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.85); margin: 14px auto 30px; max-width: 520px; position: relative; }
.cta-band .btn-white {
  position: relative;
  background: #fff; color: #4f46e5;
}
.cta-band .btn-white:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.25); color: #4f46e5; }

/* ---------- Footer ---------- */
.footer-modern { border-top: 1px solid var(--d-border); padding: 80px 0 0; background: var(--d-bg-2); }
.footer-modern .f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-modern h4 { font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer-modern ul { list-style: none; margin: 0; padding: 0; }
.footer-modern ul li { margin-bottom: 12px; }
.footer-modern ul a { color: var(--d-muted); font-size: 14px; }
.footer-modern ul a:hover { color: #fff; }
.footer-modern p { color: var(--d-muted); font-size: 14px; }
.footer-modern .f-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-modern .f-social a {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(148,163,255,.1);
  border: 1px solid var(--d-border);
  color: var(--d-muted);
  transition: all .3s var(--ease);
}
.footer-modern .f-social a:hover { background: var(--d-gradient); color: #fff; transform: translateY(-3px); }
.footer-modern .f-bottom {
  border-top: 1px solid var(--d-border);
  padding: 24px 0;
  color: var(--d-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-modern .f-trust {
  border-top: 1px solid var(--d-border);
  padding-top: 24px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-modern .f-trust a, .footer-modern .f-trust div {
  display: inline-block;
}
.footer-modern .f-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}
.footer-modern .f-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--d-muted);
  font-size: 13px;
  direction: rtl;
}
.footer-modern .f-contact i {
  color: #a5b4fc;
  font-size: 13px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.footer-modern .f-contact span a { color: var(--d-muted); }
.footer-modern .f-contact span a:hover { color: #fff; }
@media (max-width: 860px) { .footer-modern .f-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-modern .f-grid { grid-template-columns: 1fr; } }

/* Balanced footer spacing and contact-brand alignment. */
.footer-modern { padding-top: 48px; }
.footer-modern .f-grid { gap: 40px 38px; padding-bottom: 38px; align-items: start; }
.footer-modern .f-brand-column,
.footer-modern .f-grid > div:first-child { align-self: start; min-width: 0; }
.footer-modern .footer-brand-link,
.footer-modern .f-grid > div:first-child > .nav-brand {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 18px auto;
  transform: translateY(-7px);
}
.footer-modern .f-brand-column > p,
.footer-modern .f-grid > div:first-child > p { margin: 0 0 16px; line-height: 1.85; }
.footer-modern .f-contact { margin-top: 22px; gap: 11px; }
.footer-modern .f-contact span { line-height: 1.7; }
.footer-modern h4 { margin-bottom: 20px; }
.footer-modern ul li { margin-bottom: 13px; }
.category-chips .active { color: #fff !important; -webkit-text-fill-color: #fff !important; }
@media (max-width: 860px) {
  .footer-modern { padding-top: 42px; }
  .footer-modern .f-grid { gap: 34px 30px; padding-bottom: 34px; }
}
@media (max-width: 560px) {
  .footer-modern { padding-top: 36px; }
  .footer-modern .f-grid { gap: 28px; padding-bottom: 30px; }
  .footer-modern .footer-brand-link,
  .footer-modern .f-grid > div:first-child > .nav-brand { margin-inline-start: auto; margin-inline-end: 0; }
}

/* ---------- Scroll reveal animations ---------- */
.reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 70ms);
  will-change: opacity, transform;
}
.reveal { transform: translateY(28px); }
.reveal-up { transform: translateY(48px); }
.reveal-left { transform: translateX(48px); }
.reveal-right { transform: translateX(-48px); }
.reveal-scale { transform: scale(0.92); }
.in-view { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -50px) scale(1.15); }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Marquee ---------- */
.marquee-wrap { overflow: hidden; position: relative; }
.marquee-track { display: flex; direction:ltr; gap: 0; width: max-content; will-change: transform; }
.marquee-track.marquee-ready { animation: marquee-rtl var(--marquee-duration, 24s) linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-track .item { direction:rtl; margin-inline:20px; }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(var(--marquee-shift)); } }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.marquee-group { display:flex; direction:ltr; flex:0 0 auto; gap:0; }

/* ---------- Light / App area overrides ---------- */
.app-shell {
  background: var(--l-bg);
  color: var(--l-text);
  min-height: 100vh;
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  padding-top: 96px;
}
.app-shell .gradient-text { background: var(--l-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ---------- App topbar ---------- */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--l-border);
}
.app-topbar .container { min-height: 66px; }
.app-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--l-text); font-weight: 800; font-size: 18px; }
.app-brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.app-nav li a {
  color: #475569; font-weight: 600; font-size: 14px; text-decoration: none;
  padding: 8px 14px; border-radius: 10px; transition: all .25s var(--ease);
}
.app-nav li a:hover { color: var(--l-primary); background: rgba(79, 70, 229, 0.08); }
.btn-app {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 100px; font-size: 13px; font-weight: 700;
  text-decoration: none; transition: all .25s var(--ease); border: none; cursor: pointer;
}
.btn-app-ghost { background: #f1f5f9; color: #475569; }
.btn-app-ghost:hover { background: #e2e8f0; color: var(--l-text); }
.btn-app-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.btn-app-danger:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3); }

.app-mobile-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid var(--l-border);
}
.app-mobile-nav a {
  white-space: nowrap;
  font-size: 13px; font-weight: 600; color: #475569;
  text-decoration: none;
  background: #f1f5f9; padding: 7px 14px; border-radius: 100px;
  transition: all .25s var(--ease);
}
.app-mobile-nav a:hover { background: rgba(79, 70, 229, 0.1); color: var(--l-primary); }

.app-main { flex: 1; }

.app-footer {
  border-top: 1px solid var(--l-border);
  background: #fff;
  padding: 20px 0;
  color: #94a3b8;
  font-size: 13px;
  margin-top: 40px;
}

.app-card {
  background: var(--l-surface);
  border: 1px solid var(--l-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.app-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; border-radius: 100px;
  font-weight: 700; font-size: 14px; border: none; cursor: pointer;
  background: var(--l-gradient); color: #fff;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.app-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(79, 70, 229, 0.3); color: #fff; }
.app-btn.ghost { background: var(--l-surface); color: var(--l-primary); border: 1px solid var(--l-border); }
.app-btn.ghost:hover { border-color: var(--l-primary); color: var(--l-primary); }
.app-btn.danger { background: linear-gradient(135deg, #ef4444, #dc2626); }
.app-btn.success { background: linear-gradient(135deg, #10b981, #059669); }

/* Utility */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ============================================================
   DAY / NIGHT THEME
   Default = dark (matches system via pre-paint script).
   html[data-theme="light"] switches the landing to light,
   html[data-theme="dark"] switches app areas to dark.
   ============================================================ */

/* ---------- Theme toggle button ---------- */
.theme-toggle {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--d-border);
  background: rgba(148, 163, 255, 0.08);
  color: var(--d-text);
  font-size: 17px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.theme-toggle:hover { border-color: rgba(148, 163, 255, 0.45); background: rgba(148, 163, 255, 0.16); transform: translateY(-2px); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline-flex; }
html[data-theme="light"] .theme-toggle { border-color: var(--l-border); background: #fff; color: #475569; box-shadow: var(--shadow-sm); }
html[data-theme="light"] .theme-toggle .icon-sun { display: inline-flex; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- Background images (hero + sections) ---------- */
.bg-hero-1 { background-image: url('../images/backgrounds/bg-2.jpg'); }
.bg-hero-2 { background-image: url('../images/backgrounds/bg-3.jpg'); }
.bg-hero-3 { background-image: url('../images/backgrounds/bg-4.jpg'); }
.bg-hero-4 { background-image: url('../images/backgrounds/bg-1.jpg'); }

.hero-modern {
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(102, 126, 234, 0.5), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(155, 107, 240, 0.42), transparent 60%),
    linear-gradient(rgba(7, 11, 22, 0.72), rgba(7, 11, 22, 0.82)),
    url('../images/backgrounds/bg-2.jpg') center / cover no-repeat;
}

html[data-theme="light"] {
  /* Landing tokens → light. Public accents use the customer-portal violet family. */
  --d-bg: #f4f6fb;
  --d-bg-2: #eef0ff;
  --d-surface: #ffffff;
  --d-surface-2: #f3efff;
  --d-border: rgba(109, 40, 217, 0.14);
  --d-text: #171c2e;
  --d-muted: #5b6478;
  --d-accent: #6d28d9;
  --d-accent-2: #5f7df2;
  --d-gradient: linear-gradient(135deg, #6d28d9 0%, #7c3aed 56%, #5f7df2 100%);
  --shadow-sm: 0 2px 10px rgba(30, 41, 82, 0.06);
  --shadow-md: 0 10px 34px rgba(30, 41, 82, 0.1);
  --shadow-lg: 0 24px 70px rgba(30, 41, 82, 0.14);

  /* App tokens stay light */
  --l-bg: #f4f6fb;
  --l-surface: #ffffff;
  --l-border: #e6eaf4;
  --l-text: #171c2e;
  --l-muted: #6c7693;
  --l-primary: #4f46e5;
  --l-primary-2: #7c3aed;
  --l-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);

  /* Landing background with light overlay */
}
html[data-theme="light"] body { background: var(--d-bg); color: var(--d-text); }
html[data-theme="light"] .hero-modern {
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(102, 126, 234, 0.22), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(155, 107, 240, 0.18), transparent 60%),
    linear-gradient(rgba(244, 246, 251, 0.82), rgba(244, 246, 251, 0.9)),
    url('../images/backgrounds/bg-2.jpg') center / cover no-repeat;
}
html[data-theme="light"] .hero-badge { color: var(--l-primary); border-color: rgba(79, 70, 229, 0.35); background: rgba(79, 70, 229, 0.08); }
html[data-theme="light"] .hero-badge .dot { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2); }
html[data-theme="light"] .hero-stat b { color: var(--l-text); }
html[data-theme="light"] .eyebrow-pill { color: var(--l-primary); border-color: rgba(79, 70, 229, 0.35); background: rgba(79, 70, 229, 0.08); }

html[data-theme="light"] .nav-modern.scrolled { background: rgba(255, 255, 255, 0.82); border-bottom: 1px solid var(--l-border); box-shadow: 0 12px 40px rgba(30, 41, 82, 0.1); }
html[data-theme="light"] .nav-brand { color: var(--l-text); }
html[data-theme="light"] .nav-links a { color: var(--l-muted); }
html[data-theme="light"] .nav-links a:hover { color: var(--l-text); background: rgba(79, 70, 229, 0.08); }
html[data-theme="light"] .nav-links a.active { color: var(--l-primary); background: rgba(79, 70, 229, 0.12); }
html[data-theme="light"] .nav-burger { border-color: var(--l-border); background: #fff; color: var(--l-text); }
html[data-theme="light"] .mobile-menu { background: rgba(255, 255, 255, 0.97); }
html[data-theme="light"] .mobile-menu a { color: var(--l-text); }
html[data-theme="light"] .mobile-menu a:hover { color: var(--l-primary); }
html[data-theme="light"] .mobile-menu .close-mobile { border-color: var(--l-border); color: var(--l-text); }

/* App pages (dashboard, profile, projects): navbar always solid so links stay readable at top of page */
body.app-page .nav-modern {
  background: rgba(244, 246, 251, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--l-border);
  box-shadow: 0 12px 40px rgba(30, 41, 82, 0.08);
}
html[data-theme="dark"] body.app-page .nav-modern { background: rgba(13, 19, 38, 0.85); }

html[data-theme="light"] .btn-ghost { background: #fff; color: var(--l-text); border-color: var(--l-border); }
html[data-theme="light"] .btn-ghost:hover { color: var(--l-primary); border-color: rgba(79, 70, 229, 0.4); background: rgba(79, 70, 229, 0.06); }
html[data-theme="light"] .btn-gradient { color: #fff; }
html[data-theme="light"] .gradient-text { background: var(--l-gradient); -webkit-background-clip: text; background-clip: text; }

html[data-theme="light"] .hero-visual .glass-panel { background: rgba(255, 255, 255, 0.72); border-color: var(--l-border); box-shadow: 0 40px 90px rgba(30, 41, 82, 0.14); }
html[data-theme="light"] .hero-visual .glass-panel .bar { background: rgba(79, 70, 229, 0.12); }
html[data-theme="light"] .hero-visual .glass-panel .mini-card { background: linear-gradient(135deg, #eef1ff, #e0e7ff); border-color: rgba(79, 70, 229, 0.12); }
html[data-theme="light"] .float-chip { background: rgba(255, 255, 255, 0.9); border-color: var(--l-border); color: var(--l-text); box-shadow: var(--shadow-md); }

html[data-theme="light"] .feature-card { background: #fff; border-color: var(--l-border); }
html[data-theme="light"] .feature-card:hover { border-color: rgba(79, 70, 229, 0.35); box-shadow: 0 24px 60px rgba(30, 41, 82, 0.12); }
html[data-theme="light"] .feature-card p { color: var(--l-muted); }
html[data-theme="light"] .step-card { background: var(--l-surface); border-color: var(--l-border); }
html[data-theme="light"] .step-card .num { color: var(--l-primary); }
html[data-theme="light"] .step-icon {
  color: #6d28d9;
  background: linear-gradient(145deg, rgba(237,233,254,.96), rgba(239,244,255,.92));
  border-color: rgba(109,40,217,.20);
  box-shadow: 0 10px 24px rgba(95,125,242,.10), inset 0 1px 0 #fff;
}
html[data-theme="light"] .step-icon .ks-local-icon { fill: #6d28d9; stroke: #6d28d9; }
html[data-theme="light"] .step-card p { color: var(--l-muted); }
html[data-theme="light"] .stats-band { background: linear-gradient(160deg, #fff, #eef0ff); border-color: var(--l-border); }
html[data-theme="light"] .stats-band .s span { color: var(--l-muted); }
html[data-theme="light"] .tpl-card { background: var(--l-surface); border-color: var(--l-border); }
html[data-theme="light"] .tpl-card:hover { box-shadow: 0 30px 70px rgba(30, 41, 82, 0.14); }
html[data-theme="light"] .tpl-card .tpl-body p { color: var(--l-muted); }
html[data-theme="light"] .tpl-card .tpl-foot { border-top-color: var(--l-border); color: var(--l-muted); }
html[data-theme="light"] .tpl-rating { color: var(--l-muted); }
html[data-theme="light"] .tpl-rating .stars .fa-star.off { color: #d3d8e6; }
html[data-theme="light"] .tpl-thumb::after { background: linear-gradient(0deg, #fff, transparent 55%); }
html[data-theme="light"] .tpl-overlay { background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(15, 23, 42, 0.55) 100%); }
html[data-theme="light"] .testi-card { background: var(--l-surface); border-color: var(--l-border); }
html[data-theme="light"] .testi-card p { color: var(--l-text); }
html[data-theme="light"] .testi-card .who span { color: var(--l-muted); }
html[data-theme="light"] .price-card { background: var(--l-surface); border-color: var(--l-border); }
html[data-theme="light"] .price-card ul li { color: var(--l-text); }
html[data-theme="light"] .faq-item { background: var(--l-surface); border-color: var(--l-border); }
html[data-theme="light"] .faq-a p { color: var(--l-muted); }
html[data-theme="light"] .footer-modern { background: var(--l-bg-2, #eef0ff); }
html[data-theme="light"] .footer-modern ul a:hover { color: var(--l-text); }
html[data-theme="light"] .footer-modern .f-social a { background: #fff; border-color: var(--l-border); color: var(--l-muted); }
html[data-theme="light"] .client-marquee { border-block-color: var(--l-border); }

/* ---------- App areas in dark mode ---------- */
html[data-theme="dark"] {
  --l-bg: #0d1326;
  --l-surface: #141a33;
  --l-border: rgba(148, 163, 255, 0.14);
  --l-text: #eef1ff;
  --l-muted: #97a0c8;
  --l-primary: #667eea;
  --l-primary-2: #9b6bf0;
  --l-gradient: linear-gradient(135deg, #667eea 0%, #9b6bf0 100%);
}
html[data-theme="dark"] .app-shell { background: var(--l-bg); color: var(--l-text); }
html[data-theme="dark"] .app-topbar { background: rgba(13, 19, 38, 0.85); border-bottom-color: var(--l-border); }
html[data-theme="dark"] .app-brand { color: var(--l-text); }
html[data-theme="dark"] .app-nav li a { color: var(--l-muted); }
html[data-theme="dark"] .app-nav li a:hover { color: var(--l-text); background: rgba(102, 126, 234, 0.14); }
html[data-theme="dark"] .btn-app-ghost { background: var(--l-surface); color: var(--l-muted); }
html[data-theme="dark"] .btn-app-ghost:hover { background: var(--l-surface-2, #1a2342); color: var(--l-text); }
html[data-theme="dark"] .app-mobile-nav { background: var(--l-surface); border-bottom-color: var(--l-border); }
html[data-theme="dark"] .app-mobile-nav a { background: var(--l-surface-2, #1a2342); color: var(--l-muted); }
html[data-theme="dark"] .app-mobile-nav a:hover { color: var(--l-primary); background: rgba(102, 126, 234, 0.14); }
html[data-theme="dark"] .app-footer { background: var(--l-surface); border-top-color: var(--l-border); color: var(--l-muted); }
html[data-theme="dark"] .app-card { background: var(--l-surface); border-color: var(--l-border); }
html[data-theme="dark"] .app-btn.ghost { background: var(--l-surface); color: var(--l-primary); border-color: var(--l-border); }
html[data-theme="dark"] .app-btn.ghost:hover { border-color: var(--l-primary); }
html[data-theme="light"] .app-shell { background: var(--l-bg); color: var(--l-text); }

/* Focused visual refinements: hero artwork and auth surfaces. */
.hero-visual {
  isolation: isolate;
  padding: 28px;
  border-radius: 34px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -2;
  border-radius: 38px;
  background:
    linear-gradient(rgba(102,126,234,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102,126,234,.08) 1px, transparent 1px),
    radial-gradient(circle at 20% 18%, rgba(56,189,248,.34), transparent 32%),
    radial-gradient(circle at 82% 74%, rgba(124,58,237,.32), transparent 38%),
    linear-gradient(145deg, rgba(8,124,240,.18), rgba(12,17,35,.58)),
    url('../images/hero/ai-eye.png') center / cover no-repeat;
  background-size: 34px 34px, 34px 34px, auto, auto, auto, cover;
  border: 1px solid rgba(148,163,255,.2);
  box-shadow: 0 28px 80px rgba(3,8,24,.32);
  opacity: .92;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: -1;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), transparent 55%);
  pointer-events: none;
}
.hero-visual .glass-panel {
  background: rgba(10,18,43,.48);
  border-color: rgba(148,163,255,.16);
  backdrop-filter: blur(16px) saturate(125%);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
}
html[data-theme="light"] .hero-visual::before {
  background:
    linear-gradient(rgba(79,70,229,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,70,229,.07) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(14,165,233,.3), transparent 34%),
    radial-gradient(circle at 82% 76%, rgba(124,58,237,.24), transparent 38%),
    linear-gradient(145deg, rgba(224,231,255,.76), rgba(255,255,255,.38)),
    url('../images/hero/ai-eye.png') center / cover no-repeat;
  background-size: 34px 34px, 34px 34px, auto, auto, auto, cover;
  border-color: rgba(79,70,229,.18);
  box-shadow: 0 28px 70px rgba(30,41,82,.18);
  opacity: .78;
}
html[data-theme="light"] .hero-visual .glass-panel {
  background: rgba(255,255,255,.5);
  border-color: rgba(79,70,229,.13);
  backdrop-filter: blur(15px) saturate(115%);
}

.login-wrapper, .register-wrapper {
  align-self: center;
  margin: 24px;
  width: calc(50% - 48px) !important;
  flex: 0 0 calc(50% - 48px) !important;
  max-width: none !important;
  max-height: calc(100vh - 48px);
  border-radius: 26px;
  border: 1px solid rgba(79,70,229,.16);
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 26px 70px rgba(30,41,82,.2);
  overflow-y: auto;
  overflow-x: hidden;
}
.login-header, .register-header {
  margin: 0 28px 18px;
  padding: 22px 20px 18px !important;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(79,70,229,.1), rgba(14,165,233,.08));
  border: 1px solid rgba(79,70,229,.14);
}
.login-header .system-name, .register-header .system-name {
  color: #312e81 !important;
  font-size: 22px !important;
  font-weight: 900 !important;
}
.login-form, .register-form {
  margin-inline: 0;
  width: 100% !important;
  max-width: none !important;
  padding: 22px !important;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e3e8f3;
  box-shadow: 0 14px 36px rgba(30,41,82,.08);
}
.sms-otp-btn {
  display: flex !important;
  justify-content: center;
  margin-top: 10px;
  text-decoration: none;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  background: linear-gradient(135deg,#4338ca,#2563eb) !important;
}
.sms-otp-btn:hover { color:#fff !important; filter:brightness(1.08); }
body:has(.login-container) .login-btn.sms-otp-btn,
body:has(.login-container) .login-btn.sms-otp-btn *,
body:has(.login-container) .login-form > a.login-btn,
body:has(.login-container) .login-form > a.login-btn * {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}

/* Auth navbar stays present and readable over both halves. */
body:has(.login-container) .nav-modern,
body:has(.register-container) .nav-modern {
  display:block !important;
  padding:8px 0 !important;
  background:rgba(4,12,30,.86) !important;
  border-bottom:1px solid rgba(148,163,255,.2) !important;
  box-shadow:0 12px 34px rgba(2,6,23,.24) !important;
  backdrop-filter:blur(18px) saturate(130%);
  -webkit-backdrop-filter:blur(18px) saturate(130%);
}
body:has(.login-container) .nav-brand,
body:has(.register-container) .nav-brand,
body:has(.login-container) .nav-links a,
body:has(.register-container) .nav-links a {
  color:#f8fafc !important;
  opacity:1 !important;
  text-shadow:0 1px 10px rgba(0,0,0,.35);
}
body:has(.login-container) .nav-links a:hover,
body:has(.register-container) .nav-links a:hover,
body:has(.login-container) .nav-links a.active,
body:has(.register-container) .nav-links a.active {
  color:#fff !important;
  background:rgba(85,173,255,.16) !important;
}
body:has(.login-container) .nav-modern .btn-ghost,
body:has(.register-container) .nav-modern .btn-ghost {
  color:#fff !important;
  background:linear-gradient(135deg,#7c3aed,#2563eb) !important;
  border-color:rgba(255,255,255,.25) !important;
  box-shadow:0 8px 22px rgba(37,99,235,.28) !important;
}
body:has(.login-container) .theme-toggle,
body:has(.register-container) .theme-toggle {
  color:#fff !important;
  background:rgba(255,255,255,.08) !important;
  border-color:rgba(255,255,255,.22) !important;
  box-shadow:none !important;
}
body:has(.login-container) .login-container,
body:has(.register-container) .register-container { padding-top:72px; }
html[data-theme="light"] body:has(.login-container) .login-wrapper,
html[data-theme="light"] body:has(.register-container) .register-wrapper {
  background:linear-gradient(155deg,rgba(255,255,255,.98),rgba(238,242,255,.96)) !important;
  border-color:rgba(99,102,241,.3) !important;
  box-shadow:0 28px 80px rgba(49,46,129,.2) !important;
}
html[data-theme="light"] body:has(.login-container) .login-form,
html[data-theme="light"] body:has(.register-container) .register-form {
  background:rgba(255,255,255,.98) !important;
  border-color:rgba(99,102,241,.2) !important;
  box-shadow:0 16px 42px rgba(79,70,229,.11) !important;
}
html[data-theme="dark"] .login-wrapper,
html[data-theme="dark"] .register-wrapper {
  background: rgba(8,18,38,.94) !important;
  border-color: rgba(85,173,255,.2);
  box-shadow: 0 28px 80px rgba(0,0,0,.48);
}
html[data-theme="dark"] .login-header,
html[data-theme="dark"] .register-header {
  background: linear-gradient(135deg,rgba(8,124,240,.18),rgba(49,46,129,.18));
  border-color: rgba(85,173,255,.18);
}
html[data-theme="dark"] .login-header .system-name,
html[data-theme="dark"] .register-header .system-name { color:#e0e7ff !important; }
html[data-theme="dark"] .login-form,
html[data-theme="dark"] .register-form {
  background: rgba(10,26,44,.86);
  border-color: rgba(85,173,255,.16);
  box-shadow: 0 16px 42px rgba(0,0,0,.3);
}
@media (max-width: 900px) {
  .login-wrapper, .register-wrapper { margin:14px; width:calc(100% - 28px) !important; flex-basis:calc(100% - 28px) !important; max-height:none; border-radius:20px; }
  .login-header, .register-header { margin-inline:14px; }
  .login-form, .register-form { margin-inline:0; }
  .hero-visual { padding:18px; }
}

@media (max-width: 1080px) {
  body:has(.login-container) .nav-links,
  body:has(.register-container) .nav-links { display:none; }
}

/* 2026 visual density and accessibility polish */
.nav-modern { padding: 10px 0; }
.nav-modern.scrolled { padding: 7px 0; }
.nav-brand { gap: 9px; font-size: 20px; }
.nav-brand img { width: 52px; height: 52px; border-radius: 14px; object-fit: contain; }
.keystoneseller-wordmark {
  color: #bfc8ff;
  -webkit-text-fill-color: currentColor;
  background: none;
  font-weight: 900;
  letter-spacing: -.02em;
}
html[data-theme="light"] .keystoneseller-wordmark { color: #4338ca; }
html[data-theme="dark"] .keystoneseller-wordmark { color: #c7d2fe; }
.nav-links { gap: 2px; }
.nav-links a { padding: 8px 12px; }
.nav-actions { gap: 8px; }
.btn-modern { padding: 9px 16px; }
.btn-modern i, .btn-modern .ks-local-icon { font-size: 1.08em; width: 1.08em; height: 1.08em; }
.theme-toggle, .nav-burger { width: 40px; height: 40px; }

.hero-modern { min-height: auto; padding: 126px 0 66px; }
.hero-modern .row { --bs-gutter-y: 2rem; }
.hero-stats { margin-top: 30px; padding-top: 24px; }
.section-modern { padding: 72px 0; }
.section-head { margin-bottom: 38px; }
.feature-grid, .tpl-grid { gap: 20px; }
.feature-card { padding: 24px; }
.feature-icon { width: 52px; height: 52px; }
.feature-icon svg { width: 27px; height: 27px; }
.client-marquee { padding: 22px 0; overflow: hidden; }
.marquee-track { gap: 34px; animation-duration: 22s; }
.marquee-track::after { content: ""; padding-inline-end: 1px; }
.tpl-price { top: 12px; inset-inline-end: 12px; inset-inline-start: auto; }
.tpl-body { padding-bottom: 12px; }
.tpl-rating .stars { min-width: 78px; }
.tpl-rating .stars .fa-star.off { color: rgba(148, 163, 255, .24); }

.auth-brand { margin: 0 0 8px !important; font-size: 30px !important; }
.login-header, .register-header { padding-top: 0 !important; }
.login-wrapper, .register-wrapper { padding-block: 30px !important; }
.login-header h2.auth-brand, .register-header h2.auth-brand { color: #4338ca; }
html[data-theme="dark"] .login-header h2.auth-brand,
html[data-theme="dark"] .register-header h2.auth-brand { color: #c7d2fe; }
.login-container, .register-container {
  background-image: radial-gradient(circle at 15% 10%, rgba(99,102,241,.22), transparent 28%), radial-gradient(circle at 85% 82%, rgba(14,165,233,.14), transparent 30%) !important;
}
html[data-theme="light"] .login-container,
html[data-theme="light"] .register-container { background-color: #eef2ff !important; }
html[data-theme="dark"] .login-container,
html[data-theme="dark"] .register-container { background-color: #0b1022 !important; }

@media (max-width: 991px) {
  .nav-modern { padding: 8px 0; }
  .nav-brand img { width: 46px; height: 46px; }
  .hero-modern { padding: 108px 0 54px; }
  .section-modern { padding: 58px 0; }
}

/* Theme-aware section backgrounds (bg-1 dark / bg-3 light for templates, bg-2 dark / bg-4 light for cta) */
.section-bg-templates {
  background:
    linear-gradient(rgba(7, 11, 22, 0.78), rgba(7, 11, 22, 0.86)),
    url('../images/backgrounds/bg-1.jpg') center / cover no-repeat;
}
html[data-theme="light"] .section-bg-templates {
  background:
    linear-gradient(rgba(238, 240, 255, 0.85), rgba(244, 246, 251, 0.92)),
    url('../images/backgrounds/bg-3.jpg') center / cover no-repeat;
}
.section-bg-cta {
  background:
    linear-gradient(rgba(7, 11, 22, 0.8), rgba(7, 11, 22, 0.85)),
    url('../images/backgrounds/bg-2.jpg') center / cover no-repeat;
}
html[data-theme="light"] .section-bg-cta {
  background:
    linear-gradient(rgba(238, 240, 255, 0.88), rgba(244, 246, 251, 0.94)),
    url('../images/backgrounds/bg-4.jpg') center / cover no-repeat;
}

/* Keep hero grid/orbs above the background image */
.hero-modern .hero-bg-grid,
.hero-modern .hero-orb { z-index: 0; }
.hero-modern .container { position: relative; z-index: 1; }

/* ============================================================
   AUTH PAGES (ورود / ثبت‌نام) — theme aware
   ============================================================ */
html[data-theme="dark"] .login-container,
html[data-theme="dark"] .register-container { background: linear-gradient(135deg, #0d1226 0%, #151a38 100%); }
html[data-theme="dark"] .login-wrapper,
html[data-theme="dark"] .register-wrapper,
html[data-theme="dark"] .login-panel,
html[data-theme="dark"] .register-panel { background: #141a33; color: #eef1ff; box-shadow: 0 10px 40px rgba(2, 6, 18, 0.6); }
html[data-theme="dark"] .login-header h2,
html[data-theme="dark"] .register-header h2 { color: #eef1ff; }
html[data-theme="dark"] .login-header p,
html[data-theme="dark"] .register-header p { color: #97a0c8; }
html[data-theme="dark"] .login-header .keystone-logo,
html[data-theme="dark"] .register-header .keystone-logo { background: #1a2145; border-color: rgba(148, 163, 255, 0.2); }
html[data-theme="dark"] .form-group label,
html[data-theme="dark"] .register-form label { color: #c6cdee; }
html[data-theme="dark"] .input-container input,
html[data-theme="dark"] .register-input,
html[data-theme="dark"] .form-control {
  background: #1a2145;
  border-color: rgba(148, 163, 255, 0.2);
  color: #eef1ff;
}
html[data-theme="dark"] .input-container input:focus,
html[data-theme="dark"] .register-input:focus,
html[data-theme="dark"] .form-control:focus { background: #202950; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2); }
html[data-theme="dark"] .input-container input::placeholder,
html[data-theme="dark"] .register-input::placeholder { color: #5b6478; }
html[data-theme="dark"] .input-container .input-icon,
html[data-theme="dark"] .input-container .toggle-password { color: #97a0c8; }
html[data-theme="dark"] .remember-me,
html[data-theme="dark"] .register-remember { color: #c6cdee; }
html[data-theme="dark"] .login-footer,
html[data-theme="dark"] .register-footer { color: #97a0c8; }
html[data-theme="dark"] .header-btn,
html[data-theme="dark"] .home-btn { background: #1a2145; border-color: rgba(148, 163, 255, 0.2); color: #a5b4fc; }
html[data-theme="dark"] .header-btn:hover { background: #4f46e5; color: #fff; }
html[data-theme="dark"] .form-text.text-muted { color: #97a0c8 !important; }
html[data-theme="dark"] .login-message.success { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.3); }
html[data-theme="dark"] .login-message.error { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }
html[data-theme="dark"] .error-input { background: rgba(239, 68, 68, 0.1) !important; }
html[data-theme="dark"] .login-side-image::before { background: linear-gradient(135deg, rgba(13, 18, 38, 0.85), rgba(30, 27, 75, 0.9)); }
html[data-theme="light"] .login-container,
html[data-theme="light"] .register-container { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
html[data-theme="light"] .login-wrapper,
html[data-theme="light"] .register-wrapper { background: #fff; }
/* Home feature introduction */
.hero-closing-line {
  display: block;
  margin-top: 10px;
  color: var(--d-text);
  font-weight: 700;
}
.feature-capabilities {
  margin-top: 14px !important;
  color: var(--d-text) !important;
  font-weight: 700;
}
.feature-capabilities span {
  margin-inline: 7px;
  color: var(--d-primary);
}
.home-manifesto {
  width: min(760px, 100%);
  margin: 22px auto 0;
  padding: 18px 24px;
  color: var(--d-text);
  background: linear-gradient(135deg, rgba(99, 102, 241, .11), rgba(14, 165, 233, .07));
  border: 1px solid rgba(129, 140, 248, .26);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.home-manifesto-section {
  padding: 0 0 56px;
  background: var(--d-bg);
}
.home-manifesto p { margin: 0 0 8px !important; color: var(--d-muted) !important; }
.home-manifesto strong { color: var(--d-text); font-size: 1.02rem; }
html[data-theme="light"] .home-manifesto {
  background: linear-gradient(135deg, rgba(99, 102, 241, .08), rgba(14, 165, 233, .05));
  border-color: rgba(79, 70, 229, .2);
  box-shadow: 0 10px 28px rgba(79, 70, 229, .07), inset 0 1px 0 #fff;
}
@media (max-width: 640px) {
  .feature-capabilities { line-height: 2; }
  .feature-capabilities span { margin-inline: 3px; }
  .home-manifesto { margin-top: 16px; padding: 15px 16px; border-radius: 14px; }
  .home-manifesto-section { padding-bottom: 36px; }
}


/* ================= MEGA MENU (desktop) ================= */
.mega-chevron { font-size: 10px; margin-right: 4px; opacity: .6; transition: transform .2s; }
.nav-mega-trigger > a { cursor: default; }
.nav-mega-trigger.is-open .mega-chevron { transform: rotate(180deg); }

.mega-menu {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 999;
  padding-top: 70px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.mega-inner {
  display: flex;
  gap: 0;
  padding: 0;
  background: rgba(7, 11, 22, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(148, 163, 255, 0.12);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}
.mega-root-panel {
  width: 280px;
  min-width: 280px;
  padding: 24px 20px;
  border-left: 1px solid rgba(148, 163, 255, 0.08);
  display: flex;
  flex-direction: column;
}
.mega-sub-panel {
  flex: 1;
  padding: 24px 28px;
  display: none;
}
.mega-sub-panel.is-active { display: block; }
.mega-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #b7c2ff;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 255, 0.1);
}
.mega-heading i { font-size: 14px; opacity: .7; }
.mega-list { list-style: none; margin: 0; padding: 0; }
.mega-list > li { margin-bottom: 2px; }
.mega-list > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.mega-list > li > a:hover,
.mega-cat-item.is-hovered > a {
  background: rgba(148, 163, 255, 0.1);
  color: #fff;
}
.mega-list > li > a i { width: 18px; text-align: center; font-size: 13px; opacity: .55; }

.mega-item-arrow {
  font-size: 9px;
  margin-right: 0;
  margin-inline-start: auto;
  opacity: .35;
  transition: transform .2s, opacity .2s;
  flex-shrink: 0;
}
.mega-cat-item.has-children:hover .mega-item-arrow,
.mega-cat-item.is-hovered .mega-item-arrow {
  opacity: .7;
}
.mega-cat-item > a {
  flex: 1;
}
.mega-cat-item {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
}
.mega-cat-item > a {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 500;
  transition: background .2s, color .2s;
  text-decoration: none;
}
.mega-cat-item.is-hovered > a,
.mega-cat-item > a:hover {
  background: rgba(148, 163, 255, 0.1);
  color: #fff;
}
.mega-view-all {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #8fa4ff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 255, 0.08);
  transition: color .2s;
}
.mega-view-all:hover { color: #b7c2ff; }
.mega-sublist {
  list-style: none;
  margin: 2px 0 4px 26px;
  padding: 0;
  border-right: 2px solid rgba(148, 163, 255, 0.1);
  padding-right: 10px;
}
.mega-sublist li a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: rgba(255,255,255,.5);
  font-size: 13px;
  transition: background .2s, color .2s;
}
.mega-sublist li a:hover { background: rgba(148,163,255,.08); color: #fff; }

html[data-theme="light"] .mega-inner {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(79, 70, 229, 0.12);
  box-shadow: 0 24px 64px rgba(30, 41, 82, 0.12);
}
html[data-theme="light"] .mega-root-panel { border-left-color: rgba(79,70,229,.08); }
html[data-theme="light"] .mega-heading { color: #4f46e5; border-bottom-color: rgba(79,70,229,.1); }
html[data-theme="light"] .mega-list > li > a,
html[data-theme="light"] .mega-cat-item > a { color: rgba(15,23,42,.7); }
html[data-theme="light"] .mega-list > li > a:hover,
html[data-theme="light"] .mega-cat-item.is-hovered > a,
html[data-theme="light"] .mega-cat-item > a:hover { background: rgba(79,70,229,.06); color: #0f172a; }
html[data-theme="light"] .mega-view-all { color: #4f46e5; border-top-color: rgba(79,70,229,.08); }
html[data-theme="light"] .mega-view-all:hover { color: #4338ca; }
html[data-theme="light"] .mega-sublist li a { color: rgba(15,23,42,.55); }
html[data-theme="light"] .mega-sublist li a:hover { background: rgba(79,70,229,.05); color: #0f172a; }
html[data-theme="light"] .mega-sublist { border-right-color: rgba(79,70,229,.1); }


/* Active path highlighting in mega menu */
.mega-cat-item.is-active-path > a {
  background: rgba(102, 126, 234, 0.15);
  color: #fff;
  font-weight: 600;
}
html[data-theme="light"] .mega-cat-item.is-active-path > a {
  background: rgba(79, 70, 229, 0.1);
  color: #0f172a;
}


/* Active path highlighting in mega menu */
.mega-cat-item.is-active-path > a {
  background: rgba(102, 126, 234, 0.15);
  color: #fff;
  font-weight: 600;
}
html[data-theme="light"] .mega-cat-item.is-active-path > a {
  background: rgba(79, 70, 229, 0.1);
  color: #0f172a;
}

/* Drawer sub-accordion */

/* Drawer split row: label navigates, chevron toggles */
.drawer-sublink-row {
  display: flex;
  align-items: center;
}
.drawer-sublink-row .drawer-sublink-parent {
  flex: 1;
  min-width: 0;
}
.drawer-sub-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-inline-start: 4px;
  border: none;
  background: none;
  color: rgba(255,255,255,.35);
  cursor: pointer;
  border-radius: 8px;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.drawer-sub-toggle:hover {
  background: rgba(148,163,255,.1);
  color: rgba(255,255,255,.7);
}
.drawer-sub-toggle .acc-icon {
  font-size: 10px;
  transition: transform .25s;
}
.drawer-sub-accordion.is-open > .drawer-sublink-row .drawer-sub-toggle .acc-icon {
  transform: rotate(180deg);
}
html[data-theme="light"] .drawer-sub-toggle { color: rgba(15,23,42,.35); }
html[data-theme="light"] .drawer-sub-toggle:hover { background: rgba(79,70,229,.06); color: rgba(15,23,42,.6); }
.drawer-sub-accordion { margin-bottom: 2px; }
.drawer-sublink-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 14px 9px 44px;
  border-radius: 8px;
  border: none;
  background: none;
  color: rgba(255,255,255,.55);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s;
  font-family: inherit;
  text-align: start;
}
.drawer-sublink-btn span { flex: 1; }
.drawer-sublink-btn:hover { background: rgba(148,163,255,.06); color: rgba(255,255,255,.85); }
.drawer-sublink-btn .acc-icon { font-size: 10px; opacity: .4; transition: transform .25s; }
.drawer-sub-accordion.is-open .drawer-sublink-btn .acc-icon { transform: rotate(180deg); }
.drawer-sub-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.drawer-sub-accordion.is-open .drawer-sub-body { /* max-height set by JS */ }
html[data-theme="light"] .drawer-sublink-btn { color: rgba(15,23,42,.55); }
html[data-theme="light"] .drawer-sublink-btn:hover { background: rgba(79,70,229,.04); color: rgba(15,23,42,.8); }

@media (max-width: 860px) {
  .mega-menu { display: none !important; }
}

/* ================= MOBILE DRAWER ================= */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1101;
  width: min(88vw, 360px);
  background: rgba(7, 11, 22, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(148, 163, 255, 0.1);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(148, 163, 255, 0.08);
}
.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
}
.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(148,163,255,.15);
  background: rgba(148,163,255,.06);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.drawer-close:hover { background: rgba(244,63,94,.15); color: #fb7185; }

.drawer-body {
  flex: 1;
  padding: 12px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(255,255,255,.8);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.drawer-link:hover { background: rgba(148,163,255,.08); color: #fff; }
.drawer-link i { width: 20px; text-align: center; font-size: 15px; opacity: .6; }
.drawer-link-danger:hover { background: rgba(244,63,94,.1); color: #fb7185; }
.drawer-link-accent { background: rgba(102,126,234,.12); color: #b7c2ff; }
.drawer-link-accent:hover { background: rgba(102,126,234,.2); color: #fff; }
.drawer-divider { height: 1px; background: rgba(148,163,255,.08); margin: 8px 0; }

.drawer-accordion { margin-bottom: 2px; }
.drawer-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  background: none;
  color: rgba(255,255,255,.8);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
  font-family: inherit;
}
.drawer-accordion-btn span { display: flex; align-items: center; gap: 10px; }
.drawer-accordion-btn span i { width: 20px; text-align: center; font-size: 15px; opacity: .6; }
.drawer-accordion-btn:hover { background: rgba(148,163,255,.08); color: #fff; }
.acc-icon { font-size: 11px; opacity: .4; transition: transform .25s; }
.drawer-accordion.is-open > .drawer-accordion-btn .acc-icon { transform: rotate(180deg); }

.drawer-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.drawer-accordion.is-open .drawer-accordion-body {
  max-height: 600px;
}
.drawer-sublink {
  display: block;
  padding: 9px 14px 9px 44px;
  color: rgba(255,255,255,.5);
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.drawer-sublink:hover { background: rgba(148,163,255,.06); color: rgba(255,255,255,.85); }
.drawer-sublink-nested { padding-right: 58px; font-size: 13px; }
.drawer-sublink-all { color: #8fa4ff; font-weight: 600; margin-top: 4px; }
.drawer-sublink-all:hover { color: #b7c2ff; }

html[data-theme="light"] .mobile-drawer {
  background: rgba(255, 255, 255, 0.98);
  border-left-color: rgba(79,70,229,.08);
}
html[data-theme="light"] .drawer-brand { color: #0f172a; }
html[data-theme="light"] .drawer-close { border-color: rgba(79,70,229,.12); background: rgba(79,70,229,.04); color: #334155; }
html[data-theme="light"] .drawer-close:hover { background: rgba(244,63,94,.08); }
html[data-theme="light"] .drawer-link { color: rgba(15,23,42,.75); }
html[data-theme="light"] .drawer-link:hover { background: rgba(79,70,229,.05); color: #0f172a; }
html[data-theme="light"] .drawer-divider { background: rgba(79,70,229,.06); }
html[data-theme="light"] .drawer-accordion-btn { color: rgba(15,23,42,.75); }
html[data-theme="light"] .drawer-accordion-btn:hover { background: rgba(79,70,229,.05); color: #0f172a; }
html[data-theme="light"] .drawer-sublink { color: rgba(15,23,42,.5); }
html[data-theme="light"] .drawer-sublink:hover { background: rgba(79,70,229,.04); color: rgba(15,23,42,.8); }
html[data-theme="light"] .drawer-link-danger:hover { color: #dc2626; }

/* ================= TEMPLATE BADGES (backend-driven) ================= */
.card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 5;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  backdrop-filter: blur(10px);
}
.card-badge-new     { background: rgba(139,92,246,.85); color: #fff; }
.card-badge-popular { background: rgba(255,179,0,.85); color: #1a1a2e; }
.card-badge-featured{ background: rgba(102,126,234,.85); color: #fff; }
.card-badge-hot     { background: rgba(255,61,0,.85); color: #fff; }
.card-badge-discount{ background: rgba(239,68,68,.85); color: #fff; }
.card-badge-limited { background: rgba(34,197,94,.85); color: #fff; }


/* ============================================================
   2026 landing polish: clearer metrics + stable interactive cards
   ============================================================ */
.hero-stats {
  gap: 12px;
  max-width: 620px;
  padding-top: 0;
  border-top: 0;
}
.hero-stat {
  min-width: 0;
  padding: 16px 16px 14px;
  border: 1px solid rgba(148, 163, 255, .16);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(102,126,234,.10), rgba(14,165,233,.035)),
    rgba(15, 23, 42, .34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}
.hero-stat b {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: clamp(34px, 3.3vw, 46px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.035em;
}
.hero-stat > span {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 700;
}

.home-stats-section {
  padding-top: 4px;
  padding-bottom: 72px;
}
.stats-band {
  position: relative;
  overflow: hidden;
  padding: 14px;
  gap: 12px;
  border-radius: 28px;
  text-align: start;
  background:
    radial-gradient(440px 220px at 4% 0%, rgba(56,189,248,.14), transparent 70%),
    radial-gradient(520px 250px at 96% 100%, rgba(139,92,246,.16), transparent 72%),
    rgba(15, 23, 42, .62);
  box-shadow:
    0 24px 70px rgba(2, 6, 18, .24),
    inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(16px);
}
.stats-band .s {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 20px 17px;
  border: 1px solid rgba(148, 163, 255, .13);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(148,163,255,.025));
  transition: transform .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease);
}
.stats-band .s:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, .36);
  background: linear-gradient(145deg, rgba(99,102,241,.11), rgba(14,165,233,.045));
}
.stats-band .stat-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #dbeafe;
  font-size: 18px;
  background: linear-gradient(145deg, rgba(79,70,229,.85), rgba(14,165,233,.62));
  box-shadow: 0 10px 24px rgba(79,70,229,.2);
}
.stats-band .stat-copy {
  min-width: 0;
}
.stats-band .stat-copy b {
  display: block;
  color: var(--d-text);
  font-size: clamp(27px, 2.5vw, 36px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.03em;
}
.stats-band .stat-copy > span {
  display: block;
  margin-top: 5px;
  color: var(--d-text);
  font-size: 13px;
  font-weight: 800;
}
.stats-band .stat-copy small {
  display: block;
  margin-top: 4px;
  color: var(--d-muted);
  font-size: 10.5px;
  line-height: 1.65;
}

.feature-card {
  background:
    radial-gradient(240px 120px at 90% 0%, rgba(99,102,241,.10), transparent 72%),
    linear-gradient(160deg, rgba(148,163,255,.075), rgba(148,163,255,.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.feature-card:hover {
  border-color: rgba(99,102,241,.38);
  box-shadow: 0 22px 52px rgba(2,6,18,.32), inset 0 1px 0 rgba(255,255,255,.05);
}

/* Use CSS variables for tilt so every card shares the same stable transform.
   JS updates only the variables and keeps a fixed pointer geometry per hover. */
.tilt.in-view {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform:
    perspective(1000px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform .16s ease-out,
    border-color .35s var(--ease),
    box-shadow .35s var(--ease);
}
.tilt.in-view:hover {
  transform:
    perspective(1000px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translateY(-8px);
}
.tpl-card.tilt.in-view:hover {
  box-shadow: 0 28px 64px rgba(2, 6, 18, .42);
}

html[data-theme="light"] .hero-stat {
  background:
    linear-gradient(145deg, rgba(79,70,229,.065), rgba(14,165,233,.025)),
    rgba(255,255,255,.70);
  border-color: rgba(79,70,229,.13);
  box-shadow: 0 10px 28px rgba(30,41,82,.055), inset 0 1px 0 #fff;
}
html[data-theme="light"] .stats-band {
  background:
    radial-gradient(440px 220px at 4% 0%, rgba(56,189,248,.10), transparent 70%),
    radial-gradient(520px 250px at 96% 100%, rgba(139,92,246,.10), transparent 72%),
    rgba(255,255,255,.82);
  border-color: rgba(79,70,229,.12);
  box-shadow: 0 22px 58px rgba(30,41,82,.09), inset 0 1px 0 #fff;
}
html[data-theme="light"] .stats-band .s {
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(244,247,255,.82));
  border-color: rgba(79,70,229,.11);
}
html[data-theme="light"] .stats-band .s:hover {
  background: linear-gradient(145deg, #fff, rgba(238,242,255,.94));
  border-color: rgba(79,70,229,.28);
}
html[data-theme="light"] .stats-band .stat-copy b,
html[data-theme="light"] .stats-band .stat-copy > span {
  color: var(--l-text);
}
html[data-theme="light"] .stats-band .stat-copy small {
  color: var(--l-muted);
}

@media (max-width: 760px) {
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .hero-stat {
    padding: 13px 9px 12px;
    text-align: center;
  }
  .hero-stat b {
    justify-content: center;
    font-size: clamp(25px, 8vw, 34px);
  }
  .hero-stat > span {
    font-size: 10.5px;
  }
  .stats-band {
    grid-template-columns: 1fr 1fr;
    padding: 10px;
    gap: 9px;
  }
  .stats-band .s {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 15px 12px;
  }
  .stats-band .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    font-size: 15px;
  }
  .stats-band .stat-copy small {
    display: none;
  }
}
@media (max-width: 440px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .stats-band {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   2026-09 landing screenshot pass
   ============================================================ */

/* Keep the hero visually identical in light and dark themes. */
.hero-modern,
html[data-theme="light"] .hero-modern,
html[data-theme="dark"] .hero-modern {
  background:
    radial-gradient(760px 520px at 7% 82%, rgba(14,165,233,.34), transparent 72%),
    radial-gradient(680px 460px at 92% 10%, rgba(99,102,241,.30), transparent 70%),
    radial-gradient(520px 360px at 64% 72%, rgba(139,92,246,.14), transparent 74%),
    linear-gradient(118deg, rgba(239,246,255,.91) 0%, rgba(238,242,255,.82) 42%, rgba(219,234,254,.88) 100%),
    url('../images/backgrounds/bg-2.jpg') center / cover no-repeat !important;
  color: #0f172a;
}
.hero-modern .hero-bg-grid {
  background-image:
    linear-gradient(rgba(79,70,229,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,70,229,.075) 1px, transparent 1px);
  opacity: .72;
}
.hero-modern .hero-title { color: #111827; }
.hero-modern .hero-sub { color: #526079; }
.hero-modern .hero-closing-line { color: #1f2937; }
.hero-modern .hero-badge {
  color: #4f46e5;
  border-color: rgba(79,70,229,.28);
  background: rgba(255,255,255,.58);
  box-shadow: 0 10px 30px rgba(79,70,229,.08);
}
.hero-modern .hero-badge .dot {
  background: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56,189,248,.18);
}
.hero-modern .hero-visual .glass-panel {
  background: linear-gradient(160deg, rgba(255,255,255,.88), rgba(226,236,255,.74)) !important;
  border-color: rgba(79,70,229,.14) !important;
  box-shadow: 0 34px 80px rgba(30,64,175,.16), inset 0 1px 0 rgba(255,255,255,.9) !important;
}
.hero-modern .hero-visual .glass-panel .bar {
  background: rgba(79,70,229,.14) !important;
}
.hero-modern .hero-visual .glass-panel .mini-card:not(.hero-insight-card) {
  background: linear-gradient(135deg, #eef2ff, #dbeafe) !important;
  border-color: rgba(79,70,229,.12) !important;
}
.hero-modern .float-chip {
  background: rgba(255,255,255,.90) !important;
  border-color: rgba(79,70,229,.13) !important;
  color: #172033 !important;
  box-shadow: 0 14px 32px rgba(30,64,175,.13) !important;
}
.hero-modern .btn-ghost {
  color: #172033;
  border-color: rgba(79,70,229,.16);
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 28px rgba(30,41,82,.08);
}
.hero-modern .btn-ghost:hover {
  color: #4338ca;
  border-color: rgba(79,70,229,.34);
  background: #fff;
}

/* The old generic span rule shrank animated numbers to label size.
   Force counters to inherit the large metric typography. */
.hero-stat b {
  min-height: 58px;
  font-size: clamp(48px, 4.4vw, 64px) !important;
  line-height: .98;
  color: #111827 !important;
  font-variant-numeric: tabular-nums;
}
.hero-stat b .count-up {
  font: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  font-weight: 950 !important;
  letter-spacing: -.045em;
}
.hero-stat > span {
  margin-top: 10px;
  color: #5b6478 !important;
  font-size: 13px !important;
  font-weight: 800;
}
.hero-stat {
  min-height: 122px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(238,242,255,.72));
  border-color: rgba(79,70,229,.12);
  box-shadow:
    0 16px 42px rgba(30,41,82,.08),
    inset 0 1px 0 #fff;
}

/* Larger, readable mid-page metrics. */
.stats-band .stat-copy b {
  font-size: clamp(42px, 3.4vw, 54px) !important;
  line-height: .98;
  font-variant-numeric: tabular-nums;
}
.stats-band .stat-copy b .count-up {
  font: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  font-weight: 950 !important;
  letter-spacing: -.04em;
}
.stats-band .stat-copy > span {
  margin-top: 9px;
  font-size: 14px !important;
}
.stats-band .stat-copy small {
  margin-top: 7px;
  font-size: 11.5px;
}
.stats-band .s {
  min-height: 132px;
}

/* Feature cards should feel stable; no left/right 3D movement. */
.feature-card,
.feature-card:hover {
  transform: none !important;
}
.feature-card:hover {
  border-color: rgba(79,70,229,.30);
  background:
    radial-gradient(260px 140px at 92% 0%, rgba(99,102,241,.14), transparent 72%),
    linear-gradient(160deg, rgba(148,163,255,.09), rgba(148,163,255,.025));
  box-shadow: 0 18px 44px rgba(2,6,18,.18), inset 0 1px 0 rgba(255,255,255,.06);
}
.feature-card:hover .feature-icon {
  transform: translateY(-2px) !important;
}

/* City + Arcade landing introductions. */
.home-experiences-section {
  overflow: hidden;
  background:
    radial-gradient(680px 360px at 8% 20%, rgba(56,189,248,.10), transparent 72%),
    radial-gradient(620px 360px at 92% 80%, rgba(124,58,237,.10), transparent 72%),
    var(--d-bg);
}
.home-experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.home-experience-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 210px 1fr;
  border-radius: 30px;
  border: 1px solid rgba(148,163,255,.16);
  background: var(--d-surface);
  box-shadow: 0 26px 70px rgba(2,6,18,.14);
}
.experience-art {
  position: relative;
  overflow: hidden;
}
.city-art {
  background:
    radial-gradient(280px 160px at 78% 12%, rgba(255,255,255,.25), transparent 70%),
    linear-gradient(145deg, #0f4c81 0%, #1679ba 48%, #6dd5ed 100%);
}
.city-art::before {
  content: "";
  position: absolute;
  inset: 56% -10% -28% -10%;
  background:
    linear-gradient(30deg, transparent 47%, rgba(255,255,255,.18) 48%, rgba(255,255,255,.18) 52%, transparent 53%),
    linear-gradient(-30deg, transparent 47%, rgba(255,255,255,.15) 48%, rgba(255,255,255,.15) 52%, transparent 53%),
    #0b3154;
  transform: perspective(460px) rotateX(58deg);
  transform-origin: top;
}
.city-building {
  position: absolute;
  bottom: 36px;
  width: 58px;
  border-radius: 9px 9px 3px 3px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.18) 2px, transparent 2px) 0 0 / 14px 100%,
    linear-gradient(#dbeafe, #93c5fd);
  box-shadow: 0 14px 26px rgba(2,24,48,.18);
}
.city-building::after {
  content: "";
  position: absolute;
  inset: 11px 10px;
  background:
    repeating-linear-gradient(0deg, rgba(30,64,175,.42) 0 5px, transparent 5px 14px);
}
.city-building.b1 { right: 12%; height: 96px; }
.city-building.b2 { right: 28%; height: 132px; width: 68px; }
.city-building.b3 { left: 27%; height: 82px; }
.city-building.b4 { left: 10%; height: 112px; width: 64px; }
.city-road {
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: 56px;
  height: 142px;
  background: rgba(15,23,42,.54);
  transform: translateX(-50%) perspective(220px) rotateX(50deg);
}
.city-road::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  border-left: 3px dashed rgba(255,255,255,.68);
}
.city-pin {
  position: absolute;
  top: 26px;
  left: 28px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #075985;
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 28px rgba(2,24,48,.18);
}

.arcade-art {
  background:
    radial-gradient(250px 160px at 18% 24%, rgba(236,72,153,.26), transparent 72%),
    radial-gradient(260px 180px at 82% 24%, rgba(34,211,238,.24), transparent 72%),
    linear-gradient(145deg, #10072b 0%, #21104b 48%, #07172d 100%);
}
.arcade-art::before {
  content: "";
  position: absolute;
  inset: 40% -15% -30% -15%;
  background:
    linear-gradient(rgba(34,211,238,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.22) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: perspective(280px) rotateX(58deg);
  transform-origin: top;
  mask-image: linear-gradient(#000, transparent 88%);
}
.arcade-screen {
  position: absolute;
  inset: 34px 18% 28px 18%;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #e0f2fe;
  font-size: 62px;
  background:
    radial-gradient(circle at 50% 42%, rgba(34,211,238,.20), transparent 36%),
    rgba(10,7,31,.72);
  border: 1px solid rgba(103,232,249,.36);
  box-shadow:
    0 0 0 8px rgba(124,58,237,.08),
    0 0 60px rgba(34,211,238,.18),
    inset 0 0 42px rgba(124,58,237,.12);
}
.arcade-pixel {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  box-shadow: 0 0 18px currentColor;
}
.arcade-pixel.p1 { top: 24%; left: 17%; color: #22d3ee; background: currentColor; }
.arcade-pixel.p2 { top: 64%; right: 16%; color: #f472b6; background: currentColor; }
.arcade-pixel.p3 { bottom: 18%; left: 38%; color: #a78bfa; background: currentColor; }
.arcade-glow { position: absolute; width: 120px; height: 120px; border-radius: 50%; filter: blur(42px); opacity: .44; }
.arcade-glow.g1 { top: -20px; left: 5%; background: #ec4899; }
.arcade-glow.g2 { bottom: -34px; right: 7%; background: #22d3ee; }

.experience-copy {
  position: relative;
  z-index: 2;
  padding: 28px 30px 30px;
}
.experience-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--d-accent);
  font-size: 12px;
  font-weight: 900;
}
.experience-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(23px, 2.2vw, 31px);
  font-weight: 950;
  line-height: 1.45;
}
.experience-copy p {
  margin: 0 0 22px;
  color: var(--d-muted);
  font-size: 14px;
  line-height: 2;
}
.experience-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow: 0 12px 28px rgba(37,99,235,.22);
}
.arcade-btn {
  background: linear-gradient(135deg, #7c3aed, #db2777);
  box-shadow: 0 12px 28px rgba(124,58,237,.20);
}
.experience-note {
  color: var(--d-muted);
  font-size: 12px;
  font-weight: 700;
}

html[data-theme="light"] .home-experience-card {
  background: rgba(255,255,255,.94);
  border-color: rgba(79,70,229,.12);
  box-shadow: 0 26px 64px rgba(30,41,82,.09);
}

@media (max-width: 900px) {
  .home-experience-grid { grid-template-columns: 1fr; }
  .home-experience-card { min-height: 0; }
}
@media (max-width: 640px) {
  .hero-stat b {
    min-height: 42px;
    font-size: 38px !important;
  }
  .hero-stat { min-height: 96px; }
  .stats-band .stat-copy b { font-size: 38px !important; }
  .stats-band .s { min-height: 108px; }
  .experience-copy { padding: 24px 22px 26px; }
}


/* ============================================================
   2026-09 Landing v4 — proportional metrics, storefront rails,
   full Website City / Keystone Arcade feature heroes
   ============================================================ */

/* ---------- Hero proof strip: one clean data row, no overflow ---------- */
.hero-modern {
  padding-bottom: 54px;
}
.hero-proof-strip {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(79,70,229,.13);
  border-radius: 22px;
  background: rgba(255,255,255,.74);
  box-shadow:
    0 16px 44px rgba(30,64,175,.08),
    inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.hero-proof-item {
  position: relative;
  min-width: 0;
  min-height: 92px;
  padding: 17px 12px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-proof-item + .hero-proof-item::before {
  content: "";
  position: absolute;
  inset-block: 20px;
  inset-inline-start: 0;
  width: 1px;
  background: rgba(79,70,229,.10);
}
.hero-proof-item b {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  max-width: 100%;
  color: #111827;
  font-size: clamp(27px, 2.25vw, 34px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.035em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hero-proof-item b .count-up {
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
}
.hero-proof-item > span {
  margin-top: 8px;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.45;
  white-space: nowrap;
}
html[data-theme="dark"] .hero-proof-strip,
html[data-theme="light"] .hero-proof-strip {
  background: rgba(255,255,255,.74);
  border-color: rgba(79,70,229,.13);
}
html[data-theme="dark"] .hero-proof-item b,
html[data-theme="light"] .hero-proof-item b {
  color: #111827;
}
html[data-theme="dark"] .hero-proof-item > span,
html[data-theme="light"] .hero-proof-item > span {
  color: #64748b;
}

/* The old per-column hero stat rules are no longer part of the homepage. */
.hero-stats { display: none !important; }

/* ---------- Storefront shelves ---------- */
.template-shelves-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 6% 4%, rgba(99,102,241,.10), transparent 72%),
    radial-gradient(820px 420px at 94% 96%, rgba(14,165,233,.08), transparent 74%),
    var(--d-bg-2);
}
.template-shelf + .template-shelf {
  margin-top: 76px;
  padding-top: 68px;
  border-top: 1px solid var(--d-border);
}
.shelf-head {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.shelf-head > div {
  max-width: 760px;
}
.shelf-head h2 {
  margin: 13px 0 8px;
  font-size: clamp(28px, 3.2vw, 43px);
  font-weight: 950;
  line-height: 1.35;
  letter-spacing: -.025em;
}
.shelf-head p {
  margin: 0;
  color: var(--d-muted);
  font-size: 14px;
  line-height: 1.95;
}
.shelf-all-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 13px;
  color: var(--d-text);
  border: 1px solid var(--d-border);
  background: var(--d-surface);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 850;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, border-color .22s ease, color .22s ease;
}
.shelf-all-link:hover {
  color: var(--d-accent);
  border-color: rgba(99,102,241,.35);
  transform: translateY(-2px);
}
.rail-shell {
  position: relative;
}
.template-rail {
  direction: rtl;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 8px 4px 24px;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 4px;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.template-rail::-webkit-scrollbar { display: none; }

.tpl-card-rail {
  flex: 0 0 clamp(238px, 22vw, 284px);
  width: clamp(238px, 22vw, 284px);
  min-width: 0;
  scroll-snap-align: start;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(2,6,18,.10);
}
.tpl-card-rail .tpl-thumb {
  aspect-ratio: 16 / 10;
}
.tpl-card-rail .tpl-body {
  min-height: 122px;
  padding: 15px 16px 13px;
}
.tpl-card-rail .tpl-body h3 {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.55;
}
.tpl-card-rail .tpl-body p {
  min-height: 40px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 11.5px;
  line-height: 1.75;
}
.tpl-card-rail .tpl-rating {
  margin-top: 9px;
  gap: 6px;
}
.tpl-card-rail .tpl-foot {
  min-height: 46px;
  padding: 10px 16px 12px;
  font-size: 11px;
}
.tpl-card-rail .tpl-cat {
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tpl-card-rail .tpl-badge,
.tpl-card-rail .tpl-price {
  top: 10px;
  padding: 4px 9px;
  font-size: 9.5px;
}
.tpl-card-rail .tpl-badge { inset-inline-start: 10px; }
.tpl-card-rail .tpl-price { inset-inline-end: 10px; }
.tpl-card-rail .tpl-preview {
  padding: 8px 16px;
  font-size: 11px;
}
.tpl-empty-thumb {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.75);
  background: linear-gradient(135deg,#1d2850,#111a38);
  font-size: 32px;
  font-weight: 950;
}

/* Stable 3D hover remains only on template/product cards. */
.template-rail .tilt {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform .17s ease-out,
    border-color .28s ease,
    box-shadow .28s ease;
}
.template-rail .tilt:hover {
  transform:
    perspective(1000px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    translateY(-7px);
}
.template-rail .tpl-card:hover {
  border-color: rgba(99,102,241,.32);
  box-shadow: 0 24px 54px rgba(2,6,18,.24);
}

.rail-btn {
  position: absolute;
  z-index: 8;
  top: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--d-border);
  border-radius: 50%;
  color: var(--d-text);
  background: color-mix(in srgb, var(--d-surface) 90%, transparent);
  box-shadow: 0 12px 30px rgba(2,6,18,.15);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transform: translateY(-55%);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.rail-btn:hover {
  transform: translateY(-55%) scale(1.06);
  border-color: rgba(99,102,241,.40);
}
.rail-next { inset-inline-start: -17px; }
.rail-prev { inset-inline-end: -17px; }

/* Django shelf */
.django-shelf {
  position: relative;
}
.django-pill {
  color: #10b981 !important;
  border-color: rgba(16,185,129,.28) !important;
  background: rgba(16,185,129,.08) !important;
}
.django-rail-card {
  flex: 0 0 clamp(245px, 23vw, 292px);
  width: clamp(245px, 23vw, 292px);
  overflow: hidden;
  scroll-snap-align: start;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--d-border);
  border-radius: 19px;
  background: var(--d-surface);
  box-shadow: 0 12px 32px rgba(2,6,18,.10);
}
.django-rail-card:hover {
  color: inherit;
  border-color: rgba(16,185,129,.34);
  box-shadow: 0 24px 54px rgba(2,6,18,.22);
}
.django-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg,#0f3d2e,#102a3f);
}
.django-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.django-rail-card:hover .django-thumb img {
  transform: scale(1.06);
}
.django-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4,15,24,.34), transparent 55%);
  pointer-events: none;
}
.django-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  color: #d1fae5;
}
.django-placeholder span {
  font-size: 42px;
  font-weight: 950;
  line-height: 1;
}
.django-placeholder small {
  margin-top: 6px;
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 850;
}
.django-runtime-chip,
.django-badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 9.5px;
  font-weight: 850;
  backdrop-filter: blur(8px);
}
.django-runtime-chip {
  inset-inline-start: 10px;
  background: rgba(5,150,105,.90);
}
.django-badge {
  inset-inline-end: 10px;
  background: rgba(15,23,42,.78);
}
.django-body {
  padding: 16px 17px 15px;
}
.django-body h3 {
  margin: 0 0 7px;
  font-size: 15.5px;
  font-weight: 900;
  line-height: 1.55;
}
.django-body p {
  min-height: 42px;
  margin: 0 0 12px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--d-muted);
  font-size: 11.5px;
  line-height: 1.8;
}
.django-meta {
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--d-border);
  color: var(--d-muted);
  font-size: 10.5px;
}
.django-meta span:first-child {
  color: #10b981;
  font-weight: 800;
}
.shelf-empty {
  width: 100%;
  min-height: 190px;
  display: grid;
  place-items: center;
  color: var(--d-muted);
  border: 1px dashed var(--d-border);
  border-radius: 18px;
  background: var(--d-surface);
  font-size: 13px;
}

/* ---------- Full Website City / Arcade hero sections ---------- */
.experience-hero-section {
  position: relative;
  overflow: hidden;
  padding: 94px 0;
}
.city-hero-section {
  background:
    radial-gradient(760px 420px at 92% 10%, rgba(14,165,233,.14), transparent 72%),
    radial-gradient(620px 360px at 7% 88%, rgba(59,130,246,.08), transparent 72%),
    var(--d-bg);
}
.arcade-hero-section {
  background:
    radial-gradient(760px 420px at 8% 18%, rgba(217,70,239,.10), transparent 72%),
    radial-gradient(640px 380px at 92% 84%, rgba(34,211,238,.08), transparent 72%),
    var(--d-bg-2);
}
.experience-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
  align-items: center;
  gap: clamp(52px, 7vw, 92px);
}
.experience-hero-grid-reverse {
  direction: ltr;
}
.experience-hero-grid-reverse > * {
  direction: rtl;
}
.experience-hero-copy {
  max-width: 680px;
}
.experience-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid rgba(14,165,233,.25);
  border-radius: 999px;
  color: #0284c7;
  background: rgba(14,165,233,.08);
  font-size: 11.5px;
  font-weight: 900;
}
.arcade-experience-badge {
  color: #c026d3;
  border-color: rgba(192,38,211,.24);
  background: rgba(192,38,211,.08);
}
.experience-hero-copy h2 {
  margin: 18px 0 17px;
  max-width: 720px;
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 950;
  line-height: 1.34;
  letter-spacing: -.03em;
}
.experience-hero-copy p {
  margin: 0 0 13px;
  color: var(--d-muted);
  font-size: 14px;
  line-height: 2.05;
}
.experience-hero-copy .experience-lead {
  color: var(--d-text);
  font-size: 15.5px;
  font-weight: 650;
}
.arcade-gradient-text {
  background: linear-gradient(135deg,#c026d3,#7c3aed 52%,#0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.experience-feature-list {
  margin: 25px 0 27px;
  display: grid;
  gap: 11px;
}
.experience-feature-list span {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--d-text);
  font-size: 12.5px;
  font-weight: 800;
}
.experience-feature-list i {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #0284c7;
  background: rgba(14,165,233,.09);
}
.arcade-feature-list i {
  color: #c026d3;
  background: rgba(192,38,211,.09);
}
.experience-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.arcade-primary-btn {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg,#7c3aed,#c026d3) !important;
  box-shadow: 0 14px 34px rgba(124,58,237,.22);
}
.experience-hero-visual {
  position: relative;
  width: 100%;
  min-height: 470px;
  border: 1px solid rgba(148,163,255,.16);
  border-radius: 34px;
  box-shadow: 0 34px 86px rgba(2,6,18,.18);
  isolation: isolate;
}
.city-hero-visual {
  overflow: hidden;
  background:
    radial-gradient(420px 260px at 82% 8%, rgba(255,255,255,.30), transparent 72%),
    linear-gradient(145deg,#0b5f97 0%,#178bc0 46%,#78d9ef 100%);
}
.city-hero-visual::before {
  content: "";
  position: absolute;
  inset: 49% -10% -25%;
  z-index: -1;
  background:
    linear-gradient(30deg, transparent 47%, rgba(255,255,255,.15) 48%, rgba(255,255,255,.15) 52%, transparent 53%),
    linear-gradient(-30deg, transparent 47%, rgba(255,255,255,.13) 48%, rgba(255,255,255,.13) 52%, transparent 53%),
    #0a3150;
  background-size: 72px 72px;
  transform: perspective(520px) rotateX(57deg);
  transform-origin: top;
}
.city-sky-glow {
  position: absolute;
  top: -55px;
  right: -30px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.24);
  filter: blur(52px);
}
.city-platform {
  position: absolute;
  inset: 74px 46px 58px;
}
.city-tower,
.city-shop {
  position: absolute;
  bottom: 82px;
  display: grid;
  place-items: center;
  color: #0b4b75;
  border: 1px solid rgba(255,255,255,.52);
  background:
    linear-gradient(90deg, rgba(255,255,255,.26) 2px, transparent 2px) 0 0 / 15px 100%,
    linear-gradient(160deg,#effaff,#9fdcf5);
  box-shadow: 0 18px 34px rgba(3,37,64,.22);
}
.city-tower::after {
  content: "";
  position: absolute;
  inset: 12px 10px;
  background: repeating-linear-gradient(0deg, rgba(8,91,132,.33) 0 5px, transparent 5px 14px);
}
.city-tower.ct1 { right: 7%; width: 76px; height: 158px; border-radius: 13px 13px 4px 4px; }
.city-tower.ct2 { right: 31%; width: 66px; height: 112px; border-radius: 11px 11px 4px 4px; }
.city-tower.ct3 { left: 9%; width: 82px; height: 136px; border-radius: 13px 13px 4px 4px; }
.city-shop {
  z-index: 2;
  bottom: 44px;
  width: 102px;
  height: 74px;
  border-radius: 13px;
  font-size: 22px;
  background: linear-gradient(160deg,#fff,#c9effb);
}
.city-shop.cs1 { right: 47%; }
.city-shop.cs2 { left: 29%; }
.city-road-line {
  position: absolute;
  bottom: 6px;
  height: 42px;
  border-radius: 10px;
  background: rgba(7,42,67,.62);
}
.city-road-line::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 7%;
  left: 7%;
  border-top: 2px dashed rgba(255,255,255,.58);
}
.city-road-line.cr1 { right: 7%; left: 7%; }
.city-road-line.cr2 {
  width: 42px;
  height: 280px;
  bottom: -88px;
  left: 49%;
  transform: rotate(90deg);
  transform-origin: bottom;
}
.city-location {
  position: absolute;
  top: 17px;
  right: 39%;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #0369a1;
  background: rgba(255,255,255,.94);
  box-shadow: 0 15px 32px rgba(3,37,64,.20);
  font-size: 19px;
  animation: float-y 5s ease-in-out infinite;
}
.visual-float-card {
  position: absolute;
  z-index: 4;
  min-width: 150px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 14px;
  color: #0f2740;
  background: rgba(255,255,255,.90);
  box-shadow: 0 15px 34px rgba(3,37,64,.18);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 900;
}
.visual-float-card i {
  color: #2563eb;
}
.city-card-a { top: 30px; left: 26px; }
.city-card-b { right: 24px; bottom: 28px; }

/* Arcade visual */
.arcade-hero-visual {
  overflow: hidden;
  background:
    radial-gradient(340px 240px at 14% 12%, rgba(236,72,153,.27), transparent 72%),
    radial-gradient(360px 280px at 88% 84%, rgba(34,211,238,.22), transparent 72%),
    linear-gradient(145deg,#0b061d,#1b0b3d 54%,#071b2b);
}
.arcade-hero-visual::before {
  content: "";
  position: absolute;
  inset: 51% -18% -34%;
  background:
    linear-gradient(rgba(34,211,238,.23) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.23) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: perspective(330px) rotateX(59deg);
  transform-origin: top;
  mask-image: linear-gradient(#000, transparent 90%);
}
.arcade-neon-ring {
  position: absolute;
  border: 2px solid currentColor;
  border-radius: 50%;
  filter: drop-shadow(0 0 18px currentColor);
  opacity: .48;
}
.arcade-neon-ring.nr1 { width: 160px; height: 160px; top: -55px; right: -38px; color: #22d3ee; }
.arcade-neon-ring.nr2 { width: 210px; height: 210px; bottom: -90px; left: -58px; color: #ec4899; }
.arcade-cabinet {
  position: absolute;
  inset: 55px 25% 48px;
  min-width: 230px;
  border: 1px solid rgba(216,180,254,.36);
  border-radius: 28px 28px 20px 20px;
  background: linear-gradient(160deg,rgba(88,28,135,.76),rgba(15,23,42,.92));
  box-shadow:
    0 0 0 8px rgba(124,58,237,.08),
    0 26px 60px rgba(0,0,0,.36),
    0 0 65px rgba(34,211,238,.10);
}
.arcade-cabinet-screen {
  position: absolute;
  inset: 28px 22px 118px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(103,232,249,.32);
  border-radius: 18px;
  color: #dff9ff;
  background:
    radial-gradient(circle at 50% 46%, rgba(34,211,238,.18), transparent 38%),
    #090616;
  font-size: 65px;
  text-shadow: 0 0 26px rgba(34,211,238,.36);
}
.arcade-controls {
  position: absolute;
  right: 25px;
  bottom: 29px;
  left: 25px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 21px;
  border-top: 1px solid rgba(216,180,254,.18);
}
.arcade-controls span {
  width: 13px;
  height: 35px;
  border-radius: 8px 8px 4px 4px;
  background: #22d3ee;
  box-shadow: 0 0 17px rgba(34,211,238,.55);
}
.arcade-controls i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ec4899;
  box-shadow: 0 0 18px rgba(236,72,153,.50);
}
.arcade-controls i:last-child {
  background: #a78bfa;
  box-shadow: 0 0 18px rgba(167,139,250,.50);
}
.pixel-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  box-shadow: 0 0 15px currentColor;
}
.pixel-dot.pd1 { top: 22%; left: 17%; color: #22d3ee; background: currentColor; }
.pixel-dot.pd2 { top: 68%; right: 15%; color: #ec4899; background: currentColor; }
.pixel-dot.pd3 { bottom: 18%; left: 36%; color: #a78bfa; background: currentColor; }
.arcade-card-a { top: 28px; right: 20px; color: #e9d5ff; background: rgba(24,10,53,.88); border-color: rgba(216,180,254,.24); }
.arcade-card-b { left: 20px; bottom: 26px; color: #cffafe; background: rgba(6,25,38,.88); border-color: rgba(103,232,249,.22); }
.arcade-card-a i { color: #e879f9; }
.arcade-card-b i { color: #22d3ee; }

/* ---------- Light theme shelf refinements ---------- */
html[data-theme="light"] .template-shelves-section,
html[data-theme="light"] .arcade-hero-section {
  background:
    radial-gradient(900px 420px at 6% 4%, rgba(99,102,241,.07), transparent 72%),
    radial-gradient(820px 420px at 94% 96%, rgba(14,165,233,.06), transparent 74%),
    #f6f8fd;
}
html[data-theme="light"] .city-hero-section {
  background:
    radial-gradient(760px 420px at 92% 10%, rgba(14,165,233,.10), transparent 72%),
    radial-gradient(620px 360px at 7% 88%, rgba(59,130,246,.06), transparent 72%),
    #fff;
}
html[data-theme="light"] .tpl-card-rail,
html[data-theme="light"] .django-rail-card,
html[data-theme="light"] .shelf-all-link,
html[data-theme="light"] .shelf-empty {
  background: #fff;
  border-color: rgba(79,70,229,.11);
}
html[data-theme="light"] .rail-btn {
  color: #172033;
  background: rgba(255,255,255,.94);
  border-color: rgba(79,70,229,.12);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-proof-strip {
    grid-template-columns: repeat(5, minmax(118px, 1fr));
    overflow-x: auto;
  }
  .hero-proof-item {
    min-width: 118px;
  }
  .experience-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr);
    gap: 44px;
  }
}
@media (max-width: 900px) {
  .hero-proof-strip {
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
  }
  .hero-proof-item:nth-child(4),
  .hero-proof-item:nth-child(5) {
    border-top: 1px solid rgba(79,70,229,.10);
  }
  .hero-proof-item:nth-child(4) { grid-column: 1 / 2; }
  .hero-proof-item:nth-child(5) { grid-column: 2 / 4; }
  .hero-proof-item:nth-child(4)::before { display: none; }

  .shelf-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .rail-btn { display: none; }
  .template-rail {
    margin-inline: -20px;
    padding-inline: 20px;
    scroll-padding-inline: 20px;
  }
  .tpl-card-rail,
  .django-rail-card {
    flex-basis: min(76vw, 280px);
    width: min(76vw, 280px);
  }

  .experience-hero-section {
    padding: 72px 0;
  }
  .experience-hero-grid,
  .experience-hero-grid-reverse {
    direction: rtl;
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .experience-hero-grid-reverse > * { direction: rtl; }
  .experience-hero-copy {
    max-width: none;
  }
  .experience-hero-visual {
    min-height: 410px;
    max-width: 620px;
    margin-inline: auto;
  }
}
@media (max-width: 600px) {
  .hero-modern {
    padding-bottom: 38px;
  }
  .hero-proof-strip {
    margin-top: 25px;
    grid-template-columns: repeat(2, 1fr);
    border-radius: 18px;
  }
  .hero-proof-item {
    min-height: 78px;
    padding: 13px 8px;
  }
  .hero-proof-item:nth-child(n+3) {
    border-top: 1px solid rgba(79,70,229,.10);
  }
  .hero-proof-item:nth-child(4),
  .hero-proof-item:nth-child(5) {
    grid-column: auto;
  }
  .hero-proof-item:nth-child(odd)::before {
    display: none;
  }
  .hero-proof-item:last-child {
    grid-column: 1 / -1;
  }
  .hero-proof-item b {
    font-size: 26px;
  }
  .hero-proof-item > span {
    font-size: 10.5px;
  }

  .template-shelf + .template-shelf {
    margin-top: 54px;
    padding-top: 50px;
  }
  .shelf-head h2 {
    font-size: 29px;
  }
  .shelf-head p {
    font-size: 12.5px;
  }

  .experience-hero-section {
    padding: 60px 0;
  }
  .experience-hero-copy h2 {
    font-size: 34px;
  }
  .experience-hero-copy p {
    font-size: 13px;
  }
  .experience-hero-copy .experience-lead {
    font-size: 14px;
  }
  .experience-hero-visual {
    min-height: 345px;
    border-radius: 25px;
  }
  .city-platform {
    inset: 52px 22px 42px;
  }
  .city-tower.ct1 { width: 56px; height: 120px; }
  .city-tower.ct2 { width: 50px; height: 92px; }
  .city-tower.ct3 { width: 60px; height: 108px; }
  .city-shop { width: 76px; height: 58px; }
  .arcade-cabinet {
    inset: 40px 18% 38px;
    min-width: 0;
  }
  .visual-float-card {
    min-width: 0;
    font-size: 9.5px;
  }
}


/* 2026-09-22: keep the homepage hero stable on tablet/mobile widths. */
@media (max-width: 991.98px) {
  .hero-modern .hero-visual {
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
    padding: 10px 0 28px;
  }
  .hero-modern .hero-visual .glass-panel {
    width: 100%;
    overflow: visible;
  }

  /* A single column is intentional on compact desktop/tablet widths.
     Two narrow cards caused Persian copy to clip inside the fixed visual. */
  .hero-modern .glass-panel .row-mini {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .hero-modern .glass-panel .mini-card.hero-insight-card {
    width: 100%;
    min-width: 0;
    height: auto !important;
    min-height: 86px;
    padding: 11px 12px;
    overflow: visible !important;
    align-items: center;
  }
  .hero-modern .hero-insight-copy {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  .hero-modern .hero-insight-copy strong,
  .hero-modern .hero-insight-copy span {
    width: 100%;
    max-width: 100%;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
    overflow: visible !important;
  }
  .hero-modern .hero-insight-copy strong {
    font-size: 12.5px;
    line-height: 1.65;
  }
  .hero-modern .hero-insight-copy span {
    font-size: 10.5px;
    line-height: 1.75;
  }
  .hero-modern .float-chip {
    max-width: calc(100% - 24px);
    padding: 10px 13px;
    font-size: 12px;
    line-height: 1.45;
  }
  .hero-modern .float-chip.c1 {
    top: -18px;
    inset-inline-end: 12px;
  }
  .hero-modern .float-chip.c2 {
    bottom: -14px;
    inset-inline-start: 12px;
  }
}

@media (max-width: 575.98px) {
  .hero-modern .hero-visual {
    padding: 0;
    margin-top: 12px;
  }
  .hero-modern .hero-visual .glass-panel {
    padding: 18px 14px 20px;
  }
  .hero-modern .glass-panel .row-mini {
    grid-template-columns: 1fr !important;
    gap: 9px;
  }
  .hero-modern .glass-panel .mini-card.hero-insight-card {
    min-height: 78px;
    padding: 10px;
  }
  .hero-modern .hero-insight-card img,
  .hero-modern .hero-insight-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 14px;
  }
  .hero-modern .float-chip,
  .hero-modern .float-chip.c1,
  .hero-modern .float-chip.c2 {
    position: static !important;
    inset: auto !important;
    width: 100%;
    max-width: 100%;
    margin-top: 9px;
    justify-content: center;
    text-align: center;
    transform: none !important;
    animation: none !important;
  }
}

/* Liquid-glass layer for the lower landing-page content. */
.feature-showcase {
  overflow: hidden;
  background:
    radial-gradient(700px 380px at 12% 16%, rgba(99,102,241,.10), transparent 70%),
    radial-gradient(620px 360px at 88% 78%, rgba(14,165,233,.09), transparent 72%);
}
.feature-showcase .feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.feature-showcase .feature-card,
.steps .step-card {
  background:
    radial-gradient(180px 120px at 12% 2%, rgba(255,255,255,.66), transparent 72%),
    linear-gradient(145deg, rgba(255,255,255,.68), rgba(238,244,255,.45));
  border: 1px solid rgba(255,255,255,.72);
  box-shadow:
    0 18px 52px rgba(30,64,175,.10),
    inset 0 1px 0 rgba(255,255,255,.92),
    inset 0 -1px 0 rgba(99,102,241,.08);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}
.feature-showcase .feature-card::after,
.steps .step-card::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 72px;
  top: -38px;
  inset-inline-start: -24px;
  border-radius: 50%;
  background: rgba(255,255,255,.48);
  filter: blur(22px);
  opacity: .72;
  pointer-events: none;
}
.feature-showcase .feature-card > *,
.steps .step-card > * {
  position: relative;
  z-index: 1;
}
.feature-showcase .feature-card:hover,
.steps .step-card:hover {
  border-color: rgba(129,140,248,.34);
  box-shadow:
    0 24px 62px rgba(30,64,175,.15),
    inset 0 1px 0 rgba(255,255,255,.96);
}
.feature-showcase .feature-icon {
  background: linear-gradient(145deg, rgba(79,70,229,.92), rgba(37,99,235,.82));
  border: 1px solid rgba(255,255,255,.34);
  box-shadow:
    0 12px 28px rgba(79,70,229,.23),
    inset 0 1px 0 rgba(255,255,255,.34);
}
.feature-showcase .feature-icon i {
  font-size: 22px;
}

html[data-theme="dark"] .feature-showcase .feature-card,
html[data-theme="dark"] .steps .step-card {
  background:
    radial-gradient(180px 120px at 12% 2%, rgba(129,140,248,.13), transparent 72%),
    linear-gradient(145deg, rgba(20,30,58,.72), rgba(12,22,43,.58));
  border-color: rgba(148,163,255,.16);
  box-shadow:
    0 22px 58px rgba(2,6,18,.30),
    inset 0 1px 0 rgba(255,255,255,.05);
}
html[data-theme="dark"] .feature-showcase .feature-card::after,
html[data-theme="dark"] .steps .step-card::after {
  background: rgba(129,140,248,.12);
}

@media (max-width: 1199.98px) {
  .feature-showcase .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .feature-showcase .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-showcase .feature-card {
    padding: 22px 20px;
  }
}


/* 2026-09-22: hosted-domain marquee + consistent white feature glyphs. */
.feature-showcase .feature-icon,
.feature-showcase .feature-icon i {
  color: #fff !important;
}
.feature-showcase .feature-icon .ks-local-icon {
  fill: #fff !important;
  stroke: #fff !important;
  color: #fff !important;
  filter: brightness(0) invert(1);
}
.domain-marquee .domain-marquee-item {
  direction: ltr;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 18px;
  line-height: 18px;
  text-decoration: none;
  color: rgba(255,255,255,.98);
  font-weight: 850;
  letter-spacing: .01em;
}
.domain-marquee .domain-marquee-item:hover {
  color: #fff;
  opacity: 1;
}
.domain-marquee .domain-marquee-item i {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  line-height: 16px !important;
  vertical-align: middle;
  color: #fff !important;
  transform: none !important;
}
.domain-marquee .domain-marquee-item i::before {
  display: block;
  line-height: 16px;
}
.domain-marquee .domain-marquee-item span {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  line-height: 16px;
}


/* 2026-09-22: hero growth launch board */
.hero-modern .hero-growth-panel {
  padding: 22px;
  background:
    radial-gradient(380px 220px at 85% 0%, rgba(99,102,241,.18), transparent 72%),
    radial-gradient(320px 220px at 5% 100%, rgba(14,165,233,.12), transparent 72%),
    linear-gradient(155deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
}
.growth-launch-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(148,163,255,.18);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(18,31,67,.92), rgba(13,26,57,.84));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 18px 38px rgba(2,8,23,.22);
  overflow: hidden;
}
.growth-launch-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 110px;
  top: -56px;
  inset-inline-end: -40px;
  border-radius: 50%;
  background: rgba(99,102,241,.20);
  filter: blur(22px);
  pointer-events: none;
}
.growth-launch-head,
.growth-launch-title,
.growth-launch-preview,
.growth-status-grid,
.growth-status-grid > span {
  position: relative;
  z-index: 1;
}
.growth-launch-head,
.growth-launch-title,
.growth-launch-preview {
  display: flex;
  align-items: center;
}
.growth-launch-head {
  justify-content: space-between;
  gap: 12px;
}
.growth-launch-title {
  gap: 10px;
  min-width: 0;
}
.growth-launch-logo,
.growth-preview-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(145deg, #6366f1, #0ea5e9);
  box-shadow: 0 10px 24px rgba(59,130,246,.22);
}
.growth-launch-logo {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 18px;
  line-height: 1;
  overflow: hidden;
}
.growth-launch-logo i {
  display: block;
  line-height: 1;
  margin: 0;
  transform: translateY(0);
}
.growth-launch-title > div {
  min-width: 0;
}
.growth-launch-title strong,
.growth-launch-title span,
.growth-preview-copy strong,
.growth-preview-copy span {
  display: block;
}
.growth-launch-title strong {
  color: #f8fbff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.55;
}
.growth-launch-title span {
  color: #9fb1ce;
  font-size: 9.5px;
  line-height: 1.6;
}
.growth-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(34,197,94,.10);
  border: 1px solid rgba(34,197,94,.22);
  font-size: 9px;
  font-weight: 850;
}
.growth-live-badge i {
  font-size: 6px;
  color: #22c55e;
}
.growth-launch-preview {
  min-height: 100px;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(200px 100px at 90% 30%, rgba(56,189,248,.18), transparent 70%),
    linear-gradient(145deg, rgba(80,70,229,.18), rgba(12,25,55,.64));
  border: 1px solid rgba(129,140,248,.18);
}
.growth-preview-copy {
  min-width: 0;
}
.growth-preview-copy span {
  color: #a6bad8;
  font-size: 9.5px;
  margin-bottom: 5px;
}
.growth-preview-copy strong {
  color: #f8fbff;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.55;
}
.growth-preview-icon {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  font-size: 23px;
}
.growth-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.growth-status-grid > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon meta";
  column-gap: 7px;
  align-items: center;
  padding: 9px 8px;
  border-radius: 13px;
  background: rgba(148,163,255,.07);
  border: 1px solid rgba(148,163,255,.12);
}
.growth-status-grid i {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: #c7d2fe;
  background: rgba(99,102,241,.18);
  font-size: 10px;
}
.growth-status-grid b {
  grid-area: title;
  color: #eef4ff;
  font-size: 9px;
  line-height: 1.3;
  white-space: nowrap;
}
.growth-status-grid small {
  grid-area: meta;
  color: #8fa4c3;
  font-size: 7.5px;
  line-height: 1.3;
  white-space: nowrap;
}

html[data-theme="light"] .growth-launch-card {
  background:
    radial-gradient(220px 120px at 85% 0%, rgba(99,102,241,.10), transparent 72%),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(236,243,255,.92));
  border-color: rgba(79,70,229,.15);
  box-shadow:
    inset 0 1px 0 #fff,
    0 16px 34px rgba(30,64,175,.10);
}
html[data-theme="light"] .growth-launch-title strong,
html[data-theme="light"] .growth-preview-copy strong,
html[data-theme="light"] .growth-status-grid b {
  color: #172033;
}
html[data-theme="light"] .growth-launch-title span,
html[data-theme="light"] .growth-preview-copy span,
html[data-theme="light"] .growth-status-grid small {
  color: #60718a;
}
html[data-theme="light"] .growth-launch-preview {
  background:
    radial-gradient(200px 100px at 90% 30%, rgba(56,189,248,.12), transparent 70%),
    linear-gradient(145deg, rgba(99,102,241,.08), rgba(238,246,255,.94));
  border-color: rgba(79,70,229,.12);
}
html[data-theme="light"] .growth-status-grid > span {
  background: rgba(255,255,255,.72);
  border-color: rgba(79,70,229,.10);
}
html[data-theme="light"] .growth-status-grid i {
  color: #4338ca;
  background: rgba(99,102,241,.10);
}

/* Both insight cards intentionally use the same icon container. */
.hero-modern .hero-insight-card .hero-insight-icon {
  color: #fff;
  background: linear-gradient(145deg, rgba(79,70,229,.92), rgba(14,165,233,.82));
  border-color: rgba(255,255,255,.22);
}
html[data-theme="light"] .hero-modern .hero-insight-card .hero-insight-icon {
  color: #fff;
  background: linear-gradient(145deg, #6366f1, #0ea5e9);
}

@media (max-width: 991.98px) {
  .hero-modern .hero-growth-panel {
    padding: 16px;
  }
  .growth-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575.98px) {
  .growth-launch-head {
    align-items: flex-start;
  }
  .growth-launch-preview {
    min-height: 86px;
    padding: 14px;
  }
  .growth-preview-copy strong {
    font-size: 13px;
  }
  .growth-preview-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 19px;
  }
  .growth-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* 2026-09-22: Azmabegir dark hero + mobile navbar/hero polish. */
.growth-launch-logo .growth-site-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: 0;
  display: block;
  color: #fff;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

/* Keep the same hero composition in dark mode, but make the palette black + blue. */
html[data-theme="dark"] .hero-modern {
  background:
    radial-gradient(760px 520px at 7% 82%, rgba(14,165,233,.22), transparent 72%),
    radial-gradient(680px 460px at 92% 10%, rgba(99,102,241,.20), transparent 70%),
    radial-gradient(520px 360px at 64% 72%, rgba(139,92,246,.10), transparent 74%),
    linear-gradient(118deg, rgba(2,6,23,.82) 0%, rgba(5,14,32,.78) 42%, rgba(7,19,43,.80) 100%),
    url('../images/backgrounds/bg-2.jpg') center / cover no-repeat !important;
}
html[data-theme="dark"] .hero-modern .hero-bg-grid {
  background-image:
    linear-gradient(rgba(96,165,250,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,.075) 1px, transparent 1px);
}
html[data-theme="dark"] .hero-modern .hero-orb.o1 { background: #1d4ed8; opacity: .42; }
html[data-theme="dark"] .hero-modern .hero-orb.o2 { background: #0284c7; opacity: .34; }
html[data-theme="dark"] .hero-modern .hero-orb.o3 { background: #38bdf8; opacity: .20; }
html[data-theme="dark"] .hero-modern .hero-growth-panel {
  background:
    radial-gradient(360px 220px at 86% 4%, rgba(37,99,235,.17), transparent 72%),
    radial-gradient(300px 220px at 5% 100%, rgba(14,165,233,.10), transparent 72%),
    linear-gradient(155deg, rgba(4,12,28,.90), rgba(2,8,23,.72));
  border-color: rgba(96,165,250,.16);
  box-shadow: 0 34px 80px rgba(0,0,0,.48);
}
html[data-theme="dark"] .growth-launch-card {
  background:
    radial-gradient(220px 120px at 88% 0%, rgba(37,99,235,.13), transparent 72%),
    linear-gradient(145deg, rgba(5,17,39,.98), rgba(3,12,30,.94));
  border-color: rgba(96,165,250,.16);
}
html[data-theme="dark"] .growth-launch-preview {
  background:
    radial-gradient(210px 120px at 88% 24%, rgba(14,165,233,.15), transparent 70%),
    linear-gradient(145deg, rgba(29,78,216,.13), rgba(2,12,30,.78));
  border-color: rgba(96,165,250,.14);
}
html[data-theme="dark"] .growth-status-grid > span {
  background: rgba(15,38,75,.34);
  border-color: rgba(96,165,250,.11);
}
html[data-theme="dark"] .hero-modern .hero-title {
  color: #f8fafc !important;
}
html[data-theme="dark"] .hero-modern .hero-sub {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .hero-modern .hero-closing-line {
  color: #e2e8f0 !important;
}

/* Persian mobile navbar: Azmabegir on the left, equal controls on the right. */
@media (max-width: 860px) {
  .nav-fa .nav-inner {
    direction: ltr;
    gap: 10px;
    min-height: 48px;
  }
  .nav-fa .nav-brand {
    order: 1;
    direction: ltr;
    margin: 0 auto 0 0;
    gap: 7px;
    flex: 0 1 auto;
    min-width: 0;
  }
  .nav-fa .nav-brand img {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }
  .nav-fa .keystoneseller-wordmark {
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
  }
  .nav-fa .nav-actions {
    order: 2;
    direction: ltr;
    margin: 0;
    gap: 8px;
    flex: 0 0 auto;
  }
  .nav-fa .nav-actions .nav-greeting,
  .nav-fa .nav-actions .lang-switcher,
  .nav-fa .nav-actions .hide-sm {
    display: none !important;
  }
  .nav-fa .theme-toggle,
  .nav-fa .nav-burger {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    margin: 0;
    border-radius: 12px;
    line-height: 1;
    box-sizing: border-box;
  }
  .nav-fa .theme-toggle > span,
  .nav-fa .nav-burger > i {
    margin: 0;
    line-height: 1;
  }
}

/* Mobile hero visual: keep the message, remove floating clutter and reduce vertical height. */
@media (max-width: 575.98px) {
  .hero-modern .hero-visual {
    margin-top: 18px;
  }
  .hero-modern .hero-growth-panel {
    padding: 11px !important;
    border-radius: 22px;
  }
  .hero-modern .hero-visual .glass-panel {
    animation: none;
    box-shadow: 0 22px 52px rgba(2,6,23,.20);
  }
  .hero-modern .growth-launch-card {
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }
  .hero-modern .growth-launch-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .hero-modern .growth-launch-logo .growth-site-icon {
    width: 22px;
    height: 22px;
  }
  .hero-modern .growth-launch-title strong {
    font-size: 12px;
  }
  .hero-modern .growth-launch-title span {
    font-size: 8.5px;
  }
  .hero-modern .growth-live-badge {
    padding: 6px 8px;
    font-size: 8px;
  }
  .hero-modern .growth-launch-preview {
    min-height: 78px;
    padding: 12px 13px;
    border-radius: 15px;
  }
  .hero-modern .growth-preview-copy span {
    font-size: 8.5px;
  }
  .hero-modern .growth-preview-copy strong {
    font-size: 12.5px;
  }
  .hero-modern .growth-preview-icon {
    width: 43px;
    height: 43px;
    border-radius: 13px;
    font-size: 18px;
  }
  .hero-modern .growth-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .hero-modern .growth-status-grid > span {
    padding: 8px;
  }
  .hero-modern .hero-growth-panel .row-mini,
  .hero-modern .float-chip {
    display: none !important;
  }
}


/* 2026-09-22: final dark hero surface corrections. */
html[data-theme="dark"] .hero-modern .hero-badge {
  color: #bfdbfe !important;
  background: rgba(7,25,54,.88) !important;
  border-color: rgba(56,189,248,.26) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 28px rgba(0,0,0,.18) !important;
}
html[data-theme="dark"] .hero-modern .hero-visual .glass-panel,
html[data-theme="dark"] .hero-modern .hero-growth-panel {
  background:
    radial-gradient(360px 220px at 86% 4%, rgba(37,99,235,.16), transparent 72%),
    radial-gradient(300px 220px at 5% 100%, rgba(14,165,233,.09), transparent 72%),
    linear-gradient(155deg, rgba(4,12,28,.96), rgba(2,8,23,.90)) !important;
  border-color: rgba(96,165,250,.18) !important;
  box-shadow: 0 34px 80px rgba(0,0,0,.48), inset 0 1px 0 rgba(148,163,255,.05) !important;
}
html[data-theme="dark"] .hero-modern .float-chip {
  color: #eaf2ff !important;
  background: rgba(5,20,45,.94) !important;
  border-color: rgba(96,165,250,.20) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.28) !important;
}
html[data-theme="dark"] .hero-modern .btn-ghost {
  color: #eaf2ff !important;
  background: rgba(7,24,52,.92) !important;
  border-color: rgba(96,165,250,.22) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.20) !important;
}
html[data-theme="dark"] .hero-modern .btn-ghost:hover {
  color: #fff !important;
  background: rgba(14,50,96,.96) !important;
  border-color: rgba(56,189,248,.40) !important;
}
html[data-theme="dark"] .hero-proof-strip {
  background:
    linear-gradient(145deg, rgba(7,24,52,.94), rgba(3,14,34,.92)) !important;
  border-color: rgba(96,165,250,.18) !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.04) !important;
}
html[data-theme="dark"] .hero-proof-item b {
  color: #f8fafc !important;
}
html[data-theme="dark"] .hero-proof-item > span {
  color: #93a9c7 !important;
}
html[data-theme="dark"] .hero-proof-item + .hero-proof-item::before {
  background: rgba(96,165,250,.13) !important;
}
html[data-theme="dark"] .hero-modern .hero-insight-card {
  background: linear-gradient(145deg, rgba(10,34,69,.92), rgba(5,21,47,.94)) !important;
  border-color: rgba(96,165,250,.14) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
}


/* 2026-09-25: hero liquid-glass + 3D hover polish. */
.hero-modern .hero-visual {
  perspective: 1100px;
}
.hero-modern .hero-growth-panel {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(420px 240px at 86% 2%, rgba(96,165,250,.18), transparent 72%),
    radial-gradient(320px 220px at 4% 100%, rgba(14,165,233,.11), transparent 72%),
    linear-gradient(155deg, rgba(255,255,255,.15), rgba(255,255,255,.055)) !important;
  border-color: rgba(255,255,255,.24) !important;
  box-shadow:
    0 34px 82px rgba(2,8,23,.32),
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -1px 0 rgba(96,165,250,.08) !important;
  backdrop-filter: blur(26px) saturate(165%);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
}
.hero-modern .hero-growth-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(255,255,255,.18), transparent 28%, transparent 68%, rgba(125,211,252,.08));
  opacity: .72;
}
.hero-modern .hero-growth-panel > * {
  position: relative;
  z-index: 1;
}
.hero-modern .growth-launch-card {
  background:
    radial-gradient(230px 125px at 88% 0%, rgba(96,165,250,.14), transparent 72%),
    linear-gradient(145deg, rgba(15,31,68,.68), rgba(8,22,50,.56)) !important;
  border-color: rgba(148,197,255,.18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    0 18px 42px rgba(2,8,23,.22) !important;
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
.hero-modern .growth-launch-logo {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  background:
    linear-gradient(145deg, rgba(99,102,241,.76), rgba(14,165,233,.58)) !important;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow:
    0 10px 26px rgba(37,99,235,.22),
    inset 0 1px 0 rgba(255,255,255,.24);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}
.hero-modern .growth-launch-logo > i {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 20px;
  line-height: 1 !important;
  color: #fff;
  transform: none !important;
  filter: drop-shadow(0 3px 8px rgba(2,8,23,.22));
}
.hero-modern .glass-panel .mini-card.hero-insight-card {
  animation: none !important;
  transform: none !important;
  transform-style: flat;
  will-change: auto;
  background:
    radial-gradient(180px 100px at 12% 0%, rgba(96,165,250,.14), transparent 70%),
    linear-gradient(145deg, rgba(17,39,78,.58), rgba(8,24,55,.50)) !important;
  border-color: rgba(148,197,255,.16) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 12px 30px rgba(2,8,23,.18) !important;
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  transition: none !important;
}
.hero-modern .hero-insight-card .hero-insight-icon,
.hero-modern .hero-insight-card .hero-insight-copy {
  transform: none !important;
  transition: none !important;
}
.hero-modern .float-chip {
  background: rgba(8,27,58,.46) !important;
  border-color: rgba(148,197,255,.18) !important;
  box-shadow:
    0 14px 34px rgba(2,8,23,.22),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
  backdrop-filter: blur(20px) saturate(155%);
  -webkit-backdrop-filter: blur(20px) saturate(155%);
}
.hero-modern .hero-ctas .btn-modern {
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    0 12px 34px rgba(30,64,175,.20),
    inset 0 1px 0 rgba(255,255,255,.20);
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
}
.hero-modern .hero-ctas .btn-gradient {
  background:
    linear-gradient(135deg, rgba(99,102,241,.82), rgba(14,165,233,.66)) !important;
}
.hero-modern .hero-ctas .btn-ghost {
  color: #eaf2ff !important;
  background: rgba(8,27,58,.34) !important;
  border-color: rgba(148,197,255,.20) !important;
}
.hero-modern .hero-ctas .btn-ghost:hover {
  color: #fff !important;
  background: rgba(20,63,116,.46) !important;
  border-color: rgba(186,230,253,.24) !important;
}
.hero-modern .hero-proof-strip {
  background:
    linear-gradient(145deg, rgba(12,32,68,.40), rgba(5,20,46,.30)) !important;
  border-color: rgba(148,197,255,.18) !important;
  box-shadow:
    0 18px 48px rgba(2,8,23,.22),
    inset 0 1px 0 rgba(255,255,255,.09) !important;
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
}
html[data-theme="dark"] .hero-modern .hero-visual .glass-panel,
html[data-theme="dark"] .hero-modern .hero-growth-panel {
  background:
    radial-gradient(420px 240px at 86% 2%, rgba(37,99,235,.20), transparent 72%),
    radial-gradient(320px 220px at 4% 100%, rgba(14,165,233,.12), transparent 72%),
    linear-gradient(155deg, rgba(5,18,42,.58), rgba(2,10,27,.42)) !important;
  border-color: rgba(125,211,252,.20) !important;
}
html[data-theme="dark"] .hero-modern .hero-insight-card {
  background:
    radial-gradient(180px 100px at 12% 0%, rgba(37,99,235,.14), transparent 70%),
    linear-gradient(145deg, rgba(8,31,67,.58), rgba(4,19,43,.48)) !important;
  border-color: rgba(125,211,252,.15) !important;
}
html[data-theme="dark"] .hero-proof-strip {
  background:
    linear-gradient(145deg, rgba(7,28,61,.44), rgba(2,15,36,.34)) !important;
  border-color: rgba(125,211,252,.17) !important;
}
html[data-theme="light"] .hero-modern .hero-growth-panel {
  background:
    radial-gradient(420px 240px at 86% 2%, rgba(99,102,241,.10), transparent 72%),
    linear-gradient(155deg, rgba(255,255,255,.56), rgba(239,246,255,.34)) !important;
  border-color: rgba(255,255,255,.70) !important;
  box-shadow:
    0 30px 74px rgba(30,64,175,.13),
    inset 0 1px 0 rgba(255,255,255,.92) !important;
}
html[data-theme="light"] .hero-modern .glass-panel .mini-card.hero-insight-card {
  background:
    radial-gradient(180px 100px at 12% 0%, rgba(255,255,255,.78), transparent 70%),
    linear-gradient(145deg, rgba(255,255,255,.58), rgba(225,238,255,.46)) !important;
  border-color: rgba(255,255,255,.72) !important;
}
html[data-theme="light"] .hero-modern .hero-ctas .btn-ghost {
  color: #172033 !important;
  background: rgba(255,255,255,.46) !important;
  border-color: rgba(255,255,255,.72) !important;
}
html[data-theme="light"] .hero-modern .hero-proof-strip {
  background: rgba(255,255,255,.48) !important;
  border-color: rgba(255,255,255,.72) !important;
}
@media (prefers-reduced-motion: reduce) {
  .hero-modern .glass-panel .mini-card.hero-insight-card,
  .hero-modern .hero-insight-card .hero-insight-icon,
  .hero-modern .hero-insight-card .hero-insight-copy {
    transition: none !important;
    transform: none !important;
  }
}


/* 2026-09-25: stronger template rail hover. */
@media (hover:hover) and (pointer:fine) {
  .template-rail .tilt:hover {
    transform:
      perspective(1000px)
      rotateX(var(--tilt-x))
      rotateY(var(--tilt-y))
      translateY(-11px)
      scale(1.015);
  }
  .template-rail .tpl-card:hover {
    border-color: color-mix(in srgb,var(--d-accent) 54%,var(--d-border));
    box-shadow:
      0 30px 68px rgba(2,6,18,.30),
      0 10px 28px color-mix(in srgb,var(--d-accent-2) 16%,transparent);
  }
  .template-rail .tpl-card:hover .tpl-thumb img.active {
    transform: scale(1.145);
  }
  html[data-theme="light"] .template-rail .tpl-card:hover {
    border-color: color-mix(in srgb,var(--d-accent) 46%,var(--l-border));
    box-shadow:
      0 28px 62px rgba(68,55,155,.16),
      0 10px 28px rgba(95,125,242,.11);
  }
}


/* 2026-09-25: deeper pointer-reactive template hover. */
@media (hover:hover) and (pointer:fine) {
  .template-rail .tilt {
    position:relative;
    isolation:isolate;
  }
  .template-rail .tilt:hover {
    transform:
      perspective(820px)
      rotateX(var(--tilt-x))
      rotateY(var(--tilt-y))
      translateY(-14px)
      scale(1.025);
  }
  .template-rail .tpl-card:hover {
    border-color:color-mix(in srgb,var(--d-accent) 60%,var(--d-border));
    box-shadow:
      0 36px 78px rgba(2,6,18,.34),
      0 16px 36px color-mix(in srgb,var(--d-accent-2) 20%,transparent);
  }
  .template-rail .tpl-card:hover .tpl-thumb img.active {
    transform:scale(1.16);
  }
  html[data-theme="light"] .template-rail .tpl-card:hover {
    box-shadow:
      0 34px 74px rgba(68,55,155,.19),
      0 14px 34px rgba(95,125,242,.14);
  }
}


/* 2026-09-26 mobile drawer v20: stable nested categories */
@media (max-width: 1220px) {
  .mobile-drawer .drawer-accordion-body,
  .mobile-drawer .drawer-sub-body {
    max-height:none !important;
    overflow:visible !important;
    transition:none !important;
  }

  .mobile-drawer .drawer-accordion-body {
    display:none;
    padding:4px 0 7px;
  }

  .mobile-drawer .drawer-accordion.is-open > .drawer-accordion-body {
    display:block;
  }

  .mobile-drawer .drawer-sub-accordion {
    position:relative;
    width:100%;
    margin:1px 0;
  }

  .mobile-drawer .drawer-sublink-row {
    position:relative;
    width:100%;
    display:flex;
    align-items:center;
    gap:4px;
  }

  .mobile-drawer .drawer-sublink-row > .drawer-sublink-parent {
    flex:1 1 auto;
    width:auto;
    min-width:0;
    margin:0;
  }

  .mobile-drawer .drawer-sub-toggle {
    width:38px;
    min-width:38px;
    height:38px;
    margin-inline-start:0;
    border-radius:10px;
  }

  .mobile-drawer .drawer-sub-body {
    display:none;
    position:static !important;
    width:100%;
    margin:2px 0 4px;
    padding-inline-start:10px;
    border-inline-start:1px solid rgba(148,163,255,.12);
  }

  .mobile-drawer .drawer-sub-accordion.is-open > .drawer-sub-body {
    display:block;
  }

  .mobile-drawer .drawer-sub-body > .drawer-sub-accordion,
  .mobile-drawer .drawer-sub-body > .drawer-sublink {
    width:100%;
  }

  .mobile-drawer .drawer-sub-body .drawer-sublink {
    min-height:40px;
    padding-block:8px;
  }

  .mobile-drawer .drawer-sub-accordion.is-open > .drawer-sublink-row {
    background:rgba(102,126,234,.055);
    border-radius:10px;
  }

  html[data-theme="light"] .mobile-drawer .drawer-sub-body {
    border-inline-start-color:rgba(79,70,229,.10);
  }

  html[data-theme="light"] .mobile-drawer .drawer-sub-accordion.is-open > .drawer-sublink-row {
    background:rgba(79,70,229,.035);
  }
}


/* 2026-09-26 KeystoneSeller landing v21 */
.keystone-domain-marquee .marquee-track.marquee-ready {
  animation-name:keystone-marquee-ltr !important;
}
@keyframes keystone-marquee-ltr {
  from { transform:translateX(0); }
  to { transform:translateX(calc(-1 * var(--marquee-shift))); }
}

.keystone-template-rail {
  direction:ltr !important;
  justify-content:flex-start;
  text-align:left;
}
.keystone-template-rail > * {
  direction:ltr;
}
.keystone-rail-shell .rail-next {
  inset-inline-start:auto !important;
  inset-inline-end:-17px !important;
}
.keystone-rail-shell .rail-prev {
  inset-inline-start:-17px !important;
  inset-inline-end:auto !important;
}

@media (max-width:900px) {
  .keystone-template-rail {
    margin-left:-20px;
    margin-right:-20px;
    padding-left:20px;
    padding-right:20px;
    scroll-padding-left:20px;
    scroll-padding-right:20px;
  }
}
