/* Masa — Coming Soon (AR / RTL, mobile-first) */

:root {
  --green: #006c35;
  --green-soft: #12b76a;
  --green-glow: rgba(18, 183, 106, 0.22);
  --bg: #070a08;
  --bg-mid: #0c1410;
  --text: #f2f5f3;
  --muted: #8a968e;
  --line: rgba(255, 255, 255, 0.08);
  --font: "Cairo", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green-soft);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #fff;
}

a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.55);
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 0.85rem;
  background: var(--green);
  color: #fff;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

/* Atmosphere */
.cs-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(0, 108, 53, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(18, 183, 106, 0.08), transparent 50%),
    radial-gradient(ellipse 40% 35% at 0% 80%, rgba(0, 77, 38, 0.18), transparent 45%),
    linear-gradient(180deg, var(--bg-mid), var(--bg) 55%);
}

.cs-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.55;
  will-change: transform;
}

.cs-orb--a {
  width: min(48vw, 22rem);
  height: min(48vw, 22rem);
  inset-inline-end: -8%;
  top: 18%;
  background: var(--green-glow);
  animation: drift-a 14s var(--ease) infinite alternate;
}

.cs-orb--b {
  width: min(56vw, 26rem);
  height: min(56vw, 26rem);
  inset-inline-start: -12%;
  bottom: 8%;
  background: rgba(0, 108, 53, 0.2);
  animation: drift-b 18s var(--ease) infinite alternate;
}

.cs-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6%, 8%, 0) scale(1.08); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(8%, -6%, 0) scale(1.12); }
}

/* Layout */
.cs {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: max(var(--pad), env(safe-area-inset-top)) var(--pad) max(var(--pad), env(safe-area-inset-bottom));
  text-align: center;
}

.cs__brand {
  margin-block-end: clamp(1.1rem, 3.5vw, 2.25rem);
  animation: rise 0.9s var(--ease) both;
}

.cs__logo {
  margin: 0;
  font-size: 0;
}

.cs__logo img {
  width: clamp(10rem, 44vw, 15rem);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.55));
  animation: breathe 5.5s ease-in-out infinite;
}

.cs__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  font-size: clamp(1.65rem, 5.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  animation: rise 0.9s var(--ease) 0.12s both;
}

.cs__pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green-soft);
  box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.55);
  animation: pulse 2.2s ease-out infinite;
}

.cs__tagline {
  max-width: 26rem;
  margin: 0 0 clamp(1.1rem, 3vw, 1.65rem);
  color: var(--muted);
  font-size: clamp(0.92rem, 2.6vw, 1.05rem);
  font-weight: 400;
  line-height: 1.8;
  animation: rise 0.9s var(--ease) 0.22s both;
}

.cs__countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(3.4rem, 4.75rem));
  gap: 0.55rem;
  margin: 0 0 clamp(1.35rem, 4vw, 2.1rem);
  animation: rise 0.9s var(--ease) 0.28s both;
  direction: ltr;
}

.cs__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.65rem 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.cs__num {
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  letter-spacing: 0.02em;
}

.cs__unit-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.cs__word {
  position: relative;
  min-height: 2.25rem;
  margin-block-end: clamp(1.5rem, 5vw, 2.5rem);
  animation: rise 0.9s var(--ease) 0.36s both;
}

.cs__word-label {
  display: inline-block;
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 600;
  color: var(--green-soft);
  letter-spacing: 0.04em;
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.cs__word-label.is-out {
  opacity: 0;
  transform: translateY(0.4rem);
}

.cs__word-label.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Soft floating constellation — decorative, not interactive */
.cs__constellation {
  position: absolute;
  inset: 12% 4% 18%;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
  z-index: -1;
}

.cs__constellation li {
  position: absolute;
  font-size: clamp(0.68rem, 1.8vw, 0.8rem);
  font-weight: 500;
  color: rgba(242, 245, 243, 0.09);
  letter-spacing: 0.02em;
  white-space: nowrap;
  animation: float-soft 8s ease-in-out infinite;
}

.cs__constellation li[data-i="0"] { top: 8%; inset-inline-start: 6%; animation-delay: 0s; }
.cs__constellation li[data-i="1"] { top: 18%; inset-inline-end: 8%; animation-delay: -1.5s; }
.cs__constellation li[data-i="2"] { top: 48%; inset-inline-start: 2%; animation-delay: -3s; }
.cs__constellation li[data-i="3"] { top: 52%; inset-inline-end: 4%; animation-delay: -4.5s; }
.cs__constellation li[data-i="4"] { bottom: 10%; inset-inline-start: 14%; animation-delay: -2s; }
.cs__constellation li[data-i="5"] { bottom: 6%; inset-inline-end: 12%; animation-delay: -5.5s; }

.cs__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
  animation: rise 0.9s var(--ease) 0.42s both;
}

.cs__sep {
  opacity: 0.45;
}

.cs__mail {
  color: var(--muted);
}

.cs__mail:hover,
.cs__domain:hover {
  color: var(--green-soft);
}

.cs__domain {
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.35rem); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.55); }
  70% { box-shadow: 0 0 0 0.65rem rgba(18, 183, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); }
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(-0.5rem); opacity: 0.55; }
}

@media (min-width: 768px) {
  .cs__logo img {
    width: clamp(13rem, 22vw, 17rem);
  }

  .cs__countdown {
    grid-template-columns: repeat(4, minmax(4.25rem, 5.25rem));
    gap: 0.75rem;
  }

  .cs__unit {
    padding: 0.85rem 0.5rem 0.7rem;
  }

  .cs__unit-label {
    font-size: 0.75rem;
  }

  .cs__constellation {
    inset: 10% 8% 16%;
  }

  .cs__constellation li {
    color: rgba(242, 245, 243, 0.12);
  }
}

@media (max-height: 560px) {
  .cs__logo img {
    width: clamp(8rem, 28vw, 11rem);
  }

  .cs__brand {
    margin-block-end: 0.85rem;
  }

  .cs__constellation {
    display: none;
  }
}

@media (max-width: 480px) {
  .cs__constellation li[data-i="2"],
  .cs__constellation li[data-i="3"] {
    display: none;
  }
}
