@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;700;900&display=swap');

:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #f0f4fa;
  --bg-alt: #e8eef8;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --surface-soft: #f8fafc;
  --text: #0f172a;
  --text-soft: #334155;
  --text-muted: #64748b;
  --text-on-dark: #f1f5f9;
  --border: rgba(15, 23, 42, 0.1);
  --accent: #1a3a8f;
  --accent-strong: #142d6e;
  --accent-soft: rgba(26, 58, 143, 0.1);
  --accent-glow: rgba(26, 58, 143, 0.28);
  --accent-ink: #ffffff;
  --solar: #ffb81c;
  --solar-strong: #e5a400;
  --solar-soft: rgba(255, 184, 28, 0.12);
  --solar-glow: rgba(255, 184, 28, 0.35);
  --ok: #10b981;
  --header-h: 58px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-sm: 0 2px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 36px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 8px 28px var(--accent-glow);
  --loader-overlay: rgba(240, 244, 250, 0.97);
  --glass-blur: 18px;
  --glass-saturate: 1.35;
  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  --mesh-a: rgba(26, 58, 143, 0.14);
  --mesh-b: rgba(255, 184, 28, 0.1);
  --grid-line: rgba(26, 58, 143, 0.07);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1220;
  --bg-alt: #111827;
  --surface: #151f33;
  --surface-elevated: #1a2740;
  --surface-soft: #121a2e;
  --text: #f1f5f9;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.16);
  --accent: #4f7fd4;
  --accent-strong: #3d6fbf;
  --accent-soft: rgba(79, 127, 212, 0.15);
  --accent-glow: rgba(79, 127, 212, 0.32);
  --solar: #ffb81c;
  --solar-soft: rgba(255, 184, 28, 0.15);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.45);
  --loader-overlay: rgba(12, 18, 32, 0.98);
  --glass-bg: rgba(21, 31, 51, 0.65);
  --glass-bg-strong: rgba(26, 39, 64, 0.82);
  --glass-border: rgba(148, 163, 184, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --mesh-a: rgba(79, 127, 212, 0.2);
  --mesh-b: rgba(255, 184, 28, 0.12);
  --grid-line: rgba(148, 163, 184, 0.08);
}

* { box-sizing: border-box; }

*, *::before, *::after {
  font-family: inherit;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  position: relative;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

body.is-ready #main-content,
body.is-ready .site-header,
body.is-ready .site-footer {
  animation: page-enter .7s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: auto;
  width: 44vmax;
  height: 44vmax;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.38;
  z-index: -2;
  filter: blur(52px);
}

body::before {
  top: -14vmax;
  right: -12vmax;
  background: radial-gradient(circle, var(--mesh-a) 0%, transparent 68%);
  animation: float-orbit-a 18s ease-in-out infinite;
}

body::after {
  bottom: -16vmax;
  left: -10vmax;
  background: radial-gradient(circle, var(--mesh-b) 0%, transparent 68%);
  animation: float-orbit-b 24s ease-in-out infinite;
}

.site-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.site-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.42;
  will-change: transform;
}

.site-bg-orb--1 {
  width: 28vmax;
  height: 28vmax;
  top: 38%;
  left: 8%;
  background: radial-gradient(circle, rgba(26, 58, 143, 0.45) 0%, transparent 70%);
  animation: float-orbit-c 20s ease-in-out infinite;
}

.site-bg-orb--2 {
  width: 22vmax;
  height: 22vmax;
  top: 12%;
  left: 42%;
  background: radial-gradient(circle, rgba(255, 184, 28, 0.38) 0%, transparent 72%);
  animation: float-orbit-d 16s ease-in-out infinite reverse;
}

.site-bg-orb--3 {
  width: 32vmax;
  height: 32vmax;
  bottom: 6%;
  right: 6%;
  background: radial-gradient(circle, rgba(79, 127, 212, 0.35) 0%, transparent 70%);
  animation: float-orbit-e 26s ease-in-out infinite;
}

@keyframes float-orbit-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(-14vw, 10vh, 0) scale(1.12); }
  66% { transform: translate3d(10vw, 16vh, 0) scale(1.06); }
}

@keyframes float-orbit-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  40% { transform: translate3d(16vw, -12vh, 0) scale(1.14); }
  70% { transform: translate3d(-8vw, -18vh, 0) scale(1.08); }
}

@keyframes float-orbit-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18vw, -14vh, 0) scale(1.15); }
}

@keyframes float-orbit-d {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  45% { transform: translate3d(-12vw, 12vh, 0) scale(1.1); }
}

@keyframes float-orbit-e {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  35% { transform: translate3d(-15vw, 8vh, 0) scale(1.12); }
  75% { transform: translate3d(8vw, -10vh, 0) scale(1.06); }
}

[data-theme="dark"] .site-bg-orb--1 {
  background: radial-gradient(circle, rgba(79, 127, 212, 0.42) 0%, transparent 70%);
}

[data-theme="dark"] .site-bg-orb--2 {
  background: radial-gradient(circle, rgba(255, 184, 28, 0.32) 0%, transparent 72%);
}

[data-theme="dark"] .site-bg-orb--3 {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover { color: var(--accent); }

p { margin: 0; }

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: rgba(37, 99, 235, 0.2);
}

.container {
  width: min(1130px, 100% - 2rem);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    width: min(1130px, 100% - 3rem);
    padding: 0;
  }
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
}

#main-content > .section:nth-of-type(even) {
  background: linear-gradient(180deg, transparent, var(--bg-alt) 15%, var(--bg-alt) 85%, transparent);
}

.hero {
  padding-top: clamp(4rem, 8vw, 6rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(245, 158, 11, 0.1), transparent 50%);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.product-bento--features > .reveal,
.product-bento--3 > .reveal {
  transition:
    opacity .7s cubic-bezier(.22, 1, .36, 1),
    transform .7s cubic-bezier(.22, 1, .36, 1);
}

.product-bento--features > .reveal.show:nth-child(1),
.product-bento--3 > .reveal.show:nth-child(1) { transition-delay: 0.05s; }
.product-bento--features > .reveal.show:nth-child(2),
.product-bento--3 > .reveal.show:nth-child(2) { transition-delay: 0.12s; }
.product-bento--features > .reveal.show:nth-child(3),
.product-bento--3 > .reveal.show:nth-child(3) { transition-delay: 0.19s; }
.product-bento--features > .reveal.show:nth-child(4),
.product-bento--3 > .reveal.show:nth-child(4) { transition-delay: 0.26s; }
.product-bento--features > .reveal.show:nth-child(5),
.product-bento--3 > .reveal.show:nth-child(5) { transition-delay: 0.33s; }
.product-bento--features > .reveal.show:nth-child(6),
.product-bento--3 > .reveal.show:nth-child(6) { transition-delay: 0.4s; }
.product-bento--features > .reveal.show:nth-child(7),
.product-bento--3 > .reveal.show:nth-child(7) { transition-delay: 0.47s; }
.product-bento--features > .reveal.show:nth-child(8),
.product-bento--3 > .reveal.show:nth-child(8) { transition-delay: 0.54s; }
.product-bento--features > .reveal.show:nth-child(9),
.product-bento--3 > .reveal.show:nth-child(9) { transition-delay: 0.61s; }
.product-bento--features > .reveal.show:nth-child(10),
.product-bento--3 > .reveal.show:nth-child(10) { transition-delay: 0.68s; }
.product-bento--features > .reveal.show:nth-child(11),
.product-bento--3 > .reveal.show:nth-child(11) { transition-delay: 0.75s; }
.product-bento--features > .reveal.show:nth-child(12),
.product-bento--3 > .reveal.show:nth-child(12) { transition-delay: 0.82s; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--glass-bg-strong);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  padding: .28rem 0;
  box-shadow: var(--glass-shadow);
}

