/* CloudExi CRM — public marketing pages (glass / light blue) */

@font-face {
  font-family: "Vazirmatn";
  src: url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/misc/Farsi-Digits/fonts/webfonts/Vazirmatn-FD-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/misc/Farsi-Digits/fonts/webfonts/Vazirmatn-FD-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --m-bg: #eef6ff;
  --m-bg2: #dbeafe;
  --m-surface: rgba(255, 255, 255, 0.72);
  --m-surface-strong: rgba(255, 255, 255, 0.88);
  --m-border: rgba(147, 197, 253, 0.45);
  --m-text: #0f172a;
  --m-muted: #475569;
  --m-faint: #64748b;
  --m-brand: #2563eb;
  --m-brand-dark: #1d4ed8;
  --m-brand-light: #60a5fa;
  --m-cyan: #06b6d4;
  --m-glass-blur: 16px;
  --m-radius: 20px;
  --m-radius-sm: 14px;
  --m-shadow: 0 8px 32px rgba(37, 99, 235, 0.08);
  --m-shadow-lg: 0 20px 50px rgba(37, 99, 235, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.mkt {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--m-text);
  background:
    radial-gradient(900px 500px at 10% -5%, rgba(96, 165, 250, 0.35), transparent 60%),
    radial-gradient(700px 400px at 90% 0%, rgba(6, 182, 212, 0.2), transparent 55%),
    linear-gradient(180deg, #f0f9ff 0%, var(--m-bg) 40%, #e0f2fe 100%);
  min-height: 100vh;
}

a { color: var(--m-brand); text-decoration: none; }
a:hover { color: var(--m-brand-dark); }

.mkt-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* Nav */
.mkt-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(var(--m-glass-blur));
  -webkit-backdrop-filter: blur(var(--m-glass-blur));
  background: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid var(--m-border);
}

.mkt-nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mkt-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  color: var(--m-text);
}
.mkt-brand:hover { color: var(--m-brand); }

.mkt-brand__logo-img {
  height: 44px;
  width: auto;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

.mkt-brand__text {
  font-weight: 700;
  color: var(--m-text);
  letter-spacing: -0.02em;
}

.mkt-brand__text b {
  color: var(--m-brand);
  font-weight: 800;
}

.mkt-brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--m-brand), var(--m-cyan));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.mkt-links {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}

.mkt-links a {
  color: var(--m-muted);
  font-size: 14px;
  padding: .4rem .75rem;
  border-radius: 999px;
  transition: .2s;
}
.mkt-links a:hover {
  color: var(--m-brand);
  background: rgba(37, 99, 235, 0.08);
}

.mkt-nav__actions { display: flex; gap: .5rem; align-items: center; }

.mkt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .2s;
  font-family: inherit;
}

.mkt-btn--primary {
  background: linear-gradient(135deg, var(--m-brand), #3b82f6);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}
.mkt-btn--primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.mkt-btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--m-border);
  color: var(--m-brand-dark);
}
.mkt-btn--ghost:hover { background: #fff; }

.mkt-btn--lg { padding: .75rem 1.5rem; font-size: 15px; }

/* Glass cards */
.glass {
  background: var(--m-surface);
  backdrop-filter: blur(var(--m-glass-blur));
  -webkit-backdrop-filter: blur(var(--m-glass-blur));
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius);
  box-shadow: var(--m-shadow);
}

.glass-card {
  background: var(--m-surface-strong);
  backdrop-filter: blur(12px);
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius-sm);
  padding: 1.25rem;
  box-shadow: var(--m-shadow);
  transition: .25s;
}
.glass-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--m-shadow-lg);
  transform: translateY(-2px);
}

.text-gradient {
  background: linear-gradient(135deg, var(--m-brand), var(--m-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero */
.mkt-hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 1.5rem 3.5rem;
  text-align: center;
}

.mkt-hero__glow {
  pointer-events: none;
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .45;
}
.mkt-hero__glow--1 { top: -80px; right: 10%; background: #93c5fd; }
.mkt-hero__glow--2 { bottom: -60px; left: 5%; background: #67e8f9; }

.mkt-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1.35;
  margin: .75rem 0 1rem;
}

.mkt-hero__lead {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  color: var(--m-muted);
  font-size: 1.05rem;
}

.mkt-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.mkt-badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--m-brand-dark);
  font-size: 12px;
  font-weight: 700;
}

/* Stats */
.mkt-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.mkt-stat {
  text-align: center;
  padding: 1rem;
}
.mkt-stat__val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--m-brand);
}
.mkt-stat__lbl { font-size: 13px; color: var(--m-faint); }

