/* ============================================================
   Darbaroo — Landing Page Styles
   Brand: Olive #4A6333 / Gold #B8954B
   ============================================================ */

:root {
  --olive: #4A6333;
  --olive-600: #5D7C3A;
  --olive-800: #3C5129;
  --olive-900: #2E3A22;
  --gold: #B8954B;
  --gold-soft: #C9A96A;
  --ink: #2b2f27;
  --muted: #6b7264;
  --bg: #f7f8f4;
  --card: #ffffff;
  --line: #e7e9e2;
  --dark: #1e2418;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(46, 58, 34, .06);
  --shadow-lg: 0 18px 45px rgba(46, 58, 34, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

@font-face {
  font-family: 'Vazirmatn';
  src: url('Vazirmatn.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  padding: 11px 22px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #a07f36);
  color: #fff;
  box-shadow: 0 10px 24px rgba(184, 149, 75, .35);
}
.btn-gold:hover { box-shadow: 0 14px 30px rgba(184, 149, 75, .45); }

.btn-outline {
  background: transparent;
  color: var(--olive);
  border-color: var(--olive);
}
.btn-outline:hover { background: var(--olive); color: #fff; }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(30, 36, 24, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .25s ease;
}
#navbar.scrolled { background: rgba(30, 36, 24, .92); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 20px; }
.logo img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a {
  color: #e9ece3;
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  right: 0; bottom: 0;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--gold-soft);
  transition: width .22s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta { color: #fff; background: var(--olive-600); border-color: transparent; }
.nav-cta:hover { background: var(--olive); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 24px; height: 2.6px;
  border-radius: 3px;
  background: #fff;
  transition: .25s;
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(160deg, var(--olive-900), var(--dark));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}
.mobile-menu a.btn-gold { margin-top: 8px; }
.close-menu {
  position: absolute;
  top: 22px; left: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero ---------- */
#hero {
  position: relative;
  min-height: 92vh;
  background: linear-gradient(150deg, #27301e 0%, #313a23 45%, #3a4027 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 75% 20%, rgba(184, 149, 75, .18), transparent 42%),
    radial-gradient(circle at 15% 80%, rgba(255, 255, 255, .06), transparent 40%),
    radial-gradient(closest-side, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 26px 26px;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 70px;
}

.hero-badge {
  display: inline-block;
  background: rgba(184, 149, 75, .18);
  border: 1px solid rgba(184, 149, 75, .5);
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-text h1 {
  color: #fff;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.5;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-sub {
  color: rgba(255, 255, 255, .78);
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 500px;
  margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.stat strong {
  display: block;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}
.stat span { color: rgba(255, 255, 255, .62); font-size: 13px; }
.stat-divider { width: 1px; height: 40px; background: rgba(255, 255, 255, .18); }

/* Mockup */
.hero-mockup { position: relative; }

.mockup-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 18px;
  transform: rotate(-2deg);
  transition: transform .3s ease;
}
.hero-mockup:hover .mockup-card { transform: rotate(-1deg); }

.mockup-header {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}
.mockup-dot { width: 11px; height: 11px; border-radius: 50%; background: #dfe3da; }
.mockup-dot.green { background: #7fbf7f; }
.mockup-dot.gold { background: var(--gold); }

.mockup-body { display: flex; flex-direction: column; gap: 12px; }
.mockup-row { height: 14px; border-radius: 7px; background: #eef0ea; }
.mockup-row.short { width: 46%; }
.mockup-row.medium { width: 72%; }

.mockup-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mockup-block { height: 52px; border-radius: 10px; opacity: .9; }
.mockup-block.olive { background: linear-gradient(135deg, var(--olive-600), var(--olive)); }
.mockup-block.gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); }
.mockup-block.dark { background: linear-gradient(135deg, #5a6450, var(--dark)); }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, #eef0ea 25%, #e2e6dc 50%, #eef0ea 75%);
  background-size: 200% 100%;
  animation: shimmer 2.4s infinite;
}

.float-badge {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 11px 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}
.float-badge span { font-weight: 800; font-size: 14px; color: var(--olive-900); }
.float-badge small { font-size: 11px; color: var(--muted); }
.float-badge.b1 { top: -18px; right: -14px; animation: float 5s ease-in-out infinite; }
.float-badge.b2 { bottom: 26px; left: -22px; animation: float 6s ease-in-out infinite .8s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.alt-bg { background: #f0f2ec; }
.dark-section {
  background: linear-gradient(150deg, var(--dark), var(--olive-900) 60%, #332f1e);
  position: relative;
  overflow: hidden;
}
.dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, rgba(184, 149, 75, .14) 1px, transparent 1px);
  background-size: 24px 24px;
}

.section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
}
.section-title.light { color: #fff; }
.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 50px;
}
.section-sub.light { color: rgba(255, 255, 255, .72); }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-icon {
  width: 58px; height: 58px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.olive-bg { background: linear-gradient(135deg, var(--olive-600), var(--olive)); }
.gold-bg { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); }
.dark-bg { background: linear-gradient(135deg, #5a6450, var(--dark)); }

.feature-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--olive-900); }
.feature-card p { font-size: 13.5px; color: var(--muted); line-height: 1.9; }

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.why-num {
  position: absolute;
  top: -18px; left: -6px;
  font-size: 90px;
  font-weight: 800;
  color: rgba(74, 99, 51, .08);
  line-height: 1;
}
.why-card h4 { font-size: 17px; color: var(--olive-900); margin-bottom: 8px; }
.why-card p { font-size: 13.5px; color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 420px));
  gap: 26px;
  justify-content: center;
  align-items: stretch;
}
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.featured {
  border: 2px solid var(--gold);
  position: relative;
}
.price-tag {
  align-self: flex-start;
  background: #eef0e8;
  color: var(--olive-800);
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.price-tag.gold-tag { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #fff; }
.price-card h3 { font-size: 19px; margin-bottom: 6px; }
.price-amount {
  font-size: 34px;
  font-weight: 800;
  color: var(--olive-800);
  margin-bottom: 18px;
}
.price-card ul {
  list-style: none;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.price-card li {
  font-size: 14px;
  color: var(--muted);
  padding-right: 26px;
  position: relative;
}
.price-card li::before {
  content: '✓';
  position: absolute;
  right: 0;
  top: -1px;
  color: var(--olive-600);
  font-weight: 800;
}

/* ---------- Download ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 460px));
  gap: 26px;
  justify-content: center;
  max-width: 960px;
  margin: 0 auto;
}
.download-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.download-card:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--gold-soft);
  transform: translateY(-5px);
}
.dl-icon {
  width: 74px; height: 74px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dl-info { display: flex; flex-direction: column; flex: 1; }
.dl-label { color: #fff; font-size: 19px; font-weight: 800; }
.dl-fmt { color: var(--gold-soft); font-size: 13px; font-weight: 600; margin: 2px 0; }
.dl-hint { color: rgba(255, 255, 255, .55); font-size: 12px; }
.dl-arrow {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(184, 149, 75, .35);
  flex-shrink: 0;
}
.download-card:hover .dl-arrow { animation: pulse 1.2s infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  transition: box-shadow .2s ease;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--olive-900);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--gold);
  font-weight: 600;
  transition: transform .25s ease;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 2; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.contact-icon {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: #eef0e8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
button.contact-card {
  font-family: inherit;
  cursor: pointer;
  text-align: center;
}
.contact-card strong { color: var(--olive-900); font-size: 15.5px; }
.contact-card span { color: var(--muted); font-size: 13px; }

/* ---------- Contact Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(30, 36, 24, .62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 470px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px 28px;
  position: relative;
  transform: translateY(22px) scale(.97);
  transition: transform .25s ease;
}
.modal-overlay.open .modal { transform: none; }

.modal-close {
  position: absolute;
  top: 14px; left: 18px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s;
}
.modal-close:hover { color: #c0392b; }

.modal h3 { font-size: 19px; color: var(--olive-900); margin-bottom: 4px; }
.modal-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }

.modal label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--olive-800);
  margin: 14px 0 6px;
}
.modal input,
.modal textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #fafbf8;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.modal input:focus,
.modal textarea:focus {
  outline: none;
  border-color: var(--olive-600);
  box-shadow: 0 0 0 3px rgba(74, 99, 51, .14);
  background: #fff;
}
.modal textarea { resize: vertical; min-height: 110px; }
.modal input.invalid,
.modal textarea.invalid { border-color: #c0392b; }

.modal-result {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  min-height: 0;
}
.modal-result.error { color: #c0392b; }
.modal-result.success { color: var(--olive-600); }

/* ---------- Footer ---------- */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .75);
  padding: 44px 0 30px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-brand img { width: 46px; height: 46px; border-radius: 11px; }
.footer-brand span { color: #fff; font-weight: 800; font-size: 19px; }
.footer-brand p { font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 14px; color: rgba(255, 255, 255, .7); transition: color .2s; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-copy { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; width: 100%; font-size: 12.5px; color: rgba(255, 255, 255, .45); }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 70px; padding-top: 130px; }
  .hero-mockup { max-width: 420px; margin: 0 auto; width: 100%; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 560px) {
  section { padding: 64px 0; }
  .hero-actions .btn { flex: 1; }
  .float-badge.b1 { right: -6px; }
  .float-badge.b2 { left: -6px; }
  .price-card { padding: 26px 22px; }
}