:root {
  --orange: #ff6a1a;
  --orange-dark: #e5590f;
  --orange-light: #ffb27a;
  --ink: #1c1712;
  --paper: #ffffff;
  --paper-soft: #fff7f1;
  --gray: #7a7168;
  --font-ar: 'Tajawal', sans-serif;
  --font-en: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--paper-soft);
  color: var(--ink);
  font-family: var(--font-ar);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

/* ---------- Background scene ---------- */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,106,26,0.08), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255,106,26,0.10), transparent 45%),
    var(--paper-soft);
}

.gear {
  position: absolute;
  fill: var(--orange);
  opacity: 0.08;
  transform-origin: 50% 50%;
}
.gear use { fill: currentColor; }

.gear--1 { width: 260px; height: 260px; top: -60px; left: -60px; color: var(--orange); animation: spin 30s linear infinite; }
.gear--2 { width: 180px; height: 180px; top: 10%; right: -50px; color: var(--orange-dark); animation: spin-rev 22s linear infinite; opacity: 0.07; }
.gear--3 { width: 340px; height: 340px; bottom: -100px; right: 5%; color: var(--orange); animation: spin 45s linear infinite; }
.gear--4 { width: 140px; height: 140px; bottom: 15%; left: 8%; color: var(--orange-dark); animation: spin-rev 18s linear infinite; opacity: 0.09; }
.gear--5 { width: 90px; height: 90px; top: 40%; left: 45%; color: var(--orange); animation: spin 14s linear infinite; opacity: 0.05; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spin-rev { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

/* Pistons */
.piston {
  position: absolute;
  width: 14px;
  height: 90px;
  opacity: 0.12;
}
.piston--1 { top: 8%; left: 20%; }
.piston--2 { bottom: 10%; right: 18%; }

.piston__rod {
  width: 6px;
  height: 60px;
  background: var(--ink);
  margin: 0 auto;
  animation: piston-move 2.4s ease-in-out infinite;
  transform-origin: bottom center;
}
.piston--2 .piston__rod { animation-delay: 1.1s; }

.piston__head {
  width: 14px;
  height: 20px;
  background: var(--orange);
  border-radius: 3px;
  animation: piston-head 2.4s ease-in-out infinite;
}
.piston--2 .piston__head { animation-delay: 1.1s; }

@keyframes piston-move {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.55); }
}
@keyframes piston-head {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-28px); }
}

/* Sparks */
.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0;
  animation: spark-pop 3s ease-in-out infinite;
}
.spark--1 { top: 25%; left: 30%; animation-delay: 0s; }
.spark--2 { top: 60%; right: 25%; animation-delay: 1s; }
.spark--3 { top: 45%; left: 60%; animation-delay: 2s; }

