@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');

:root {
  --blue-1: #4FA8F5;
  --blue-2: #2E6FE8;
  --teal-1: #22D3B5;
  --teal-2: #0EA98C;
  --gold-1: #FFC94D;
  --gold-2: #F6A623;
  --navy: #10254A;
  --navy-2: #0C1B38;
  --ink: #1B2A44;
  --muted: #5C6B85;
  --bg: #F7F9FC;
  --card: #FFFFFF;
  --border: #E7ECF4;
  --shadow: 0 10px 30px -12px rgba(16, 37, 74, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(16, 37, 74, 0.28);
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--blue-2);
  background: linear-gradient(90deg, rgba(79,168,245,.12), rgba(34,211,181,.12));
  border: 1px solid rgba(79,168,245,.25);
  padding: 6px 14px;
  border-radius: 100px;
}

.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  flex-shrink: 0;
}

h1, h2, h3, h4 { margin: 0; color: var(--navy); font-weight: 800; }

.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.35;
  margin-top: 14px;
}

.section-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 620px;
  margin-top: 14px;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}

.section-head .section-sub { margin-left: auto; margin-right: auto; }

.pad { padding: 96px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2) 55%, var(--teal-2));
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(46,111,232,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(46,111,232,.6); }

.btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--blue-1); color: var(--blue-2); transform: translateY(-2px); }

.btn-light {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}
.btn-light:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }

/* ---------------------------------------------------------------- nav -- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 249, 252, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px -18px rgba(16,37,74,.3);
}

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

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--navy); }
.brand img { width: 38px; height: 38px; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: #fff; color: var(--navy); box-shadow: var(--shadow); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px;
  position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ------------------------------------------------------------- hero -- */

