/* ============================================
   zaribafAI — site intro
   ============================================ */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070b16;
  --bg-soft: #0a1020;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9eef9;
  --muted: #9aa8c0;
  --teal: #2dd4bf;
  --teal-soft: rgba(45, 212, 191, 0.14);
  --indigo: #8b9bff;
  --amber: #fbbf24;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", "Tahoma", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.4; margin: 0 0 .6em; font-weight: 800; letter-spacing: -0.2px; }
p { margin: 0 0 1em; color: var(--muted); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 8px;
}

/* soft background glow */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 85% -8%, rgba(139, 155, 255, 0.16), transparent 65%),
    radial-gradient(760px 480px at 10% 2%, rgba(45, 212, 191, 0.13), transparent 62%),
    radial-gradient(900px 700px at 50% 108%, rgba(251, 191, 36, 0.07), transparent 68%);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
  z-index: 1;
}
.wrap.narrow { max-width: 860px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 22, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 11, 22, 0.9);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.18rem;
  flex-shrink: 0;
}
.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #04140f;
  background: linear-gradient(135deg, var(--teal), #6ee7d8 55%, var(--indigo));
  box-shadow: 0 8px 22px -10px rgba(45, 212, 191, .9);
}
.logo-mark svg { width: 19px; height: 19px; }
.logo-text { letter-spacing: -0.4px; }
.logo-ai {
  margin-inline-start: 2px;
  color: var(--teal);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}
.nav a {
  font-size: .92rem;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  transition: color .18s ease, background .18s ease;
}
.nav a:hover { color: var(--text); background: var(--panel); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 13px;
  font-family: inherit;
  font-size: .97rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
  white-space: nowrap;
}
.btn-primary {
  color: #04201b;
  background: linear-gradient(135deg, #4ce0cd, var(--teal) 55%, #7ee7cf);
  box-shadow: 0 16px 34px -18px rgba(45, 212, 191, .95);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -18px rgba(45, 212, 191, 1); }
.btn-ghost {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--panel-strong); transform: translateY(-2px); }
.btn-sm { padding: 9px 17px; font-size: .88rem; border-radius: 11px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .62; cursor: progress; transform: none; }

/* ---------- hero ---------- */
.hero { padding: 62px 0 20px; position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 54px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .84rem;
  font-weight: 500;
  color: #bfe9e2;
  background: var(--teal-soft);
  border: 1px solid rgba(45, 212, 191, .28);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, .18);
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: .5em;
}
.grad {
  background: linear-gradient(100deg, var(--teal), #9ee6ff 40%, var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 1.06rem;
  max-width: 33em;
  color: #b7c3d6;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 24px; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.hero-chips li {
  position: relative;
  font-size: .9rem;
  color: var(--muted);
  padding-inline-start: 20px;
}
.hero-chips li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .62em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--indigo));
}

/* hero visual */
.hero-visual { position: relative; }
.hero-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(45,212,191,.14), rgba(139,155,255,.12));
  box-shadow: var(--shadow);
}
.hero-card img { width: 100%; height: auto; }
.hero-card-bar {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: .78rem;
  color: #d5dceb;
  background: linear-gradient(180deg, rgba(6, 10, 20, .82), rgba(6, 10, 20, 0));
}
.app-dots { display: inline-flex; gap: 5px; }
.app-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); }
.hero-card-title { opacity: .82; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 15px;
  border-radius: 15px;
  background: rgba(12, 18, 32, .92);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .95);
  backdrop-filter: blur(8px);
  font-size: .8rem;
  animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .82rem; font-weight: 700; color: var(--text); }
.float-card small { color: var(--muted); font-size: .74rem; }
.float-a { inset-block-end: 16px; inset-inline-start: -18px; }
.float-b { inset-block-start: 62px; inset-inline-end: -20px; animation-delay: -3s; }
.tick {
  width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(45, 212, 191, .16); color: var(--teal);
  font-weight: 800; flex-shrink: 0;
}
.spark {
  width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(251, 191, 36, .15); flex-shrink: 0;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.stats li {
  background: rgba(10, 16, 32, .82);
  padding: 20px 18px;
  text-align: center;
}
.stats strong { display: block; font-size: 1.16rem; color: var(--text); font-weight: 800; }
.stats span { font-size: .82rem; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 92px 0; position: relative; z-index: 1; }
.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,0));
  border-block: 1px solid var(--line);
}
.section-head { max-width: 660px; margin: 0 auto 50px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid rgba(45,212,191,.22);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.5rem, 2.9vw, 2.15rem); }
.section-sub { font-size: 1rem; margin: 0; }

