/* Coming soon — Aldawla launch gate */

:root {
  --cs-page: #0c1611;
  --cs-ink: #fffef8;
  --cs-muted: rgba(255, 254, 248, 0.72);
  --cs-gold: #d58516;
  --cs-gold-soft: rgba(213, 133, 22, 0.18);
  --cs-green: #26533c;
  --cs-border: rgba(255, 255, 255, 0.14);
  --cs-font: "Tajawal", system-ui, sans-serif;
  --cs-safe-top: env(safe-area-inset-top, 0px);
  --cs-safe-bottom: env(safe-area-inset-bottom, 0px);
  --cs-safe-inline: env(safe-area-inset-left, 0px);
  --cs-safe-inline-end: env(safe-area-inset-right, 0px);
}

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

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

body.coming-soon-body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--cs-font);
  color: var(--cs-ink);
  /* Painted on a fixed pseudo-element instead of background-attachment,
     which jitters and mis-scales on iOS Safari. */
  background: var(--cs-page);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.coming-soon-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 55% at 85% 10%, rgba(213, 133, 22, 0.16), transparent 55%),
    radial-gradient(55% 45% at 8% 80%, rgba(38, 83, 60, 0.45), transparent 60%),
    linear-gradient(165deg, #132519 0%, var(--cs-page) 48%, #08110d 100%);
  pointer-events: none;
}

.coming-soon {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  /* Keeps the top of the panel reachable when it outgrows the viewport. */
  align-items: safe center;
  justify-content: center;
  padding:
    max(1rem, var(--cs-safe-top))
    max(1rem, var(--cs-safe-inline-end))
    max(1rem, var(--cs-safe-bottom))
    max(1rem, var(--cs-safe-inline));
}

.coming-soon__glow {
  position: fixed;
  bottom: -20%;
  left: -10%;
  width: min(70vw, 34rem);
  height: min(70vw, 34rem);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(213, 133, 22, 0.22), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.coming-soon__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 57rem);
  padding: clamp(1.35rem, 4vw, 2.75rem);
  border-radius: 1.5rem;
  border: 1px solid var(--cs-border);
  background: rgba(12, 22, 17, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: start;
}

.coming-soon__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  text-decoration: none;
  color: inherit;
  max-width: 100%;
}

.coming-soon__brand .site-logo {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.85rem;
  object-fit: cover;
}

.coming-soon__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.coming-soon__brand-text strong {
  font-size: 1.15rem;
  font-weight: 800;
}

.coming-soon__brand-text em {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cs-gold);
}

.coming-soon__eyebrow:empty {
  display: none;
}

.coming-soon__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cs-gold);
}

.coming-soon__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 1.1rem + 2.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.35;
  text-wrap: balance;
}

.coming-soon__lead {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--cs-muted);
}

.coming-soon__alert {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.coming-soon__alert--success {
  background: rgba(38, 83, 60, 0.45);
  border: 1px solid rgba(120, 190, 140, 0.35);
  color: #dff5e5;
}

.coming-soon__alert--error {
  background: rgba(120, 40, 40, 0.35);
  border: 1px solid rgba(255, 120, 120, 0.35);
  color: #ffd4d4;
}

.coming-soon__form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.coming-soon__fields {
  display: grid;
  gap: 0.85rem;
}

.coming-soon__field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 254, 248, 0.86);
}

.coming-soon__field input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--cs-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cs-ink);
  font-family: inherit;
  /* 16px prevents iOS zoom on focus */
  font-size: 1rem;
  line-height: 1.4;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.coming-soon__field input::placeholder {
  color: rgba(255, 254, 248, 0.38);
}

.coming-soon__field input:focus {
  border-color: rgba(213, 133, 22, 0.65);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px var(--cs-gold-soft);
}

.coming-soon__field input[aria-invalid="true"] {
  border-color: rgba(255, 120, 120, 0.65);
  background: rgba(120, 40, 40, 0.18);
}

.coming-soon__field input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(255, 120, 120, 0.2);
}

.coming-soon__error {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffb3b3;
}

.coming-soon__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 3.1rem;
  margin-top: 0.15rem;
  padding: 0.95rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--cs-gold);
  color: #0f241a;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 10px 28px rgba(213, 133, 22, 0.32);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.coming-soon__submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.coming-soon__submit:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.coming-soon__submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.coming-soon__note {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 254, 248, 0.48);
  text-align: center;
}

.coming-soon__social {
  margin-top: 1.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--cs-border);
  text-align: center;
}

.coming-soon__social-label {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 254, 248, 0.78);
}

.coming-soon__social-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coming-soon__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.45rem;
  border-radius: 0.85rem;
  border: 1px solid var(--cs-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cs-ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  touch-action: manipulation;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.coming-soon__social-link i {
  font-size: 1.1rem;
  color: var(--cs-gold);
}

.coming-soon__social-link:hover,
.coming-soon__social-link:active {
  border-color: rgba(213, 133, 22, 0.55);
  background: var(--cs-gold-soft);
  color: #fff;
}

.coming-soon__social-link:focus-visible {
  outline: 2px solid var(--cs-gold);
  outline-offset: 3px;
}

/* Mobile — full-bleed, tighter, easier to scroll/tap */
@media (max-width: 575.98px) {
  .coming-soon {
    padding:
      max(0.75rem, var(--cs-safe-top))
      max(0.75rem, var(--cs-safe-inline-end))
      max(0.9rem, var(--cs-safe-bottom))
      max(0.75rem, var(--cs-safe-inline));
  }

  .coming-soon__panel {
    width: 100%;
    padding: 1.35rem 1.1rem 1.25rem;
    border-radius: 1.15rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    /* backdrop-filter over a full-height panel causes scroll jank on mobile GPUs */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(12, 22, 17, 0.88);
  }

  .coming-soon__brand {
    margin-bottom: 1.1rem;
    gap: 0.65rem;
  }

  .coming-soon__brand .site-logo {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 0.75rem;
  }

  .coming-soon__brand-text strong {
    font-size: 1.05rem;
  }

  .coming-soon__brand-text em {
    font-size: 0.78rem;
  }

  .coming-soon__title {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 0.65rem;
  }

  .coming-soon__lead {
    font-size: 0.94rem;
    margin-bottom: 1.1rem;
  }

  .coming-soon__field input {
    padding: 0.95rem 0.95rem;
  }

  .coming-soon__social-list {
    gap: 0.45rem;
  }

  .coming-soon__social-link {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.65rem 0.35rem;
    font-size: 0.74rem;
  }

  .coming-soon__social-link i {
    font-size: 1.25rem;
  }
}

/* Very narrow phones */
@media (max-width: 360px) {
  .coming-soon__panel {
    padding: 1.15rem 0.9rem 1.1rem;
  }

  .coming-soon__title {
    font-size: 1.28rem;
  }

  .coming-soon__social-link span {
    letter-spacing: -0.01em;
  }
}

@media (min-width: 576px) {
  .coming-soon__social-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .coming-soon__social-link {
    display: inline-flex;
    min-width: 7.5rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.86rem;
  }
}

/* Landscape phones: top-align so the form stays reachable above the keyboard */
@media (max-height: 560px) and (orientation: landscape) {
  .coming-soon {
    align-items: flex-start;
  }

  .coming-soon__brand {
    margin-bottom: 0.85rem;
  }

  .coming-soon__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .coming-soon__lead {
    margin-bottom: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .coming-soon__submit,
  .coming-soon__social-link,
  .coming-soon__field input {
    transition: none;
  }

  .coming-soon__submit:hover {
    transform: none;
  }
}
