/* لوبیو | استایل سایت موقت */

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

:root {
  --mint-500: #82D8AF;
  --mint-300: #B5E8CF;
  --mint-100: #E3F6EC;
  --mint-50: #F3FBF7;
  --green-700: #1F7A55;
  --green-800: #17603F;
  --ink: #10261D;
  --ink-soft: #3D5348;
  --sand: #F4EBDD;
  --sand-200: #EADFCB;
  --white: #FFFFFF;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 8px rgba(16, 38, 29, .06);
  --shadow: 0 12px 32px -12px rgba(16, 38, 29, .18);
  --shadow-lg: 0 24px 48px -16px rgba(16, 38, 29, .25);
  --header-h: 72px;
  --font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--mint-50);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--green-700); text-underline-offset: 4px; }
a:hover { color: var(--green-800); }
h1, h2, h3 { margin: 0; line-height: 1.5; font-weight: 800; letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.container {
  width: min(100% - 40px, 1160px);
  margin-inline: auto;
}
.container.narrow { width: min(100% - 40px, 820px); }

.skip-link {
  position: absolute;
  inset-block-start: -80px;
  inset-inline-start: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  text-decoration: none;
  transition: inset-block-start .2s;
}
.skip-link:focus { inset-block-start: 12px; color: var(--white); }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--mint-500); color: var(--ink); box-shadow: 0 8px 20px -8px rgba(31, 122, 85, .55); }
.btn-primary:hover { color: var(--ink); box-shadow: 0 14px 26px -10px rgba(31, 122, 85, .6); background: #74CFA3; }
.btn-ghost { background: transparent; color: var(--green-800); border-color: var(--green-700); }
.btn-ghost:hover { background: var(--green-700); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { color: var(--white); background: #0A1812; box-shadow: var(--shadow); }
.btn-sm { min-height: 40px; padding: 4px 20px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 10px 34px; font-size: 18px; }

/* ---------- هدر ---------- */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(243, 251, 247, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-block-end: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: rgba(16, 38, 29, .08); box-shadow: 0 6px 20px -14px rgba(16, 38, 29, .25); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { border-radius: 12px; }
.brand-name { font-size: 22px; font-weight: 800; }

.nav { margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a:not(.btn) {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav-list a:not(.btn):hover { background: var(--mint-100); color: var(--ink); }
.nav-cta { display: none; }
.header-cta { display: none; }
.menu-toggle { display: none; }

@media (min-width: 1024px) {
  .header-cta { display: inline-flex; }
}

@media (max-width: 1023px) {
  .header-cta { display: none; }
  .nav { margin-inline-start: 0; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-inline-start: auto;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: var(--mint-100);
    cursor: pointer;
  }
  .menu-bars, .menu-bars::before, .menu-bars::after {
    display: block;
    width: 22px;
    height: 2.500px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .25s, background-color .25s;
    content: "";
  }
  .menu-bars { position: relative; }
  .menu-bars::before { position: absolute; inset-block-start: -7px; }
  .menu-bars::after { position: absolute; inset-block-start: 7px; }
  .menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    padding: 12px 20px 22px;
    background: var(--mint-50);
    border-block-end: 1px solid rgba(16, 38, 29, .08);
    box-shadow: 0 24px 30px -20px rgba(16, 38, 29, .3);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a:not(.btn) { padding: 12px 16px; font-size: 18px; border-radius: 14px; }
  .nav-cta { display: block; margin-block-start: 10px; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- هیرو ---------- */
.hero { position: relative; padding-block: 56px 36px; overflow: hidden; isolation: isolate; }
.blob { position: absolute; z-index: -1; border-radius: 62% 38% 55% 45% / 48% 58% 42% 52%; filter: blur(2px); }
.blob-a { width: 520px; height: 520px; inset-block-start: -180px; inset-inline-end: -140px; background: var(--mint-500); opacity: .45; animation: morph 18s ease-in-out infinite; }
.blob-b { width: 420px; height: 420px; inset-block-end: -160px; inset-inline-start: -120px; background: var(--sand); animation: morph 22s ease-in-out infinite reverse; }
.blob-c { width: 260px; height: 260px; inset-block-start: 40%; inset-inline-start: 38%; background: var(--mint-100); animation: morph 16s ease-in-out infinite; }

@keyframes morph {
  0%, 100% { border-radius: 62% 38% 55% 45% / 48% 58% 42% 52%; transform: translate(0, 0) rotate(0); }
  50% { border-radius: 42% 58% 40% 60% / 58% 42% 58% 42%; transform: translate(14px, -12px) rotate(8deg); }
}

.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(31, 122, 85, .25);
  box-shadow: var(--shadow-sm);
  color: var(--green-800);
  font-weight: 700;
  font-size: 15px;
}
.spark { fill: var(--green-700); flex: none; }
.badge .spark { animation: twinkle 3s ease-in-out infinite; }

.hero h1 { font-size: clamp(32px, 6.4vw, 56px); line-height: 1.5; font-weight: 800; }
.wavy {
  white-space: nowrap;
  text-decoration: underline wavy var(--mint-500);
  text-decoration-thickness: 4px;
  text-underline-offset: 12px;
  text-decoration-skip-ink: none;
}
.lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--ink-soft); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.trust-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block-start: 44px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, .75);
  border: 1px dashed rgba(31, 122, 85, .4);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-weight: 500;
}

/* هنر هیرو */
.hero-art { display: none; }
@media (min-width: 900px) {
  .hero-art { display: block; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
}
.stage { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1 / 1; margin-inline: auto; }
.win {
  position: absolute;
  width: 64%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: float 7s ease-in-out infinite;
}
.win-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(16, 38, 29, .08); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(16, 38, 29, .3); }
.win-body { padding: 16px; display: grid; gap: 10px; min-height: 120px; }
.win-body.row { grid-auto-flow: column; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
.line { display: block; height: 10px; border-radius: 6px; background: rgba(16, 38, 29, .14); }
.line.l1 { width: 85%; } .line.l2 { width: 60%; } .line.l3 { width: 72%; }
.lines { display: grid; gap: 10px; }
.dot-ph { width: 44px; height: 44px; border-radius: 50%; background: var(--mint-500); }
.pill-ph { width: 40%; height: 26px; border-radius: 999px; background: var(--mint-500); margin-block-start: 6px; }

.win-green { inset-block-start: 4%; inset-inline-end: 0; background: var(--mint-500); animation-delay: -1s; z-index: 1; }
.win-green .win-bar { background: rgba(16, 38, 29, .14); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; }
.bars b { flex: 1; height: var(--h); border-radius: 8px 8px 4px 4px; background: rgba(16, 38, 29, .78); }
.bars b:nth-child(even) { background: var(--white); }

.win-sand { inset-block-start: 34%; inset-inline-start: 0; background: var(--sand); animation-delay: -3s; z-index: 2; }
.win-white { inset-block-end: 2%; inset-inline-end: 6%; background: var(--white); animation-delay: -5s; z-index: 3; }

.chip {
  position: absolute;
  z-index: 4;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1.500px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 6px 0 -1px var(--ink);
  animation: float 6s ease-in-out infinite;
}
.chip-1 { inset-block-start: 0; inset-inline-start: 18%; animation-delay: -2s; }
.chip-2 { inset-block-start: 52%; inset-inline-end: -2%; animation-delay: -4s; background: var(--mint-100); }
.chip-3 { inset-block-end: 8%; inset-inline-start: 4%; animation-delay: -1s; background: var(--sand); }

.sparkle { position: absolute; fill: var(--green-700); animation: twinkle 3.200s ease-in-out infinite; }
.s1 { inset-block-start: 22%; inset-inline-start: 6%; }
.s2 { inset-block-start: 8%; inset-inline-end: -4%; animation-delay: -1.200s; fill: var(--ink); }
.s3 { inset-block-end: 24%; inset-inline-end: 0; animation-delay: -2.200s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--r, 0deg)); }
}
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50% { transform: scale(.7) rotate(18deg); opacity: .65; }
}

/* ---------- بخش‌ها ---------- */
.section { padding-block: 84px; }
.section-white { background: var(--white); }
.section-sand { background: var(--sand); }

.section-head { display: grid; gap: 10px; margin-block-end: 44px; max-width: 640px; }
.section-head h2 { font-size: clamp(27px, 4.4vw, 38px); }
.section-head p { font-size: 18px; color: var(--ink-soft); }

.grid { display: grid; gap: 24px; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(16, 38, 29, .08);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.section-white .card { background: var(--mint-50); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(31, 122, 85, .35); }
.card h3 { font-size: 22px; }
.card p { color: var(--ink-soft); }

.card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--mint-500);
  color: var(--ink);
  transition: transform .3s;
}
.card-icon.sand { background: var(--sand-200); }
.card:hover .card-icon { transform: rotate(-8deg) scale(1.06); }

