@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-400.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-600.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-900.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 900;
}

@font-face {
  font-family: "Noto Sans Arabic";
  src: url("/assets/fonts/noto-arabic-400.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Noto Sans Arabic";
  src: url("/assets/fonts/noto-arabic-700.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Noto Sans Arabic";
  src: url("/assets/fonts/noto-arabic-900.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 900;
}

:root {
  color-scheme: dark;
  --ink: #f8f2e7;
  --paper: #0a0d15;
  --paper-soft: #101623;
  --panel: #141c2b;
  --panel-strong: #192337;
  --muted: #acb6c8;
  --dim: #7f8aa0;
  --gold: #f2c96b;
  --gold-strong: #ffe095;
  --blue: #7ba7ff;
  --violet: #b899ff;
  --red: #ff7d89;
  --line: rgba(242, 201, 107, 0.22);
  --line-soft: rgba(255, 255, 255, 0.09);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content: 1180px;
  --body-font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% -10%, rgba(79, 112, 171, 0.16), transparent 34rem),
    radial-gradient(circle at 8% 28%, rgba(130, 88, 170, 0.1), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

html[dir="rtl"] body {
  font-family: "Noto Sans Arabic", var(--body-font);
  line-height: 1.9;
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold-strong);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--gold);
  color: #11151e;
  font-weight: 900;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  inset-block-start: 0;
  border-block-end: 1px solid var(--line-soft);
  background: rgba(10, 13, 21, 0.84);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(var(--content), calc(100% - 32px));
  min-height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 7px 24px rgba(0, 0, 0, 0.36);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.site-nav .language-link {
  border: 1px solid var(--line);
  color: var(--gold-strong);
}

.page-shell {
  overflow: hidden;
}

.hero,
.section,
.article-shell,
.language-gateway {
  width: min(var(--content), calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  min-height: min(790px, calc(100vh - 74px));
  padding-block: clamp(72px, 11vw, 140px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

.hero h1,
.article-hero h1,
.gateway-copy h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(3rem, 7vw, 6.7rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.96;
  text-wrap: balance;
}

html[dir="rtl"] .hero h1,
html[dir="rtl"] .article-hero h1,
html[dir="rtl"] .gateway-copy h1 {
  font-family: "Noto Sans Arabic", var(--body-font);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.hero h1 span,
.article-hero h1 span {
  color: var(--gold-strong);
}

.hero-lead,
.article-lead,
.gateway-copy > p {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  text-wrap: pretty;
}

.cta-row {
  margin-block-start: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  min-height: 52px;
  padding: 13px 19px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 201, 107, 0.55);
}

.button-primary {
  border-color: transparent;
  background: var(--gold);
  color: #11151e;
  box-shadow: 0 14px 38px rgba(242, 201, 107, 0.17);
}

.button-primary:hover {
  background: var(--gold-strong);
}

.button small {
  display: block;
  opacity: 0.72;
  font-size: 0.68rem;
  font-weight: 600;
}

.hero-note {
  margin-block-start: 18px;
  color: var(--dim);
  font-size: 0.84rem;
}

.hero-visual {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  position: absolute;
  width: 84%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 201, 107, 0.1), transparent 63%);
  content: "";
}

.hero-visual::after {
  position: absolute;
  width: 58%;
  height: 86%;
  border-radius: 48%;
  background: rgba(84, 111, 168, 0.18);
  filter: blur(60px);
  content: "";
}

.hero-shot {
  position: relative;
  z-index: 2;
  width: min(390px, 85%);
  border: 1px solid rgba(242, 201, 107, 0.35);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.case-stamp {
  position: absolute;
  z-index: 3;
  inset-inline-end: -12px;
  inset-block-end: 12%;
  width: 138px;
  aspect-ratio: 1;
  border: 1px solid rgba(242, 201, 107, 0.45);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(11, 15, 24, 0.94);
  color: var(--gold-strong);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-8deg);
}

html[dir="rtl"] .case-stamp {
  letter-spacing: 0;
  transform: rotate(8deg);
}

.stat-band {
  border-block: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.018);
}

.stats {
  width: min(var(--content), calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 28px 24px;
  border-inline-end: 1px solid var(--line-soft);
}

.stat:last-child {
  border-inline-end: 0;
}

.stat strong {
  display: block;
  color: var(--gold-strong);
  font-family: var(--display-font);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
}

html[dir="rtl"] .stat strong {
  font-family: "Noto Sans Arabic", var(--body-font);
  font-weight: 900;
}

.stat span {
  display: block;
  margin-block-start: 9px;
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding-block: clamp(82px, 11vw, 140px);
}

.section-heading {
  max-width: 800px;
  margin-block-end: 44px;
}

.section-heading h2,
.split-copy h2,
.cta-panel h2,
.article-section h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  letter-spacing: -0.045em;
  line-height: 1.03;
  text-wrap: balance;
}

html[dir="rtl"] .section-heading h2,
html[dir="rtl"] .split-copy h2,
html[dir="rtl"] .cta-panel h2,
html[dir="rtl"] .article-section h2 {
  font-family: "Noto Sans Arabic", var(--body-font);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.section-heading p,
.split-copy > p,
.article-section > p {
  max-width: 720px;
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.steps,
.feature-grid,
.language-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step,
.feature-card,
.language-card,
.faq-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 60%),
    var(--paper-soft);
}

.step {
  min-height: 285px;
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.step-number {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--display-font);
  font-size: 1.2rem;
  font-weight: 700;
}

.step h3,
.feature-card h3,
.language-card h2,
.faq-card h3,
.article-card h3 {
  margin: 28px 0 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.step p,
.feature-card p,
.language-card p,
.faq-card p,
.article-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.step .step-tag {
  margin-block-start: auto;
  padding-block-start: 28px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[dir="rtl"] .step .step-tag {
  letter-spacing: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(44px, 8vw, 110px);
}

.split + .split {
  margin-block-start: clamp(90px, 12vw, 160px);
}

.split-reverse .split-visual {
  order: 2;
}

.split-visual {
  position: relative;
  min-height: 550px;
  display: grid;
  place-items: center;
}

.split-visual::before {
  position: absolute;
  inset: 7% 10%;
  border: 1px solid var(--line);
  border-radius: 46% 54% 58% 42% / 42% 42% 58% 58%;
  background: radial-gradient(circle at 45% 30%, rgba(99, 125, 180, 0.2), rgba(16, 22, 35, 0.2) 60%);
  content: "";
}

.split-shot {
  position: relative;
  z-index: 2;
  width: min(320px, 75%);
  border: 1px solid rgba(242, 201, 107, 0.3);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.check-list {
  margin: 27px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-inline-start: 29px;
  color: var(--muted);
}

.check-list li::before {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.48em;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(242, 201, 107, 0.6);
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0 30%, transparent 36%);
  content: "";
}

.archive-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 16px;
}

.archive-card {
  position: relative;
  min-height: 440px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-soft);
}

.archive-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.05);
  transition: transform 400ms ease;
}

.archive-card:hover img {
  transform: scale(1.03);
}

.archive-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(7, 9, 15, 0.96));
  content: "";
}