@keyframes spark-pop {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

/* ---------- Language toggle ---------- */
.lang-toggle {
  position: fixed;
  top: 24px;
  inset-inline-end: 24px;
  z-index: 10;
  background: var(--paper);
  border: 2px solid var(--orange);
  color: var(--orange-dark);
  font-weight: 700;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  box-shadow: 0 2px 10px rgba(255,106,26,0.15);
}
.lang-toggle:hover { background: var(--orange); color: #fff; transform: translateY(-1px); }
.lang-toggle__ar { font-size: 0; }
.lang-toggle__ar::before { content: 'EN'; font-size: 14px; }
body.lang-en .lang-toggle__ar::before { content: 'ع'; }

/* ---------- Content ---------- */
.content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 92%;
  text-align: center;
  padding: 48px 32px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  border: 1px solid rgba(255,106,26,0.12);
  box-shadow: 0 20px 60px rgba(28,23,18,0.08);
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.logo-mark {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(255,106,26,0.35);
}
.logo-gear-spin {
  width: 30px;
  height: 30px;
  fill: #fff;
  animation: spin 8s linear infinite;
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.logo-text__warshaty {
  font-weight: 900;
  font-size: 22px;
  color: var(--ink);
}
.logo-text__domain {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 1px;
}

.headline {
  font-weight: 900;
  font-size: clamp(26px, 4.5vw, 40px);
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.35;
}

.subhead {
  color: var(--gray);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto 32px;
}

.queue-scene {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 96px;
  margin: 0 auto 14px;
}

.queue-scene__road {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    to right,
    var(--orange-light) 0,
    var(--orange-light) 8px,
    transparent 8px,
    transparent 16px
  );
  opacity: 0.6;
}

/* Workshop gate */
.workshop-gate {
  position: absolute;
  inset-inline-end: 0;
  bottom: 12px;
  width: 46px;
  height: 54px;
}
.workshop-gate__roof {
  position: absolute;
  top: -10px;
  left: -6px;
  width: 58px;
  height: 14px;
  background: var(--ink);
  border-radius: 4px 4px 0 0;
}
.workshop-gate__door {
  position: absolute;
  bottom: 0;
  width: 46px;
  height: 44px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.workshop-gate__door span {
  display: block;
  height: 8px;
  border-top: 2px solid var(--orange);
  animation: door-glow 3s ease-in-out infinite;
}
.workshop-gate__door span:nth-child(2) { animation-delay: 0.3s; }
.workshop-gate__door span:nth-child(3) { animation-delay: 0.6s; }
@keyframes door-glow {
  0%, 100% { border-top-color: var(--orange); opacity: 0.5; }
  50% { border-top-color: var(--orange-light); opacity: 1; }
}

/* Worker */
.worker {
  position: absolute;
  inset-inline-end: 54px;
  bottom: 12px;
  width: 34px;
  height: 52px;
  animation: worker-bob 2.2s ease-in-out infinite;
}
.worker__head {
  position: absolute;
  top: 0;
  left: 9px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ink);
}
.worker__body {
  position: absolute;
  top: 13px;
  left: 6px;
  width: 21px;
  height: 24px;
  background: var(--orange);
  border-radius: 6px 6px 3px 3px;
}
.worker__leg {
  position: absolute;
  top: 36px;
  width: 6px;
  height: 14px;
  background: var(--ink);
  border-radius: 0 0 2px 2px;
}
.worker__leg--l { left: 8px; }
.worker__leg--r { left: 19px; }
.worker__arm {
  position: absolute;
  top: 15px;
  inset-inline-start: 24px;
  width: 5px;
  height: 17px;
  background: var(--ink);
  border-radius: 3px;
  transform-origin: top center;
  animation: worker-wave 1.5s ease-in-out infinite;
}
.worker__palm {
  position: absolute;
  top: -6px;
  left: -2.5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffd7b0;
  border: 1px solid var(--orange-dark);
}
@keyframes worker-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes worker-wave {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(-55deg); }
}

/* Cars queue */
.cars-queue {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 0;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 6px;
}
[dir="ltr"] .cars-queue,
body.lang-en .cars-queue {
  flex-direction: row;
}

.queue-car {
  position: relative;
  width: 52px;
  animation: car-idle 1.8s ease-in-out infinite;
}
.queue-car svg { width: 100%; height: auto; display: block; transform: scaleX(-1); }
[dir="ltr"] .queue-car svg,
body.lang-en .queue-car svg { transform: scaleX(1); }
.queue-car .car-body { fill: var(--ink); }
.queue-car .car-wheel { display: none; }

.queue-car--1 { animation-delay: 0s; }
.queue-car--2 { animation-delay: 0.25s; }
.queue-car--3 { animation-delay: 0.5s; }
.queue-car--4 { animation-delay: 0.75s; }

@keyframes car-idle {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1.5px); }
  75% { transform: translateX(1.5px); }
}

.queue-car__puff {
  position: absolute;
  top: -4px;
  inset-inline-end: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(122, 113, 104, 0.35);
  animation: puff-rise 2s ease-out infinite;
}
.queue-car--2 .queue-car__puff { animation-delay: 0.5s; }
.queue-car--3 .queue-car__puff { animation-delay: 1s; }
.queue-car--4 .queue-car__puff { animation-delay: 1.5s; }

@keyframes puff-rise {
  0% { transform: translateY(0) scale(0.6); opacity: 0.5; }
  100% { transform: translateY(-14px) scale(1.4); opacity: 0; }
}

.queue-caption {
  color: var(--gray);
  font-size: 13px;
  margin-bottom: 28px;
  font-style: normal;
}

.contact-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1.5px solid var(--orange);
  border-radius: 999px;
  padding: 12px 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.contact-card__label {
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
}
.contact-card__email {
  color: var(--orange-dark);
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-en);
  direction: ltr;
}
.contact-card__email:hover { text-decoration: underline; }

.footer {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  color: var(--gray);
  font-size: 13px;
  opacity: 0.8;
}

/* ---------- Language visibility ---------- */
[data-en] { }
body.lang-en [data-ar]:not([data-en]) { display: none; }

@media (max-width: 480px) {
  .content { padding: 36px 20px; }
  .logo-text__warshaty { font-size: 19px; }
}
