/* style.css */
:root {
  --blue-900: #0b2a6b;
  --blue-700: #1444a6;
  --blue-600: #1f5fd0;
  --blue-500: #2f7cf6;
  --blue-100: #e3eeff;
  --blue-50: #f3f8ff;
  --ink: #0f1b33;
  --ink-soft: #41506b;
  --line: #d8e4f8;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(17, 60, 140, 0.08);
  --shadow-sm: 0 4px 14px rgba(17, 60, 140, 0.06);
  --max: 880px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1100px 500px at 100% -10%, var(--blue-100) 0%, transparent 60%),
    var(--blue-50);
  font-family: "IRAN Kharazmi", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { color: var(--blue-900); }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 16px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--blue-700);
  color: var(--white);
  text-decoration: none;
  transition: inset-block-start 0.2s ease;
}
.skip-link:focus { inset-block-start: 12px; color: var(--white); }

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-block-end: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--blue-500), var(--blue-700));
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 800; font-size: 1.05rem; color: var(--blue-900); }
.brand-sub { font-size: 0.76rem; color: var(--ink-soft); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-700);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.lang-toggle:hover { background: var(--blue-50); border-color: var(--blue-500); }
.lang-toggle:active { transform: translateY(1px); }

.hero {
  margin-block: 40px 28px;
  padding: 36px 30px;
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(420px 220px at 85% 0%, rgba(255, 255, 255, 0.22), transparent 70%),
    linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: var(--white);
  box-shadow: var(--shadow);
}
[dir="ltr"] .hero {
  background:
    radial-gradient(420px 220px at 15% 0%, rgba(255, 255, 255, 0.22), transparent 70%),
    linear-gradient(135deg, var(--blue-700), var(--blue-500));
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 4.4vw, 2.35rem);
  line-height: 1.35;
  font-weight: 800;
}

.hero-text { margin: 0; max-width: 62ch; color: rgba(255, 255, 255, 0.92); }

.updated {
  margin: 18px 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-block-end: 20px;
  box-shadow: var(--shadow-sm);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  color: var(--blue-900);
  font-weight: 800;
}

.card h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 1.05em;
  margin-inline-end: 10px;
  border-radius: 3px;
  background: linear-gradient(var(--blue-500), var(--blue-700));
  vertical-align: -0.14em;
}

.card p { margin: 0 0 12px; color: var(--ink-soft); }
.card p:last-child { margin-block-end: 0; }

.list {
  margin: 4px 0 0;
  padding-inline-start: 1.15em;
  color: var(--ink-soft);
}
.list li { margin-block-end: 8px; }
.list li::marker { color: var(--blue-500); }
.list li:last-child { margin-block-end: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-block-start: 6px;
}

.mini {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--blue-50);
}
.mini h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  color: var(--blue-700);
  font-weight: 700;
}
.mini p { margin: 0; font-size: 0.93rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 6px;
  padding: 11px 20px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--blue-600), var(--blue-700));
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { color: var(--white); filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }

.site-footer {
  margin-block-start: 28px;
  border-block-start: 1px solid var(--line);
  background: var(--white);
}
.footer-inner {
  padding-block: 22px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.footer-inner p { margin: 0; }

[dir="ltr"] body { line-height: 1.7; }

@media (max-width: 640px) {
  .header-inner { min-height: 62px; }
  .brand-sub { display: none; }
  .hero { margin-block: 26px 20px; padding: 28px 22px; }
  .card { padding: 22px 20px; border-radius: 16px; }
  .container { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
