/* Light theme overrides */
body.light {
  color: #0f172a;
  background: #f8fafc;
}
body.light .site-header { background: rgba(255,255,255,0.85); }
body.light .hero p, body.light .hero-points { color: #475569; }
body.light .feature-card, body.light .stat, body.light .step, body.light .compat-card, body.light .faq-list details, body.light .demo-controls, body.light .demo-invoice, body.light .trust-card {
  background: rgba(255,255,255,0.85); border-color: rgba(15,23,42,0.08); color: #0f172a;
}
body.light .feature-card h3, body.light .step h3, body.light .compat-card h3, body.light .faq-list summary, body.light .di-title { color: #0f172a; }
body.light .nav a { color: #475569; }
body.light .invoice-mock { background: rgba(255,255,255,0.85); border-color: rgba(15,23,42,0.08); }
body.light .mock-title, body.light .di-title { color: var(--accent); }

:root {
  --accent: #1f4e79;
  --accent-2: #14b8a6;
  --accent-dark: #163a5a;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, 0.08);
  --surface: rgba(255, 255, 255, 0.7);
  --surface-solid: #ffffff;
  --bg: #0b1220;
  --bg-soft: #0f1a2e;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(2, 6, 23, 0.35);
  --max: 1200px;
  --glow: 0 0 40px rgba(20, 184, 166, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", Arial, sans-serif;
  color: #e2e8f0;
  background: var(--bg);
  line-height: 1.8;
  direction: rtl;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 18, 32, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  box-shadow: var(--glow);
}
.nav {
  display: flex;
  gap: 20px;
  margin-right: auto;
}
.nav a {
  text-decoration: none;
  color: #cbd5e1;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: #fff; }
.nav-toggle, .theme-toggle {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 10px;
  width: 40px; height: 40px;
  cursor: pointer;
  font-size: 18px;
}
.nav-toggle { display: none; }
.header-cta { margin-right: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: var(--glow);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  color: #e2e8f0;
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-lg { padding: 15px 30px; font-size: 17px; }

.hero {
  position: relative;
  padding: 110px 0 90px;
  z-index: 1;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  animation: floatGlow 8s ease-in-out infinite;
}
.hero-glow-1 { width: 420px; height: 420px; background: var(--accent-2); top: -120px; right: -80px; }
.hero-glow-2 { width: 360px; height: 360px; background: var(--accent); bottom: -120px; left: -60px; animation-delay: 2s; }
@keyframes floatGlow {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(20px,-30px) scale(1.08); }
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(20,184,166,0.12);
  color: var(--accent-2);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 18px;
  border: 1px solid rgba(20,184,166,0.25);
}
.hero h1 {
  font-size: 46px;
  line-height: 1.25;
  margin: 0 0 18px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.grad-text {
  background: linear-gradient(120deg, var(--accent-2), #67e8f9, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { color: #cbd5e1; font-size: 18px; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: #94a3b8;
  font-size: 14px;
}
.hero-points li::before {
  content: "✦ ";
  color: var(--accent-2);
  font-weight: 700;
}

.invoice-mock {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  max-width: 380px;
  margin-inline-start: auto;
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  transition: transform 0.15s ease;
}
.invoice-mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--accent-2);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.mock-title { font-weight: 700; font-size: 18px; color: #fff; }
.mock-sub { font-size: 12px; color: #94a3b8; }
.mock-logo {
  width: 46px; height: 46px; border-radius: 10px;
  background: rgba(255,255,255,0.08); display: grid; place-items: center;
  font-size: 11px; color: #94a3b8;
}
.mock-row {
  display: flex; justify-content: space-between;
  font-size: 13px; padding: 4px 0; color: #94a3b8;
}
.mock-table { margin: 12px 0; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.mock-th, .mock-tr {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  padding: 8px 10px; font-size: 12px;
}
.mock-th { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 600; }
.mock-tr { border-top: 1px solid rgba(255,255,255,0.06); color: #e2e8f0; }
.mock-total {
  display: flex; justify-content: space-between;
  font-weight: 700; color: var(--accent-2); padding-top: 8px;
  border-top: 2px solid var(--accent-2);
}
.invoice-mock-footer {
  margin-top: 12px; text-align: center; font-size: 11px; color: #94a3b8;
}

﻿
.stats { padding: 40px 0; z-index: 1; position: relative; }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(10px);
}
.stat-num { font-size: 34px; font-weight: 900; color: var(--accent-2); }
.stat-label { color: #94a3b8; font-size: 13px; margin-top: 4px; }

.section { padding: 80px 0; position: relative; z-index: 1; }
.section-alt { background: rgba(255,255,255,0.02); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 34px; margin: 0 0 8px; font-weight: 900; }
.section-head p { color: #94a3b8; margin: 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(20,184,166,0.15); }
.feature-icon { font-size: 30px; margin-bottom: 12px; }
.feature-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: #fff; }
.feature-card p { margin: 0; color: #94a3b8; font-size: 14px; }

.glass {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

.demo-wrap { display: grid; gap: 22px; }
.demo-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  padding: 6px;
  border-radius: 12px;
}
.demo-tab {
  background: transparent;
  border: 0;
  color: #cbd5e1;
  padding: 8px 18px;
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.2s;
}
.demo-tab:hover { color: #fff; }
.demo-tab.active {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: var(--glow);
}
.demo-invoice {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(2,6,23,0.45);
  padding: 26px;
  max-width: 600px;
  margin: 0 auto;
  backdrop-filter: blur(14px);
  transition: all 0.35s ease;
  overflow: hidden;
}
.demo-invoice::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}
.demo-invoice.tpl-modern {
  transform: scale(1.01);
}
.demo-invoice.tpl-minimal {
  border-style: dashed;
}
.di-header {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid var(--accent-2); padding-bottom: 12px; margin-bottom: 14px;
}
.di-title { font-weight: 700; font-size: 18px; color: #fff; }
.di-sub { font-size: 12px; color: #94a3b8; }
.di-logo {
  width: 52px; height: 52px; border-radius: 10px;
  background: rgba(255,255,255,0.08); display: grid; place-items: center;
  font-size: 12px; color: #94a3b8;
}
.di-row {
  display: flex; justify-content: space-between;
  font-size: 13px; padding: 4px 0; color: #94a3b8;
}
.di-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.di-table th, .di-table td { padding: 9px; border: 1px solid rgba(255,255,255,0.08); text-align: right; color: #e2e8f0; }
.di-table thead th { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; }
.di-total {
  display: flex; justify-content: space-between;
  font-weight: 700; color: var(--accent-2); padding-top: 8px;
  border-top: 2px solid var(--accent-2);
}
.di-footer { margin-top: 12px; text-align: center; font-size: 11px; color: #94a3b8; }

.demo-invoice.tpl-modern .di-header { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; padding: 14px; border-radius: 10px; border: 0; }
.demo-invoice.tpl-modern .di-title, .demo-invoice.tpl-modern .di-sub { color: #fff; }
.demo-invoice.tpl-modern .di-logo { background: rgba(255,255,255,0.2); color: #fff; }
.demo-invoice.tpl-minimal .di-header { border-bottom: 1px solid rgba(255,255,255,0.12); }
.demo-invoice.tpl-minimal .di-title { color: #e2e8f0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 26px; text-align: center;
  backdrop-filter: blur(10px);
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff; font-weight: 800;
  display: grid; place-items: center; margin: 0 auto 12px; font-size: 18px;
  box-shadow: var(--glow);
}
.step h3 { margin: 0 0 6px; font-weight: 700; color: #fff; }
.step p { margin: 0; color: #94a3b8; font-size: 14px; }

.compat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 24px; backdrop-filter: blur(10px);
}
.compat-card h3 { margin: 0 0 10px; color: #fff; }
.compat-card ul { margin: 0; padding-inline-start: 20px; color: #94a3b8; }
.compat-card li { margin: 4px 0; }

.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-list details {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 16px 20px;
  backdrop-filter: blur(10px);
}
.faq-list summary { cursor: pointer; font-weight: 600; color: #fff; }
.faq-list p { color: #94a3b8; margin: 8px 0 0; }

/* Trust grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.trust-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.25s, box-shadow 0.25s;
}
.trust-card:hover { transform: translateY(-5px); box-shadow: 0 18px 48px rgba(20,184,166,0.12); }
.trust-icon { font-size: 36px; margin-bottom: 14px; display: block; }
.trust-card h3 { margin: 0 0 8px; font-weight: 700; color: #fff; font-size: 17px; }
.trust-card p { margin: 0; color: #94a3b8; font-size: 14px; }

/* Hero lead */
.hero-lead { color: #cbd5e1; font-size: 18px; margin: 0 0 26px; line-height: 1.9; }

/* Footer brand */
.footer-brand { display: flex; flex-direction: column; gap: 3px; }
.footer-brand strong { font-size: 16px; color: #fff; }
.footer-brand span { font-size: 13px; color: #64748b; }

.section-cta {
  background: linear-gradient(135deg, rgba(20,184,166,0.15), rgba(31,78,121,0.15));
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.section-cta h2 { color: #fff; font-size: 36px; margin: 0 0 8px; }
.section-cta p { color: #cbd5e1; margin: 0 0 22px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.section-cta .btn-ghost { color: #e2e8f0; border-color: rgba(255,255,255,0.25); }
.cta-note { margin-top: 18px; font-size: 13px; color: #94a3b8; }

.site-footer {
  padding: 32px 0; background: #050a14; color: #fff;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: #94a3b8; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 12px; color: #64748b; }

.demo-controls {
  display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; align-items: center;
  padding: 18px; border-radius: var(--radius);
}
.demo-controls label { display: flex; align-items: center; gap: 8px; font-weight: 500; color: #e2e8f0; }
.demo-controls input[type=color] {
  padding: 4px; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px;
  background: rgba(255,255,255,0.06); width: 44px; height: 34px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .invoice-mock { margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .compat-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 600px) {
  .nav { display: none; flex-direction: column; position: absolute; top: 74px; right: 0; left: 0; background: #0b1220; padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .stats-inner { grid-template-columns: 1fr; }
}

