/* MoreAI coming soon page. Colours, font and tone follow the MoreAI brand. */

:root {
  --red: #F50A16;
  --cream: #F5ECD6;
  --ink: #1C1412;
  --coral: #FF5A3C;
  --deep: #A8000C;
  --peach: #F9D6C2;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  /* Fluid type scale: 16px on laptops, growing to 20px on large screens.
     Every size in this file is in rem, so the whole layout scales together */
  font-size: clamp(100%, 0.45vw + 0.6rem, 125%);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-width: none;
}

/* No scrollbar indicator. The page still scrolls on small screens */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background:
    radial-gradient(120% 80% at 100% 0%, rgb(255 74 46 / 0.55) 0%, rgb(255 74 46 / 0) 55%),
    radial-gradient(90% 70% at 0% 100%, rgb(150 0 10 / 0.85) 0%, rgb(150 0 10 / 0) 60%),
    radial-gradient(70% 55% at 50% 45%, rgb(255 40 50 / 0.35) 0%, rgb(255 40 50 / 0) 70%),
    linear-gradient(160deg, #F7121E 0%, #E8000F 55%, #C4000D 100%);
  background-attachment: fixed;
  color: var(--cream);
  font-family: "Baloo Bhaijaan 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Soft moving light behind everything */

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

/* Fine film grain so the gradient feels printed, not flat */
.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.blob-coral {
  width: 70vmax;
  height: 70vmax;
  top: -28vmax;
  inset-inline-start: -22vmax;
  background: radial-gradient(circle, rgb(255 90 60 / 0.55) 0%, rgb(255 90 60 / 0) 65%);
  animation: drift-a 22s var(--ease-in-out) infinite alternate;
}

.blob-deep {
  width: 80vmax;
  height: 80vmax;
  bottom: -40vmax;
  inset-inline-end: -30vmax;
  background: radial-gradient(circle, rgb(168 0 12 / 0.6) 0%, rgb(168 0 12 / 0) 65%);
  animation: drift-b 26s var(--ease-in-out) infinite alternate;
}

.blob-peach {
  width: 40vmax;
  height: 40vmax;
  top: 30%;
  inset-inline-end: 10%;
  background: radial-gradient(circle, rgb(249 214 194 / 0.22) 0%, rgb(249 214 194 / 0) 65%);
  animation: drift-c 30s var(--ease-in-out) infinite alternate;
}

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

@keyframes drift-b {
  to { transform: translate3d(-6vmax, -8vmax, 0) scale(1.1); }
}

@keyframes drift-c {
  to { transform: translate3d(-10vmax, 6vmax, 0); }
}

/* Language switch, at the end of the top bar in both directions */

.top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding-block-start: max(1rem, env(safe-area-inset-top));
  padding-inline: max(1.25rem, env(safe-area-inset-left)) max(1.25rem, env(safe-area-inset-right));
}

.lang {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
  background: rgb(245 236 214 / 0.14);
  border: 1px solid rgb(245 236 214 / 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.lang:hover {
  background: rgb(245 236 214 / 0.22);
  transform: translateY(-1px);
}

.lang:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
}

/* Layout */

.page {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.1rem, 3.2vw, 1.75rem);
  text-align: center;
  padding-block: 1.5rem;
  padding-inline: max(1.25rem, env(safe-area-inset-left)) max(1.25rem, env(safe-area-inset-right));
}

/* Text on red is always 19px bold or larger, so it passes WCAG AA for large text.
   Small text sits on cream, where it passes AA easily. */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem 0.45rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgb(60 0 4 / 0.22);
}

.dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s var(--ease-out) infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgb(245 10 22 / 0.55); }
  70%, 100% { box-shadow: 0 0 0 0.6rem rgb(245 10 22 / 0); }
}

.brand-static img {
  width: clamp(14rem, 64vw, 34rem);
  height: auto;
}

/* Logo: the o pops in, then "m" and "reAI" slide out from behind it, like the promo video */

.brand {
  position: relative;
  width: clamp(14rem, 64vw, 34rem);
  aspect-ratio: 992 / 220;
  direction: ltr;
}

.logo-part {
  position: absolute;
  top: 0;
  height: 100%;
  overflow: hidden;
}

.logo-m {
  left: 0;
  width: 29.335%;
}

.logo-r {
  left: 50.806%;
  width: 49.194%;
}

.logo-part img {
  width: 100%;
  height: 100%;
  animation: slide-in 0.9s var(--ease-out) 0.8s both;
}

.logo-m img {
  --from: 100%;
}

.logo-r img {
  --from: -100%;
}

