/* ==========================================================================
   Bitfa Theme — main.css
   RTL · Light · matches bitfa.io design language (DanaFaNum, orange #F7A01D,
   white body, charcoal hero/footer #1E2125).
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
	font-family: 'DanaFaNum';
	src: url('../fonts/dana/DanaFaNum-Regular.woff2') format('woff2');
	font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'DanaFaNum';
	src: url('../fonts/dana/DanaFaNum-Medium.woff2') format('woff2');
	font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'DanaFaNum';
	src: url('../fonts/dana/DanaFaNum-DemiBold.woff2') format('woff2');
	font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'DanaFaNum';
	src: url('../fonts/dana/DanaFaNum-Bold.woff2') format('woff2');
	font-weight: 700; font-style: normal; font-display: swap;
}
@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-Bold.woff2') format('woff2');
	font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
	--bg:        #ffffff;
	--bg-2:      #f5f6f7;
	--surface:   #ffffff;
	--surface-2: #f3f4f6;
	--border:    #e8eaed;
	--text:      #1e2125;
	--muted:     #6f7378;
	--primary:   #f7a01d;   /* Bitfa Orange (bitfa.io) */
	--primary-d: #de8c0c;
	--accent:    #16a34a;   /* up-green */
	--danger:    #dc2626;
	/* dark blocks (hero / footer / bands) */
	--dark:      #26282c;
	--dark-2:    #1e2125;
	--dark-3:    #33363b;
	--dark-border: #3c3f44;
	--dark-muted:  #b9bcbf;
	--radius:    16px;
	--radius-sm: 8px;
	--radius-lg: 24px;
	--maxw:      1200px;
	--shadow:    0 8px 30px rgba(30,33,37,.08);
	--shadow-lg: 0 20px 60px rgba(30,33,37,.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: 'DanaFaNum', 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.8;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4 { line-height: 1.4; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link { position: absolute; right: -9999px; top: 0; }
.skip-link:focus { right: 10px; top: 10px; background: var(--primary); color: #fff; padding: 8px 14px; z-index: 999; border-radius: 8px; }

/* ---------- Buttons (bitfa.io: radius 6px, orange bg + white text) ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 8px; justify-content: center;
	padding: 12px 26px; border-radius: 6px; font-weight: 600; font-size: 15px;
	border: 1px solid transparent; cursor: pointer; transition: .2s; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--primary); color: #ffffff; }
.btn--primary:hover { background: var(--primary-d); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--ghost:hover { background: rgba(247,160,29,.08); }
.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--sm { padding: 8px 18px; font-size: 14px; }
.btn--lg { padding: 14px 34px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

/* ---------- Header (white) ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; gap: 22px; height: 76px; }
.site-branding { flex-shrink: 0; display: flex; align-items: center; }
.site-logo-img { height: 34px; width: auto; display: block; }
.site-logo-text { font-weight: 700; font-size: 22px; display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.logo-mark {
	display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
	background: var(--primary); color: #fff; font-size: 20px;
}
.custom-logo-link img, .custom-logo { max-height: 44px; width: auto; }
.main-nav { margin-inline-start: 8px; }
.main-nav__list { display: flex; align-items: center; gap: 2px; }
.main-nav__list a { padding: 8px 13px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: 15px; transition: .2s; }
.main-nav__list a:hover, .main-nav__list .current-menu-item > a { color: var(--primary); }
.main-nav__list .sub-menu { display: none; }
.site-header__cta { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { border-top: 1px solid var(--border); background: #fff; }
.mobile-menu__list { padding: 12px 20px; }
.mobile-menu__list a { display: block; padding: 12px 8px; border-bottom: 1px solid var(--border); color: var(--text); }
.mobile-menu .sub-menu { display: none; }

/* ---------- Hero (charcoal, diagonal bottom — bitfa.io style) ---------- */
.hero {
	position: relative; overflow: hidden; color: #fff;
	background: linear-gradient(135deg, #3b3e44 0%, #26282c 55%, #1e2125 100%);
	padding: 84px 0 150px;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), 50% 100%, 0 calc(100% - 70px));
	margin-bottom: -40px;
}
.hero__glow {
	position: absolute; inset: auto -60px -140px auto; width: 460px; height: 460px; z-index: 0;
	background: url('../img/logo-white.svg') no-repeat center / contain;
	opacity: .05; pointer-events: none; transform: rotate(-8deg);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero__badge { display: inline-block; color: var(--primary); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; margin-bottom: 4px; }
.hero__title { font-size: clamp(28px, 4vw, 44px); line-height: 1.45; margin-bottom: 14px; color: #fff; }
.hero__sub { font-size: 17px; color: var(--dark-muted); max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 18px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 18px; color: var(--dark-muted); font-size: 14px; }

.hero__visual { position: relative; display: flex; justify-content: flex-start; }
.hero__visual img { max-width: 560px; width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }

/* fallback ticker card (used if no hero image) */
.ticker-card {
	background: #2c2f34; border: 1px solid var(--dark-border); border-radius: 18px; padding: 22px;
	box-shadow: var(--shadow-lg); width: 100%; max-width: 460px;
}
.ticker-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--dark-border); font-weight: 700; color: #fff; }
.up { color: #34d399; } .down { color: #f87171; }
.ticker-chart { height: 96px; margin-top: 14px; border-radius: 12px; position: relative; overflow: hidden; }
.ticker-chart::after {
	content: ""; position: absolute; inset: auto 0 0 0; height: 70%;
	clip-path: polygon(0 80%,10% 60%,22% 72%,34% 40%,46% 54%,58% 26%,70% 44%,82% 20%,100% 32%,100% 100%,0 100%);
	background-color: rgba(247,160,29,.35);
}

/* ---------- Stats ---------- */
.stats { padding: 70px 0 30px; }
.stats__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); }
.stat__num { font-size: 30px; font-weight: 700; color: var(--primary); }
.stat__label { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 52px 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 30px; }
.section__title { font-size: clamp(22px, 3vw, 32px); margin: 0; }
.section__title em { font-style: normal; color: var(--primary); }
.section__sub { color: var(--muted); margin: 0; flex: 1 1 240px; }
.section__link { color: var(--primary); font-weight: 600; margin-inline-start: auto; }

/* ---------- Cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 24px; transition: .22s; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
	box-shadow: 0 2px 10px rgba(30,33,37,.04);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #f2d9b0; }
.card__icon { font-size: 32px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; background: rgba(247,160,29,.1); }
.card__title { font-size: 18px; margin: 4px 0 0; }
.card__title a { color: inherit; }
.card__sub { color: var(--muted); font-size: 14.5px; margin: 0; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 12px; }
.card__more { color: var(--primary); font-weight: 600; font-size: 14px; }
.card__meta { color: var(--muted); font-size: 13px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.tag--free { color: var(--accent); border-color: rgba(22,163,74,.35); background: rgba(22,163,74,.08); }

.card--course, .card--post { padding: 0; }
.card__thumb { position: relative; display: block; aspect-ratio: 16/10; background: var(--surface-2); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card__thumb-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 40px; opacity: .45; }
.card__level { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(30,33,37,.75); color: #fff; backdrop-filter: blur(4px); padding: 4px 10px; border-radius: 999px; font-size: 12px; }
.card--course .card__title, .card--course .card__foot { padding-inline: 20px; }
.card--course .card__title { margin-top: 16px; }
.card--course .card__foot { padding-bottom: 18px; }
.card__pad { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Dark panel (rounded charcoal container — bitfa.io style) ---------- */
.dark-panel {
	background: linear-gradient(135deg, #3a3d42 0%, #26282c 60%, #1e2125 100%);
	border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 52px); color: #fff;
	position: relative; overflow: hidden;
}
.dark-panel::before {
	content: ''; position: absolute; inset: auto -40px -80px auto; width: 320px; height: 320px;
	background: url('../img/logo-white.svg') no-repeat center / contain; opacity: .04; transform: rotate(-10deg);
}
.dark-panel .section__title { color: #fff; }
.dark-panel .section__sub { color: var(--dark-muted); }

/* ---------- Partners ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; z-index: 1; }
.partner-grid--archive { grid-template-columns: repeat(3, 1fr); }
.partner { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; transition: .22s; color: var(--text); }
.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.partner__logo { height: 56px; display: grid; place-items: center; }
.partner__logo img { max-height: 56px; width: auto; object-fit: contain; }
.partner__name { font-size: 20px; font-weight: 700; }
.partner__title { font-size: 18px; margin: 0; }
.partner__bonus { color: var(--accent); font-size: 14px; margin: 4px 0 0; }
.stars { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: var(--muted); }
.stars .star { color: #d6d8db; }
.stars .star--on { color: var(--primary); }
.stars .star--half { background: linear-gradient(90deg, var(--primary) 50%, #d6d8db 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars b { color: var(--text); margin-inline-start: 4px; }

/* ---------- Testimonials ---------- */
.testimonial { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 0; box-shadow: 0 2px 10px rgba(30,33,37,.04); }
.testimonial blockquote { margin: 0 0 16px; color: var(--text); font-size: 15.5px; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial figcaption span { display: flex; flex-direction: column; }
.testimonial figcaption em { color: var(--muted); font-style: normal; font-size: 13px; }

/* ---------- CTA band (full-width charcoal + candle glow) ---------- */
.cta-band {
	margin: 40px 0; padding: 64px 0; color: #fff; position: relative; overflow: hidden;
	background: linear-gradient(120deg, #1e2125 0%, #2c2f34 55%, #3a3d42 100%);
}
.cta-band::before {
	content: ''; position: absolute; inset-block: 0; inset-inline-end: -30px; width: 420px;
	background:
		linear-gradient(#f7a01d, #f7a01d) no-repeat 40px 60% / 18px 70px,
		linear-gradient(#ffffff, #ffffff) no-repeat 90px 30% / 18px 55px,
		linear-gradient(#f7a01d, #f7a01d) no-repeat 140px 55% / 18px 95px,
		linear-gradient(#ffffff, #ffffff) no-repeat 190px 45% / 18px 48px,
		linear-gradient(#f7a01d, #f7a01d) no-repeat 240px 62% / 18px 80px;
	filter: drop-shadow(0 0 22px rgba(247,160,29,.55)); opacity: .85; pointer-events: none;
}
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; position: relative; z-index: 1; }
.cta-band h2 { margin: 0 0 6px; font-size: 26px; color: #fff; }
.cta-band p { margin: 0; color: var(--dark-muted); }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Gray news panel ---------- */
.panel-gray { background: var(--surface-2); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 44px); }

/* ---------- Lead band (pre-footer phone capture) ---------- */
.lead-band { background: linear-gradient(135deg, #33363b, #1e2125); color: #fff; padding: 64px 0; text-align: center; position: relative; overflow: hidden; }
.lead-band::after { content: ''; position: absolute; inset: auto auto -90px -50px; width: 300px; height: 300px; background: url('../img/logo-white.svg') no-repeat center / contain; opacity: .05; transform: rotate(12deg); }
.lead-band h2 { color: #fff; font-size: clamp(20px, 2.6vw, 28px); }
.lead-band p { color: var(--dark-muted); max-width: 72ch; margin-inline: auto; }
.lead-band__form { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; position: relative; z-index: 1; }
.lead-band__form input {
	width: min(320px, 100%); background: #2c2f34; border: 1px solid var(--dark-border); border-radius: 6px;
	color: #fff; padding: 12px 16px; font: inherit; font-size: 15px; text-align: center;
}
.lead-band__form input::placeholder { color: #8a8d92; }
.lead-band__form input:focus { outline: none; border-color: var(--primary); }
.lead-band__msg { margin-top: 14px; font-size: 14px; min-height: 22px; }
.lead-band__msg.ok { color: #34d399; }
.lead-band__msg.err { color: #f87171; }

/* ---------- Archive / generic pages ---------- */
.page-wrap { padding: 44px 0 64px; }
.archive-head { margin-bottom: 30px; }
.archive-head__title { font-size: clamp(26px, 4vw, 38px); margin: 0 0 8px; }
.archive-head__sub { color: var(--muted); margin: 0; }
.empty-state { color: var(--muted); text-align: center; padding: 60px 0; }
.pagination { margin-top: 36px; display: flex; justify-content: center; }
.pagination .page-numbers { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); color: var(--text); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Single ---------- */
.single__hero { padding: 40px 0 20px; }
.single__title { font-size: clamp(26px, 4vw, 42px); margin: 8px 0; }
.single__meta { color: var(--muted); font-size: 14px; }
.single__thumb { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 24px; }
.single__body { max-width: 820px; padding-bottom: 40px; }
.entry-content { font-size: 16.5px; }
.entry-content h2 { margin-top: 1.6em; font-size: 26px; }
.entry-content h3 { margin-top: 1.4em; font-size: 21px; }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content img { border-radius: var(--radius-sm); margin: 1em 0; }
.entry-content blockquote { border-inline-start: 3px solid var(--primary); padding-inline-start: 18px; color: var(--muted); }
.entry-content ul { list-style: disc; padding-inline-start: 22px; }
.entry-content ol { padding-inline-start: 22px; }
.single__terms { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.single__terms a { background: var(--surface-2); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); }

/* service single */
.service-single__hero { background: var(--surface-2); border-bottom: 1px solid var(--border); padding: 46px 0; }
.service-single__icon { font-size: 46px; display: inline-block; margin-bottom: 8px; }
.service-single__sub { color: var(--muted); font-size: 18px; max-width: 52ch; }
.service-single__actions { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.service-single__price { color: var(--primary); font-weight: 700; }
.service-single__grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; padding: 40px 0; align-items: start; }
.service-single__aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.benefits-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.benefits-card h3 { margin: 0 0 12px; font-size: 18px; }
.benefits-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); color: var(--text); }
.benefits-list li:last-child { border-bottom: 0; }

/* course single */
.course-single__meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 15px; }

/* partner single */
.partner-single__hero { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.partner-single__logo img { max-height: 90px; width: auto; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.contact__channels { display: flex; flex-direction: column; gap: 12px; }
.contact-channel { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; transition: .2s; box-shadow: 0 2px 10px rgba(30,33,37,.04); }
.contact-channel:hover { border-color: var(--primary); transform: translateX(-3px); }
.contact-channel svg { color: var(--primary); width: 26px; height: 26px; flex-shrink: 0; }
.contact-channel span { display: flex; flex-direction: column; }
.contact-channel em { color: var(--muted); font-style: normal; font-size: 13px; }
.contact__form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.form-placeholder { color: var(--muted); }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 80px 0; }
.error-404__code { font-size: 96px; margin: 0; color: var(--primary); }
.error-404__msg { color: var(--muted); margin-bottom: 24px; }

/* ---------- Search ---------- */
.search-form { display: flex; gap: 8px; }
.search-field { flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 18px; color: var(--text); }

/* ---------- Footer (charcoal — bitfa.io style) ---------- */
.site-footer { background: var(--dark-2); color: #fff; padding: 56px 0 24px; margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; }
.site-footer .site-logo-text { color: #fff; }
.footer-logo-img { height: 36px; width: auto; }
.footer-about { color: #9a9da1; font-size: 14px; margin-top: 12px; }
.footer-widget__title, .footer-col h4 { font-size: 16px; margin-bottom: 14px; color: #fff; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #9a9da1; transition: .2s; }
.footer-links a:hover { color: var(--primary); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: #2c2f34; color: #c9cbce; transition: .2s; }
.footer-social a:hover { color: #fff; background: var(--primary); }
.site-footer__bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid #33363b; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #8a8d92; font-size: 13px; }
.footer-disclaimer { color: #6f7378; }

/* ---------- Floating CTA ---------- */
.floating-cta { position: fixed; inset-block-end: 22px; inset-inline-start: 22px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.floating-cta__btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.25); transition: .2s; }
.floating-cta__btn:hover { transform: scale(1.08); }
.floating-cta__btn--tg { background: #229ED9; }
.floating-cta__btn--wa { background: #25D366; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__visual { order: 1; justify-content: center; }
	.hero { padding-bottom: 120px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 50% 100%, 0 calc(100% - 40px)); }
	.stats__grid { grid-template-columns: repeat(2,1fr); }
	.partner-grid { grid-template-columns: repeat(2,1fr); }
	.service-single__grid { grid-template-columns: 1fr; }
	.service-single__aside { position: static; }
	.contact__grid { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
	.main-nav, .site-header__cta .btn--ghost { display: none; }
	.nav-toggle { display: flex; }
	.cards-grid, .cards-grid--3 { grid-template-columns: 1fr 1fr; }
	.partner-grid--archive { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
	.cards-grid, .cards-grid--3, .partner-grid, .partner-grid--archive { grid-template-columns: 1fr; }
	.site-header__cta .btn { display: none; }
	.cta-band__inner { flex-direction: column; text-align: center; }
	.cta-band::before { display: none; }
	.site-footer__grid { grid-template-columns: 1fr; }
}

/* ============ Landing page (single viewport + modal) ============ */
.landing-page .main-nav, .landing-page .site-header__cta .btn, .landing-page .nav-toggle { display: none; }
.landing-page .site-footer { display: none; }
.landing-page body { overflow-x: hidden; }
body.modal-open { overflow: hidden; }

/* landing stage = dark charcoal block like the hero */
.landing-stage {
	min-height: calc(100svh - 77px); display: flex; align-items: center; position: relative; overflow: hidden;
	padding: clamp(12px, 2.5vh, 32px) 0;
	background: linear-gradient(135deg, #3b3e44 0%, #26282c 55%, #1e2125 100%);
	color: #fff;
}
.landing-stage::before {
	content: ''; position: absolute; inset: auto -60px -120px auto; width: 420px; height: 420px;
	background: url('../img/logo-white.svg') no-repeat center / contain; opacity: .05; transform: rotate(-8deg); pointer-events: none;
}
.landing-stage__inner { position: relative; display: flex; flex-direction: column; gap: clamp(18px, 3.5vh, 40px); width: 100%; }
.landing-stage__head { text-align: center; max-width: 720px; margin-inline: auto; }
.landing-stage__head .hero__badge { font-size: 15px; font-weight: 600; background: rgba(247,160,29,.14); padding: 6px 14px; border-radius: 999px; }
.landing-stage__title { font-size: clamp(24px, 3.6vw, 42px); line-height: 1.4; margin: 14px 0 10px; color: #fff; }
.landing-stage__sub { color: var(--dark-muted); font-size: clamp(14px, 1.6vw, 17px); line-height: 1.9; margin: 0; }

.landing-services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lsvc { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: clamp(14px, 2.2vh, 22px) 18px; display: flex; flex-direction: column; gap: 8px; transition: transform .25s, border-color .25s; }
.lsvc:hover { transform: translateY(-4px); border-color: var(--primary); }
.lsvc__icon { font-size: clamp(26px, 3.5vh, 34px); line-height: 1; }
.lsvc__title { margin: 0; font-size: clamp(15px, 1.6vw, 18px); color: #fff; }
.lsvc__desc { margin: 0; color: var(--dark-muted); font-size: 13px; line-height: 1.8; flex: 1; }
.lsvc__points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.lsvc__points li { font-size: 12px; color: #e6e7e8; opacity: .9; padding-inline-start: 16px; position: relative; }
.lsvc__points li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--primary); }

.landing-stage__cta { text-align: center; }
.landing-stage__hint { color: var(--dark-muted); font-size: 12.5px; margin: 14px 0 0; }

/* Pulsing CTA */
@keyframes bitfa-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(247,160,29,.55); transform: scale(1); }
	60%  { box-shadow: 0 0 0 22px rgba(247,160,29,0); transform: scale(1.035); }
	100% { box-shadow: 0 0 0 0 rgba(247,160,29,0); transform: scale(1); }
}
@keyframes bitfa-shine {
	0%, 55% { transform: translateX(120%) skewX(-20deg); }
	100%    { transform: translateX(-220%) skewX(-20deg); }
}
.btn--pulse { position: relative; overflow: hidden; animation: bitfa-pulse 2s ease-out infinite; font-size: 17px; padding: 15px 42px; }
.btn--pulse::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.4), transparent); animation: bitfa-shine 2.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .btn--pulse, .btn--pulse::after { animation: none; } }

/* Modal (light dialog) */
.lead-modal[hidden] { display: none; }
.lead-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .22s; }
.lead-modal.is-open { opacity: 1; }
.lead-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 22, 25, .6); backdrop-filter: blur(6px); }
.lead-modal__dialog { position: relative; width: min(540px, 100%); max-height: min(88svh, 720px); overflow-y: auto; transform: translateY(14px) scale(.98); transition: transform .22s; }
.lead-modal.is-open .lead-modal__dialog { transform: none; }
.lead-modal__close { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-size: 15px; cursor: pointer; transition: all .2s; }
.lead-modal__close:hover { color: var(--text); border-color: var(--primary); }

/* Form (inside modal) */
.lead-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-lg); }
.lead-form__heading { margin: 0 0 16px; font-size: 20px; text-align: center; }
.lead-form__progress { height: 5px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.lead-form__bar { display: block; height: 100%; width: 50%; background: var(--primary); border-radius: 99px; transition: width .35s; }
.lead-step { display: none; border: 0; padding: 0; margin: 0; }
.lead-step.is-active { display: block; }
.lead-step__title { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding: 0; }
.lead-field { margin-bottom: 14px; }
.lead-field label, .lead-field__label { display: block; font-size: 14px; margin-bottom: 8px; color: var(--text); font-weight: 500; }
.lead-field input[type="text"], .lead-field input[type="tel"] { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); padding: 12px 14px; font: inherit; font-size: 15px; transition: border-color .2s; }
.lead-field input:focus { outline: none; border-color: var(--primary); background: #fff; }
.lead-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-choice { cursor: pointer; }
.lead-choice input { position: absolute; opacity: 0; pointer-events: none; }
.lead-choice span { display: inline-block; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13.5px; transition: all .2s; }
.lead-choice input:checked + span { background: rgba(247,160,29,.12); border-color: var(--primary); color: var(--primary-d); font-weight: 600; }
.lead-choice:hover span { border-color: var(--primary); }
.lead-form__next { width: 100%; margin-top: 4px; }
.lead-form__actions { display: flex; gap: 12px; margin-top: 18px; }
.lead-form__actions .btn--primary { flex: 1; }
.lead-success { text-align: center; padding: 26px 10px; }
.lead-success__icon { font-size: 52px; margin-bottom: 10px; }
.lead-success h3 { margin: 0 0 8px; font-size: 22px; }
.lead-success p { color: var(--muted); margin: 0; }
.lead-form__error { background: rgba(220,38,38,.08); border: 1px solid var(--danger); color: #b91c1c; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; margin: 16px 0 0; }

/* Fit-on-screen tweaks */
@media (max-height: 760px) {
	.lsvc__points { display: none; }
	.landing-stage__head .hero__badge { display: none; }
}
@media (max-width: 1024px) { .landing-services__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
	.landing-services__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.lsvc__desc { display: none; }
	.lsvc { text-align: center; align-items: center; }
	.landing-stage { min-height: calc(100svh - 65px); }
}

/* ---------- Results (برآیند) buttons + image lightbox ---------- */
.landing-results { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.btn--result { background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.25); font-size: 14px; padding: 10px 20px; }
.btn--result:hover { border-color: var(--primary); color: var(--primary); background: rgba(247,160,29,.08); }

.img-lightbox[hidden] { display: none; }
.img-lightbox { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .22s; }
.img-lightbox.is-open { opacity: 1; }
.img-lightbox__backdrop { position: absolute; inset: 0; background: rgba(10, 12, 15, .85); backdrop-filter: blur(6px); }
.img-lightbox__box { position: relative; max-width: min(920px, 94vw); max-height: 88svh; transform: scale(.96); transition: transform .22s; }
.img-lightbox.is-open .img-lightbox__box { transform: none; }
.img-lightbox__box img { max-width: 100%; max-height: 82svh; width: auto; height: auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); display: block; }
.img-lightbox__title { color: #fff; text-align: center; margin: 12px 0 0; font-size: 15px; }
.img-lightbox__close {
	position: absolute; top: -16px; inset-inline-end: -16px; z-index: 2;
	width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--primary); color: #fff; font-size: 17px; font-weight: 700;
	display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.4); transition: .2s;
}
.img-lightbox__close:hover { background: var(--primary-d); transform: rotate(90deg); }

/* highlighted text */
.text-grad { color: var(--primary); }
