/* ---------- fonts (self-hosted Vazirmatn, variable 400–800) ---------- */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/vazirmatn-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/vazirmatn-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/vazirmatn-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  --blue: #0a4ea8;
  --blue-dark: #073a7d;
  --sky: #4bb3e8;
  --purple: #7b1fa8;
  --ink: #12212f;
  --ink-2: #1d2d3e;
  --text: #3a4b5c;
  --muted: #5b6b7b;
  --muted-2: #4a5b6b;
  --line: #e3e5e8;
  --line-2: #d7dae0;
  --bg-head: #f5f6f7;
  --bg-soft: #f2f3f5;
  --bg-foot: #e9eaec;
  --bg-tint: #e8f2fd;
  --gutter: clamp(16px, 2.5vw, 40px);
  --wrap: 1800px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #fff;
  color: var(--ink);
  line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
button { font: inherit; }
h1, h2, h3, h4, p { margin: 0; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.pretty { text-wrap: pretty; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- link with arrow ---------- */
.more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 500;
}
.more svg { width: 14px; height: 14px; flex: none; transform: scaleX(-1); transition: transform .2s; }
.more:hover svg { transform: scaleX(-1) translateX(-3px); }
.more.sm { font-size: 15.5px; }
.more.sm svg { width: 13px; height: 13px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 4px;
  font-size: 15.5px; font-weight: 700; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s;
}
.btn-outline { border: 1px solid var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-solid { background: var(--blue); color: #fff; padding: 12px 22px; font-size: 15px; }
.btn-solid:hover { background: var(--blue-dark); color: #fff; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-badge {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 12px;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .3px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%);
}
.logo-tri {
  width: 0; height: 0; border-style: solid;
  border-width: 13px 0 0 20px;
  border-color: transparent transparent transparent var(--sky);
  margin-inline-start: -11px; transform: translateY(9px);
}
.logo.sm .logo-badge { height: 28px; padding: 0 10px; font-size: 13px; clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%); }
.logo.sm .logo-tri { border-width: 11px 0 0 17px; margin-inline-start: -9px; transform: translateY(8px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-head); border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  min-height: 66px; padding-block: 10px;
  display: flex; align-items: center; gap: 10px clamp(18px, 2vw, 36px);
}
.main-nav {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px clamp(14px, 1.6vw, 26px); flex: 1 1 240px; min-width: 0;
}
.main-nav a, .header-tools > a {
  color: var(--ink-2); font-size: 15.5px; font-weight: 500; padding: 6px 0; white-space: nowrap;
}
.main-nav a:hover, .header-tools > a:hover { color: var(--blue); }
.header-tools {
  display: flex; align-items: center; gap: 8px clamp(12px, 1.4vw, 20px);
  margin-inline-start: auto;
}
.icon-btn {
  all: unset; cursor: pointer; display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; color: var(--ink-2); border-radius: 50%;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: rgba(10, 78, 168, .08); }
.icon-btn.account { position: relative; border: 1px solid var(--blue); color: var(--blue); }
.icon-btn.account svg { width: 17px; height: 17px; }
.icon-btn.account .dot {
  position: absolute; top: -1px; left: -1px; width: 8px; height: 8px; border-radius: 50%;
  background: #e8422b; border: 1.5px solid var(--bg-head);
}
.lang-btn {
  all: unset; cursor: pointer; display: flex; align-items: center; gap: 6px;
  color: var(--ink-2); font-size: 14px; font-weight: 600;
}
.lang-btn .flag {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 18px; border-radius: 2px;
  background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .5px;
}
.menu-btn { display: none; }

/* ---------- sub nav ---------- */
.sub-nav { background: #fff; border-bottom: 1px solid var(--line); }
.sub-nav .wrap { padding-top: 12px; }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; }
.crumbs svg { width: 14px; height: 14px; }
.crumbs a { color: var(--muted); font-size: 13.5px; }
.crumbs a:hover { color: var(--blue); }
.sub-row { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; padding-top: 6px; }
.sub-row h2 { padding: 6px 0 14px; font-size: 20px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.sub-row .sep { width: 1px; height: 26px; background: var(--line-2); margin-bottom: 16px; }
.tabs { display: flex; align-items: flex-end; gap: 26px; flex-wrap: wrap; }
.tabs a {
  color: var(--ink-2); font-size: 15.5px; padding: 6px 2px 11px;
  border-bottom: 3px solid transparent; white-space: nowrap; transition: color .15s;
}
.tabs a:hover { color: var(--blue); }
.tabs a.active { color: var(--blue); font-weight: 600; border-bottom-color: var(--blue); }

/* ---------- hero ---------- */
.hero { background: var(--blue); color: #fff; }
.hero .wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(24px, 3vw, 48px); align-items: center; min-height: 440px;
}
.hero-text { padding: 64px 0; }
.hero h1 {
  margin-bottom: 24px; font-size: clamp(34px, 4vw, 58px); line-height: 1.18;
  font-weight: 800; letter-spacing: -.5px;
}
.hero p { font-size: clamp(16px, 1.25vw, 21px); line-height: 1.75; max-width: 640px; }
.hero-media { position: relative; align-self: stretch; min-height: 360px; padding: 44px 0; }
.hero-clip {
  position: relative; width: 100%; height: 100%; min-height: 340px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 42% 100%);
}

/* ---------- image placeholder ---------- */
.ph {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #5b6b7b; font-size: 14px; padding: 16px;
  background:
    linear-gradient(135deg, rgba(10,78,168,.10), rgba(75,179,232,.18)),
    repeating-linear-gradient(45deg, rgba(10,78,168,.035) 0 12px, transparent 12px 24px),
    #edf3fa;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph .ph-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 80%; }
.ph svg { width: 34px; height: 34px; opacity: .55; }
.ph.dark { color: rgba(255,255,255,.85); background: linear-gradient(135deg, #0c5cc3, #4bb3e8); }
.ph.dark svg { opacity: .8; }
.ph.dark::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px);
}
.media { position: relative; width: 100%; overflow: hidden; }
.media.r10 { border-radius: 10px; }
.media.r8 { border-radius: 8px; }
.media.ar-16-10 { aspect-ratio: 16 / 10; }
.media.ar-16-9 { aspect-ratio: 16 / 9; }
.media.ar-4-3 { aspect-ratio: 4 / 3; }
.media.ar-3-2 { aspect-ratio: 3 / 2; }
.play {
  position: absolute; inset: auto 16px 16px auto; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(18, 33, 47, .7); color: #fff;
}
.play svg { width: 21px; height: 21px; margin-inline-start: 2px; }

/* ---------- sections ---------- */
.section { background: #fff; }
.section .wrap { padding-block: clamp(32px, 4vw, 64px); }
.section h2.title {
  font-size: clamp(28px, 3vw, 44px); font-weight: 800; color: var(--ink); letter-spacing: -.6px;
  margin-bottom: clamp(28px, 3vw, 48px);
}

/* intro */
.intro .wrap { padding-block: clamp(40px, 5vw, 84px); }
.intro-lead { max-width: 1080px; }
.intro-lead h2 {
  margin-bottom: 22px; font-size: clamp(26px, 2.6vw, 40px); font-weight: 800; letter-spacing: -.4px;
}
.intro-lead p { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.85; color: var(--text); max-width: 920px; }
.tabs-2 {
  margin-top: 44px; border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-end; gap: clamp(18px, 2.4vw, 40px); flex-wrap: wrap;
}
.tabs-2 a {
  color: var(--ink); font-size: 16px; font-weight: 700; padding: 0 2px 12px;
  border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs-2 a:hover { color: var(--blue); }
.tabs-2 a.active { color: var(--blue); border-bottom-color: var(--blue); }
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(32px, 4vw, 64px) clamp(24px, 3vw, 48px);
  padding: clamp(40px, 4.5vw, 72px) 0 clamp(28px, 3vw, 48px); max-width: 1400px;
}
.stat { text-align: center; }
.stat .num {
  font-size: clamp(42px, 4.4vw, 62px); font-weight: 800; color: var(--purple);
  line-height: 1.1; letter-spacing: -1px;
}
.stat .num small { font-size: .42em; font-weight: 700; }
.stat p { margin-top: 14px; font-size: 15.5px; line-height: 1.7; color: var(--text); }

/* card grids */
.cards {
  display: grid; gap: clamp(28px, 3.5vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  max-width: 1500px;
}
.cards.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(24px, 2.6vw, 40px); max-width: 1600px; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); max-width: 1560px; }
.card { display: flex; flex-direction: column; gap: 18px; }
.card h3 { font-size: 19.5px; font-weight: 700; color: var(--ink); }
.card p { font-size: 16px; line-height: 1.8; color: var(--text); }
.card .links { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.cards.four .card { gap: 14px; }
.cards.four .card h3 { font-size: 17.5px; line-height: 1.5; }
.cards.four .card p { font-size: 15.5px; }
.cards.four .card .more { margin-top: auto; }
.cards.two .card { gap: 16px; }
.cards.two .card h3 { font-size: 17.5px; }
.cards.two .card p { font-size: 15.5px; }
.cards.two .card .more { margin-top: auto; }

/* autonomous */
.ae-lead { max-width: 920px; }
.ae-lead h2 { margin-bottom: 18px; font-size: clamp(24px, 2.4vw, 36px); font-weight: 800; letter-spacing: -.4px; }
.ae-lead p, .lead-p { font-size: 16.5px; line-height: 1.85; color: var(--text); }
.ae-grid {
  margin-top: clamp(28px, 3vw, 44px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(28px, 3.5vw, 56px); align-items: start; max-width: 1500px;
}
.ae-list { display: flex; flex-direction: column; gap: 22px; padding-top: 6px; }
.ae-list h3 { margin-bottom: 8px; font-size: 16.5px; font-weight: 700; color: var(--ink); }
.ae-list p { font-size: 16px; line-height: 1.8; color: var(--text); }

/* strategy */
.strategy .wrap { padding-block: clamp(40px, 5vw, 88px) clamp(48px, 6vw, 96px); }
.strategy h2.title { margin-bottom: 18px; }
.strategy .lead-p { margin-bottom: clamp(28px, 3vw, 48px); max-width: 860px; }

/* innovation */
.innovation h2.title { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.5px; margin-bottom: clamp(24px, 2.6vw, 40px); }
.academy {
  margin-top: clamp(32px, 3.5vw, 56px); background: var(--bg-tint); border-radius: 6px;
  padding: clamp(22px, 2.4vw, 34px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px; max-width: 1560px;
}
.academy > div { flex: 1 1 380px; min-width: 0; }
.academy h3 { margin-bottom: 10px; font-size: 20px; font-weight: 800; color: var(--ink); }
.academy p { font-size: 15.5px; line-height: 1.8; color: var(--text); max-width: 900px; }

/* side-by-side rows (partners, culture) */
.row-media {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(28px, 3.5vw, 56px); align-items: center; max-width: 1560px;
}
.row-media .txt { display: flex; flex-direction: column; gap: 16px; }
.row-media p { font-size: 16px; line-height: 1.85; color: var(--text); }
.partners .wrap { padding-block: clamp(40px, 5vw, 80px) clamp(48px, 6vw, 96px); }
.partners h2.title, .culture h2.title { font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -.5px; margin-bottom: clamp(24px, 2.6vw, 40px); }
.culture .wrap { padding-block: clamp(24px, 3vw, 48px) clamp(48px, 5vw, 88px); }
.story .wrap { padding-block: clamp(32px, 4vw, 72px) clamp(48px, 6vw, 96px); }

/* ---------- feedback ---------- */
.feedback { background: var(--bg-soft); padding: 26px var(--gutter); }
.feedback .inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px;
}
.feedback span { font-size: 19px; font-weight: 700; color: var(--ink); text-align: center; }
.feedback .btns { display: flex; gap: 10px; }
.feedback button {
  all: unset; cursor: pointer; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 4px; background: var(--blue); color: #fff;
  transition: background .18s;
}
.feedback button:hover { background: var(--blue-dark); }
.feedback button.done { background: #1c9d5a; }
.feedback button svg { width: 19px; height: 19px; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-foot); color: var(--ink); }
.foot-grid {
  padding-block: clamp(36px, 4vw, 64px) 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(28px, 3vw, 48px);
}
.foot-contact { display: flex; flex-direction: column; gap: 22px; }
.foot-contact .item { display: flex; align-items: center; gap: 12px; }
.foot-contact .item svg { width: 18px; height: 18px; flex: none; }
.foot-contact .lbl { font-size: 13.5px; color: var(--muted-2); }
.foot-contact .num { font-size: 16.5px; font-weight: 700; direction: ltr; unicode-bidi: isolate; text-align: right; color: var(--ink); }
.foot-contact .note { font-size: 12.5px; color: var(--muted-2); margin-top: 6px; }
.foot-contact .note a { font-size: 12.5px; text-decoration: underline; }
.foot-contact .item a { font-size: 15px; }
.site-footer h4 { margin-bottom: 18px; font-size: 15px; font-weight: 700; }
.foot-links { display: flex; flex-direction: column; gap: 11px; }
.foot-links a { font-size: 14.5px; }
.foot-bottom { padding-bottom: 40px; }
.foot-bottom p { margin-bottom: 18px; font-size: 13px; color: var(--muted-2); }
.social { display: flex; gap: 10px; }
.social a {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 4px; background: var(--ink); color: #fff;
  transition: background .18s;
}
.social a:hover { background: var(--blue); color: #fff; }
.social svg { width: 15px; height: 15px; }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .menu-btn {
    display: flex; order: -1; margin-inline-end: 4px;
  }
  .main-nav {
    display: none; flex-basis: 100%; flex-direction: column; align-items: stretch;
    gap: 0; padding: 6px 0 10px; border-top: 1px solid var(--line); margin-top: 6px;
  }
  .main-nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-header.open .main-nav { display: flex; order: 10; }
  .header-tools > a { display: none; }
  .hero-text { padding: 44px 0 8px; }
  .hero-media { min-height: 240px; padding: 0 0 40px; }
  .hero-clip { min-height: 240px; clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%); }
  .sub-row { gap: 16px; }
  .sub-row h2 { padding-bottom: 8px; }
  .sub-row .sep { display: none; }
  .tabs { gap: 18px; overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 0; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs-2 { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs-2::-webkit-scrollbar { display: none; }
}
@media (max-width: 480px) {
  .stats { gap: 30px 20px; }
  .feedback span { font-size: 17px; }
}