.header-shell {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem;
}

.header-end {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
}

.brand-copy {
  min-width: 0;
}

.brand-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(.82rem, 2.4vw, .98rem);
  line-height: 1.2;
}

.brand-name-short { display: none; }

.logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  min-width: 0;
  flex-shrink: 1;
}

.logo-img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 14px rgba(26, 58, 143, 0.18);
}

.logo--footer .logo-img {
  width: 52px;
  height: 52px;
}

.brand-slogan {
  display: block;
  margin-top: .12rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--solar-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo--footer {
  margin-bottom: .65rem;
}

.logo--footer .brand-slogan {
  font-size: .8rem;
}

.main-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: nowrap;
}

.main-nav a {
  display: block;
  padding: .5rem .62rem;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--text-soft);
  font-size: .88rem;
  line-height: 1.2;
  white-space: nowrap;
}

.main-nav .nav-cta a {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 600;
}

.main-nav .nav-cta a:hover {
  background: var(--accent-strong);
  color: var(--accent-ink);
}

.main-nav a:hover {
  border-color: var(--border);
  color: var(--text);
}

nav {
  display: flex;
  align-items: center;
}

.menu-toggle {
  border: 1px solid var(--glass-border);
  color: var(--text);
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(12px) saturate(var(--glass-saturate));
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.menu-toggle i {
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .25s ease;
}

body.nav-open .menu-toggle {
  background: var(--glass-bg-strong);
  border-color: var(--accent-soft);
}

body.nav-open .menu-toggle i {
  transform: rotate(90deg) scale(1.05);
}

.theme-toggle {
  border: 1px solid var(--glass-border);
  color: var(--text);
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(12px) saturate(var(--glass-saturate));
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

[data-theme="light"] .theme-icon-light,
[data-theme="dark"] .theme-icon-dark {
  display: none;
}

.header-actions {
  display: none;
}

.btn.w-100 { width: 100%; }

.skip-link:focus {
  transform: translateY(0);
}

.hero-wrap,
.feature-flow,
.product-bento,
.project-mosaic,
.blog-grid,
.team-flow,
.form-wrap,
.team-grid-small,
.filter-grid,
.list-grid,
.catalog-grid,
.footer-shell,
.request-note,
.testimonial-shell {
  display: grid;
  gap: 1rem;
}

.hero-wrap {
  grid-template-columns: 1fr;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--text);
}

h1 {
  margin: 0 0 .85rem;
  font-size: clamp(1.85rem, 3.2vw, 2.85rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}

[data-theme="light"] .hero h1 {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent-strong);
  font-weight: 600;
}

h2 {
  margin: .4rem 0 .65rem;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

h3 { margin: 0 0 .45rem; }

.eyebrow {
  margin: 0 0 .45rem;
  color: var(--text-soft);
  font-size: .8rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.lead {
  color: var(--text-soft);
  max-width: 74ch;
}

.lead {
  margin: 0 0 1rem;
}

.hero-metrics {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

@media (max-width: 767px) {
  .hero-metrics li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.hero-metrics li {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--glass-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.hero-metrics li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hero-metrics strong {
  display: block;
  color: var(--text);
  font-size: 1.5rem;
  margin-bottom: .2rem;
}

.hero-metrics span {
  color: var(--text-soft);
  font-size: .9rem;
}

.hero-actions {
  margin-top: 1.05rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: .72rem 1.15rem;
  font-weight: 600;
  color: var(--text);
  background: var(--glass-bg);
  backdrop-filter: blur(10px) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(10px) saturate(var(--glass-saturate));
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: var(--accent-ink);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent-strong) 0%, #1e40af 100%);
  box-shadow: 0 12px 36px var(--accent-glow);
}

.btn-outline {
  background: var(--glass-bg);
  border-color: var(--glass-border);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: .5rem;
  transform: translateY(-150%);
  background: var(--surface);
  padding: .45rem .8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  z-index: 60;
}

.hero-visual,
.glass-card,
.glass-panel,
.feature-content,
.project-card,
.blog-card,
.team-card,
.team-card-large,
.dash-panel,
.dash-kpi,
.dash-combined-chart,
.dash-chart-card,
.request-form,
.ux-card,
.site-card,
.footer-card,
.about-block,
.quick-card,
.form-note,
.empty-state,
.list-filters,
.catalog-sidebar,
.filter-grid.glass-card,
.wizard-summary,
.form-alert,
.preview-card,
.catalog-card,
.carousel-shell,
.loader-panel {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--glass-shadow);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease, border-color .3s ease, background .3s ease;
}

.glass-card:hover,
.card-cta:hover,
.project-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.2);
}

.card-cta .tag {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: var(--solar-soft);
  color: var(--solar-strong);
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.card-cta {
  display: grid;
  gap: .45rem;
  align-content: start;
  min-height: 100%;
}

.card-cta h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
}

.card-cta > p:last-child {
  margin: 0;
  font-size: .9rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.card-cta--feature {
  display: grid;
  gap: .35rem;
  align-content: start;
  min-height: 100%;
}

.card-cta-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  margin-bottom: .15rem;
  background: var(--accent-soft);
  color: var(--accent);
}

.card-cta--feature h3 {
  margin: 0;
  font-size: 1.02rem;
}

.card-cta--feature p:last-child {
  margin: 0;
  font-size: .86rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.card-cta--power .card-cta-icon { background: rgba(255, 184, 28, 0.16); color: #b45309; }
.card-cta--chart .card-cta-icon { background: rgba(26, 58, 143, 0.12); color: var(--accent); }
.card-cta--ai .card-cta-icon { background: rgba(139, 92, 246, 0.14); color: #7c3aed; }
.card-cta--kpi .card-cta-icon { background: rgba(14, 165, 233, 0.14); color: #0284c7; }
.card-cta--alert .card-cta-icon { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.card-cta--report .card-cta-icon { background: rgba(99, 102, 241, 0.14); color: #4f46e5; }
.card-cta--maint .card-cta-icon { background: rgba(34, 197, 94, 0.14); color: #15803d; }
.card-cta--mobile .card-cta-icon { background: rgba(6, 182, 212, 0.14); color: #0891b2; }
.card-cta--scale .card-cta-icon { background: rgba(26, 58, 143, 0.12); color: var(--accent-strong); }
.card-cta--weather .card-cta-icon { background: rgba(251, 191, 36, 0.16); color: #d97706; }
.card-cta--deploy .card-cta-icon { background: rgba(79, 127, 212, 0.14); color: var(--accent); }
.card-cta--support .card-cta-icon { background: rgba(255, 184, 28, 0.14); color: var(--solar-strong); }

[data-theme="dark"] .card-cta--power .card-cta-icon { color: #fcd34d; }
[data-theme="dark"] .card-cta--ai .card-cta-icon { color: #c4b5fd; }
[data-theme="dark"] .card-cta--alert .card-cta-icon { color: #fca5a5; }
[data-theme="dark"] .card-cta--maint .card-cta-icon { color: #86efac; }

.product-bento--features {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

@media (min-width: 640px) {
  .product-bento--features {
    gap: .85rem;
  }
}

@media (min-width: 1024px) {
  .product-bento--features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .product-bento--features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hero-visual,
.site-card,
.footer-card,
.request-form,
.project-card {
  border-radius: 14px;
}

.dashboard-shell {
  display: grid;
  gap: .85rem;
}

.demo-dashboard {
  padding: 1rem 1rem 1.1rem;
  min-height: 22rem;
  background:
    linear-gradient(145deg, rgba(26, 58, 143, 0.06), rgba(255, 184, 28, 0.04)),
    var(--glass-bg-strong);
}

[data-theme="dark"] .demo-dashboard {
  background:
    linear-gradient(145deg, rgba(79, 127, 212, 0.12), rgba(255, 184, 28, 0.06)),
    var(--glass-bg-strong);
}

@media (max-width: 1023px) {
  body.nav-open {
    overflow: hidden;
  }
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent);
  background: rgba(255, 184, 28, .14);
  border: 1px solid rgba(255, 184, 28, .35);
}

.dash-kpi-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
}

.dash-kpi {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .65rem;
  align-items: center;
  padding: .55rem .65rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  position: relative;
  overflow: hidden;
}

.dash-kpi::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
}

.dash-kpi--power::before { background: #ffb81c; }
.dash-kpi--voltage::before { background: #6366f1; }
.dash-kpi--current::before { background: #22c55e; }

.dash-kpi-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: .95rem;
}

.dash-kpi--power .dash-kpi-icon {
  color: #b45309;
  background: rgba(255, 184, 28, 0.18);
}

.dash-kpi--voltage .dash-kpi-icon {
  color: #4338ca;
  background: rgba(99, 102, 241, 0.16);
}

.dash-kpi--current .dash-kpi-icon {
  color: #15803d;
  background: rgba(34, 197, 94, 0.16);
}

[data-theme="dark"] .dash-kpi--power .dash-kpi-icon { color: #fcd34d; }
[data-theme="dark"] .dash-kpi--voltage .dash-kpi-icon { color: #a5b4fc; }
[data-theme="dark"] .dash-kpi--current .dash-kpi-icon { color: #86efac; }

.dash-kpi-body {
  display: grid;
  gap: .05rem;
  min-width: 0;
}

.dash-kpi-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.dash-kpi-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.dash-kpi-meta {
  font-size: .65rem;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dash-charts-grid {
  display: grid;
  gap: .5rem;
}

.dash-combined-chart {
  padding: .65rem .7rem .55rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.dash-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  margin-bottom: .45rem;
}

.dash-legend-item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-soft);
}

.dash-legend-item .dash-chart-dot {
  display: inline-block;
  flex-shrink: 0;
}

.dash-chart-canvas--combined {
  height: 200px;
}

.demo-area-chart--combined .chart-area-fill {
  opacity: 0.7;
}

.demo-area-chart--combined .chart-line-stroke {
  stroke-width: 2.2;
}

.demo-area-chart--combined .chart-line--voltage {
  stroke-width: 1.6;
  opacity: 0.95;
}

.chart-tooltip--multi {
  white-space: normal;
  min-width: 9.5rem;
  padding: .4rem .5rem;
}

.chart-tooltip-time {
  display: block;
  font-size: .65rem;
  color: var(--text-muted);
  margin-bottom: .35rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.chart-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  font-size: .68rem;
  line-height: 1.45;
}

.chart-tooltip-row span {
  color: var(--text-muted);
  font-weight: 500;
}

.chart-tooltip-row strong {
  font-variant-numeric: tabular-nums;
}

.chart-tooltip-row--power strong { color: #d97706; }
.chart-tooltip-row--voltage strong { color: #4f46e5; }
.chart-tooltip-row--current strong { color: #16a34a; }

[data-theme="dark"] .chart-tooltip-row--power strong { color: #fcd34d; }
[data-theme="dark"] .chart-tooltip-row--voltage strong { color: #a5b4fc; }
[data-theme="dark"] .chart-tooltip-row--current strong { color: #86efac; }

.dash-combined-chart.is-hover .chart-point,
.demo-area-chart .chart-point.is-active {
  opacity: 1;
}

.dash-chart-card {
  padding: .5rem .55rem .4rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

.dash-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .35rem;
}

.dash-chart-title {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-soft);
}

.dash-chart-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
}

.dash-chart-dot--power { background: #ffb81c; box-shadow: 0 0 8px rgba(255, 184, 28, 0.6); }
.dash-chart-dot--voltage { background: #6366f1; box-shadow: 0 0 8px rgba(99, 102, 241, 0.55); }
.dash-chart-dot--current { background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.55); }

.dash-chart-canvas {
  position: relative;
  height: 72px;
}

.demo-area-chart {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.demo-area-chart .chart-grid-line {
  stroke: var(--border);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.demo-area-chart .chart-area-fill {
  opacity: 0.55;
}

.demo-area-chart .chart-line-stroke {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-area-chart .chart-point {
  fill: var(--surface-elevated);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transition: opacity .15s ease, r .15s ease;
  cursor: crosshair;
}

.dash-chart-card.is-hover .chart-point,
.demo-area-chart .chart-point.is-active {
  opacity: 1;
}

.chart-tooltip {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  padding: .28rem .45rem;
  border-radius: 8px;
  font-size: .68rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transform: translate(-50%, -110%);
}

.chart-tooltip strong {
  display: block;
  font-size: .72rem;
  color: var(--text);
}

.chart-tooltip span {
  color: var(--text-muted);
  font-weight: 500;
}

.dash-chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: .25rem;
  padding: 0 .15rem;
  font-size: .62rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.status-pill--live i {
  color: #22c55e;
  font-size: .55rem;
  margin-inline-end: .35rem;
  vertical-align: middle;
}

.dash-chart-wrap {
  padding: .65rem .75rem .35rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.dash-chart-wrap .chart-label {
  margin: 0 0 .45rem;
  font-size: .78rem;
  color: var(--text-soft);
}

.chart-area {
  opacity: .85;
}

.dashboard-topbar,
.dashboard-panels,
.feature-row,
.team-card-large,
.testimonial-shell {
  display: grid;
  gap: .75rem;
}

.dashboard-topbar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-pill {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  border-radius: 999px;
  padding: .42rem .65rem;
  font-size: .82rem;
  color: var(--text-soft);
}

.dashboard-panels {
  grid-template-columns: 1fr;
}

.dash-panel h3 { margin: 0 0 .55rem; }

.dash-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .45rem;
}

.dash-panel .value {
  color: var(--accent);
  font-size: 1.85rem;
  margin-bottom: .35rem;
}

.dash-panel .value span {
  font-size: .95rem;
  color: var(--text-soft);
}

.chart-lines {
  width: 100%;
  height: 130px;
  display: block;
}

.chart-lines .line-main {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
}

.chart-lines .line-bg {
  fill: none;
  stroke: #d0d5dd;
  stroke-width: 2;
}

.chart-dots {
  display: flex;
  justify-content: space-between;
  margin-top: .5rem;
}

.chart-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.feature-flow {
  margin-top: 1rem;
  gap: 1rem;
}

.feature-row {
  gap: .9rem;
}

.feature-content,
.feature-visual {
  padding: 1rem;
}

.bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: .65rem;
  height: 130px;
}

.bars span {
  border: 1px solid var(--border);
  background: #e6efff;
  border-radius: 10px;
  height: var(--h);
}

.alert-rules,
.tiny-gauge {
  margin: 0;
  padding: 0;
  list-style: none;
}

.alert-rules li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .58rem .7rem;
  margin-bottom: .55rem;
  color: var(--text-soft);
}

.tiny-gauge {
  height: 9px;
  border: 1px solid var(--border);
  border-radius: 99px;
  overflow: hidden;
  background: #eff4ff;
}

.tiny-gauge span {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--accent);
  max-width: 100%;
}

.product-bento {
  grid-template-columns: 1fr;
}

.product-bento--features,
.product-bento--3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.card-cta .inline-link {
  display: inline-flex;
  gap: .35rem;
  margin-top: .8rem;
  color: var(--accent);
  font-weight: 700;
}

.project-mosaic {
  grid-template-columns: 1fr;
}

.project-card { display: flex; flex-direction: column; min-height: 150px; }

.project-media {
  aspect-ratio: 16 / 9;
  margin-bottom: .7rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #f2f4f7;
}

.project-media img,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame.object-contain img { object-fit: contain; }

.project-card .project-summary { color: var(--text-soft); margin-top: auto; }

.media-placeholder {
  width: 100%;
  height: 100%;
  background: #eef4ff;
}

.form-wrap,
.blog-grid,
.team-flow,
.contact-grid,
.filter-grid,
.list-grid,
.catalog-grid,
.related-grid {
  gap: 1rem;
}

.form-wrap {
  grid-template-columns: 1fr;
  align-items: start;
}

.request-form label {
  display: block;
  margin: 0 0 .35rem;
  font-size: .92rem;
  color: var(--text-soft);
}

.request-form input,
.request-form textarea,
.request-form select,
.form-control,
.form-select,
input.w-100,
textarea {
  width: 100%;
  margin: 0 0 .9rem;
  padding: .67rem .75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
}

[data-theme="dark"] .request-form input,
[data-theme="dark"] .request-form textarea,
[data-theme="dark"] .request-form select,
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .monitoring-wizard-card input,
[data-theme="dark"] .monitoring-wizard-card textarea,
[data-theme="dark"] .monitoring-wizard-card select {
  background: var(--surface-elevated);
  color: var(--text);
  border-color: var(--border);
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] .form-select option,
[data-theme="dark"] select option {
  color: var(--text-muted);
}

[data-theme="dark"] select option {
  background: var(--surface-elevated);
  color: var(--text);
}

[data-theme="dark"] input:-webkit-autofill,
[data-theme="dark"] input:-webkit-autofill:hover,
[data-theme="dark"] input:-webkit-autofill:focus,
[data-theme="dark"] textarea:-webkit-autofill,
[data-theme="dark"] select:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--surface-elevated) inset;
  box-shadow: 0 0 0 1000px var(--surface-elevated) inset;
  caret-color: var(--text);
}

.request-form input::placeholder,
.request-form textarea::placeholder { color: var(--text-muted); }

.team-flow { align-items: stretch; }

.team-card,
.team-card-large { padding: 1rem; }

.team-avatar {
  width: 66px;
  height: 66px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #eff4ff;
}

.team-avatar.compact { width: 52px; height: 52px; }

.team-card-large {
  grid-template-columns: 66px 1fr;
  gap: .8rem;
  align-items: center;
}

.team-grid-small {
  grid-template-columns: 1fr;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.team-card-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .65rem;
}

.team-card-head h3 {
  margin: 0 0 .15rem;
  font-size: 1rem;
}

.team-card-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.team-card-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.team-card-photo--fallback {
  object-fit: contain;
  background: var(--surface-soft);
  padding: .35rem;
}

.team-role {
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent);
}

.team-dept {
  margin: 0;
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-slogan {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.hero-logo {
  border-radius: 6px;
  object-fit: contain;
}

.about-slogan {
  margin: -.25rem 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--solar-strong);
}

.testimonial-shell {
  border-radius: var(--radius-md);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: .85rem 1rem;
  align-items: center;
  padding: 1.25rem 1rem;
}

.slider-viewport {
  overflow: hidden;
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}

.slider-btn {
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-elevated);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
  position: static;
  transform: none;
}

.slider-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.04);
}

.slider-btn.prev { grid-column: 1; grid-row: 1; }
.slider-btn.next { grid-column: 3; grid-row: 1; }

.slider-track {
  display: flex;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.testimonial {
  min-width: 100%;
  padding: .25rem .5rem;
}

.testimonial h3 {
  margin: 0 0 .45rem;
  color: var(--accent);
  font-size: 1.05rem;
}

.testimonial p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  grid-column: 1 / -1;
  grid-row: 2;
  padding-top: .25rem;
}

.slider-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(52, 64, 84, 0.35);
}

.slider-dots button.active {
  width: 22px;
  background: var(--accent);
}

html.no-js .testimonial-shell {
  grid-template-columns: 1fr !important;
}

html.no-js .slider-btn,
html.no-js .slider-dots {
  display: none !important;
}

html.no-js .slider-track {
  display: grid !important;
  grid-template-columns: 1fr;
  transform: none !important;
  transition: none !important;
}

.footer-shell {
  grid-template-columns: 1fr;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  color: var(--text-soft);
  padding: 2.5rem 0 1.25rem;
}

.site-footer h6 {
  color: var(--text);
  margin: 0 0 .75rem;
  font-size: .95rem;
}

.site-footer a {
  color: var(--text-soft);
  transition: color .2s ease;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  line-height: 1.6;
}

.footer-contact-list i {
  color: var(--accent);
  margin-top: .25rem;
  width: 1rem;
  flex-shrink: 0;
}

.footer-nav {
  display: grid;
  gap: .45rem;
}

.footer-link {
  display: inline-block;
  margin-top: .5rem;
  color: var(--accent);
  font-weight: 600;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(10px) saturate(var(--glass-saturate));
  font-size: .84rem;
  font-weight: 600;
  color: var(--accent);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.footer-social-link:hover {
  color: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
}

.footer-social-link i {
  font-size: 1.05rem;
}

.footer-map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 11;
  background: var(--surface);
}

.footer-map-place {
  margin: 0 0 .5rem;
  font-size: .82rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.footer-map {
  width: 100%;
  height: 100%;
  min-height: 11rem;
  border: 0;
  display: block;
}

.suniar-leaflet-map .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: var(--font-sans, inherit);
  background: #dde8f0;
}

.suniar-leaflet-map .leaflet-control-zoom a {
  border-radius: 0.55rem;
  border-color: var(--border);
  color: var(--text);
  background: var(--glass-bg, rgba(255, 255, 255, 0.92));
  backdrop-filter: blur(10px);
}

.suniar-leaflet-map .leaflet-control-attribution {
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 0.45rem 0 0 0;
  padding: 0.15rem 0.45rem;
}

[data-theme="dark"] .suniar-leaflet-map .leaflet-control-attribution {
  background: rgba(15, 23, 42, 0.78);
  color: var(--text-soft);
}

.footer-map-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .55rem;
  font-size: .85rem;
}

.footer-bottom {
  padding-top: 1.25rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .85rem;
}

.footer-copy {
  color: var(--text-muted);
  line-height: 1.7;
}

.media-frame {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #f2f4f7;
}

.media-frame.rounded { border-radius: 14px; }

.media-aspect-video { aspect-ratio: 16/9; }
.media-aspect-square { aspect-ratio: 1/1; }

.page-title { margin: 0 0 .7rem; }

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .2rem .6rem;
  font-size: .77rem;
  color: var(--text-soft);
  background: var(--surface-soft);
}

.text-muted { color: var(--text-muted); }
.text-soft { color: var(--text-soft); }
.small { font-size: .92rem; }

.mb-1 { margin-bottom: .25rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: .75rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: .75rem !important; }
.h-100 { min-height: 100%; }

.g-3,.g-2,.g-4,
.row {
  display: grid;
  gap: 1rem;
}

.col-12,
.col-md-5,
.col-md-3,
.col-md-2,
.col-md-4,
.col-lg-8,
.col-lg-4,
.col-lg-9,
.col-lg-3,
.col-lg-2,
.col-md-12,
.col-3 {
  width: 100%;
}

.d-block {
  display: block;
}

.actions-row {
  display: flex;
  gap: .65rem;
}

@media (min-width: 768px) {
  .hero-wrap { grid-template-columns: 1.2fr 1fr; gap: 1.4rem; align-items: stretch; }
  .hero-actions { gap: .75rem; }
  .hero-facts { gap: .75rem; }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-metrics li:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .hero-visual.demo-dashboard {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 100%;
    height: 100%;
  }

  .hero-visual.demo-dashboard .dashboard-shell {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .hero-visual.demo-dashboard .dash-combined-chart {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .hero-visual.demo-dashboard .dash-chart-canvas--combined {
    flex: 1 1 auto;
    min-height: 12rem;
    height: auto;
  }

  .dash-kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .feature-row,
  .project-mosaic,
  .team-flow,
  .team-grid-small,
  .blog-grid,
  .form-wrap,
  .filter-grid,
  .footer-shell,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-bento--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-row.reverse {
    direction: rtl;
  }

  .project-card:first-child {
    grid-row: span 1;
  }

  .list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .actions-row { justify-content: flex-start; }
}

@media (min-width: 1024px) {
  .nav-backdrop {
    display: none !important;
  }

  .main-nav {
    display: flex;
    position: static;
    inset: auto;
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
  }

  .main-nav > li {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .menu-toggle { display: none; }

  .footer-shell {
    grid-template-columns: 1.1fr 1fr 0.8fr 1.2fr;
    gap: 1.25rem;
  }

  .team-grid-small { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr 3fr; }
  .team-flow { grid-template-columns: 1.4fr 1fr 1fr; }
  .filter-grid { grid-template-columns: 1.1fr .5fr .35fr; }
}

@media (max-width: 1023px) {
  .nav-backdrop {
    position: fixed;
    inset: 0;
    top: var(--header-h);
    z-index: 29;
    background: color-mix(in srgb, var(--bg) 35%, transparent);
    backdrop-filter: blur(8px) saturate(1.1);
    -webkit-backdrop-filter: blur(8px) saturate(1.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .35s ease, visibility .35s ease;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    left: 0;
    right: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(22px) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(22px) saturate(var(--glass-saturate));
    border-bottom: 1px solid var(--glass-border);
    padding: .85rem 1rem 1.15rem;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    box-shadow: var(--glass-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    pointer-events: none;
    transition:
      opacity .38s cubic-bezier(.22, 1, .36, 1),
      transform .38s cubic-bezier(.22, 1, .36, 1),
      visibility .38s;
  }

  nav.open .main-nav,
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  nav.open .main-nav > li,
  .main-nav.open > li {
    opacity: 0;
    transform: translateY(-10px);
    animation: nav-item-in .42s cubic-bezier(.22, 1, .36, 1) forwards;
  }

  nav.open .main-nav > li:nth-child(1),
  .main-nav.open > li:nth-child(1) { animation-delay: .05s; }
  nav.open .main-nav > li:nth-child(2),
  .main-nav.open > li:nth-child(2) { animation-delay: .08s; }
  nav.open .main-nav > li:nth-child(3),
  .main-nav.open > li:nth-child(3) { animation-delay: .11s; }
  nav.open .main-nav > li:nth-child(4),
  .main-nav.open > li:nth-child(4) { animation-delay: .14s; }
  nav.open .main-nav > li:nth-child(5),
  .main-nav.open > li:nth-child(5) { animation-delay: .17s; }
  nav.open .main-nav > li:nth-child(6),
  .main-nav.open > li:nth-child(6) { animation-delay: .2s; }
  nav.open .main-nav > li:nth-child(7),
  .main-nav.open > li:nth-child(7) { animation-delay: .23s; }
  nav.open .main-nav > li:nth-child(8),
  .main-nav.open > li:nth-child(8) { animation-delay: .26s; }
  nav.open .main-nav > li:nth-child(9),
  .main-nav.open > li:nth-child(9) { animation-delay: .29s; }
  nav.open .main-nav > li:nth-child(10),
  .main-nav.open > li:nth-child(10) { animation-delay: .32s; }

  .menu-toggle { display: inline-flex; }

  .main-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-color: transparent;
    background: color-mix(in srgb, var(--glass-bg) 65%, transparent);
  }

  .main-nav a:hover {
    background: var(--glass-bg-strong);
    border-color: var(--glass-border);
  }
}

@keyframes nav-item-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-backdrop,
  .main-nav,
  .main-nav > li,
  .menu-toggle i {
    transition: none !important;
    animation: none !important;
  }

  nav.open .main-nav > li,
  .main-nav.open > li {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 767px) {
  .header-shell {
    gap: .4rem;
  }

  .brand-name-full { display: none; }
  .brand-name-short { display: block; }

  .product-bento:not(.product-bento--features):not(.product-bento--3) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
  }

  .product-bento--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
  }

  .product-bento--3 .card-cta:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .card-cta--feature {
    padding: .72rem .65rem;
  }

  .card-cta--feature h3 {
    font-size: .86rem;
    line-height: 1.35;
  }

  .card-cta--feature p:last-child {
    font-size: .74rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .card-cta-icon {
    width: 1.9rem;
    height: 1.9rem;
    font-size: .82rem;
  }

  .card-cta .tag {
    font-size: .64rem;
    padding: .14rem .38rem;
    margin-bottom: .35rem;
  }

  .preview-card-body {
    padding: .7rem .75rem .8rem;
  }

  .preview-card-body h3 {
    font-size: .9rem;
  }

  .preview-card-summary {
    font-size: .78rem;
    -webkit-line-clamp: 2;
  }

  .catalog-card {
    padding: .75rem;
  }

  .catalog-card h3 {
    font-size: .92rem;
  }

  .catalog-card-desc {
    font-size: .78rem;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .team-grid {
    gap: .6rem;
  }

  .team-card {
    padding: .75rem;
  }

  .team-card-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .45rem;
    margin-bottom: .45rem;
  }

  .team-card-head h3 {
    font-size: .82rem;
    line-height: 1.35;
  }

  .team-card-photo,
  .team-card-photo--fallback {
    width: 44px;
    height: 44px;
  }

  .team-role {
    font-size: .72rem;
  }

  .team-dept {
    font-size: .72rem;
    line-height: 1.5;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .testimonial-shell {
    grid-template-columns: 1fr;
    gap: .65rem;
    padding: 1rem;
  }

  .slider-btn.prev,
  .slider-btn.next {
    display: none;
  }

  .slider-viewport {
    grid-column: 1;
  }

  .slider-dots {
    grid-column: 1;
  }

  .btn {
    padding-inline: .85rem;
  }

  .logo-img {
    width: 36px;
    height: 36px;
  }

  .brand-slogan {
    display: none;
  }

  :root {
    --header-h: 55px;
  }
}

html.no-js .loading-shell {
  display: none !important;
}

html.no-js body {
  overflow: auto;
}

html.no-js body.is-loading {
  overflow: auto;
}

/* ─── Loader (هماهنگ با تم سایت) ─── */
.loading-shell {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--loader-overlay);
  transition: opacity .55s cubic-bezier(.4, 0, .2, 1), visibility .55s;
  pointer-events: auto;
}

.loading-shell.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-shell[hidden] {
  display: none !important;
}

.loader-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.loader-mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, var(--mesh-a), transparent 42%),
    radial-gradient(circle at 80% 70%, var(--mesh-b), transparent 40%);
  animation: mesh-drift 12s ease-in-out infinite alternate;
}

.loader-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  animation: grid-pulse 4s ease-in-out infinite;
}

.loader-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: particle-float 6s ease-in-out infinite;
}

.loader-particle:nth-child(3) { top: 18%; right: 22%; animation-delay: 0s; }
.loader-particle:nth-child(4) { top: 62%; right: 12%; animation-delay: 1.2s; background: rgba(251, 191, 36, 0.9); }
.loader-particle:nth-child(5) { top: 35%; left: 15%; animation-delay: .6s; }
.loader-particle:nth-child(6) { bottom: 22%; left: 28%; animation-delay: 1.8s; }
.loader-particle:nth-child(7) { top: 12%; left: 45%; animation-delay: 2.4s; width: 3px; height: 3px; }

.solar-loader {
  position: relative;
  z-index: 2;
  width: min(440px, calc(100vw - 2rem));
  display: grid;
  gap: 1.25rem;
  text-align: center;
}

/* ─── Suniar logo loader (مارپیچ + ۸ پرتو) ─── */
.suniar-logo-loader {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto;
}

.suniar-logo-glow {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 28, 0.35) 0%, rgba(26, 58, 143, 0.15) 45%, transparent 70%);
  animation: suniar-glow-breathe 2.8s ease-in-out infinite;
}

.suniar-logo-ring {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  border: 2px solid rgba(255, 184, 28, 0.22);
  animation: suniar-ring-spin 14s linear infinite;
}

.suniar-logo-ring::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #FFB81C;
  box-shadow: 0 0 12px rgba(255, 184, 28, 0.8);
}

.suniar-logo-svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(26, 58, 143, 0.35));
}

.suniar-logo-bg {
  animation: suniar-bg-pulse 3s ease-in-out infinite;
}

.suniar-rays .suniar-ray {
  transform-origin: 60px 60px;
  transform: rotate(calc(var(--ray-i) * 45deg));
  animation: suniar-ray-pulse 2.4s ease-in-out infinite;
  animation-delay: calc(var(--ray-i) * 0.12s);
}

.suniar-spiral-spin {
  transform-origin: 0 0;
  animation: suniar-spiral-spin 3.2s linear infinite;
  will-change: transform;
}

.suniar-spiral-orbit {
  fill: none;
  stroke: rgba(255, 184, 28, 0.18);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.suniar-spiral-halo {
  fill: rgba(255, 184, 28, 0.08);
  stroke: rgba(255, 184, 28, 0.22);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  animation: suniar-spiral-halo-pulse 2.8s ease-in-out infinite;
}

.suniar-spiral {
  fill: none;
  stroke-width: 4.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255, 184, 28, 0.45));
}

@media (prefers-reduced-motion: reduce) {
  .suniar-logo-glow,
  .suniar-logo-ring,
  .suniar-rays .suniar-ray,
  .suniar-spiral-spin,
  .suniar-spiral-halo,
  .suniar-orbit-dots,
  .loader-particle {
    animation: none !important;
  }

  .suniar-rays .suniar-ray {
    opacity: 1;
    transform: rotate(calc(var(--ray-i) * 45deg));
  }
}

.suniar-orbit-dots {
  position: absolute;
  inset: 0;
  animation: suniar-ring-spin 8s linear infinite reverse;
  pointer-events: none;
}

.suniar-orbit-dots span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px;
  border-radius: 50%;
  background: rgba(255, 184, 28, 0.85);
  box-shadow: 0 0 8px rgba(255, 184, 28, 0.6);
}

.suniar-orbit-dots span:nth-child(1) { transform: rotate(0deg) translateY(-92px); }
.suniar-orbit-dots span:nth-child(2) { transform: rotate(120deg) translateY(-92px); opacity: .7; }
.suniar-orbit-dots span:nth-child(3) { transform: rotate(240deg) translateY(-92px); opacity: .5; }

@keyframes suniar-glow-breathe {
  0%, 100% { transform: scale(0.92); opacity: 0.75; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes suniar-ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes suniar-bg-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

@keyframes suniar-ray-pulse {
  0%, 100% { opacity: 0.55; transform: rotate(calc(var(--ray-i) * 45deg)) scale(0.92); }
  50% { opacity: 1; transform: rotate(calc(var(--ray-i) * 45deg)) scale(1.08); }
}

@keyframes suniar-spiral-spin {
  to { transform: rotate(360deg); }
}

@keyframes suniar-spiral-halo-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1); }
}

.loader-orbit-stage {
  display: none;
}

.loader-panel {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  text-align: center;
}

.loader-brand-name {
  margin: 0 0 .15rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.5;
}

.loader-logo {
  display: none;
}

.loader-brand {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.loader-tagline {
  margin: 0 0 .75rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--solar-strong);
}

.loader-title {
  margin: 0 0 .75rem;
  color: var(--text-soft);
  font-size: .92rem;
  font-weight: 500;
  min-height: 1.4em;
}

.loader-steps {
  list-style: none;
  margin: 0 0 .85rem;
  padding: 0;
  display: grid;
  gap: .4rem;
  text-align: right;
}

.loader-steps li {
  font-size: .8rem;
  color: var(--text-muted);
  padding: .35rem .55rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.loader-steps li.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
}

.loader-steps li.is-done {
  color: var(--ok);
}

.loader-line {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-alt);
  overflow: hidden;
  margin-bottom: .55rem;
}

.loader-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: .78rem;
  line-height: 1.6;
}

.loader-line span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #60a5fa, var(--solar));
  transition: width .14s linear;
  box-shadow: 0 0 12px var(--accent-glow);
}

.loading-shell.is-complete .loader-line span {
  background: linear-gradient(90deg, var(--ok), #34d399);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.5);
}

.loader-percent {
  display: none;
}

@keyframes mesh-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(3%, -2%) scale(1.05); }
}

@keyframes grid-pulse {
  0%, 100% { opacity: .6; }
  50% { opacity: 1; }
}

@keyframes particle-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: .4; }
  50% { transform: translateY(-18px) scale(1.2); opacity: 1; }
}

