:root {
  --ink: #171816;
  --muted: #5d625d;
  --paper: #ffffff;
  --soft: #f3f6f3;
  --line: #d8ddd8;
  --green: #0e6548;
  --green-dark: #094d37;
  --yellow: #f3c84b;
  --blue: #285f87;
  --coral: #c85c4b;
  --content: 1160px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 10px max(20px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.brand strong {
  font-size: 1.12rem;
}

.site-header nav {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.site-header nav a,
.site-footer a {
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer a:hover,
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.language-switcher {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.language-button {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.language-button:last-child {
  border-right: 0;
}

.language-button.is-active {
  background: var(--ink);
  color: var(--paper);
}

.hero {
  position: relative;
  min-height: min(690px, 82vh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #222;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 44%;
}

.hero-overlay {
  z-index: 1;
  background: rgba(8, 14, 11, 0.56);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 40px));
  margin: 0 max(20px, calc((100vw - var(--content)) / 2));
  padding: 72px 0 68px;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 12px;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.hero-note {
  max-width: 660px;
  color: #e1e7e2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: var(--yellow);
  color: var(--ink);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.78);
  color: white;
}

.route-order {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  max-width: var(--content);
  margin: 0 auto;
  padding: 26px 20px;
}

.route-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px;
  border-left: 4px solid var(--blue);
}

.route-step.is-primary {
  border-left-color: var(--green);
}

.route-step strong,
.route-step small {
  display: block;
}

.route-step small {
  margin-top: 3px;
  color: var(--muted);
}

.route-number {
  font-weight: 800;
  color: var(--muted);
}

.route-arrow {
  color: var(--muted);
  font-size: 1.5rem;
}

.section {
  padding: 92px max(20px, calc((100vw - var(--content)) / 2));
}

.section-heading {
  max-width: 680px;
}

.status-label {
  display: inline-flex;
  margin: 4px 0 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 700;
}

.problem-section,
.operator-section,
.stage-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 100px);
}

.problem-section {
  background: var(--soft);
}

.problem-list {
  border-top: 1px solid var(--line);
}

.problem-list p {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  margin: 0;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.problem-list p span:first-child {
  color: var(--green);
  font-weight: 800;
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.purpose-grid article {
  min-height: 220px;
  padding: 28px;
  background: var(--paper);
}

.purpose-grid article > span {
  display: block;
  margin-bottom: 34px;
  color: var(--coral);
  font-size: 1.8rem;
}

.purpose-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.boundaries-section {
  background: var(--ink);
  color: white;
}

.boundaries-section .eyebrow {
  color: var(--yellow);
}

.boundaries-section ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.boundaries-section li {
  padding: 22px 0;
  border-top: 1px solid #515552;
  color: #e5e8e6;
}

.video-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  align-items: center;
  gap: clamp(40px, 8vw, 110px);
  background: #eef2f5;
}

.video-frame {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(160px, 1fr);
  align-items: center;
  gap: 28px;
}

.video-frame video {
  width: min(100%, 337px);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  max-height: 600px;
  border-radius: var(--radius);
  background: #111;
  box-shadow: 0 16px 36px rgba(24, 30, 27, 0.18);
}

.video-caption {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
}

.operator-section {
  background: #fff8df;
}

.operator-copy > p:not(.eyebrow) {
  max-width: 650px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 18px;
  color: var(--green-dark);
  font-weight: 800;
}

.operator-principles {
  border-top: 1px solid #d6cba8;
}

.operator-principles p {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid #d6cba8;
}

.operator-principles span,
.stage-copy {
  color: var(--muted);
}

.stage-section {
  border-top: 6px solid var(--green);
}

.stage-copy p {
  padding-left: 18px;
  border-left: 3px solid var(--line);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  padding: 50px max(20px, calc((100vw - var(--content)) / 2));
  background: #111310;
  color: white;
}

.site-footer address {
  display: grid;
  justify-items: end;
  gap: 8px;
  font-style: normal;
}

.site-footer address a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-boundary {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid #444844;
  color: #bfc5bf;
  font-size: 0.9rem;
}

.legal-page {
  min-height: 70vh;
  background: var(--soft);
}

.legal-section {
  max-width: 860px;
  margin: 0 auto;
  background: var(--paper);
}

.legal-section h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.legal-section h2 {
  margin-top: 40px;
  font-size: 1.3rem;
}

.legal-updated {
  color: var(--muted);
}

[dir="rtl"] body {
  text-align: right;
}

[dir="rtl"] .site-header nav,
[dir="rtl"] .hero-actions {
  flex-direction: row;
}

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

[dir="rtl"] .route-step {
  border-right: 4px solid var(--blue);
  border-left: 0;
}

[dir="rtl"] .route-step.is-primary {
  border-right-color: var(--green);
}

[dir="rtl"] .stage-copy p {
  padding-right: 18px;
  padding-left: 0;
  border-right: 3px solid var(--line);
  border-left: 0;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .problem-section,
  .operator-section,
  .stage-section,
  .video-section {
    grid-template-columns: 1fr;
  }

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

  .video-frame {
    grid-template-columns: minmax(220px, 380px) 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
    gap: 12px;
    padding: 12px 16px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .language-button {
    min-width: 48px;
    padding: 8px;
  }

  .language-button span:last-child {
    display: none;
  }

  .hero {
    min-height: 670px;
  }

  .hero-overlay {
    background: rgba(8, 14, 11, 0.62);
  }

  .hero-image {
    object-position: 64% center;
  }

  .hero-content {
    padding-bottom: 38px;
  }

  h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .button {
    width: 100%;
  }

  .route-order {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .route-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  [dir="rtl"] .route-arrow {
    transform: rotate(90deg);
  }

  .section {
    padding: 68px 20px;
  }

  .purpose-grid,
  .boundaries-section ul,
  .video-frame {
    grid-template-columns: 1fr;
  }

  .purpose-grid article {
    min-height: 0;
  }

  .video-frame video {
    max-width: 330px;
    margin: 0 auto;
  }

  .video-caption {
    text-align: center;
  }

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

  .site-footer address {
    justify-items: start;
  }

  [dir="rtl"] .site-footer address {
    justify-items: end;
  }
}
