/* ===== Design tokens ===== */
:root {
  --bg: #08070d;
  --bg-soft: #0e0c17;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f1f7;
  --text-dim: #a6a1b5;
  --text-dimmer: #746f85;

  --violet: #8b5cf6;
  --pink: #ec4899;
  --orange: #f97316;
  --cyan: #22d3ee;

  --grad-brand: linear-gradient(90deg, var(--violet), var(--pink) 55%, var(--orange));
  --grad-brand-soft: linear-gradient(120deg, rgba(139,92,246,0.18), rgba(236,72,153,0.14) 55%, rgba(249,115,22,0.12));

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-glow: 0 8px 40px rgba(139, 92, 246, 0.25);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Vazirmatn', system-ui, sans-serif;
  font-optical-sizing: auto;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ===== Background blobs ===== */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: drift 22s ease-in-out infinite alternate;
}
.blob-1 { width: 520px; height: 520px; background: var(--violet); top: -160px; right: -120px; }
.blob-2 { width: 480px; height: 480px; background: var(--pink); bottom: -180px; left: -140px; animation-delay: -6s; }
.blob-3 { width: 420px; height: 420px; background: var(--cyan); top: 40%; left: 50%; opacity: 0.16; animation-delay: -12s; }

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.12); }
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.12s; }
.reveal-delay-2.in-view { transition-delay: 0.24s; }

/* ===== Typography helpers ===== */
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-ai {
  color: var(--orange);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  margin-bottom: 18px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.28; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.35; }
h3 { font-size: 1.2rem; }
p { color: var(--text-dim); margin: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 46px rgba(236, 72, 153, 0.38); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--surface-strong); transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: 0.88rem; }
.btn-block { width: 100%; padding: 16px; font-size: 1.02rem; position: relative; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: rgba(8, 7, 13, 0.6);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; }
.logo-mark {
  display: inline-block;
  width: 42px; height: 42px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--grad-brand-soft);
  border: 1px solid var(--border-strong);
}
.main-nav { display: flex; align-items: center; gap: 30px; margin-inline-start: auto; }
.main-nav a { color: var(--text-dim); font-weight: 500; font-size: 0.96rem; transition: color 0.2s; position: relative; }
.main-nav a:hover { color: var(--text); }
.nav-cta { flex-shrink: 0; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ===== Hero ===== */
.hero { padding: 168px 0 90px; position: relative; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-sub { margin-top: 20px; font-size: 1.08rem; max-width: 52ch; }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 48px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-size: 1.25rem; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 0.85rem; color: var(--text-dimmer); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-frame {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 17;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(160deg, #18151f, #0b0a11);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), var(--shadow-glow);
}
.phone-notch {
  position: absolute;
  top: 20px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 20px;
  background: #0b0a11;
  border-radius: 20px;
  z-index: 2;
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 34px;
}
.phone-glow {
  position: absolute;
  inset: -2px;
  border-radius: 44px;
  background: var(--grad-brand);
  opacity: 0.35;
  filter: blur(30px);
  z-index: -1;
}
.floating-chip {
  position: absolute;
  max-width: 180px;
  padding: 10px 16px;
  border-radius: 20px;
  background: rgba(20, 18, 28, 0.85);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  animation: floaty 5s ease-in-out infinite;
}
.chip-1 { top: 10%; right: -10%; animation-delay: 0s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== Trust strip ===== */
.trust-strip { padding: 8px 0 60px; }
.trust-inner { text-align: center; }
.trust-inner p {
  font-size: 0.95rem;
  color: var(--text-dimmer);
  padding: 18px 26px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ===== Sections generic ===== */
.section { padding: 100px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head.align-start { margin-inline: 0; text-align: right; }
.section-desc { margin-top: 14px; font-size: 1.02rem; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background .35s var(--ease);
}
.step-card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-strong); }
.step-num {
  position: absolute; top: 24px; left: 28px;
  font-size: 0.85rem; font-weight: 700; color: var(--text-dimmer);
}
.step-icon { font-size: 2.1rem; margin-bottom: 18px; }
.step-card h3 { margin-bottom: 10px; }
.step-card p { font-size: 0.95rem; }

/* ===== Showcase ===== */
.showcase-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 46px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.showcase-card:last-child { border-bottom: none; }
.showcase-card.reverse { grid-template-columns: 0.7fr 1.3fr; }
.showcase-card.reverse .showcase-media { order: 2; }
.showcase-card.reverse .showcase-info { order: 1; }

.showcase-media {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.combo-media {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.combo-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.combo-item .variant-picker {
  grid-column: 1 / -1;
  justify-content: center;
  margin-top: 4px;
}
.combo-item.is-extra { display: none; }
.combo-media.is-expanded .combo-item.is-extra { display: grid; }
.combo-more-btn {
  align-self: center;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px dashed var(--border-strong);
  background: var(--surface);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  transition: 0.25s var(--ease);
}
.combo-more-btn:hover { background: var(--surface-strong); color: var(--text); border-style: solid; }

.media-box {
  margin: 0;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0c0a13;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 560px;
}
.media-box img, .media-box video {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
}
.media-box figcaption {
  position: absolute;
  bottom: 0; inset-inline: 0;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
}
.output-media { box-shadow: var(--shadow-glow); border-color: rgba(139,92,246,0.35); }
.showcase-arrow {
  font-size: 1.4rem;
  color: var(--text-dimmer);
  direction: ltr;
  unicode-bidi: bidi-override;
}

.showcase-info h3 { margin-bottom: 10px; }
.showcase-info p { font-size: 0.96rem; }
.example-note {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 12px;
}
.variant-picker { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.variant-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.25s var(--ease);
}
.variant-btn:hover { background: var(--surface-strong); color: var(--text); }
.variant-btn.is-active { background: var(--grad-brand); color: #fff; border-color: transparent; }

/* ===== Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.35s var(--ease), border-color .35s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.feature-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--grad-brand-soft);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.93rem; }

/* ===== Contact ===== */
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex; align-items: center; gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.contact-card:hover { transform: translateX(-4px); border-color: var(--border-strong); }
.contact-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad-brand-soft);
  font-size: 1.3rem;
}
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p { font-size: 0.95rem; }
.contact-card a:hover { color: var(--pink); }

/* ===== Order form ===== */
.order-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.order-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-brand-soft);
  opacity: 0.5;
  z-index: -1;
}
.order-form { display: flex; flex-direction: column; gap: 20px; margin-top: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--text-dim); }
.req { color: var(--pink); }
.field input, .field textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.96rem;
  transition: border-color 0.25s, background 0.25s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dimmer); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--violet);
  background: rgba(139, 92, 246, 0.08);
}
.field input:invalid:not(:placeholder-shown) { border-color: rgba(236,72,153,0.6); }