@keyframes spin-orbit {
  to { transform: rotate(360deg); }
}

@keyframes core-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 30px var(--solar-glow); }
  50% { transform: scale(1.08); box-shadow: 0 0 44px rgba(245, 158, 11, 0.55); }
}

@keyframes panel-orbit {
  from { transform: rotate(0deg) translateY(-52px) rotate(0deg); }
  to { transform: rotate(360deg) translateY(-52px) rotate(-360deg); }
}

@keyframes data-beam {
  0%, 100% { opacity: 0; transform: scaleX(0.3); }
  40%, 60% { opacity: 1; transform: scaleX(1); }
}

@media (min-width: 1100px) {
  .blog-grid .featured { grid-column: span 2; }
  .team-card-large { grid-column: span 2; }
}

#top { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* ─── Home: schematic & facts ─── */
.section-head {
  margin-bottom: 1.5rem;
}

.section-head .hero-actions,
.section-head .catalog-actions {
  margin-top: 1rem;
}

.hero-facts {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: .65rem;
}

.hero-facts li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .75rem .85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: .9rem;
  line-height: 1.55;
}

.hero-facts i {
  color: var(--accent);
  margin-top: .15rem;
  flex-shrink: 0;
}

.schematic-board {
  display: grid;
  gap: .85rem;
}