/* Sections */
.mkt-section { padding: 2.5rem 0; }
.mkt-section__title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: .5rem;
}
.mkt-section__sub {
  text-align: center;
  color: var(--m-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 14px;
}

.mkt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.mkt-chip {
  padding: .4rem .85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--m-border);
  font-size: 13px;
  color: var(--m-brand-dark);
}

.mkt-grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.mkt-grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.mkt-grid-4 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.mkt-feature__icon { font-size: 2rem; margin-bottom: .5rem; }
.mkt-feature__title { font-weight: 700; margin-bottom: .35rem; color: var(--m-brand-dark); }
.mkt-feature__desc { font-size: 13.5px; color: var(--m-muted); margin-bottom: .5rem; }
.mkt-feature ul {
  margin: 0;
  padding-right: 1.1rem;
  font-size: 13px;
  color: var(--m-faint);
}

.mkt-step__n {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--m-brand), var(--m-cyan));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: .75rem;
}

/* Plans */
.mkt-plan {
  position: relative;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.mkt-plan.is-highlight {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: var(--m-shadow-lg);
}
.mkt-plan__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--m-brand), var(--m-cyan));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: .2rem .75rem;
  border-radius: 999px;
}
.mkt-plan__name { font-size: 1.2rem; font-weight: 700; text-align: center; }
.mkt-plan__price {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--m-brand);
  margin: .5rem 0 .15rem;
}
.mkt-plan__note { text-align: center; font-size: 12px; color: var(--m-faint); margin-bottom: 1rem; }
.mkt-plan__trial {
  text-align: center;
  font-size: 12px;
  color: #059669;
  font-weight: 700;
  margin-bottom: .75rem;
}
.mkt-plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  flex: 1;
  font-size: 13.5px;
}
.mkt-plan li { padding: .25rem 0; }
.mkt-plan li::before { content: "✓ "; color: #059669; font-weight: 700; }
.mkt-plan li.is-no::before { content: "— "; color: #94a3b8; }
.mkt-plan .mkt-btn { width: 100%; margin-top: auto; }

/* FAQ */
.mkt-faq details {
  background: var(--m-surface-strong);
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius-sm);
  padding: .85rem 1rem;
  margin-bottom: .65rem;
}
.mkt-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--m-brand-dark);
  list-style: none;
}
.mkt-faq summary::-webkit-details-marker { display: none; }
.mkt-faq p { margin: .65rem 0 0; font-size: 14px; color: var(--m-muted); }

/* Contact */
.mkt-contact-card {
  display: block;
  padding: 1.5rem;
  color: inherit;
}
.mkt-contact-card:hover { color: inherit; }

/* Footer */
.mkt-footer {
  margin-top: 3rem;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--m-border);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  text-align: center;
  font-size: 13px;
  color: var(--m-faint);
}
.mkt-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.mkt-footer__copy { font-size: 12px; }

/* Guide */
.mkt-guide-section { margin-bottom: 1.5rem; }
.mkt-guide-section h2 {
  font-size: 1.1rem;
  color: var(--m-brand-dark);
  margin-bottom: .65rem;
}
.mkt-guide-section li { margin-bottom: .35rem; color: var(--m-muted); font-size: 14px; }

@media print {
  .mkt-nav, .mkt-footer, .mkt-no-print { display: none !important; }
  body.mkt { background: #fff; }
  .glass, .glass-card { box-shadow: none; border: 1px solid #ddd; }
}

@media (max-width: 768px) {
  .mkt-links { display: none; }
  .mkt-nav__actions .mkt-btn--ghost { display: none; }
}

/* Register form */
.mkt-register { padding: 1.25rem 0 2.5rem; max-width: 680px; margin: 0 auto; }

.mkt-register--full .mkt-register__form-card--solo { margin-top: 0; }

.mkt-register__top { text-align: center; margin-bottom: 1.25rem; }
.mkt-register__top h1 { font-size: 1.55rem; margin: .5rem 0 .35rem; }
.mkt-register__intro { color: var(--m-muted); font-size: 14px; margin: 0; }

.mkt-back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--m-muted);
  margin-bottom: .75rem;
}
.mkt-back-link:hover { color: var(--m-brand); }

.mkt-register__logo {
  height: 52px;
  width: auto;
  margin-bottom: .5rem;
}

