/* ============================================================
   Eurasia Infotech — AI-First Company
   Redesign: modern dark, Vazirmatn, RTL-friendly
   ============================================================ */

:root {
  --bg: #070b14;
  --bg-soft: #0b1020;
  --card: #101728;
  --card-hi: #161f34;
  --border: rgba(255, 255, 255, 0.07);
  --border-hi: rgba(255, 255, 255, 0.15);
  --text: #e6ebf5;
  --dim: #a4aec2;
  --mute: #6c768c;
  --violet: #7c6df2;
  --cyan: #22d3ee;
  --grad: linear-gradient(120deg, #7c6df2 0%, #22d3ee 100%);
  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 24px 48px -22px rgba(0, 0, 0, 0.75);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Vazirmatn', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--cyan); }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  min-height: 70px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand small {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--mute);
  letter-spacing: 0;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.navlinks a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--dim);
  transition: all .2s ease;
}
.navlinks a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}
.navlinks a.lang {
  color: var(--text);
  border: 1px solid var(--border-hi);
  padding: 7px 14px;
}
.navlinks a.lang:hover {
  border-color: var(--violet);
  color: var(--cyan);
  background: rgba(124, 109, 242, 0.08);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 112px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(700px 450px at 88% -10%, rgba(124, 109, 242, 0.24), transparent 70%),
    radial-gradient(600px 400px at 6% 8%, rgba(34, 211, 238, 0.16), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 22px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.06);
  border-radius: 999px;
  animation: fadeUp .7s ease backwards;
}

.hero h1 {
  font-size: clamp(28px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.022em;
  margin-bottom: 22px;
  max-width: 940px;
  background: linear-gradient(180deg, #ffffff 0%, #b7c1d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #b7c1d9;
  animation: fadeUp .7s ease .08s backwards;
}

.lead {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--dim);
  max-width: 800px;
  margin-bottom: 34px;
  line-height: 2;
  animation: fadeUp .7s ease .16s backwards;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
  animation: fadeUp .7s ease .24s backwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border-hi);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--violet);
  color: var(--text);
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--grad);
  border: none;
  color: #06101f;
  box-shadow: 0 14px 34px -12px rgba(124, 109, 242, 0.65);
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -12px rgba(34, 211, 238, 0.55);
  color: #06101f;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 26px 28px;
  background: rgba(16, 23, 40, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeUp .7s ease .32s backwards;
}
.stat strong {
  display: block;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--cyan);
}
.stat span {
  font-size: 13.5px;
  color: var(--dim);
}

/* ============================================================
   SECTIONS
   ============================================================ */
section {
  position: relative;
  padding: 88px 0;
  border-top: 1px solid var(--border);
}
section.hero { border-top: none; }

.section-head {
  max-width: 800px;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.022em;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--dim);
  font-size: 16px;
  line-height: 1.95;
}

.quote {
  position: relative;
  margin: 6px 0 34px;
  padding: 26px 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(124, 109, 242, 0.13), rgba(34, 211, 238, 0.06));
  border: 1px solid rgba(124, 109, 242, 0.22);
  color: #e2e7f3;
  font-size: 17px;
  line-height: 1.95;
  font-weight: 500;
}
.quote::before {
  content: "”";
  position: absolute;
  top: -18px;
  inset-inline-start: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 68px;
  line-height: 1;
  color: var(--violet);
  opacity: 0.45;
  pointer-events: none;
}

/* ============================================================
   GRID & CARDS
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  background: var(--card-hi);
  border-color: var(--border-hi);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }

.card h3 {
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.55;
  margin-bottom: 10px;
}
.card p {
  font-size: 14.8px;
  color: var(--dim);
  line-height: 1.9;
}
.card p + p { margin-top: 14px; }
.card p a {
  color: var(--cyan);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.card p a:hover { border-bottom-color: var(--cyan); }

.tag {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border-radius: 6px;
}

/* ============================================================
   CALLOUT
   ============================================================ */
.callout {
  position: relative;
  padding: 52px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-hi);
  overflow: hidden;
  background:
    radial-gradient(600px 320px at 85% 0%, rgba(124, 109, 242, 0.20), transparent 60%),
    radial-gradient(520px 320px at 8% 100%, rgba(34, 211, 238, 0.14), transparent 60%),
    var(--card);
}
.callout h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.4;
  margin-bottom: 16px;
}
.callout p {
  color: var(--dim);
  font-size: 15.5px;
  line-height: 1.95;
  max-width: 740px;
  margin-bottom: 28px;
}
.callout .actions { margin-bottom: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  color: var(--mute);
  font-size: 13.5px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 32px 24px;
}

/* ============================================================
   ANIMATION
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero { padding: 76px 0 64px; }
  section { padding: 64px 0; }
  .nav { padding: 14px 20px; gap: 16px; }
  .navlinks a { padding: 6px 10px; font-size: 13.5px; }
  .brand { font-size: 16.5px; }
  .brand small { font-size: 10.5px; }
  .callout { padding: 36px 28px; }
  .quote { padding: 22px 24px; font-size: 16px; }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; padding: 22px; }
  .stat + .stat { border-top: 1px solid var(--border); padding-top: 14px; }
  .footer-row { justify-content: center; text-align: center; }
  .hero h1 { font-size: 26px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.12em; }
  .btn { padding: 12px 22px; font-size: 14px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}