.schematic-label {
  margin: 0;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-soft);
}

.schematic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

.schematic-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: .78rem;
  font-weight: 600;
}

.schematic-chip i {
  color: var(--accent);
}

.schematic-note {
  margin: 0;
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-top: .25rem;
  border-top: 1px dashed var(--border);
}

.module-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}

.module-list li {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--text-soft);
  font-size: .88rem;
}

.module-list i {
  color: var(--ok);
  font-size: .75rem;
}

.contact-inline {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}

.contact-inline li {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-soft);
}

.contact-inline i {
  color: var(--accent);
  width: 1.1rem;
}

.empty-state {
  text-align: center;
  padding: 2rem 1.25rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.media-placeholder {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 2rem;
  background: var(--accent-soft);
}

.project-empty {
  grid-column: 1 / -1;
}

input, textarea, select, .form-control {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.error-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, var(--mesh-a), transparent 42%),
    radial-gradient(circle at 85% 80%, var(--mesh-b), transparent 38%),
    var(--bg);
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.error-page-inner {
  width: min(100%, 520px);
}

.error-card {
  padding: 2rem 1.75rem;
  text-align: center;
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.error-brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-align: right;
  width: 100%;
  padding-bottom: 1rem;
  margin-bottom: .25rem;
  border-bottom: 1px solid var(--border);
}

.error-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(26, 58, 143, 0.18);
}

