@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@500;600;700;800&family=Cairo:wght@400;600;700;800;900&family=Noto+Kufi+Arabic:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700;800&family=Syne:wght@600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

/* ==========================================================================
   ALGORIZMS TYPOGRAPHY ENGINE (PASAJERO • NEXT ART • LIBBY • LUNA • NEOTERIC)
   High-Performance Local Webfont & Luxury Geometric Typography
   ========================================================================== */

/* 00 // PASAJERO STENCIL — Incomplete / Architectural Cuts Version
   Usage: Logo, Navigation Menu, Team Names, Brand Identifiers
   Characteristic: Geometric letterforms with intentional structural cuts (stencil aesthetic).
   F has no vertical stem, E has disconnected bars, H has no crossbar, etc.
   Only 'A' (lowercase slot) has full counter triangle. */
@font-face {
  font-family: 'Pasajero';
  src: url('/public/assets/fonts/Pasajero-Stencil.ttf?v=1.0') format('truetype'),
       url('/public/assets/fonts/Pasajero-Stencil.otf?v=1.0') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pasajero';
  src: url('/public/assets/fonts/Pasajero-Stencil.ttf?v=1.0') format('truetype'),
       url('/public/assets/fonts/Pasajero-Stencil.otf?v=1.0') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pasajero';
  src: url('/public/assets/fonts/Pasajero-Stencil.ttf?v=1.0') format('truetype'),
       url('/public/assets/fonts/Pasajero-Stencil.otf?v=1.0') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* 00B // PASAJERO COMPLETE — Solid / Full Letterforms Version
   Usage: Section Titles, Role Titles, Social Media Creatives, Display Headlines
   Characteristic: Full solid letterforms across A–Z. Only uppercase 'A' retains
   its open triangle (brand signature mark). All other letters fully rendered.
   F has complete vertical stem, E has connected bars, H has solid crossbar, etc. */
@font-face {
  font-family: 'Pasajero Complete';
  src: url('/public/assets/fonts/Pasajero.otf?v=2.0') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pasajero Complete';
  src: url('/public/assets/fonts/Pasajero.otf?v=2.0') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Pasajero Complete';
  src: url('/public/assets/fonts/Pasajero.otf?v=2.0') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* 01 // NEXT ART (Clean Geometric Grotesque - Modern Architectural Display) */
@font-face {
  font-family: 'NEXT ART';
  src: url('/public/assets/fonts/NEXT ART_Bold.otf') format('opentype');
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NEXT ART';
  src: url('/public/assets/fonts/NEXT ART_SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NEXT ART';
  src: url('/public/assets/fonts/NEXT ART_Regular.otf') format('opentype');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NEXT ART';
  src: url('/public/assets/fonts/NEXT ART_Heavy.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NEXT ART';
  src: url('/public/assets/fonts/NEXT ART_Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* 02 // LIBBY REGULAR & BOLD (Sharp Architectural Geometric Sans) */
@font-face {
  font-family: 'Libby';
  src: url('/public/assets/fonts/LibbyRegular.ttf') format('truetype');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libby';
  src: url('/public/assets/fonts/LibbyBold.ttf') format('truetype');
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libby';
  src: url('/public/assets/fonts/LibbyHeavy.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* 03 // LUNA (Distinctive Luxury Editorial Accent) */
@font-face {
  font-family: 'Luna';
  src: url('/public/assets/fonts/Luna.ttf') format('truetype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* 04 // NEOTERIC (Sharp, Luxury Geometric & Highly Legible) */
@font-face {
  font-family: 'Neoteric';
  src: url('/public/assets/fonts/Neoteric-Regular.woff2') format('woff2'),
       url('/public/assets/fonts/Neoteric-Regular.woff') format('woff'),
       url('/public/assets/fonts/Neoteric-Regular.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-002F, U+003A-FFFF;
}

/* 05 // ANURATI (Futuristic Minimalist Cut) */
@font-face {
  font-family: 'Anurati';
  src: url('/public/assets/fonts/Anurati-Regular.woff2') format('woff2'),
       url('/public/assets/fonts/Anurati-Regular.woff') format('woff'),
       url('/public/assets/fonts/Anurati-Regular.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Base Headings & Typography Styles */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.08em;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.22;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.3;
}

h4 {
  font-size: 1.15rem;
  line-height: 1.35;
}

/* Brand Utility Classes: Pasajero Standardized Spacing & Legibility Invariant */
.font-pasajero,
.font-pasajero-complete,
[data-font="pasajero"],
.hub-pasajero-title,
.team-name,
.node-card-title,
.topology-title {
  font-family: 'Pasajero', 'Space Grotesk', sans-serif !important;
  letter-spacing: 0.16em !important;
  word-spacing: 0.22em !important;
  text-transform: uppercase !important;
}

.font-nextart {
  font-family: 'NEXT ART', 'Space Grotesk', sans-serif !important;
  letter-spacing: 0.12em;
  text-transform: uppercase !important;
}

.font-libby {
  font-family: 'Libby', 'Space Grotesk', sans-serif !important;
  letter-spacing: 0.1em;
  text-transform: uppercase !important;
}

.font-luna {
  font-family: 'Luna', 'Space Grotesk', sans-serif !important;
  letter-spacing: 0.08em;
}

.font-neoteric {
  font-family: 'Neoteric', 'Space Grotesk', sans-serif !important;
  letter-spacing: 0.22em;
  text-transform: uppercase !important;
}

.font-mont {
  font-family: var(--font-mont), sans-serif !important;
}

.font-anurati {
  font-family: 'Anurati', sans-serif !important;
  letter-spacing: 0.18em;
  text-transform: uppercase !important;
}

.font-display {
  font-family: var(--font-display) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.font-subhead {
  font-family: var(--font-subhead) !important;
}

.font-heading {
  font-family: var(--font-heading) !important;
}

.font-mono {
  font-family: var(--font-mono);
}

.font-body {
  font-family: var(--font-body);
}

/* Iconic Brand Wordmark (ALGORIZMS) */
.brand-wordmark {
  font-family: var(--font-brand);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

/* Surprising Announcements & Campaign Badges (Powered by Libby) */
.announcement-badge,
.surprise-tag,
.libby-announcement {
  font-family: var(--font-announcement) !important;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
}

/* Section Pre-headers & Pills */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-announcement);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-gold);
  margin-bottom: 20px;
}

.section-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-gold);
  box-shadow: 0 0 8px var(--text-gold);
}

.section-desc {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.65;
  text-align: left;
}

/* Master Sub-Paragraph Text Alignment & Flow Assurance (Strict LTR Title Alignment) */
html[lang="en"] p,
html[lang="en"] .section-desc,
html[lang="en"] .stage-text,
html[lang="en"] .pillar-card-desc,
html[lang="en"] .diff-desc,
html[lang="en"] .article-content p,
html[lang="en"] .modal-body p {
  direction: ltr;
  text-align: left;
}

/* High-Precision Numerical Engine (Tall Monumental Bebas Neue Typography) */
.strip-val,
.metric-value,
.stat-value,
.stat-num,
.stat-number,
.spec-val,
.calc-output-val,
.diff-index,
.numeric-digit,
.case-metric-number,
.metric-tabular,
.stage-number,
.matrix-table th,
.matrix-table td span[style*="font-family: var(--font-mono)"],
.bha-hero-score-val,
#bha-hero-score-value,
.bha-dim-dial-pct,
.cmd-stage-badge,
#bha-cmd-avatar-score-badge,
.bha-bm-score,
#bha-percentile-badge,
.bha-step-num,
.step-num,
.bha-contrast-badge,
.bha-score-delta-badge,
.bha-score-digit,
.bha-hud-equalizer,
.bha-ledger-row-pts,
.bha-telemetry-step-icon,
.bha-pdf-score-val,
.bha-specimen-contrast-ratio {
  font-family: 'Bebas Neue', 'Space Grotesk', sans-serif !important;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* Egyptian Professional Business Arabic Typography (Cairo & DIN Next Font) */
html[lang="ar"] {
  font-family: 'Cairo', 'DIN Next LT Arabic', 'DIN Next', var(--font-arabic), sans-serif !important;
  direction: rtl;
  text-align: right;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] .nav-link,
html[lang="ar"] .shimmer-btn,
html[lang="ar"] .btn-secondary,
html[lang="ar"] .hero-headline,
html[lang="ar"] .section-editorial-title,
html[lang="ar"] .circle-title,
html[lang="ar"] .stage-name {
  font-family: 'Cairo', 'DIN Next LT Arabic', 'DIN Next', var(--font-arabic), sans-serif !important;
}

html[lang="ar"] .nav-links {
  direction: rtl;
}
