@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  --ink: #211b18;
  --muted: #776b65;
  --accent: #ff4b0b;
  --accent-soft: #ff8a5f;
  --paper: #fffaf7;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 75, 11, .11), transparent 28rem),
    radial-gradient(circle at 90% 80%, rgba(33, 27, 24, .08), transparent 30rem),
    var(--paper);
  font-family: "Tajawal", system-ui, sans-serif;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 16rem;
  height: 16rem;
  border: 1px solid rgba(255, 75, 11, .18);
  transform: rotate(45deg);
}

.page::before { top: -10rem; right: -8rem; }
.page::after { bottom: -11rem; left: -7rem; }

.content {
  width: min(100%, 720px);
  text-align: center;
  padding: 3rem 1rem 2rem;
  animation: arrive .9s ease-out both;
}

.logo-lockup {
  display: flex;
  direction: rtl;
  align-items: center;
  justify-content: center;
  gap: clamp(.8rem, 2.5vw, 1.4rem);
  margin: 0 auto clamp(2.6rem, 7vh, 4.5rem);
}

.logo,
.logo-ar {
  display: block;
  height: auto;
  margin: 0;
  object-fit: contain;
}

.logo {
  width: min(360px, 50vw);
}

.logo-ar {
  width: min(250px, 35vw);
  flex: 0 1 auto;
}

.logo-divider {
  width: 1px;
  height: clamp(42px, 7vw, 62px);
  flex: 0 0 1px;
  background: linear-gradient(to bottom, transparent, rgba(33, 27, 24, .42), transparent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.2rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.95rem;
  letter-spacing: .03em;
}

.eyebrow span {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 .35rem rgba(255, 75, 11, .13);
  animation: pulse 2s ease-in-out infinite;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 7vw, 4.8rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.035em;
}

.intro {
  margin: 1.5rem auto 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 2;
}

.progress {
  width: min(100%, 360px);
  height: 3px;
  margin: 0 auto 1.4rem;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(33, 27, 24, .11);
}

.progress span {
  display: block;
  width: 75%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  animation: load 1.4s .35s cubic-bezier(.2,.8,.2,1) both;
  transform-origin: right;
}

.signature { margin: 0; color: var(--muted); font-size: 1.2rem; }
.signature strong { color: var(--ink); }

footer {
  align-self: end;
  color: var(--muted);
  font-size: .78rem;
  opacity: .78;
}

.glow {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.glow-one {
  width: 19rem;
  height: 19rem;
  top: 18%;
  right: -13rem;
  background: rgba(255, 75, 11, .09);
}

.glow-two {
  width: 24rem;
  height: 24rem;
  bottom: 5%;
  left: -17rem;
  background: rgba(33, 27, 24, .06);
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes load {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes pulse {
  50% { box-shadow: 0 0 0 .55rem rgba(255, 75, 11, 0); }
}

@media (max-height: 620px) {
  .content { padding-top: 1rem; }
  .logo-lockup { margin-bottom: 1.5rem; }
  .logo { width: min(270px, 49vw); }
  .logo-ar { width: min(175px, 32vw); }
  .logo-divider { height: 38px; }
  .intro { margin-block: 1rem 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