.archive-card-copy {
  position: absolute;
  z-index: 2;
  inset-inline: 22px;
  inset-block-end: 22px;
}

.archive-card-copy span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.archive-card-copy h3 {
  margin: 7px 0 0;
  font-family: var(--display-font);
  font-size: 1.6rem;
  line-height: 1.1;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  min-height: 220px;
  padding: 24px;
}

.feature-card b {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card h3 {
  margin-block-start: 18px;
}

.cta-panel {
  padding: clamp(34px, 7vw, 76px);
  border: 1px solid rgba(242, 201, 107, 0.25);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 0%, rgba(120, 148, 208, 0.18), transparent 28rem),
    linear-gradient(135deg, rgba(242, 201, 107, 0.06), transparent 45%),
    var(--paper-soft);
  box-shadow: var(--shadow);
}

.cta-panel p {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.site-footer {
  margin-block-start: 70px;
  border-block-start: 1px solid var(--line-soft);
}

.footer-shell {
  width: min(var(--content), calc(100% - 32px));
  margin-inline: auto;
  padding-block: 38px 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
}

.footer-brand {
  max-width: 450px;
}

.footer-brand p {
  margin: 13px 0 0;
  color: var(--dim);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 8px 18px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
}

.article-hero {
  padding-block: clamp(76px, 11vw, 130px) 56px;
}

.article-hero h1 {
  max-width: 940px;
  font-size: clamp(3rem, 7vw, 6.4rem);
}

.article-shell {
  max-width: 900px;
  padding-block-end: 110px;
}

.article-section {
  padding-block: 52px;
  border-block-start: 1px solid var(--line-soft);
}

.article-section h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
}

.article-grid {
  margin-block-start: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.article-card {
  padding: 23px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--paper-soft);
}