.checks { display: grid; gap: 8px; }
.checks li { position: relative; padding-inline-start: 30px; color: var(--ink); font-size: 16px; line-height: 1.7; }
.checks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: .5em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mint-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5 9.500 2.700 2.600L13 6.500' fill='none' stroke='%2310261D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
@media (min-width: 560px) { .checks.cols { grid-template-columns: repeat(2, 1fr); column-gap: 20px; } }

.strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-block-start: 28px;
  padding: 22px 28px;
  border-radius: var(--radius);
  background: var(--sand);
  font-weight: 500;
}
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-800); }
.arrow { transition: transform .2s; }
.link-arrow:hover .arrow { transform: translateX(-5px); }

/* محصولات */
.product { gap: 18px; }
.product-top { display: grid; gap: 6px; }
.product-tag {
  justify-self: start;
  padding: 2px 14px;
  border-radius: 999px;
  background: var(--mint-100);
  color: var(--green-800);
  font-weight: 700;
  font-size: 14px;
  direction: ltr;
}
.product.alt .product-tag { background: var(--sand); }
.product h3 { font-size: 28px; }
.product-sub { font-weight: 700; color: var(--green-800) !important; font-size: 17px; }
.product .btn { justify-self: start; margin-block-start: 6px; }

/* پروژه‌ها */
.browser { border-radius: 16px; overflow: hidden; background: var(--mint-100); border: 1px solid rgba(16, 38, 29, .1); }
.browser.sand { background: var(--sand); }
.browser .win-bar { background: rgba(16, 38, 29, .06); }
.browser .url { margin-inline-start: auto; padding: 1px 12px; border-radius: 999px; background: var(--white); font-size: 12px; color: var(--ink-soft); line-height: 1.7; }
.browser-body { display: grid; gap: 10px; padding: 22px 18px 26px; }
.project .btn { justify-self: start; }