.error-company {
  margin: 0 0 .2rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.error-slogan {
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
  color: var(--solar-strong);
}

.error-code {
  margin: 0;
  font-size: clamp(3.5rem, 16vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--accent);
  opacity: .18;
}

.error-title {
  margin: -.5rem 0 0;
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  color: var(--text);
}

.error-message {
  margin: 0;
  max-width: 36ch;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: .95rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: center;
  width: 100%;
  padding-top: .25rem;
}

.error-help {
  list-style: none;
  margin: .5rem 0 0;
  padding: .85rem 0 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  justify-content: center;
  border-top: 1px dashed var(--border);
}

.error-help a {
  color: var(--text-soft);
  font-size: .84rem;
  text-decoration: none;
}

.error-help a:hover {
  color: var(--accent);
}

@media (max-width: 480px) {
  .error-card {
    padding: 1.5rem 1.15rem;
  }

  .error-brand {
    flex-direction: column;
    text-align: center;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.hero-brand-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 260px;
  text-align: center;
  padding: 1.5rem;
}

.hero-brand-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.hero-brand-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.hero-brand-tagline {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  color: var(--solar-strong);
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.project-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-card-media {
  margin: -1.15rem -1.15rem 1rem;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 1rem;
  align-items: start;
}

.project-detail-main .page-title {
  margin: .5rem 0 .75rem;
}

.project-meta {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.project-body {
  margin-top: 1rem;
  line-height: 1.85;
  color: var(--text-soft);
}

.related-link {
  display: block;
  padding: .45rem 0;
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 1px dashed var(--border);
}

.related-link:hover {
  color: var(--accent);
}

.carousel-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: .75rem 1rem;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1rem;
}

.carousel-shell .slider-viewport {
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
}

.carousel-shell .slider-track {
  display: flex;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  margin: 0;
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.carousel-slide figcaption {
  margin-top: .5rem;
  font-size: .82rem;
  color: var(--text-muted);
  text-align: center;
}

.carousel-shell .slider-dots {
  grid-column: 1 / -1;
  justify-content: center;
}

@media (max-width: 900px) {
  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .carousel-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
  }

  .carousel-shell .slider-btn.prev,
  .carousel-shell .slider-btn.next {
    display: none;
  }

  .carousel-shell .slider-viewport {
    grid-column: 1;
    grid-row: 1;
  }

  .carousel-shell .slider-dots {
    grid-row: 2;
  }
}

/* ─── Preview cards (homepage & lists) ─── */
.preview-grid {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preview-grid--3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.preview-grid--list {
  margin-top: 1rem;
}

.preview-card {
  padding: 0;
  overflow: hidden;
}

.preview-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.preview-card-media {
  aspect-ratio: 16 / 9;
  max-height: 148px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #f2f4f7;
}

.preview-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-card-body {
  padding: .85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
}

.preview-card-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.preview-card-summary {
  margin: 0;
  color: var(--text-soft);
  font-size: .84rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.preview-card-meta {
  margin: auto 0 0;
  font-size: .78rem;
  color: var(--text-muted);
}

.list-filters {
  margin-bottom: 0;
}

/* ─── Catalog cards ─── */
.catalog-preview-grid {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-preview-grid--page {
  min-width: 0;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-height: 100%;
}

.catalog-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.catalog-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: var(--solar-soft);
  color: var(--accent);
  font-size: 1.1rem;
}

.catalog-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.catalog-card-desc {
  margin: 0;
  color: var(--text-soft);
  font-size: .84rem;
  line-height: 1.55;
}

.catalog-card-meta {
  margin: 0;
  font-size: .78rem;
  color: var(--text-muted);
}

.file-badge {
  display: inline-flex;
  align-items: center;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: var(--solar-soft);
  color: var(--solar-strong);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.catalog-download {
  margin-top: auto;
  align-self: flex-start;
}

.btn-sm {
  padding: .5rem .85rem;
  font-size: .84rem;
}

.catalog-sidebar h6 {
  margin: 0 0 .75rem;
}

.catalog-filter-list {
  display: grid;
  gap: .45rem;
}

.catalog-filter {
  display: block;
  padding: .55rem .75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  text-decoration: none;
  font-size: .88rem;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.catalog-filter:hover,
.catalog-filter.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--solar-soft);
}

.catalog-empty {
  grid-column: 1 / -1;
}

.catalog-grid .catalog-sidebar {
  align-self: start;
}

/* ─── Hero dashboard & counters ─── */
.dash-metric {
  display: block;
  font-size: 1.65rem;
  color: var(--accent);
  margin-top: .15rem;
}

.status-pill i {
  color: #22c55e;
  font-size: .55rem;
  margin-left: .25rem;
}

.counter {
  font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
  .preview-grid--3,
  .catalog-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
  }

  .team-card-head {
    flex-direction: row;
    align-items: center;
    text-align: right;
  }

  .team-dept {
    text-align: right;
    display: block;
    -webkit-line-clamp: unset;
  }

  .monitoring-form-wrap {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  }

  .form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.monitoring-form-wrap {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.monitoring-wizard-card {
  overflow: hidden;
}

.wizard-progress {
  height: 4px;
  background: var(--surface-soft);
  border-radius: 999px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.wizard-progress-bar {
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, var(--accent), var(--solar));
  border-radius: inherit;
  transition: width .35s ease;
}

.wizard-steps-nav {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.wizard-steps-nav li {
  flex: 1 1 auto;
  min-width: 72px;
  text-align: center;
  font-size: .72rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: .35rem .25rem;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}

.wizard-steps-nav li span {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: .7rem;
  font-weight: 700;
  margin-left: .25rem;
}

.wizard-steps-nav li.is-active {
  color: var(--accent);
  font-weight: 700;
  background: var(--accent-soft);
}

.wizard-steps-nav li.is-done {
  color: var(--ok);
}

.wizard-steps-nav li.is-active span,
.wizard-steps-nav li.is-done span {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.wizard-step {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: none;
}

.wizard-step.is-active {
  display: block;
}

.wizard-step legend {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .25rem;
  padding: 0;
}

.wizard-step-intro {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: .88rem;
}

.form-grid {
  display: grid;
  gap: .15rem 1rem;
}

.form-field {
  margin-bottom: .5rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: .35rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-soft);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  margin: 0;
}

.form-check-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-top: 1.75rem;
}

.form-check-wrap label {
  margin: 0;
}

.field-error {
  color: #dc2626;
  font-size: .78rem;
  margin-top: .25rem;
}

.field-help {
  margin: .35rem 0 0;
  font-size: .78rem;
  color: var(--text-muted);
}

[data-theme="dark"] input[type="file"].form-control {
  color: var(--text-soft);
}

[data-theme="dark"] input[type="file"].form-control::file-selector-button {
  margin-left: .65rem;
  padding: .35rem .65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--text);
  cursor: pointer;
}

.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select,
.is-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .12);
}

.form-field.is-highlight {
  background: var(--solar-soft);
  padding: .65rem;
  border-radius: 10px;
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.wizard-summary {
  padding: 1rem;
  margin-bottom: 1rem;
  display: grid;
  gap: .5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .85rem;
  padding: .35rem 0;
  border-bottom: 1px dashed var(--border);
}

.summary-row span {
  color: var(--text-muted);
}

.upload-preview {
  list-style: none;
  margin: .65rem 0 0;
  padding: .65rem;
  background: var(--surface-soft);
  border-radius: 8px;
  font-size: .8rem;
  color: var(--text-soft);
}

.form-alert {
  padding: .75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: .88rem;
}

.form-alert--success {
  background: rgba(16, 185, 129, .12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, .25);
}

.form-alert--error {
  background: rgba(220, 38, 38, .1);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, .2);
}

.wizard-help-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
  font-size: .85rem;
  color: var(--text-soft);
}

.wizard-help-list i {
  color: var(--accent);
  width: 1.1rem;
}

.monitoring-aside hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

.faq-grid {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  padding: 0.85rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0.65rem 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Iran projects distribution map */
.iran-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.75fr);
  gap: 1.25rem;
  align-items: stretch;
}

.iran-map-panel {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.iran-map-canvas {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--glass-border, var(--border));
  background: var(--surface-elevated);
}

.iran-map-leaflet {
  width: 100%;
  height: min(520px, 68vh);
  min-height: 22rem;
  z-index: 1;
}

.iran-map-canvas .leaflet-container {
  border-radius: 1.25rem;
}

.iran-leaflet-marker-wrap {
  background: transparent;
  border: 0;
}

.iran-leaflet-marker {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.iran-leaflet-marker-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.28);
  animation: iran-marker-pulse 2.4s ease-out infinite;
}