.article-card h3 {
  margin: 0;
}

.logic-table {
  width: 100%;
  margin-block-start: 28px;
  border-collapse: separate;
  border-spacing: 5px;
  table-layout: fixed;
}

.logic-table th,
.logic-table td {
  min-width: 42px;
  padding: 11px 7px;
  border-radius: 8px;
  background: var(--paper-soft);
  text-align: center;
}

.logic-table th {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.logic-table td {
  border: 1px solid var(--line-soft);
  font-weight: 900;
}

.logic-table .yes {
  border-color: rgba(91, 213, 160, 0.45);
  color: #78e5b5;
}

.logic-table .no {
  border-color: rgba(255, 125, 137, 0.35);
  color: var(--red);
}

.logic-table .maybe {
  color: var(--dim);
}

.callout {
  margin-block: 30px;
  padding: 22px 24px;
  border-inline-start: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(242, 201, 107, 0.055);
  color: var(--muted);
}

html[dir="rtl"] .callout {
  border-inline-start: 3px solid var(--gold);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.language-gateway {
  min-height: calc(100vh - 74px);
  padding-block: clamp(62px, 10vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 8vw, 110px);
}

.gateway-copy h1 {
  font-size: clamp(3.3rem, 7vw, 6.5rem);
}

.gateway-seal {
  width: 92px;
  height: 92px;
  margin-block-end: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.language-grid {
  grid-template-columns: 1fr;
}

.language-card {
  position: relative;
  padding: 30px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.language-card::after {
  position: absolute;
  width: 180px;
  height: 180px;
  inset-inline-end: -80px;
  inset-block-start: -90px;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.language-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 201, 107, 0.55);
}

.language-card h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 2.3rem;
}

.language-card[lang="ar"] h2,
.language-card[lang="ar"] p {
  font-family: "Noto Sans Arabic", var(--body-font);
  text-align: right;
}

.language-card[lang="ar"] h2 {
  font-weight: 900;
}

.language-card span {
  display: inline-flex;
  margin-block-start: 20px;
  color: var(--gold);
  font-weight: 900;
}

.open-fallback {
  min-height: calc(100vh - 74px);
  padding-block: 80px;
  display: grid;
  place-items: center;
}

.open-card {
  width: min(680px, calc(100% - 32px));
  padding: clamp(30px, 7vw, 68px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-soft);
  text-align: center;
  box-shadow: var(--shadow);
}

.open-card img {
  width: 100px;
  height: 100px;
  margin-inline: auto;
  border-radius: 24px;
}

.open-card h1 {
  margin: 28px 0 0;
  font-family: var(--display-font);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1;
}

.open-card p {
  max-width: 520px;
  margin: 20px auto 0;
  color: var(--muted);
}

.open-card .cta-row {
  justify-content: center;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
  }

  .nav-shell {
    min-height: auto;
    padding-block: 15px;
    align-items: flex-start;
  }

  .site-nav {
    max-width: 68%;
  }

  .hero,
  .language-gateway {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-block-start: 72px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-inline-end: 0;
  }

  .stat:nth-child(-n + 2) {
    border-block-end: 1px solid var(--line-soft);
  }

  .steps,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .split-reverse {
    grid-template-columns: 1fr;
  }

  .split-reverse .split-visual {
    order: initial;
  }

  .archive-grid {
    grid-template-columns: 1fr 1fr;
  }

  .archive-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .nav-shell {
    display: block;
  }

  .site-nav {
    max-width: none;
    margin-block-start: 12px;
    justify-content: flex-start;
  }

  .site-nav a {
    padding: 8px 9px;
    font-size: 0.82rem;
  }

  .hero h1,
  .article-hero h1,
  .gateway-copy h1 {
    font-size: clamp(2.8rem, 15vw, 4.7rem);
  }

  .hero-visual {
    min-height: 430px;
  }

  .case-stamp {
    inset-inline-end: 0;
    width: 112px;
  }

  .stats,
  .steps,
  .feature-grid,
  .archive-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    border-inline-end: 0;
    border-block-end: 1px solid var(--line-soft);
  }

  .stat:last-child {
    border-block-end: 0;
  }

  .archive-card:first-child {
    grid-column: auto;
  }

  .archive-card {
    min-height: 360px;
  }

  .split-visual {
    min-height: 430px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .logic-table {
    font-size: 0.78rem;
  }

  .logic-table th,
  .logic-table td {
    padding: 9px 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