.btn-block { margin-top: 6px; }
.btn-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin 0.7s linear infinite;
}
.order-form.is-loading .btn-spinner { display: inline-block; }
.order-form.is-loading .btn-label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-note { font-size: 0.82rem; color: var(--text-dimmer); text-align: center; margin-top: -6px; }
.form-success, .form-error {
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
}
.form-success { background: rgba(34, 197, 94, 0.12); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.3); }
.form-error { background: rgba(236, 72, 153, 0.1); color: #f472b6; border: 1px solid rgba(244, 114, 182, 0.3); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 64px;
  background: var(--bg-soft);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { margin-top: 14px; font-size: 0.9rem; max-width: 32ch; }
.footer-links h4, .footer-contact h4 { font-size: 0.95rem; margin-bottom: 16px; color: var(--text); }
.footer-links a, .footer-contact p {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.footer-links a:hover { color: var(--pink); }
.footer-contact a:hover { color: var(--pink); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 22px;
  text-align: center;
}
.footer-bottom p { font-size: 0.85rem; color: var(--text-dimmer); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 20px; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .main-nav { position: fixed; top: 68px; inset-inline: 16px; flex-direction: column; align-items: stretch; gap: 4px; background: rgba(14,12,23,0.97); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; backdrop-filter: blur(16px); transform: translateY(-16px); opacity: 0; pointer-events: none; transition: 0.25s var(--ease); }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 14px; border-radius: 10px; }
  .main-nav a:hover { background: var(--surface); }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .steps, .features-grid { grid-template-columns: 1fr; }
  .showcase-card, .showcase-card.reverse { grid-template-columns: 1fr; }
  .showcase-card.reverse .showcase-media, .showcase-card.reverse .showcase-info { order: initial; }
  .showcase-media { grid-template-columns: 1fr auto 1fr; }
}

@media (max-width: 600px) {
  .hero { padding-top: 132px; }
  .form-row { grid-template-columns: 1fr; }
  .showcase-media { grid-template-columns: 1fr; }
  .combo-item { grid-template-columns: 1fr; }
  .showcase-arrow { transform: rotate(-90deg); justify-self: center; }
  .footer-inner { grid-template-columns: 1fr; }
}