.iran-leaflet-marker-core {
  position: relative;
  z-index: 1;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #10b981, #0ea5e9);
  border: 2.5px solid #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.iran-leaflet-marker-core:empty {
  width: 0.95rem;
  height: 0.95rem;
}

.iran-leaflet-popup .leaflet-popup-content-wrapper {
  border-radius: 0.9rem;
  border: 1px solid var(--glass-border, var(--border));
  background: var(--glass-bg, rgba(255, 255, 255, 0.94));
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
}

.iran-leaflet-popup .leaflet-popup-content {
  margin: 0.8rem 0.95rem;
  font-family: var(--font-sans, inherit);
}

.iran-leaflet-popup .leaflet-popup-tip {
  background: var(--glass-bg, rgba(255, 255, 255, 0.94));
}

.iran-leaflet-popup-inner h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.iran-leaflet-popup-inner p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.iran-leaflet-popup-inner ul {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.iran-leaflet-popup-inner li {
  font-size: 0.82rem;
}

.iran-leaflet-popup-inner a {
  color: var(--accent);
  text-decoration: none;
}

.iran-leaflet-popup-inner a:hover {
  text-decoration: underline;
}

.iran-map-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.iran-map-stat {
  text-align: center;
  padding: 0.65rem 0.5rem;
  border-radius: 0.85rem;
  background: var(--glass-bg, rgba(255, 255, 255, 0.45));
  border: 1px solid var(--glass-border, var(--border));
}

.iran-map-stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.iran-map-stat-label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.iran-map-legend {
  padding: 1.1rem 1.15rem;
  align-self: start;
}

.iran-map-legend-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

.iran-map-legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-height: 28rem;
  overflow: auto;
}

.iran-map-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.iran-map-legend-dot {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  flex-shrink: 0;
}

.iran-map-legend-copy {
  display: grid;
  gap: 0.1rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.iran-map-legend-copy strong {
  color: var(--text);
  font-size: 0.88rem;
}

@keyframes iran-marker-pulse {
  0% {
    opacity: 0.55;
    transform: scale(0.75);
  }
  70% {
    opacity: 0;
    transform: scale(1.35);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

@media (max-width: 991px) {
  .iran-map-layout {
    grid-template-columns: 1fr;
  }

  .iran-map-legend-list {
    max-height: none;
  }
}

@media (max-width: 767px) {
  .iran-map-stats {
    grid-template-columns: 1fr;
  }

  .iran-map-leaflet {
    min-height: 16rem;
    height: 58vh;
  }
}