.hero {
  padding: 168px 0 110px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(720px 420px at 18% -10%, rgba(79,168,245,.28), transparent 60%),
    radial-gradient(680px 460px at 100% 0%, rgba(34,211,181,.22), transparent 55%),
    linear-gradient(180deg, #EEF4FD 0%, var(--bg) 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

.tagline {
  margin: 16px 0 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--teal-2);
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.28;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--blue-2), var(--teal-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
  margin-top: 22px;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stats .stat b { display: block; font-size: 24px; color: var(--navy); font-weight: 800; }
.hero-stats .stat span { font-size: 13.5px; color: var(--muted); }

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art .glow {
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(79,168,245,.35), rgba(34,211,181,.18) 55%, transparent 72%);
  filter: blur(10px);
  border-radius: 50%;
}
.hero-art img {
  position: relative;
  width: min(380px, 78vw);
  filter: drop-shadow(0 30px 50px rgba(16,37,74,.22));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  border: 1px solid var(--border);
}
.hero-card.c1 { top: 6%; right: -6%; }
.hero-card.c2 { bottom: 10%; left: -8%; }
.hero-card .ic {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-card.c1 .ic { background: linear-gradient(135deg, var(--teal-1), var(--teal-2)); }
.hero-card.c2 .ic { background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); }
.hero-card .ic svg { width: 18px; height: 18px; stroke: #fff; }

/* ------------------------------------------------------------ trust -- */

.trust-strip {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.trust-strip .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.trust-strip .row .item { display: flex; align-items: center; gap: 8px; }
.trust-strip svg { width: 18px; height: 18px; stroke: var(--teal-2); flex-shrink: 0; }

/* --------------------------------------------------------- features -- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; stroke: #fff; }

.feature-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

.icon-blue { background: linear-gradient(135deg, var(--blue-1), var(--blue-2)); }
.icon-teal { background: linear-gradient(135deg, var(--teal-1), var(--teal-2)); }
.icon-gold { background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); }

/* ------------------------------------------------------------- roles -- */

.roles-wrap {
  background: linear-gradient(180deg, #fff, var(--bg));
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.role-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  position: relative;
  overflow: hidden;
}
.role-card .role-num {
  position: absolute;
  top: -10px; left: -6px;
  font-size: 64px;
  font-weight: 900;
  color: var(--bg);
  z-index: 0;
  -webkit-text-stroke: 1px var(--border);
}
.role-card .role-body { position: relative; z-index: 1; }
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.role-badge.b1 { background: rgba(46,111,232,.1); color: var(--blue-2); }
.role-badge.b2 { background: rgba(14,169,140,.1); color: var(--teal-2); }
.role-badge.b3 { background: rgba(246,166,35,.14); color: #B4720B; }
.role-badge.b4 { background: rgba(16,37,74,.08); color: var(--navy); }
.role-card h3 { font-size: 17px; margin-bottom: 10px; }
.role-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* -------------------------------------------------------------- story -- */

.story-wrap { background: linear-gradient(180deg, var(--bg), #fff); }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.story-media { position: relative; }
.story-blob {
  position: absolute;
  inset: -24px;
  background: linear-gradient(135deg, rgba(79,168,245,.28), rgba(34,211,181,.24));
  border-radius: 32px;
  transform: rotate(-3deg);
  z-index: 0;
}
.story-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
}

.story-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.story-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--navy);
  font-size: 15px;
}
.story-points svg {
  width: 22px; height: 22px;
  stroke: var(--teal-2);
  flex-shrink: 0;
  background: rgba(14,169,140,.1);
  border-radius: 50%;
  padding: 3px;
}

/* ----------------------------------------------------------- security -- */

.security {
  background: linear-gradient(160deg, var(--navy-2), var(--navy) 55%, #123456);
  color: #fff;
  border-radius: 32px;
  padding: 64px;
  overflow: hidden;
  position: relative;
}
.security::before {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  right: -140px; top: -160px;
  background: radial-gradient(circle, rgba(79,168,245,.35), transparent 65%);
}
.security::after {
  content: '';
  position: absolute;
  width: 420px; height: 420px;
  left: -140px; bottom: -160px;
  background: radial-gradient(circle, rgba(34,211,181,.28), transparent 65%);
}
.security-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}
.security h2 { color: #fff; }
.security .section-sub2 { color: rgba(255,255,255,.72); font-size: 16px; margin-top: 16px; max-width: 440px; }

.security-list { display: grid; gap: 16px; }
.security-item {
  display: flex;
  gap: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 18px 20px;
}
.security-item .ic {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
}
.security-item .ic svg { width: 20px; height: 20px; stroke: #fff; }
.security-item h4 { color: #fff; font-size: 15.5px; margin-bottom: 4px; }
.security-item p { margin: 0; color: rgba(255,255,255,.68); font-size: 13.8px; }

/* ----------------------------------------------------------------- cta -- */

.cta {
  background: linear-gradient(120deg, var(--blue-2), var(--teal-2));
  border-radius: 32px;
  padding: 72px 64px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(500px 260px at 50% -20%, rgba(255,255,255,.28), transparent 70%);
}
.cta h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); position: relative; }
.cta p { color: rgba(255,255,255,.85); max-width: 560px; margin: 16px auto 0; position: relative; }
.cta .hero-actions { justify-content: center; position: relative; }
.cta .btn-primary { background: #fff; color: var(--blue-2); box-shadow: 0 14px 30px -10px rgba(0,0,0,.25); }
.cta .btn-primary:hover { color: var(--blue-2); }

/* -------------------------------------------------------------- footer -- */

footer {
  background: var(--navy-2);
  color: rgba(255,255,255,.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 34px; height: 34px; }
.footer-brand span { font-weight: 800; color: #fff; font-size: 18px; }
.footer p.desc { font-size: 14px; max-width: 300px; line-height: 1.8; }
footer h5 { color: #fff; font-size: 14.5px; margin-bottom: 18px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
footer ul a { font-size: 14px; transition: color .15s ease; }
footer ul a:hover { color: #fff; }
.footer-bottom {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

/* --------------------------------------------------------------- reveal -- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* -------------------------------------------------------------- responsive -- */

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin-bottom: 12px; }
  .hero-card { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: 1fr; }
  .security { padding: 40px 28px; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .pad { padding: 64px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .roles-grid { grid-template-columns: 1fr; }
  .cta { padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 72px; }
}
