/* Advanced typography & content layout */
:root {
  --type-display: clamp(2.25rem, 6vw, 4rem);
  --type-h1: clamp(1.75rem, 4vw, 2.75rem);
  --type-h2: clamp(1.35rem, 3vw, 2rem);
  --type-lead: clamp(1.05rem, 2vw, 1.2rem);
  --type-body: 1.0625rem;
  --type-small: 0.875rem;
  --leading-tight: 1.2;
  --leading-body: 1.85;
  --leading-loose: 2;
  --tracking-ar: 0.01em;
}

html[lang="ar"] {
  letter-spacing: var(--tracking-ar);
  word-spacing: 0.02em;
}

/* Hero display — home */
.hero .hero-copy { color: #fff; position: relative; z-index: 2; }
.hero-wrap { position: relative; z-index: 2; }
.hero-display {
  font-size: var(--type-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hero-display .line {
  display: block;
}
.hero-display .line-2 {
  background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 55%, var(--gold-d) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-company {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.25rem;
  max-width: 28ch;
}
.hero-company span:last-child {
  font-size: 0.92em;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
}
.hero .hero-lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--type-lead);
  line-height: var(--leading-body);
  max-width: 42ch;
  margin-bottom: 2rem;
}
.hero .metric-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}
.hero .metric-label { color: rgba(255, 255, 255, 0.65); }
.hero .metric-value { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Section headers — editorial */
.sec-head-pro {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  max-width: 680px;
}
.sec-head-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.sec-index {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-en);
  color: var(--gold);
  letter-spacing: 0.15em;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(187, 152, 93, 0.35);
  border-radius: var(--radius-sm);
}
.sec-head-pro .sec-tag { margin-bottom: 0; }
.sec-head-pro .sec-title {
  font-size: var(--type-h1);
  line-height: var(--leading-tight);
  margin-bottom: 1rem;
}
.sec-lead {
  font-size: var(--type-lead);
  color: var(--text-3);
  line-height: var(--leading-body);
  max-width: 52ch;
}

/* Page hero typography */
.page-hero-inner .hero-display-sm {
  font-size: var(--type-h1);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin: 0.5rem 0 1rem;
  color: #fff;
}
.page-hero-inner .page-hero-lead {
  font-size: var(--type-lead);
  line-height: var(--leading-body);
  color: rgba(255, 255, 255, 0.78);
  max-width: 48ch;
}

/* Editorial content */
.content-editorial { max-width: 820px; }
.lead-text {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 500;
  line-height: var(--leading-loose);
  color: var(--text-2);
  margin-bottom: 1.75rem;
  padding-inline-start: 1.25rem;
  border-inline-start: 3px solid var(--gold);
}
.prose-advanced {
  font-size: var(--type-body);
  line-height: var(--leading-loose);
  color: var(--text-2);
}
.prose-advanced p + p { margin-top: 1.25rem; }
.prose-advanced p {
  text-align: justify;
  text-align-last: start;
  hyphens: auto;
}
html[dir="ltr"] .prose-advanced p {
  text-align: left;
  text-align-last: left;
}
.text-highlight {
  color: var(--gold-d);
  font-weight: 600;
}
[data-theme="dark"] .text-highlight { color: var(--gold-l); }

/* Pull quote */
.pull-quote {
  margin: 2.5rem 0;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, rgba(187, 152, 93, 0.1), transparent);
  border-inline-start: 4px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
html[dir="ltr"] .pull-quote {
  border-inline-start: none;
  border-inline-end: 4px solid var(--gold);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.pull-quote p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0;
}
.pull-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: var(--type-small);
  font-weight: 500;
  color: var(--gold);
  font-style: normal;
}

/* Stat strip under hero */
.hero-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-stat-strip .metric-card {
  border: none;
  border-radius: 0;
  padding: 1.5rem 1rem;
}
@media (min-width: 1024px) {
  .hero-stat-strip { margin-top: 0; }
}

/* Portal cards typography */
.portal-card h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.portal-card p {
  line-height: 1.65;
}

/* List features */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--type-body);
  color: var(--text-2);
  line-height: 1.7;
}
.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  background: var(--gold);
  border-radius: 50%;
}
