:root {
  --red: #e52829;
  --red-dark: #c41f20;
  --ink: #1d1d1b;
  --paper: #fffdf8;
  --font-en: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-ar: "Noto Sans Arabic", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--red);
  color: #fff;
  font-family: var(--font-en);
  -webkit-font-smoothing: antialiased;
}

[lang="ar"] {
  font-family: var(--font-ar);
}

/* ---------- Page: exactly one screen ---------- */

.page {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  padding-top: env(safe-area-inset-top);
}

/* ---------- Top ---------- */

.top {
  display: flex;
  justify-content: center;
}

.top__logo {
  display: block;
  height: clamp(30px, 5vh, 40px);
  width: auto;
  padding: clamp(10px, 1.6vh, 14px) clamp(18px, 2.4vh, 24px);
  box-sizing: content-box;
  background: #fff;
  border-radius: 0 0 14px 14px;
}

/* ---------- Stage ---------- */

.stage {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3.6vh, 40px);
  padding: clamp(8px, 2vh, 24px) 20px;
}

/* Hanging sign */

.sign {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(240px, 38vh, 340px);
  transform-origin: 50% 0;
  animation: swing 4.5s ease-in-out infinite;
}

.sign__hook {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--red);
}

.sign__strings {
  display: block;
  width: 70%;
  height: clamp(28px, 6vh, 52px);
  margin-top: -4px;
  overflow: visible;
}

.sign__strings path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.sign__board {
  width: 100%;
  margin-top: -2px;
  padding: clamp(14px, 2.6vh, 22px) 18px;
  display: grid;
  justify-items: center;
  gap: clamp(6px, 1.2vh, 10px);
  background: var(--paper);
  color: var(--red);
  border: 4px solid var(--ink);
  border-radius: 10px;
  box-shadow: 0 6px 0 var(--ink);
}

.sign__en {
  font-size: clamp(24px, 4.6vh, 38px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.sign__rule {
  width: 70%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--red) 0 8px, transparent 8px 14px);
}

.sign__ar {
  font-size: clamp(22px, 4.4vh, 36px);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

/* Bilingual copy */

.copy {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: clamp(20px, 4vw, 48px);
  width: 100%;
  max-width: 1000px;
}

.copy__col h1,
.copy__col h2 {
  margin: 0 0 0.4em;
  font-size: clamp(20px, 3.6vh, 30px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.copy__col--ar h2 {
  letter-spacing: 0;
  line-height: 1.4;
}

.copy__col p {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(14px, 2.2vh, 17px);
  line-height: 1.55;
  font-weight: 500;
  color: rgb(255 255 255 / 88%);
}

.copy__col--ar p {
  line-height: 1.8;
}

.copy__col--ar {
  text-align: right;
}

.copy__col--ar p {
  margin-left: auto;
}

.copy__divider {
  width: 2px;
  height: 100%;
  min-height: 60px;
  background: rgb(255 255 255 / 30%);
}

/* ---------- Caution tape ---------- */

.tape {
  position: relative;
  margin: 0 -20px;
  transform: rotate(-2deg);
  background: #ffcf1f;
  color: var(--ink);
  border-block: 3px solid var(--ink);
  overflow: hidden;
}

.tape__run {
  display: flex;
  width: max-content;
  animation: run 28s linear infinite;
}

.tape__run span {
  flex: none;
  padding: clamp(6px, 1.2vh, 10px) 22px;
  font-size: clamp(13px, 2vh, 16px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tape__run span[lang="ar"] {
  letter-spacing: 0;
}

.tape__run span::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline-start: 44px;
  vertical-align: middle;
  background: var(--ink);
  transform: rotate(45deg);
}

/* ---------- Footer ---------- */

.foot {
  padding: clamp(10px, 2vh, 18px) 16px calc(clamp(10px, 2vh, 18px) + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: rgb(255 255 255 / 70%);
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .copy {
    grid-template-columns: 1fr;
    gap: clamp(12px, 2.4vh, 20px);
    text-align: center;
  }

  .copy__col--ar {
    text-align: center;
  }

  .copy__col p,
  .copy__col--ar p {
    margin-inline: auto;
  }

  .copy__divider {
    width: 48px;
    height: 2px;
    min-height: 0;
    margin: 0 auto;
  }
}

/* Short screens: drop the paragraphs, keep headings */
@media (max-height: 600px) {
  .copy__col p {
    display: none;
  }

  .copy__col h1,
  .copy__col h2 {
    margin: 0;
  }
}

/* ---------- Trust badges ---------- */

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(8px, 1.4vh, 14px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: clamp(7px, 1.2vh, 10px) 16px clamp(7px, 1.2vh, 10px) 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  transform: rotate(var(--tilt, 0deg));
}

.trust__item:nth-child(1) { --tilt: -1.2deg; }
.trust__item:nth-child(2) { --tilt: 0.8deg; }
.trust__item:nth-child(3) { --tilt: -0.6deg; }

.trust__icon {
  display: grid;
  place-items: center;
  width: clamp(30px, 4.4vh, 36px);
  height: clamp(30px, 4.4vh, 36px);
  flex: none;
  border-radius: 50%;
  background: #fde7e7;
}

.trust__icon svg {
  width: 58%;
  height: 58%;
  fill: none;
  stroke: var(--red);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust__text {
  display: grid;
  text-align: start;
  line-height: 1.25;
}

.trust__text span:first-child {
  font-size: clamp(12px, 1.8vh, 14px);
  font-weight: 800;
}

.trust__text span[lang="ar"] {
  font-size: clamp(11px, 1.7vh, 13px);
  font-weight: 600;
  color: #6b6b6b;
  text-align: left;
}

@media (max-width: 640px) {
  .trust {
    flex-wrap: nowrap;
    width: 100%;
    gap: 6px;
  }

  .trust__item {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    padding: 8px 4px;
    border-radius: 12px;
  }

  .trust__icon {
    width: 28px;
    height: 28px;
  }

  .trust__text {
    text-align: center;
  }

  .trust__text span:first-child {
    font-size: 11px;
    line-height: 1.25;
  }

  .trust__text span[lang="ar"] {
    font-size: 11px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .trust__text span[lang="ar"] {
    display: none;
  }

  .stage {
    gap: clamp(12px, 2.6vh, 24px);
  }

  .sign {
    width: clamp(200px, 30vh, 270px);
  }

  .sign__strings {
    height: clamp(22px, 4vh, 36px);
  }

  .sign__board {
    padding-inline: 12px;
  }

  .sign__en {
    font-size: clamp(20px, 3.5vh, 30px);
  }

  .sign__ar {
    font-size: clamp(19px, 3.3vh, 28px);
  }

  .copy__col h1,
  .copy__col h2 {
    font-size: clamp(19px, 3.1vh, 26px);
  }

  .copy__col p {
    font-size: clamp(13px, 1.9vh, 15px);
  }
}

@media (max-height: 560px) {
  .trust {
    display: none;
  }
}

/* ---------- Motion ---------- */

@keyframes swing {
  0%, 100% { transform: rotate(-2.5deg); }
  50% { transform: rotate(2.5deg); }
}

@keyframes run {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .sign,
  .tape__run {
    animation: none;
  }
}
