/* Temporary coming-soon page. Same brand tokens as the main site (src/styles/tokens.css). */
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-display: swap;
  font-weight: 160 700;
  src: url(/fonts/readex-pro-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Readex Pro";
  font-style: normal;
  font-display: swap;
  font-weight: 160 700;
  src: url(/fonts/readex-pro-arabic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
:root {
  --forest: #0b2a22;
  --forest-700: #1d4a3d;
  --gold: #e3b448;
  --mist: #cfe3dc;
  --white: #ffffff;
  --slant: -12deg;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 3rem);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
  margin: 0;
}
html,
body {
  min-height: 100%;
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--forest);
  color: var(--mist);
  font-family: "Readex Pro", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Background: faint grid and the brand slant with its gold edge */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgb(207 227 220 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(207 227 220 / 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
  pointer-events: none;
}
.slant {
  position: fixed;
  top: -20%;
  bottom: -20%;
  left: 80%;
  width: 70%;
  background: var(--forest-700);
  border-left: 6px solid var(--gold);
  transform: skewX(var(--slant));
  opacity: 0.6;
  pointer-events: none;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
header {
  padding-block: 1.75rem;
}
header img {
  height: 34px;
  width: auto;
  display: block;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 2rem 4rem;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}
.copy {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}
.copy > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.copy > :nth-child(2) { animation-delay: 0.08s; }
.copy > :nth-child(3) { animation-delay: 0.16s; }
.copy > :nth-child(4) { animation-delay: 0.24s; }
.copy > :nth-child(5) { animation-delay: 0.32s; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgb(227 180 72 / 0.4);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.8s ease-in-out infinite;
}
h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 700;
}
h1 span {
  color: var(--gold);
}
.lead {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  max-width: 34rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
  gap: 0.35rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--gold {
  background: var(--gold);
  color: var(--forest);
}
.btn--gold:hover {
  background: #ecc463;
}
.btn--ghost {
  border-color: rgb(243 246 244 / 0.45);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgb(255 255 255 / 0.06);
}

/* The four stages climbing forward on the slant */
.track {
  position: relative;
  width: 100%;
  aspect-ratio: 6 / 5;
}
.tile {
  position: absolute;
  width: 60%;
  height: 21%;
  left: calc(var(--i) * 13.33%);
  top: calc(76% - var(--i) * 24%);
  transform: skewX(var(--slant));
  background: rgb(29 74 61 / 0.92);
  border: 1px solid rgb(207 227 220 / 0.16);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.25);
  animation: tile-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(0.3s + var(--i) * 0.18s);
}
.tile:last-of-type {
  background: var(--gold);
  border-color: var(--gold);
}
.tile > div {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-inline: 1.5rem;
  transform: skewX(calc(var(--slant) * -1));
}
.ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgb(227 180 72 / 0.14);
  color: var(--gold);
}
.tile:last-of-type .ico {
  background: rgb(11 42 34 / 0.12);
  color: var(--forest);
}
.ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile strong {
  display: block;
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1.25;
}
.tile small {
  display: block;
  font-size: 0.82rem;
  line-height: 1.3;
}
.tile:last-of-type strong,
.tile:last-of-type small {
  color: var(--forest);
}
.speed {
  position: absolute;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--gold));
  animation: streak 3.2s ease-in-out infinite;
}

footer {
  position: relative;
  z-index: 1;
  background: var(--forest);
  padding-block: 1.5rem;
  border-top: 1px solid rgb(207 227 220 / 0.12);
  font-size: 0.9rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
footer ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

@keyframes rise {
  from { opacity: 0; translate: 0 18px; }
}
@keyframes tile-in {
  from { opacity: 0; translate: -24px 16px; }
}
@keyframes streak {
  0%, 100% { translate: -12px 0; opacity: 0.25; }
  50% { translate: 18px 0; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(227 180 72 / 0.5); }
  50% { box-shadow: 0 0 0 6px rgb(227 180 72 / 0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .track {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .tile {
    position: static;
    width: auto;
    height: 68px;
  }
  .tile > div {
    padding-inline: 1rem;
    gap: 0.75rem;
  }
  .ico {
    width: 36px;
    height: 36px;
  }
  .tile small,
  .speed {
    display: none;
  }
  .slant {
    left: 90%;
  }
}
@media (max-width: 480px) {
  .actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* Header with language switch */
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.lang {
  padding: 0.45rem 1rem;
  border: 1px solid rgb(207 227 220 / 0.3);
  border-radius: 999px;
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
}
.lang:hover {
  border-color: var(--gold);
  color: var(--gold);
}
header img {
  direction: ltr;
}

/* Arabic: no negative tracking, a little more line height, mirrored slant */
[dir="rtl"] h1 {
  font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.7rem);
  letter-spacing: 0;
  line-height: 1.3;
}
[dir="rtl"] .pill {
  letter-spacing: 0;
}
[dir="rtl"] .slant {
  left: auto;
  right: 80%;
  border-left: 0;
  border-right: 6px solid var(--gold);
  transform: skewX(calc(var(--slant) * -1));
}
[dir="rtl"] .tile {
  left: auto;
  right: calc(var(--i) * 13.33%);
  transform: skewX(calc(var(--slant) * -1));
}
[dir="rtl"] .tile > div {
  transform: skewX(var(--slant));
}
[dir="rtl"] .speed {
  left: auto !important;
  right: -4%;
  background: linear-gradient(-90deg, transparent, var(--gold));
}
@media (max-width: 900px) {
  [dir="rtl"] .slant {
    right: 90%;
  }
}
