/* =====================================================================
   مهراز رایان سلامت نوین — Design System
   Palette: brand navy / teal (sampled from logo) + restrained gold detail
   Type: Vazirmatn (self-hosted) — full RTL
   ===================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Black.woff2') format('woff2'); font-weight: 900; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --navy: #0A3161;          /* brand primary (logo) */
  --navy-deep: #071F3D;     /* footer / dark bands */
  --navy-2: #0F3E78;        /* hover / gradient stop */
  --navy-tint: #E7EEF6;     /* light navy tint */
  --teal: #00898F;          /* brand accent (logo) */
  --teal-ink: #056E75;      /* AA-safe teal for text/links */
  --teal-tint: #E0F2F3;
  --gold: #B9975B;          /* ornament hairlines only */
  --gold-soft: #D9C49A;

  --bg: #FFFFFF;
  --bg-soft: #F4F8FB;
  --bg-mist: #EDF3F8;
  --ink: #1E2C3C;
  --ink-soft: #4E617A;
  --ink-faint: #8296AC;
  --line: #E2E9F1;
  --line-strong: #CFDAE6;

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(10,49,97,.06), 0 2px 8px rgba(10,49,97,.05);
  --shadow-md: 0 6px 24px rgba(10,49,97,.09), 0 2px 6px rgba(10,49,97,.05);
  --shadow-lg: 0 20px 50px rgba(10,49,97,.14), 0 6px 16px rgba(10,49,97,.07);
  --container: 1160px;
  --header-h: 76px;
  --ease: cubic-bezier(.33,.9,.35,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-ink); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.55; color: var(--navy); font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 700; color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--teal-tint); color: var(--navy); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.skip-link {
  position: absolute; top: -60px; right: 16px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 20px; border-radius: 0 0 10px 10px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Persian-geometry background details ---------- */
/* 8-point star (girih) lattice — kept extremely faint per brand direction */
.pattern-girih {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%230A3161' stroke-width='1' opacity='.55'%3E%3Cpath d='M48 14 L57.4 38.6 L82 48 L57.4 57.4 L48 82 L38.6 57.4 L14 48 L38.6 38.6 Z'/%3E%3Crect x='31' y='31' width='34' height='34' transform='rotate(45 48 48)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
}
.orn-star { color: var(--gold); flex: none; }

/* section heading ornament: hairline — star — hairline */
.sec-head { max-width: 760px; margin-inline: auto; text-align: center; margin-bottom: 52px; }
.sec-head.right { text-align: right; margin-inline: 0; }
.sec-orn { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; }
.sec-head.right .sec-orn { justify-content: flex-start; }
.sec-orn::before, .sec-orn::after { content: ''; height: 1px; width: 54px; background: linear-gradient(to left, transparent, var(--gold)); }
.sec-orn::after { background: linear-gradient(to right, transparent, var(--gold)); }
.sec-head .kicker { display: block; color: var(--teal-ink); font-weight: 600; font-size: .95rem; margin-bottom: 8px; letter-spacing: .01em; }
.sec-head h2 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); }
.sec-head .lead { color: var(--ink-soft); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 28px; border-radius: var(--r-md);
  font-family: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent; transition: all .22s var(--ease); text-align: center;
}
.btn svg { flex: none; transition: transform .22s var(--ease); }
.btn:hover svg { transform: translateX(-4px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(10,49,97,.25); }
.btn-primary:hover { background: var(--navy-2); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(10,49,97,.3); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(0,137,143,.25); }
.btn-teal:hover { background: #06777d; color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-tint); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--bg-mist); color: var(--navy); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--teal-ink); }
.link-more svg { transition: transform .2s var(--ease); }
.link-more:hover svg { transform: translateX(-5px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(10,49,97,.07); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 44px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.35; }
.brand-name b { color: var(--navy); font-size: 1.02rem; font-weight: 800; }
.brand-name span { color: var(--ink-faint); font-size: .62rem; letter-spacing: .14em; font-weight: 500; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-block; padding: 10px 12px; border-radius: 10px; white-space: nowrap;
  color: var(--ink-soft); font-weight: 500; font-size: .95rem; position: relative;
}
.main-nav a:hover { color: var(--navy); background: var(--bg-soft); }
.main-nav a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.main-nav a[aria-current="page"]::after {
  content: ''; position: absolute; bottom: 3px; right: 14px; left: 14px; height: 2.5px;
  border-radius: 2px; background: linear-gradient(to left, var(--teal), var(--navy));
}
.header-cta { flex: none; }
.header-cta .btn { min-height: 44px; padding: 9px 22px; font-size: .95rem; }

/* mobile nav */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 10px; background: none; border: 1.5px solid var(--line-strong);
  border-radius: 10px; cursor: pointer; margin-inline-start: auto;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .25s var(--ease), opacity .2s; }
.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); }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(10,49,97,.15);
    padding: 12px 20px 22px; transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: all .28s var(--ease); margin: 0; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { display: block; padding: 13px 14px; font-size: 1.05rem; }
  .main-nav a[aria-current="page"]::after { display: none; }
  .main-nav a[aria-current="page"] { background: var(--bg-soft); border-right: 3px solid var(--teal); border-radius: 8px; }
  .header-cta { display: none; }
  .main-nav .nav-cta-row { margin-top: 14px; }
  .main-nav .nav-cta-row .btn { width: 100%; }
}
@media (min-width: 1081px) { .main-nav .nav-cta-row { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #FBFDFE 0%, var(--bg-soft) 100%); }
.hero .pattern-layer { position: absolute; inset: 0; opacity: .02; pointer-events: none; }
.hero-glow {
  position: absolute; width: 560px; height: 560px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(0,137,143,.14), transparent 65%);
  top: -160px; left: -120px;
}
.hero-glow.two { background: radial-gradient(circle, rgba(10,49,97,.1), transparent 65%); top: auto; left: auto; bottom: -220px; right: -140px; }
.hero-inner {
  position: relative; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
  gap: 48px; align-items: center; padding-block: 84px 96px; min-height: min(calc(92vh - var(--header-h)), 800px);
}
.hero-copy .eyebrow {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 100px; padding: 7px 18px; font-size: .88rem; font-weight: 600; color: var(--teal-ink);
  box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.hero-copy h1 { font-size: clamp(1.9rem, 4.6vw, 3.05rem); font-weight: 900; line-height: 1.5; }
.hero-copy h1 .accent { color: var(--teal); position: relative; white-space: nowrap; }
.hero-copy h1 .accent svg { position: absolute; right: 0; left: 0; bottom: -8px; width: 100%; height: 12px; color: var(--gold); opacity: .8; }
.hero-copy .sub { color: var(--ink-soft); font-size: 1.13rem; margin-top: 22px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 40px; }
.hero-note .label { font-size: .85rem; color: var(--ink-faint); font-weight: 500; margin-bottom: 12px; }
.hero-note ul { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.hero-note li {
  font-size: .85rem; font-weight: 500; color: var(--ink-soft); background: #fff;
  border: 1px solid var(--line); border-radius: 100px; padding: 5px 15px;
}

/* hero visual — layered brand panel */
.hero-visual { position: relative; min-height: 460px; }
.hero-panel {
  position: relative; border-radius: var(--r-xl); overflow: hidden; height: 100%; min-height: 460px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 52%, #0B5E6B 100%);
  box-shadow: var(--shadow-lg);
}
.hero-panel .pattern-layer { position: absolute; inset: 0; opacity: .1; filter: invert(1); }
.hero-panel .mark { position: absolute; inset-inline-start: -40px; bottom: -50px; width: 320px; opacity: .1; filter: brightness(0) invert(1); }
.hero-panel .gold-arc { position: absolute; top: 0; inset-inline-end: 0; width: 220px; opacity: .9; }
.hero-cards { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 40px 44px; }
.hero-chip {
  display: flex; align-items: center; gap: 15px; background: rgba(255,255,255,.97); border-radius: var(--r-lg);
  padding: 17px 20px; box-shadow: 0 14px 34px rgba(4,17,38,.28); max-width: 380px;
  border: 1px solid rgba(255,255,255,.6);
}
.hero-chip:nth-child(2) { margin-inline-start: 34px; }
.hero-chip:nth-child(3) { margin-inline-start: 8px; }
.hero-chip .ic {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px;
  background: linear-gradient(140deg, var(--navy-tint), var(--teal-tint)); color: var(--teal-ink);
}
.hero-chip b { display: block; color: var(--navy); font-size: .99rem; font-weight: 700; line-height: 1.5; }
.hero-chip span { display: block; color: var(--ink-soft); font-size: .82rem; line-height: 1.7; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 56px 72px; min-height: 0; }
  .hero-visual { min-height: 0; }
  .hero-panel { min-height: 0; }
  .hero-cards { position: static; padding: 34px 26px; }
  .hero-chip, .hero-chip:nth-child(2), .hero-chip:nth-child(3) { margin-inline-start: 0; max-width: none; }
}

/* wave divider (echo of letterhead) */
.wave { display: block; width: 100%; height: 60px; color: var(--bg); }
.wave.to-soft { color: var(--bg-soft); }
.wave.to-navy { color: var(--navy-deep); }
.wave svg { width: 100%; height: 100%; }

/* ---------- Sections ---------- */
.section { padding-block: 88px; position: relative; }
.section.soft { background: var(--bg-soft); }
.section.mist { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.section.tight { padding-block: 64px; }

/* intro split */
.intro-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.intro-grid h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 20px; }
.intro-grid p { color: var(--ink-soft); margin-bottom: 14px; }
.quote-card {
  position: relative; background: linear-gradient(150deg, var(--navy), var(--navy-2));
  color: #fff; border-radius: var(--r-xl); padding: 44px 40px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.quote-card .pattern-layer { position: absolute; inset: 0; opacity: .08; filter: invert(1); }
.quote-card blockquote { position: relative; font-size: 1.28rem; font-weight: 700; line-height: 2.1; }
.quote-card blockquote::before { content: '«'; color: var(--gold-soft); font-size: 2rem; }
.quote-card blockquote::after { content: '»'; color: var(--gold-soft); font-size: 2rem; }
.quote-card .who { position: relative; margin-top: 18px; color: rgba(255,255,255,.75); font-size: .9rem; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; gap: 36px; } }

/* area cards (سه حوزه) */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.area-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 36px 30px 30px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  display: flex; flex-direction: column;
}
.area-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.area-card .num {
  position: absolute; top: 14px; inset-inline-end: 20px; font-size: 3.4rem; font-weight: 900;
  color: var(--navy); opacity: .06; line-height: 1;
}
.area-card .ic {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(140deg, var(--navy) 0%, var(--teal) 130%); color: #fff; box-shadow: 0 8px 20px rgba(10,49,97,.22);
}
.area-card h3 { font-size: 1.22rem; margin-bottom: 12px; }
.area-card p { color: var(--ink-soft); font-size: .96rem; flex: 1; }
.area-card .link-more { margin-top: 20px; font-size: .95rem; }
@media (max-width: 940px) { .areas-grid { grid-template-columns: 1fr; } }

/* product cards */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px 24px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.product-card .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-card .ic {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: var(--navy-tint); color: var(--navy); transition: background .25s, color .25s;
}
.product-card:hover .ic { background: var(--teal); color: #fff; }
.product-card h3 { font-size: 1.12rem; }
.product-card h3 a { color: inherit; }
.product-card h3 a::after { content: ''; position: absolute; inset: 0; }
.product-card p { color: var(--ink-soft); font-size: .92rem; line-height: 1.85; flex: 1; }
.product-card .meta { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 14px; }
.product-card .meta .link-more { font-size: .9rem; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600;
  border-radius: 100px; padding: 3px 12px; border: 1px solid;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.dev { color: var(--teal-ink); background: var(--teal-tint); border-color: rgba(5,110,117,.25); }
.badge.design { color: #8A6210; background: #FBF3E2; border-color: rgba(138,98,16,.25); }
.badge.op { color: #1B6B3A; background: #E6F5EC; border-color: rgba(27,107,58,.25); }
@media (max-width: 1020px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .products-grid { grid-template-columns: 1fr; } }

/* why-mehraz */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.why-item .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-tint); color: var(--teal-ink); display: grid; place-items: center; margin-bottom: 16px; }
.why-item h3 { font-size: 1.06rem; margin-bottom: 8px; }
.why-item p { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } }

/* experience strip (founder track record) */
.exp-strip { background: linear-gradient(150deg, var(--navy-deep), var(--navy) 70%); color: #fff; position: relative; overflow: hidden; }
.exp-strip .pattern-layer { position: absolute; inset: 0; opacity: .06; filter: invert(1); }
.exp-strip .sec-head h2, .exp-strip h2 { color: #fff; }
.exp-strip .sec-head .lead { color: rgba(255,255,255,.72); }
.exp-strip .sec-orn::before { background: linear-gradient(to left, transparent, var(--gold-soft)); }
.exp-strip .sec-orn::after { background: linear-gradient(to right, transparent, var(--gold-soft)); }
.exp-strip .orn-star { color: var(--gold-soft); }
.org-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.org-item {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-md);
  padding: 20px 18px; text-align: center; transition: background .25s, border-color .25s;
}
.org-item:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.3); }
.org-item b { display: block; font-size: .98rem; font-weight: 700; line-height: 1.7; }
.org-item span { display: block; color: rgba(255,255,255,.65); font-size: .8rem; margin-top: 6px; line-height: 1.7; }
.exp-note {
  position: relative; margin-top: 26px; text-align: center; color: rgba(255,255,255,.65); font-size: .87rem;
}
.exp-cta { position: relative; text-align: center; margin-top: 34px; }
@media (max-width: 980px) { .org-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .org-grid { grid-template-columns: 1fr; } }

/* values grid */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-item { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: 26px 24px; position: relative; overflow: hidden; }
.value-item::before {
  content: ''; position: absolute; top: 0; right: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--teal), var(--navy)); opacity: 0; transition: opacity .25s;
}
.value-item:hover::before { opacity: 1; }
.value-item h3 { font-size: 1.04rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.value-item h3 svg { color: var(--gold); flex: none; }
.value-item p { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .values-grid { grid-template-columns: 1fr; } }

/* approach steps chain */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 14px 16px;
  text-align: center; position: relative; counter-increment: step;
}
.step::before {
  content: counter(step, persian); display: grid; place-items: center; width: 34px; height: 34px;
  margin: 0 auto 10px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .9rem;
}
.step:nth-child(even)::before { background: var(--teal); }
.step b { display: block; font-size: .92rem; color: var(--navy); line-height: 1.7; }
.step span { display: block; font-size: .78rem; color: var(--ink-faint); margin-top: 4px; line-height: 1.7; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: repeat(2, 1fr); } }