.logo-o {
  position: absolute;
  top: 0;
  left: 29.335%;
  width: 21.472%;
  height: 100%;
  animation: o-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both;
}

@keyframes slide-in {
  from { transform: translateX(var(--from)); }
  to { transform: none; }
}

@keyframes o-pop {
  from { transform: scale(0); }
  to { transform: none; }
}

.title {
  font-size: clamp(2.1rem, 7vw, 3.9rem);
  font-weight: 800;
  line-height: 1.2;
}

.nowrap {
  white-space: nowrap;
}

.lead {
  max-width: 30ch;
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 700;
  line-height: 1.6;
}

.links {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}

.pill svg {
  width: 1.3rem;
  height: 1.3rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pill svg .fill {
  fill: currentColor;
  stroke: none;
}

.pill-solid {
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 12px 32px rgb(60 0 4 / 0.25);
}

.pill-glass {
  background: rgb(245 236 214 / 0.14);
  color: var(--cream);
  border: 1px solid rgb(245 236 214 / 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.pill:hover {
  transform: translateY(-2px);
}

.pill-solid:hover {
  box-shadow: 0 16px 40px rgb(60 0 4 / 0.32);
}

.pill-glass:hover {
  background: rgb(245 236 214 / 0.22);
}

.pill:active {
  transform: translateY(0) scale(0.97);
}

.pill:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
}

/* Coming soon store chips: dark pills with the App Store and Google Play icons.
   Icons from Simple Icons. Apple and Google prefer their official badges, Khaled chose these, 2026-10-02 */

.stores {
  list-style: none;
  padding: 0;
  width: 100%;
  max-width: 26rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.store {
  flex: 1 1 10rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.5rem;
  padding: 0.5rem 1.4rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #2E2320 0%, var(--ink) 100%);
  color: var(--cream);
  border: 1px solid rgb(245 236 214 / 0.16);
  box-shadow: 0 1px 0 rgb(245 236 214 / 0.12) inset, 0 14px 32px rgb(40 0 4 / 0.28);
}

.store svg {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store svg.brand-icon {
  fill: currentColor;
  stroke: none;
  width: 1.45rem;
  height: 1.45rem;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.store-small {
  font-size: 0.8rem;
  font-weight: 500;
}

.store-name {
  font-size: 1.15rem;
  font-weight: 800;
  white-space: nowrap;
}

.foot {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  padding-block: 1.25rem max(1.5rem, env(safe-area-inset-bottom));
  padding-inline: 1.25rem;
}

/* Entrance: a short, simple rise in sequence */

.reveal,
.reveal-pop {
  opacity: 0;
  animation-duration: 0.9s;
  animation-timing-function: var(--ease-out);
  animation-fill-mode: forwards;
}

.reveal {
  transform: translateY(1.1rem);
  animation-name: rise;
}

.reveal-pop {
  transform: scale(0.9);
  animation-name: pop;
  animation-duration: 1s;
}

.d0 { animation-delay: 0.15s; }
.d1 { animation-delay: 0.27s; }
.d2 { animation-delay: 0.42s; }
.d3 { animation-delay: 0.54s; }
.d4 { animation-delay: 0.66s; }
.d5 { animation-delay: 0.8s; }
.d6 { animation-delay: 0.92s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* The footer only fades in, so it never pushes past the bottom of the screen */
.foot.reveal {
  transform: none;
  animation-name: fade;
}

@keyframes fade {
  to { opacity: 1; }
}

@keyframes pop {
  60% { opacity: 1; transform: scale(1.025); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 26rem) {
  .links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .pill {
    width: 100%;
    justify-content: center;
  }

  .store {
    gap: 0.45rem;
    padding-inline: 0.7rem;
  }

  .store svg {
    width: 1.35rem;
    height: 1.35rem;
  }

  .store-name {
    font-size: 1.05rem;
  }
}

/* Shorter screens: tighten the stack so the whole page fits without scrolling */
@media (max-height: 940px) and (min-width: 26.01rem) {
  .page {
    gap: clamp(0.8rem, 2vh, 1.3rem);
    padding-block: 0.75rem;
  }

  .brand {
    width: clamp(13rem, min(46vh, 64vw), 30rem);
  }

  .title {
    font-size: clamp(2rem, min(6vh, 7vw), 3.4rem);
  }

  .lead {
    font-size: clamp(1.2rem, min(2.6vh, 2.8vw), 1.45rem);
    line-height: 1.5;
  }

  .links {
    margin-top: 0.25rem;
  }

  .foot {
    padding-block: 0.75rem max(1rem, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal-pop,
  .logo-o,
  .logo-part img {
    opacity: 1;
    transform: none;
  }
}
