:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #596579;
  --line: #dfe5ec;
  --surface: #ffffff;
  --soft: #f4f7fb;
  --brand: #1769e0;
  --brand-dark: #0f438f;
  --accent: #0b8f74;
  --warning: #8b5e00;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(20, 33, 61, 0.08);
  font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--soft);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand-dark); }
a:hover { color: var(--brand); }

.skip-link {
  position: fixed;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 100;
  padding: .7rem 1rem;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(223, 229, 236, .9);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand strong,
.brand small { display: block; }
.brand small { color: var(--muted); font-size: .72rem; }

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .9rem;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
}

.language-link {
  padding: .45rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 5%, rgba(23, 105, 224, .14), transparent 34rem),
    radial-gradient(circle at 85% 55%, rgba(11, 143, 116, .12), transparent 30rem),
    linear-gradient(180deg, #fff, #f8fbff);
}

.hero-inner {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-block-end: 1rem;
  color: var(--brand-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

[dir="rtl"] .eyebrow { letter-spacing: 0; }

h1, h2, h3 {
  margin-block-start: 0;
  line-height: 1.16;
  letter-spacing: -.035em;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3 { letter-spacing: 0; }

h1 {
  max-width: 920px;
  margin-block-end: 1.25rem;
  font-size: clamp(2.25rem, 6vw, 4.8rem);
}

h2 { font-size: clamp(1.7rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.15rem; }

.lead {
  max-width: 850px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.hero-actions,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-block-start: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .7rem 1.05rem;
  border: 1px solid var(--brand);
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section.soft { background: var(--soft); }
.section-heading { max-width: 790px; margin-block-end: 2rem; }
.section-heading p { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.card {
  height: 100%;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card p { color: var(--muted); }
.card > :last-child { margin-block-end: 0; }

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-link:hover {
  border-color: rgba(23, 105, 224, .45);
  transform: translateY(-2px);
}

.status {
  display: inline-flex;
  padding: .25rem .6rem;
  border-radius: 999px;
  color: #08684f;
  background: #e7f8f2;
  font-size: .78rem;
  font-weight: 800;
}

.status.soon {
  color: var(--warning);
  background: #fff6dc;
}

.tag {
  display: inline-flex;
  padding: .3rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: .82rem;
  font-weight: 700;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
}

.content-layout aside {
  position: sticky;
  inset-block-start: 92px;
}

.prose {
  max-width: 820px;
}

.prose h2 { margin-block-start: 2.8rem; }
.prose h3 { margin-block-start: 1.8rem; }
.prose p,
.prose li { color: #344054; }
.prose li + li { margin-block-start: .45rem; }

.check-list,
.step-list,
.plain-list {
  margin: 0;
  padding-inline-start: 1.25rem;
}

.check-list li::marker { color: var(--accent); }

.step-list {
  list-style: none;
  counter-reset: steps;
  padding: 0;
}

.step-list li {
  position: relative;
  min-height: 52px;
  padding-inline-start: 3.2rem;
  padding-block-end: 1.1rem;
  counter-increment: steps;
}

.step-list li::before {
  content: counter(steps);
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: -.1rem;
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
}

.notice {
  padding: 1rem 1.1rem;
  border-inline-start: 4px solid var(--brand);
  border-radius: 12px;
  color: #26364d;
  background: #edf5ff;
}

.notice.warning {
  border-inline-start-color: #c18400;
  background: #fff8e7;
}

.breadcrumbs {
  padding-block: 1rem;
  color: var(--muted);
  font-size: .86rem;
}

.breadcrumbs a { color: inherit; }
.breadcrumbs span { padding-inline: .35rem; }

.search-box {
  width: min(640px, 100%);
  margin-block-start: 1.25rem;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: .7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.search-result[hidden] { display: none; }

details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

details + details { margin-block-start: .7rem; }
summary {
  padding: 1rem;
  cursor: pointer;
  font-weight: 800;
}
details > div { padding: 0 1rem 1rem; color: var(--muted); }

.meta-list {
  display: grid;
  gap: .7rem;
  margin: 0;
}
.meta-list div { padding-block-end: .7rem; border-bottom: 1px solid var(--line); }
.meta-list dt { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.meta-list dd { margin: .15rem 0 0; }

.site-footer {
  padding-block: 2.4rem;
  color: #c8d2e1;
  background: #101828;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
}

.site-footer p { max-width: 680px; color: #98a8bc; }
.site-footer a {
  display: block;
  margin-block-end: .35rem;
  color: #e4ebf5;
  text-decoration: none;
}

@media (max-width: 800px) {
  .header-inner {
    padding-block: .7rem;
    align-items: flex-start;
    flex-direction: column;
  }
  nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-block-end: .2rem; }
  nav a { white-space: nowrap; }
  .content-layout { grid-template-columns: 1fr; }
  .content-layout aside { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .search-box { display: none !important; }
  .section { padding-block: 1rem; }
  .card { box-shadow: none; break-inside: avoid; }
}
