:root {
  --navy: #0e1726;
  --panel-navy: #111a28;
  --slate: #1e293b;
  --steel: #334155;
  --amber: #ffb000;
  --white: #ffffff;
  --off-white: #f6f7f9;
  --light-gray: #e5e7eb;
  --fog: #cbd5e1;
  --text-muted: #64748b;
  --max-width: 1180px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 70px rgba(14, 23, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 1180px;
  color: var(--navy);
  background: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    url("assets/Images/patterns/pattern-radar.svg"),
    url("assets/Images/patterns/pattern-grid.svg"),
    url("assets/Images/patterns/pattern-topo.svg"),
    radial-gradient(circle at 82% 16%, rgba(255, 176, 0, 0.08), transparent 17%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 60%, #f8fafc 100%);
  background-position:
    top right,
    top left,
    center center,
    center center,
    center center;
  background-repeat:
    no-repeat,
    repeat,
    no-repeat,
    no-repeat,
    no-repeat;
  background-size:
    600px 600px,
    60px 60px,
    1200px 800px,
    auto,
    auto;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

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

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.65);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.18em;
}

.brand-logo-img {
  height: 40px;
  max-height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-en {
  position: relative;
  padding-bottom: 8px;
}

.brand-en::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--amber);
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: var(--fog);
}

.brand-ar {
  font-family: Tahoma, Arial, sans-serif;
  letter-spacing: 0;
  font-size: 1.05rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.audio-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--light-gray);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(14, 23, 38, 0.04);
}

.audio-mute-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--navy);
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 150ms ease, background 150ms ease;
}

.audio-mute-button:hover {
  transform: scale(1.1);
  background: var(--light-gray);
}

.audio-volume-slider {
  width: 64px;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--fog);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.audio-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
  cursor: pointer;
  transition: transform 120ms ease;
}

.audio-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.audio-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
  border: none;
  cursor: pointer;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--steel);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.language-button {
  position: relative;
  padding: 6px 4px;
  color: var(--steel);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  transition: color 150ms ease;
}

.language-button:hover {
  color: var(--navy);
}

.language-button.is-active {
  color: var(--navy);
  font-weight: 800;
}

.language-button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--amber);
}

.header-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--white);
  background: var(--navy);
  border: 1px solid rgba(255, 176, 0, 0.5);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(255, 176, 0, 0.25);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-github:hover {
  transform: translateY(-2px);
  background: #152238;
  border-color: var(--amber);
  box-shadow: 0 6px 28px rgba(255, 176, 0, 0.45), 0 0 12px rgba(255, 176, 0, 0.3);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding-block: 36px 28px;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 1100px;
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--steel);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  vertical-align: middle;
  background: var(--amber);
}

.eyebrow::before {
  margin-inline-end: 10px;
}

.eyebrow::after {
  margin-inline-start: 10px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(3rem, 5.7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero-description {
  max-width: 680px;
  margin: 16px auto 0;
  color: var(--steel);
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.75;
  text-align: center;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 21px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 12px 28px rgba(14, 23, 38, 0.16);
}

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

.button-arrow {
  color: var(--amber);
  font-size: 1.05rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-tags span {
  padding: 7px 10px;
  border: 1px solid var(--light-gray);
  border-radius: 999px;
  color: var(--steel);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 650;
}

.hero-visual {
  position: relative;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 1100px;
}

.visual-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  background: var(--off-white);
  box-shadow: none;
}

.visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.visual-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.principles {
  padding-block: 28px 40px;
}

.section-heading {
  text-align: center;
  margin-bottom: 28px;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-align: center;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.principle-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
}

.card-index {
  width: fit-content;
  margin-bottom: 36px;
  color: var(--amber);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.principle-card h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.3;
}

.principle-card p {
  margin: 14px 0 0;
  color: var(--steel);
  font-size: 1.02rem;
  line-height: 1.65;
}

.components-section {
  padding-block: 28px 40px;
}

.components-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.components-visual {
  width: 100%;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  background: var(--off-white);
  padding: 16px;
  box-shadow: none;
}

.components-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
}

.table-wrapper {
  overflow: hidden;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: none;
}

.stylistic-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-size: 0.9rem;
}

.stylistic-table th {
  padding: 14px 18px;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.84rem;
  text-transform: uppercase;
  border-bottom: 2px solid var(--amber);
  text-align: inherit;
}

.stylistic-table td {
  padding: 11px 18px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  color: var(--steel);
}

.stylistic-table tr:last-child td {
  border-bottom: 0;
}

.stylistic-table td:first-child {
  font-weight: 750;
  color: var(--navy);
  white-space: nowrap;
}

.stylistic-table tbody tr {
  transition: background 150ms ease;
}

.stylistic-table tbody tr:hover {
  background: rgba(255, 176, 0, 0.08);
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.status-done {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-planned {
  background: rgba(100, 116, 139, 0.1);
  color: var(--steel);
  border: 1px solid rgba(203, 213, 225, 0.6);
}

.cta-section {
  padding-bottom: 44px;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  padding: clamp(30px, 4vw, 54px);
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--navy);
}

.cta-panel::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  inset-inline-end: -150px;
  top: -100px;
  border: 1px solid rgba(255, 176, 0, 0.35);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(255, 176, 0, 0.045),
    0 0 0 96px rgba(255, 176, 0, 0.03);
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.eyebrow-light {
  color: var(--fog);
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.cta-panel p:not(.eyebrow) {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--fog);
  line-height: 1.7;
}

.button-light {
  flex: 0 0 auto;
  color: var(--navy);
  background: var(--white);
}

.button-light:hover {
  background: var(--off-white);
}

.site-footer {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid var(--light-gray);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-brand {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.08em;
}

html[dir="rtl"] body {
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

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

html[dir="rtl"] .brand-en {
  letter-spacing: 0.14em;
}

html[dir="rtl"] h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  letter-spacing: 0;
  line-height: 1.25;
}

html[dir="rtl"] h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  letter-spacing: 0;
  line-height: 1.25;
}

html[dir="rtl"] .hero-description {
  font-size: 1.02rem;
  line-height: 1.8;
}

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

html[dir="rtl"] .button-arrow {
  transform: scaleX(-1);
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