.mkt-register__plan-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.1rem;
  margin-bottom: 1rem;
  font-size: 14px;
}
.mkt-register__plan-note { color: var(--m-muted); font-weight: 400; }

.mkt-register__form-card--solo { padding: 1.35rem 1.25rem 1.5rem; }

.mkt-register__section-title {
  font-weight: 800;
  font-size: 15px;
  color: var(--m-brand-dark);
  margin: 1.25rem 0 .65rem;
  padding-top: .5rem;
  border-top: 1px solid var(--m-border);
}

.mkt-fieldbox {
  border: 2px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  padding: .85rem 1rem;
  margin-bottom: .85rem;
}
.mkt-fieldbox__head {
  font-size: 13px;
  font-weight: 700;
  color: var(--m-text);
  margin-bottom: .55rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.mkt-fieldbox__optional {
  font-weight: 400;
  color: var(--m-faint);
  font-size: 12px;
}

.mkt-slug-preview {
  display: block;
  font-size: 12px;
  color: var(--m-muted);
  margin-top: .35rem;
}
.mkt-slug-hint {
  display: block;
  font-size: 12px;
  margin-top: .25rem;
  min-height: 1.1em;
}
.mkt-slug-hint.is-ok { color: #059669; font-weight: 700; }
.mkt-slug-hint.is-bad { color: #dc2626; font-weight: 700; }
.mkt-slug-hint.is-checking { color: var(--m-faint); }

.mkt-input--file { padding: .45rem; font-size: 13px; }
.mkt-input--select { cursor: pointer; }

.mkt-register__hero {
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}
.mkt-register__hero h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: .75rem 0 .35rem;
}
.mkt-register__hero p {
  margin: 0;
  color: var(--m-muted);
  font-size: 14px;
}
.mkt-register__logo {
  height: 56px;
  width: auto;
  margin-bottom: .75rem;
}

.mkt-register__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.25rem;
  align-items: start;
}

.mkt-register__form-card { padding: 1.5rem; }

.mkt-form__section {
  border: 0;
  margin: 0 0 1.35rem;
  padding: 0;
}
.mkt-form__legend {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 15px;
  color: var(--m-brand-dark);
  margin-bottom: .85rem;
  padding: 0;
}
.mkt-form__icon { font-size: 1.1rem; }

.mkt-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mkt-field { display: flex; flex-direction: column; gap: .35rem; }
.mkt-field--full { grid-column: 1 / -1; }
.mkt-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--m-text);
}
.mkt-field .req { color: #dc2626; }

.mkt-input {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.85);
  transition: border-color .2s, box-shadow .2s;
}
.mkt-input:focus {
  outline: none;
  border-color: var(--m-brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.mkt-field.is-error .mkt-input {
  border-color: #f87171;
  background: #fff5f5;
}
.mkt-field__hint {
  font-size: 12px;
  color: var(--m-faint);
  line-height: 1.5;
}
.mkt-field__error {
  font-size: 12px;
  color: #dc2626;
  font-weight: 600;
}

.mkt-alert {
  padding: .75rem 1rem;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 1rem;
}
.mkt-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.mkt-register__submit { width: 100%; margin-top: .5rem; }
.mkt-register__login-link {
  text-align: center;
  margin: 1rem 0 0;
  font-size: 13px;
  color: var(--m-faint);
}

.mkt-register__aside { display: flex; flex-direction: column; gap: 1rem; }
.mkt-register__plan-card h3,
.mkt-register__help h3 {
  font-size: 1rem;
  margin: 0 0 .75rem;
  color: var(--m-brand-dark);
}
.mkt-register__plan-amount {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--m-brand);
}
.mkt-register__plan-note {
  font-size: 12px;
  color: var(--m-faint);
}
.mkt-register__plan-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  font-size: 13px;
  color: var(--m-muted);
}
.mkt-register__plan-features li { padding: .2rem 0; }
.mkt-register__plan-features li::before { content: "✓ "; color: #059669; font-weight: 700; }
.mkt-register__plan-features li.is-highlight { color: #059669; font-weight: 700; }
.mkt-register__plan-change { width: 100%; }

.mkt-register__help ul {
  margin: 0 0 1rem;
  padding-right: 1.1rem;
  font-size: 13px;
  color: var(--m-muted);
  line-height: 1.7;
}
.mkt-register__help .mkt-btn { width: 100%; }

@media (max-width: 900px) {
  .mkt-register__grid { grid-template-columns: 1fr; }
  .mkt-form__grid { grid-template-columns: 1fr; }
}
