/* MOSARAT — Coming Soon
   Standalone static page. No app dependencies. */

:root {
  --navy: #0f2a43;
  --navy-deep: #0a1c2e;
  --gold: #c9a86a;
  --gold-soft: #d4bc8a;
  --gold-muted: rgba(201, 168, 106, 0.35);
  --bg: #f8f8f8;
  --white: #ffffff;
  --ink: #0f2a43;
  --ink-muted: rgba(15, 42, 67, 0.62);
  --ink-faint: rgba(15, 42, 67, 0.4);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Poppins", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Atmosphere ——— */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(201, 168, 106, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 80%, rgba(15, 42, 67, 0.06), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 60%, rgba(201, 168, 106, 0.08), transparent 45%),
    linear-gradient(180deg, var(--white) 0%, var(--bg) 45%, #f0f2f4 100%);
  animation: wash-drift 18s ease-in-out infinite alternate;
}

.atmosphere__mesh {
  position: absolute;
  inset: -20%;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(15, 42, 67, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 42, 67, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  animation: mesh-shift 28s linear infinite;
}

.atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.atmosphere__horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(42vh, 420px);
  background:
    linear-gradient(180deg, transparent 0%, rgba(15, 42, 67, 0.04) 40%, rgba(15, 42, 67, 0.1) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='xMidYMax meet'%3E%3Cg fill='%230F2A43' fill-opacity='0.07'%3E%3Cpath d='M0 220V148l48-28 36 40 52-72 44 52 60-88 40 48 56-36 48 64 72-96 44 40 68-56 52 72 80-48 40 32 64-64 56 56 88-80 40 44 72-28 48 36V220z'/%3E%3C/g%3E%3Cg fill='%23C9A86A' fill-opacity='0.12'%3E%3Cpath d='M980 40h10v100h-10zM990 28h4v12h-4z'/%3E%3C/g%3E%3C/svg%3E")
      bottom center / 100% auto no-repeat;
}

@keyframes wash-drift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.04) translate3d(0, -1.5%, 0);
  }
}

@keyframes mesh-shift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(36px, 36px, 0);
  }
}

/* ——— Nav ——— */

.nav {
  position: relative;
  z-index: 10;
  padding: 1.25rem 1.5rem 0;
}

.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 52px;
}

.nav__brand {
  grid-column: 2;
  justify-self: center;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}

.logo__en {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: var(--navy);
}

.logo__mark {
  color: var(--gold);
}

.logo__ar {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.nav__status {
  grid-column: 3;
  justify-self: end;
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@media (max-width: 560px) {
  .nav__inner {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
  }

  .nav__brand,
  .nav__status {
    grid-column: 1;
    justify-self: center;
  }
}

/* ——— Hero ——— */

.hero {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 8vh, 5rem) 1.5rem clamp(4rem, 10vh, 6rem);
}

.hero__content {
  width: 100%;
  max-width: 42rem;
  text-align: center;
}

.hero__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero__logo {
  width: min(420px, 86vw);
  height: auto;
  object-fit: contain;
}

.hero__tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__rule {
  width: 48px;
  height: 1px;
  margin: 1.75rem auto 1.5rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform-origin: center;
}

.hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5.2vw, 3rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}

.hero__lead {
  margin: 0 auto 2.25rem;
  max-width: 36rem;
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  font-weight: 400;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* ——— Notify ——— */

.notify {
  max-width: 28rem;
  margin: 0 auto;
}

.notify__row {
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem;
  background: var(--white);
  border: 1px solid rgba(15, 42, 67, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 40px -24px rgba(15, 42, 67, 0.28);
}

.notify__row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--navy);
  outline: none;
}

.notify__row input::placeholder {
  color: var(--ink-faint);
}

.notify__row:focus-within {
  border-color: var(--gold-muted);
  box-shadow:
    0 0 0 3px rgba(201, 168, 106, 0.18),
    0 18px 40px -24px rgba(15, 42, 67, 0.28);
}

.notify__btn {
  flex-shrink: 0;
  border: 0;
  cursor: pointer;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  transition:
    background 0.35s var(--ease),
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.notify__btn:hover {
  background: linear-gradient(135deg, #163652 0%, var(--navy) 100%);
  box-shadow: 0 10px 24px -12px rgba(15, 42, 67, 0.55);
}

.notify__btn:active {
  transform: translateY(1px);
}

.notify__btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.notify__hint {
  min-height: 1.4em;
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-faint);
  transition: color 0.3s ease;
}

.notify__hint.is-success {
  color: var(--navy);
}

.notify__hint.is-error {
  color: #8b3a3a;
}

@media (max-width: 520px) {
  .notify__row {
    flex-direction: column;
    gap: 0.35rem;
  }

  .notify__btn {
    width: 100%;
  }
}

/* ——— Footer ——— */

.footer {
  position: relative;
  z-index: 5;
  padding: 1.25rem 1.5rem 1.75rem;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* ——— Reveal motion ——— */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

.hero__rule.reveal {
  transform: scaleX(0);
  animation-name: rule-draw;
}

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

@keyframes rule-draw {
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere__wash,
  .atmosphere__mesh,
  .reveal {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