/* timeline (founder experience) */
.timeline { position: relative; max-width: 860px; margin-inline: auto; padding-inline-start: 30px; }
.timeline::before {
  content: ''; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 7px; width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--navy) 60%, var(--gold));
  border-radius: 2px; opacity: .35;
}
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; inset-inline-start: -29px; top: 10px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 3px solid var(--teal); box-shadow: 0 0 0 4px rgba(0,137,143,.12);
}
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s; }
.tl-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tl-card .when {
  display: inline-block; font-size: .8rem; font-weight: 700; color: var(--teal-ink);
  background: var(--teal-tint); border-radius: 100px; padding: 2px 14px; margin-bottom: 10px;
}
.tl-card h3 { font-size: 1.08rem; }
.tl-card .role { color: var(--navy-2); font-weight: 600; font-size: .95rem; margin-top: 2px; }
.tl-card p { color: var(--ink-soft); font-size: .9rem; margin-top: 8px; }

/* callout / disclaimer */
.callout {
  display: flex; gap: 16px; background: #FDFAF3; border: 1px solid #EADFC5; border-radius: var(--r-lg);
  padding: 22px 24px; align-items: flex-start;
}
.callout .ic { flex: none; color: var(--gold); margin-top: 4px; }
.callout p { color: #6B5B33; font-size: .92rem; }
.callout b { color: #4E421F; }
.callout.blue { background: #F3F8FD; border-color: #D7E5F2; }
.callout.blue .ic { color: var(--navy-2); }
.callout.blue p { color: #3A567A; }
.callout.blue b { color: var(--navy); }

/* knowledge topics */
.topics { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.topics li {
  background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 8px 20px;
  font-size: .92rem; font-weight: 500; color: var(--ink-soft); transition: all .2s var(--ease);
}
.topics li:hover { border-color: var(--teal); color: var(--teal-ink); background: var(--teal-tint); }

.article-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.article-card .thumb { height: 150px; background: linear-gradient(140deg, var(--navy-tint), var(--teal-tint)); display: grid; place-items: center; color: var(--navy); opacity: .9; }
.article-card .body { padding: 20px 22px 22px; }
.article-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.article-card p { color: var(--ink-soft); font-size: .88rem; }
.article-card .soon { display: inline-block; margin-top: 12px; font-size: .78rem; font-weight: 700; color: var(--gold); background: #FBF3E2; border-radius: 100px; padding: 2px 12px; }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(140deg, var(--navy-deep) 0%, var(--navy) 55%, #0A4E62 100%); color: #fff; }
.cta-band .pattern-layer { position: absolute; inset: 0; opacity: .07; filter: invert(1); }
.cta-band .mark { position: absolute; inset-inline-start: 4%; bottom: -70px; width: 300px; opacity: .07; filter: brightness(0) invert(1); }
.cta-inner { position: relative; text-align: center; padding-block: 88px; max-width: 720px; margin-inline: auto; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 900; }
.cta-inner p { color: rgba(255,255,255,.78); margin-top: 16px; font-size: 1.06rem; }
.cta-inner .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { position: relative; background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, #0B4A5E 115%); color: #fff; overflow: hidden; }
.page-hero .pattern-layer { position: absolute; inset: 0; opacity: .07; filter: invert(1); }
.page-hero .gold-arc { position: absolute; top: 0; inset-inline-end: 0; width: 200px; opacity: .85; }
.page-hero-inner { position: relative; padding-block: 76px 84px; max-width: 780px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: 20px; }
.breadcrumbs a { color: rgba(255,255,255,.85); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .sep { opacity: .5; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 900; }
.page-hero .lead { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-top: 16px; }
.page-hero .badge-row { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.page-hero .badge { font-size: .82rem; padding: 5px 16px; }
.page-hero .badge.on-dark { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }

/* ---------- Feature list (product pages) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature-item { display: flex; gap: 15px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; }
.feature-item .ic { flex: none; width: 42px; height: 42px; border-radius: 11px; background: var(--teal-tint); color: var(--teal-ink); display: grid; place-items: center; }
.feature-item b { display: block; color: var(--navy); font-size: .99rem; }
.feature-item p { color: var(--ink-soft); font-size: .89rem; margin-top: 3px; }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }

/* audience cards */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.aud-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; text-align: center; }
.aud-item .ic { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%; background: var(--navy-tint); color: var(--navy); display: grid; place-items: center; }
.aud-item b { display: block; color: var(--navy); font-size: .96rem; }
.aud-item p { color: var(--ink-soft); font-size: .85rem; margin-top: 5px; }
@media (max-width: 900px) { .aud-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .aud-grid { grid-template-columns: 1fr; } }

/* problem/solution split */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ps-card { border-radius: var(--r-lg); padding: 32px 30px; border: 1px solid var(--line); background: #fff; }
.ps-card.problem { background: #FBF7F2; border-color: #EDE0CC; }
.ps-card.solution { background: linear-gradient(150deg, var(--navy), var(--navy-2)); border-color: transparent; color: #fff; }
.ps-card .tag { display: inline-block; font-size: .8rem; font-weight: 700; border-radius: 100px; padding: 3px 14px; margin-bottom: 14px; }
.ps-card.problem .tag { background: #F0E3CA; color: #6B5320; }
.ps-card.solution .tag { background: rgba(255,255,255,.16); color: #fff; }
.ps-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.ps-card.solution h3 { color: #fff; }
.ps-card p { font-size: .96rem; color: var(--ink-soft); }
.ps-card.solution p { color: rgba(255,255,255,.85); }
@media (max-width: 860px) { .ps-grid { grid-template-columns: 1fr; } }

/* service list (solutions page) */
.svc-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 26px; }
.svc-cols li { display: flex; align-items: flex-start; gap: 11px; padding: 9px 0; font-size: .97rem; color: var(--ink-soft); }
.svc-cols li svg { flex: none; color: var(--teal); margin-top: 7px; }
@media (max-width: 700px) { .svc-cols { grid-template-columns: 1fr; } }

.sol-block { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.sol-block.flip { grid-template-columns: 1.1fr .9fr; }
.sol-side { position: sticky; top: calc(var(--header-h) + 24px); }
.sol-side .num { font-size: .95rem; color: var(--gold); font-weight: 700; letter-spacing: .18em; margin-bottom: 10px; }
.sol-side h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-bottom: 14px; }
.sol-side p { color: var(--ink-soft); }
.sol-side .link-more { margin-top: 18px; }
@media (max-width: 900px) { .sol-block, .sol-block.flip { grid-template-columns: 1fr; gap: 26px; } .sol-side { position: static; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.contact-info-card { background: linear-gradient(160deg, var(--navy-deep), var(--navy)); color: #fff; border-radius: var(--r-xl); padding: 38px 34px; position: relative; overflow: hidden; }
.contact-info-card .pattern-layer { position: absolute; inset: 0; opacity: .07; filter: invert(1); }
.contact-info-card h2 { color: #fff; font-size: 1.35rem; position: relative; }
.contact-info-card > p { color: rgba(255,255,255,.75); font-size: .95rem; margin-top: 10px; position: relative; }
.contact-lines { position: relative; margin-top: 28px; display: grid; gap: 8px; }
.contact-line { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-line:last-child { border-bottom: 0; }
.contact-line .ic { flex: none; width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: var(--gold-soft); }
.contact-line b { display: block; font-size: .82rem; color: rgba(255,255,255,.6); font-weight: 500; }
.contact-line a, .contact-line span.val { color: #fff; font-weight: 600; font-size: .98rem; direction: ltr; unicode-bidi: embed; }
.contact-line span.val.fa { direction: rtl; }
.contact-line a:hover { color: var(--gold-soft); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 38px 34px; box-shadow: var(--shadow-md); }
.form-card h2 { font-size: 1.3rem; margin-bottom: 6px; }
.form-card .hint { color: var(--ink-soft); font-size: .92rem; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .9rem; font-weight: 600; color: var(--navy); }
.form-field label .req { color: #C33; }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit; font-size: .98rem; color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 12px 16px; background: var(--bg-soft);
  transition: border-color .2s, background .2s, box-shadow .2s; width: 100%;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(0,137,143,.12);
}
.form-field.error input, .form-field.error textarea, .form-field.error select { border-color: #C33; background: #FDF6F6; }
.form-field .err-msg { display: none; color: #B02A2A; font-size: .8rem; }
.form-field.error .err-msg { display: block; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-status { font-size: .9rem; font-weight: 600; }
.form-status.ok { color: #1B6B3A; }
.form-status.bad { color: #B02A2A; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.78); position: relative; }
.footer-top { border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 64px 48px; }
.footer-brand img { height: 52px; background: #fff; border-radius: 12px; padding: 6px; }
.footer-brand b { display: block; color: #fff; font-size: 1.12rem; margin-top: 16px; }
.footer-brand .en { color: rgba(255,255,255,.45); font-size: .68rem; letter-spacing: .16em; margin-top: 2px; }
.footer-brand p { font-size: .9rem; margin-top: 14px; color: rgba(255,255,255,.65); max-width: 30em; }
.footer-brand .pillars { margin-top: 14px; font-size: .8rem; color: var(--gold-soft); line-height: 2; }
.footer-col h3 { color: #fff; font-size: .98rem; margin-bottom: 18px; display: flex; align-items: center; gap: 9px; }
.footer-col h3 svg { color: var(--gold); }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; font-size: .9rem; }
.footer-contact svg { flex: none; color: var(--gold-soft); margin-top: 6px; }
.footer-contact a, .footer-contact span { color: rgba(255,255,255,.78); }
.footer-contact .ltr { direction: ltr; unicode-bidi: embed; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-block: 22px; font-size: .84rem; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 40px; }
.narrow { max-width: 780px; margin-inline: auto; }
.list-star li { display: flex; align-items: flex-start; gap: 11px; padding: 7px 0; color: var(--ink-soft); }
.list-star li svg { flex: none; color: var(--gold); margin-top: 8px; }
.two-track { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.track-card { border-radius: var(--r-lg); padding: 34px 30px; border: 1.5px solid var(--line); background: #fff; position: relative; overflow: hidden; }
.track-card.founder { border-color: var(--navy-tint); background: linear-gradient(180deg, #F6FAFD, #fff); }
.track-card.mehraz { border-color: var(--teal-tint); background: linear-gradient(180deg, #F2FAFA, #fff); }
.track-card .tag { display: inline-block; font-size: .8rem; font-weight: 700; border-radius: 100px; padding: 4px 16px; margin-bottom: 16px; }
.track-card.founder .tag { background: var(--navy-tint); color: var(--navy); }
.track-card.mehraz .tag { background: var(--teal-tint); color: var(--teal-ink); }
.track-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.track-card p { color: var(--ink-soft); font-size: .94rem; }
@media (max-width: 820px) { .two-track { grid-template-columns: 1fr; } }

.status-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.status-legend .badge { font-size: .78rem; }

table.spec { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.spec th, table.spec td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line); }
table.spec th { color: var(--navy); font-weight: 700; background: var(--bg-soft); }
table.spec td { color: var(--ink-soft); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
