:root {
  color-scheme: light;
  --bg: #f8fbff;
  --bg-soft: #eef4ff;
  --surface: #ffffff;
  --surface-soft: #f6f9ff;
  --text: #17263d;
  --muted: #5e718d;
  --primary: #1368f5;
  --primary-dark: #0a4fc2;
  --accent: #12b886;
  --accent-soft: #e9fff8;
  --border: #d9e4f2;
  --shadow: 0 18px 45px rgba(15, 32, 61, 0.08);
  --radius: 22px;
  --container: 1180px;
  --eyebrow-bg: #eaf1ff;
  --section-alt-bg: rgba(255, 255, 255, 0.55);
  --section-accent-bg: linear-gradient(135deg, #eff5ff, #f9fcff);
  --chip-bg: #ffffff;
  --field-bg: #fbfdff;
  --footer-bg: rgba(255, 255, 255, 0.7);
  --icon-bg: linear-gradient(135deg, #e8f0ff, #f5f9ff);
  --focus-ring: rgba(19, 104, 245, 0.1);
  --header-bg: rgba(255, 255, 255, 0.9);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #07111f;
    --bg-soft: #0b1728;
    --surface: #0f1c2d;
    --surface-soft: #13243a;
    --text: #edf4ff;
    --muted: #a8bad3;
    --primary: #60a5fa;
    --primary-dark: #93c5fd;
    --accent: #34d399;
    --accent-soft: rgba(52, 211, 153, 0.12);
    --border: #21364f;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    --eyebrow-bg: #13243a;
    --section-alt-bg: rgba(9, 18, 32, 0.45);
    --section-accent-bg: linear-gradient(135deg, #091423, #0d1b2e);
    --chip-bg: #13243a;
    --field-bg: #0c1828;
    --footer-bg: rgba(9, 18, 32, 0.72);
    --icon-bg: linear-gradient(135deg, #183150, #10233a);
    --focus-ring: rgba(96, 165, 250, 0.16);
    --header-bg: rgba(7, 17, 31, 0.94);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0b1728;
  --surface: #0f1c2d;
  --surface-soft: #13243a;
  --text: #edf4ff;
  --muted: #a8bad3;
  --primary: #60a5fa;
  --primary-dark: #93c5fd;
  --accent: #34d399;
  --accent-soft: rgba(52, 211, 153, 0.12);
  --border: #21364f;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  --eyebrow-bg: #13243a;
  --section-alt-bg: rgba(9, 18, 32, 0.45);
  --section-accent-bg: linear-gradient(135deg, #091423, #0d1b2e);
  --chip-bg: #13243a;
  --field-bg: #0c1828;
  --footer-bg: rgba(9, 18, 32, 0.72);
  --icon-bg: linear-gradient(135deg, #183150, #10233a);
  --focus-ring: rgba(96, 165, 250, 0.16);
  --header-bg: rgba(7, 17, 31, 0.94);
}

:root[data-theme="light"] {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
  line-height: 1.9;
  transition: background 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--section-alt-bg);
}

.section-accent {
  background: var(--section-accent-bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-text strong {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.brand-text small {
  color: var(--muted);
  font-size: 0.82rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--primary-dark);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

.hero {
  padding-top: 3.5rem;
}

.hero-grid,
.demo-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.badge,
.eyebrow,
.soon-badge,
.info-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
}

.badge {
  margin-bottom: 1rem;
  padding: 0.4rem 0.85rem;
  background: var(--accent-soft);
  color: #047857;
  font-size: 0.92rem;
}

.eyebrow {
  margin-bottom: 0.8rem;
  padding: 0.3rem 0.75rem;
  background: var(--eyebrow-bg);
  color: var(--primary-dark);
  font-size: 0.88rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.5;
}

h1 {
  font-size: clamp(2rem, 3.8vw, 3.3rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  margin-bottom: 0.7rem;
}

.highlight {
  color: var(--primary);
}

.lead,
.section-heading p,
.visual-note,
.card p,
.demo-copy p,
.form-note {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 0.85rem 1.3rem;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.hero-highlights li {
  position: relative;
  padding-right: 1.4rem;
  color: var(--muted);
}

.hero-highlights li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}

.hero-visual,
.demo-panel,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-visual {
  padding: 1rem;
}

.hero-visual img {
  width: 100%;
  border-radius: 16px;
}

.visual-note {
  margin: 0.8rem 0 0;
  font-size: 0.92rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.cards-grid {
  display: grid;
  gap: 1rem;
}

.cards-grid-features {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-grid-services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 1.2rem;
}

.feature-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--icon-bg);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 900;
  flex-shrink: 0;
}

.feature-card h3,
.service-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.soon-card {
  border-color: #bdebdc;
}

.soon-badge {
  padding: 0.15rem 0.5rem;
  background: #fff5d9;
  color: #a16207;
  font-size: 0.72rem;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.service-card {
  min-height: 100%;
}

.demo-copy {
  padding-left: 1rem;
}

.demo-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.info-chip {
  padding: 0.4rem 0.75rem;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  color: var(--primary-dark);
  font-size: 0.88rem;
}

.demo-panel {
  padding: 1rem;
}

.demo-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  font-weight: 700;
  font-size: 0.92rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: var(--field-bg);
  color: var(--text);
  outline: none;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #9ac0ff;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.form-note {
  margin: -0.25rem 0 0;
  font-size: 0.9rem;
}

.form-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  min-width: min(360px, calc(100vw - 2rem));
  max-width: 420px;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  font-weight: 700;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.form-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.form-toast.is-success {
  border-color: rgba(4, 120, 87, 0.16);
  background: var(--accent-soft);
  color: #047857;
}

.form-toast.is-error {
  border-color: rgba(220, 38, 38, 0.2);
  background: rgba(254, 242, 242, 0.98);
  color: #b91c1c;
}

.site-footer {
  padding: 1.4rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.footer-inner a {
  color: var(--primary-dark);
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero-grid,
  .demo-grid,
  .cards-grid-features,
  .cards-grid-services,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .demo-copy {
    padding-left: 0;
  }
}

@media (max-width: 820px) {
  .form-toast {
    right: 1rem;
    left: 1rem;
    min-width: 0;
    max-width: none;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
    margin-right: auto;
  }

  .theme-toggle {
    order: -1;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.75rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