/* feature cards */
.grid { display: grid; gap: 18px; }
.cards { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 191, .34);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 26px 46px -34px rgba(45, 212, 191, .8);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  margin-bottom: 16px;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid rgba(45,212,191,.2);
}
.card-icon svg { width: 23px; height: 23px; }
.card h3 { font-size: 1.03rem; margin-bottom: .45em; }
.card p { font-size: .9rem; margin: 0; line-height: 1.8; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step {
  position: relative;
  padding: 30px 24px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.step-num {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #04201b;
  background: linear-gradient(135deg, var(--teal), #8ce9d3);
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: .9rem; margin: 0; }

/* ---------- demo ---------- */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.demo-copy h2 { font-size: clamp(1.5rem, 2.9vw, 2.1rem); }
.demo-copy > p { font-size: 1rem; }
.checklist { display: grid; gap: 11px; margin-top: 20px; }
.checklist li {
  position: relative;
  padding-inline-start: 30px;
  font-size: .93rem;
  color: #c2cddd;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 21px; height: 21px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 800;
  color: #04201b;
  background: var(--teal);
}

/* chat mockup */
.chat {
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(13, 19, 34, .96), rgba(9, 13, 25, .96));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.chat-top {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.chat-avatar {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 11px;
  color: #04201b;
  background: linear-gradient(135deg, var(--teal), var(--indigo));
}
.chat-avatar svg { width: 18px; height: 18px; }
.chat-who strong { display: block; font-size: .9rem; }
.chat-who small { font-size: .74rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.online {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(45,212,191,.16);
}
.chat-body { padding: 18px; display: grid; gap: 11px; }
.bubble {
  max-width: 88%;
  padding: 11px 15px;
  font-size: .88rem;
  line-height: 1.8;
  border-radius: 16px;
}
.bubble.user {
  margin-inline-start: auto;
  color: #06231e;
  background: linear-gradient(135deg, #63e5d0, var(--teal));
  border-end-start-radius: 6px;
  font-weight: 500;
}
.bubble.bot {
  margin-inline-end: auto;
  color: #cdd7e6;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-end-end-radius: 6px;
}
.bubble.file {
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 78%;
}
.bubble.file strong { display: block; font-size: .86rem; color: var(--text); }
.bubble.file small { font-size: .74rem; color: var(--muted); }
.file-ico {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(45,212,191,.13);
  flex-shrink: 0;
}

/* audiences */
.audiences { grid-template-columns: repeat(4, 1fr); }
.mini-card {
  padding: 24px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  border-inline-start: 3px solid rgba(45,212,191,.5);
}
.mini-card h3 { font-size: .98rem; margin-bottom: .4em; }
.mini-card p { font-size: .87rem; margin: 0; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  padding: 4px 20px;
  transition: border-color .2s ease, background .2s ease;
}
.faq details[open] {
  border-color: rgba(45,212,191,.3);
  background: rgba(45,212,191,.05);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  font-size: .97rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--teal);
  background: rgba(45,212,191,.12);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq details p { font-size: .92rem; margin: 0 0 18px; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-copy h2 { font-size: clamp(1.5rem, 2.9vw, 2.1rem); }

.form {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(13, 19, 34, .78);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: .87rem; font-weight: 500; color: #cfd8e6; }
.opt { color: var(--muted); font-weight: 400; font-size: .8rem; }
.field input, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: .93rem;
  color: var(--text);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color .18s ease, background .18s ease;
  resize: vertical;
  line-height: 1.8;
}
.field input::placeholder, .field textarea::placeholder { color: #6f7d92; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(45,212,191,.55);
  background: rgba(255,255,255,.07);
}
.field input.invalid, .field textarea.invalid { border-color: #f87171; }
.form-msg {
  margin: 0;
  font-size: .87rem;
  min-height: 0;
  color: var(--muted);
}
.form-msg.ok { color: #6ee7b7; }
.form-msg.err { color: #fca5a5; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 26px;
  position: relative;
  z-index: 1;
  background: rgba(6, 9, 18, .6);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand p { font-size: .88rem; margin: 10px 0 0; max-width: 34em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { font-size: .89rem; color: var(--muted); transition: color .18s ease; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: #77839a;
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.22,.7,.3,1);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .float-card { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .audiences { grid-template-columns: repeat(2, 1fr); }
  .float-a { inset-inline-start: -6px; }
  .float-b { inset-inline-end: -6px; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset-block-start: 72px;
    inset-inline: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--line-strong);
    background: rgba(10, 15, 28, .98);
    box-shadow: 0 30px 60px -30px #000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 14px; font-size: .95rem; }
  .nav-toggle { display: grid; }

  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-visual { max-width: min(460px, 100%); margin: 0 auto; width: 100%; }
  .hero-card-bar { font-size: .72rem; }

  /* keep floating cards inside the screen */
  .float-a { inset-inline-start: 8px; inset-block-end: 10px; }
  .float-b { inset-inline-end: 8px; inset-block-start: 44px; }

  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 44px; }
  .steps { grid-template-columns: 1fr; }
  .demo-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 74px 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .cards, .audiences { grid-template-columns: 1fr; }
  .header-actions .btn-primary { display: none; }
  .float-card { font-size: .72rem; padding: 9px 12px; }
  .float-b { inset-block-start: 46px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .btn { padding: 12px 20px; }
  .form { padding: 20px; }
  .bubble { max-width: 94%; }
  .bubble.file { max-width: 90%; }
  .footer-bottom { flex-direction: column; }
}