/* =========================================================================
   Coming Soon — standalone page styled to match the public-frontend
   design system (soft slate-blue + cool gray, Cairo display, mesh frost).
   ========================================================================= */

:root {
  /* Brand — soft blues */
  --brand-100: #DDEAF3;
  --brand-200: #BFD6E5;
  --brand-500: #5A8AA8;
  --brand-700: #356685;
  --brand-800: #284E68;
  --brand-900: #19374B;

  /* Ink — cool slate text */
  --ink-500: #465766;
  --ink-700: #26323D;
  --ink-800: #1A232C;
  --ink-900: #10171F;

  /* Mist — quiet surfaces */
  --mist-200: #E2EAF0;
  --mist-300: #CFDAE2;

  /* Paper / frost */
  --paper: #FBFCFD;
  --frost: #F4F7FA;

  /* Typography */
  --font-ar: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-en: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  direction: rtl;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}

body {
  font-family: var(--font-ar), var(--font-en);
  color: var(--ink-800);
  background-color: var(--frost);
  background-image:
    radial-gradient(at 5% -4%, rgba(189, 214, 229, 0.32) 0px, transparent 50%),
    radial-gradient(at 94% 2%, rgba(154, 178, 196, 0.18) 0px, transparent 55%),
    linear-gradient(180deg, #F4F7FA 0%, #F8FAFC 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(53, 102, 133, 0.18);
  color: var(--ink-900);
}

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 6px;
}

/* -------------------------------------------------------------------------
   Stage — full viewport, with a faint blueprint lattice in the background
   ------------------------------------------------------------------------- */

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 6vw, 4rem);
  overflow: hidden;
}

.lattice {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(53, 102, 133, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(53, 102, 133, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
          mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
}

/* -------------------------------------------------------------------------
   Card — soft glass surface with hairline gradient border
   ------------------------------------------------------------------------- */

.card {
  position: relative;
  z-index: 1;
  width: min(100%, 32rem);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.75rem, 5vw, 3rem);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--paper) 100%);
  border: 1px solid var(--mist-200);
  box-shadow:
    0 1px 2px rgba(16, 23, 31, 0.04),
    0 24px 60px -28px rgba(53, 102, 133, 0.28),
    0 8px 22px -14px rgba(16, 23, 31, 0.08);
  text-align: center;
  isolation: isolate;
  animation: card-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    140deg,
    rgba(53, 102, 133, 0.28),
    transparent 38%,
    transparent 62%,
    rgba(53, 102, 133, 0.20)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.card__glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  z-index: -1;
  background:
    radial-gradient(at 18% 12%, rgba(189, 214, 229, 0.45) 0, transparent 45%),
    radial-gradient(at 82% 22%, rgba(53, 102, 133, 0.12) 0, transparent 40%),
    radial-gradient(at 64% 92%, rgba(189, 214, 229, 0.30) 0, transparent 48%);
  filter: blur(2px);
  pointer-events: none;
}

/* -------------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-800);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(53, 102, 133, 0.14);
}

.eyebrow .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--brand-700);
  box-shadow: 0 0 0 4px rgba(53, 102, 133, 0.14);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

.eyebrow .sep {
  opacity: 0.5;
}

.eyebrow [lang='en'] {
  font-family: var(--font-en);
  letter-spacing: 0.04em;
}

.title {
  margin: 0;
  font-family: var(--font-ar);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  background: linear-gradient(180deg, var(--ink-900) 0%, var(--brand-800) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  margin: 0.6rem 0 0;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-700);
  direction: ltr;
}

/* -------------------------------------------------------------------------
   Pulse — three soft dots
   ------------------------------------------------------------------------- */

.pulse {
  display: inline-flex;
  gap: 0.55rem;
  margin-top: 2.25rem;
}

.pulse span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--brand-500);
  opacity: 0.55;
  animation: pulse-bounce 1.4s ease-in-out infinite;
}

.pulse span:nth-child(2) { animation-delay: 0.18s; }
.pulse span:nth-child(3) { animation-delay: 0.36s; }

/* -------------------------------------------------------------------------
   Animations
   ------------------------------------------------------------------------- */

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(53, 102, 133, 0.14); }
  50%      { box-shadow: 0 0 0 8px rgba(53, 102, 133, 0.04); }
}

@keyframes pulse-bounce {
  0%, 80%, 100% { transform: translateY(0);     opacity: 0.4; }
  40%           { transform: translateY(-6px);  opacity: 1;   }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .eyebrow .dot,
  .pulse span {
    animation: none !important;
  }
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .card { border-radius: 1rem; }
  .eyebrow { font-size: 0.72rem; }
}
