:root {
  --blue: #1a2a6c;
  --blue-mid: #2d4db5;
  --blue-light: #e8eeff;
  --red: #e02020;
  --red-light: #ffe8e8;
  --bg: #f6f7fb;
  --bg2: #eceef5;
  --white: #ffffff;
  --dark: #0d1433;
  --gray: #6b7280;
  --gray-light: #b0b8c8;
  --border: rgba(26,42,108,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Vazirmatn', sans-serif; background: var(--bg); color: var(--dark); overflow-x: hidden; direction: rtl; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 5%;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(246,247,251,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.nav-logo img { height: 44px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--gray); font-size: 0.92rem; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a::after { content:''; position:absolute; bottom:-3px; right:0; width:0; height:2px; background:var(--blue); transition:width 0.3s; }
.nav-links a:hover { color: var(--dark); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { background: linear-gradient(135deg, var(--blue) 0%, var(--red) 100%) !important; color: var(--white) !important; padding: 0.55rem 1.4rem; border-radius: 100px; font-weight: 700 !important; transition: opacity 0.2s, transform 0.2s !important; }
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* BUTTONS */
.btn-primary { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%); color: var(--white); padding: 0.9rem 2rem; border-radius: 100px; font-size: 0.95rem; font-weight: 700; text-decoration: none; transition: all 0.2s; box-shadow: 0 4px 20px rgba(26,42,108,0.25); display: inline-block; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(26,42,108,0.35); }
.btn-outline { color: var(--blue); padding: 0.9rem 2rem; border-radius: 100px; font-size: 0.95rem; font-weight: 600; text-decoration: none; border: 1.5px solid var(--blue); transition: all 0.2s; display: inline-block; }
.btn-outline:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }
.btn-red { background: linear-gradient(135deg, var(--red) 0%, #c01010 100%); color: var(--white); padding: 1rem 2.5rem; border-radius: 100px; font-weight: 800; font-size: 0.95rem; text-decoration: none; transition: all 0.2s; box-shadow: 0 4px 20px rgba(224,32,32,0.3); display: inline-block; }
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(224,32,32,0.4); }

/* SECTION COMMONS */
section { padding: 6rem 5%; }
.section-tag { display: inline-block; background: var(--blue-light); color: var(--blue); padding: 0.3rem 0.9rem; border-radius: 100px; font-size: 0.8rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: 0.02em; }
.section-tag.red { background: var(--red-light); color: var(--red); }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900; line-height: 1.25; letter-spacing: -0.03em; color: var(--dark); }
.section-sub { font-size: 1rem; color: var(--gray); line-height: 1.8; margin-top: 0.8rem; max-width: 500px; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* CTA SECTION */
.cta-section { background: linear-gradient(135deg, var(--dark) 0%, var(--blue) 60%, #8b0000 100%); padding: 6rem 5%; text-align: center; position: relative; overflow: hidden; }
.cta-section h2 { font-size: clamp(2rem,4vw,3rem); font-weight: 900; color: var(--white); letter-spacing: -0.04em; line-height: 1.2; position: relative; z-index:2; }
.cta-section h2 span { color: #ff6b6b; }
.cta-section p { color: rgba(255,255,255,0.6); margin: 1rem 0 2.5rem; font-size: 1rem; position: relative; z-index:2; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; position: relative; z-index:2; flex-wrap: wrap; }

/* FOOTER */
footer { background: var(--dark); padding: 4rem 5% 2rem; color: rgba(255,255,255,0.5); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; max-width: 240px; margin-top: 1rem; }
.footer-col h4 { color: var(--white); font-weight: 700; font-size: 0.9rem; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul li a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; display: flex; align-items: center; gap: 0.5rem; }
.footer-col ul li a:hover { color: #ff6b6b; }
.footer-bottom { padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom a { color: #5ecec8; text-decoration: none; }

/* SCROLL TOP */
.scroll-top { position: fixed; bottom: 2rem; left: 2rem; width: 44px; height: 44px; background: var(--blue); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,0.2); opacity: 0; transform: translateY(10px); transition: all 0.3s; border: none; font-size: 1rem; z-index: 99; }
.scroll-top.show { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--red); }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all 0.3s; }
.mobile-menu { display: none; position: fixed; top: 70px; left: 0; right: 0; z-index: 99; background: rgba(246,247,251,0.97); backdrop-filter: blur(16px); padding: 1.5rem 5%; flex-direction: column; gap: 1rem; border-bottom: 1px solid var(--border); }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--dark); text-decoration: none; font-size: 1rem; font-weight: 600; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border: none; color: var(--red); }

/* BREADCRUMB */
.breadcrumb { padding: 6rem 5% 0; display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--gray); }
.breadcrumb a { color: var(--gray); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--blue); font-weight: 600; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item { border: 1px solid rgba(0,0,0,0.07); border-radius: 14px; overflow: hidden; background: var(--white); }
.faq-q { padding: 1.2rem 1.5rem; font-weight: 700; font-size: 0.92rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: background 0.2s; user-select: none; }
.faq-q:hover { background: var(--bg); }
.faq-q.open { color: var(--blue); }
.faq-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; transition: transform 0.3s, background 0.2s; }
.faq-q.open .faq-icon { transform: rotate(45deg); background: var(--blue-light); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; font-size: 0.87rem; color: var(--gray); line-height: 1.9; }
.faq-a.open { max-height: 200px; }
.faq-a-inner { padding: 0 1.5rem 1.2rem; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
}