/* روش کار */
.steps { display: grid; gap: 22px; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } .step:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-block-start: 52px;
  inset-inline-end: -22px;
  width: 22px;
  border-block-start: 3px dotted var(--green-700);
} }
.step { position: relative; display: grid; gap: 10px; padding: 32px 28px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.step-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--mint-500);
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}
.step h3 { font-size: 21px; }
.step p { color: var(--ink-soft); }

/* درباره */
.about-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; } }
.about-copy { display: grid; gap: 16px; }
.about-copy h2 { font-size: clamp(27px, 4.4vw, 38px); }
.about-copy p { font-size: 18px; color: var(--ink-soft); }
.people { display: grid; gap: 16px; }
.person { grid-auto-flow: column; grid-template-columns: auto 1fr; align-items: center; gap: 18px; padding: 22px 26px; }
.person h3 { font-size: 19px; }
.person h3 a { color: var(--ink); text-decoration: none; }
.person h3 a:hover { color: var(--green-700); text-decoration: underline; }
.person p { font-size: 15px; }
.avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--mint-500);
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0;
}
.avatar.alt { background: var(--sand-200); }

/* سوالات */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-sm); background: var(--white); border: 1px solid rgba(16, 38, 29, .1); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: rgba(31, 122, 85, .45); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 18px; font-weight: 700; line-height: 1.7; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--green-800);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  transition: transform .25s, background-color .25s;
}
.faq details[open] summary::after { content: "−"; transform: rotate(180deg); background: var(--mint-500); color: var(--ink); }
.faq details > p { padding: 0 22px 20px; color: var(--ink-soft); }

/* دعوت نهایی */
.cta-wrap { padding-block: 24px 84px; }
.cta-block {
  position: relative;
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 64px 28px;
  text-align: center;
  border-radius: 36px;
  background: var(--mint-500);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.cta-block h2 { font-size: clamp(28px, 5vw, 44px); }
.cta-block p { font-size: 19px; max-width: 28em; margin-block-end: 10px; color: var(--ink); }
.cta-blob-a { width: 300px; height: 300px; inset-block-start: -120px; inset-inline-start: -80px; background: var(--mint-300); opacity: .8; z-index: -1; }
.cta-blob-b { width: 260px; height: 260px; inset-block-end: -120px; inset-inline-end: -60px; background: var(--sand); opacity: .75; z-index: -1; }
.cta-s1 { inset-block-start: 22%; inset-inline-end: 12%; fill: var(--ink); }
.cta-s2 { inset-block-end: 26%; inset-inline-start: 14%; fill: var(--white); }

/* فوتر */
.site-footer { padding-block: 56px 28px; background: var(--ink); color: #D5E5DB; }
.site-footer a { color: #D5E5DB; text-decoration: none; }
.site-footer a:hover { color: var(--mint-500); text-decoration: underline; }
.site-footer .brand { color: var(--white); }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-brand { display: grid; gap: 12px; justify-items: start; }
.footer-brand .small { font-size: 15px; color: #B7CCBF; }
.footer-title { margin-block-end: 12px; font-size: 17px; color: var(--white); }
.footer-grid ul { display: grid; gap: 6px; }
.copyright { margin-block-start: 40px; padding-block-start: 22px; border-block-start: 1px solid rgba(255, 255, 255, .14); font-size: 15px; color: #B7CCBF; }

/* ---------- انیمیشن ظاهر شدن ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 480px) {
  body { font-size: 16.500px; }
  .card { padding: 26px 22px; }
  .section { padding-block: 64px; }
  .hero { padding-block: 36px 28px; }
  .btn-lg { width: 100%; }
  .hero-actions { width: 100%; }
  .cta-block { padding: 48px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
