/* ==========================================================================
   NekoPet — temporary pause page
   ========================================================================== */

/* Self-hosted so the page does not depend on a third-party font CDN. */
@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/vazirmatn-arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/vazirmatn-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --night-0: #04060f;
  --night-1: #070b1c;
  --night-2: #0b1230;

  --ink: #eef2ff;
  --ink-soft: #c3cbe6;
  --ink-muted: #98a2c4;

  --brand-blue: #6fb2d8;
  --brand-deep: #1f5f88;
  --brand-amber: #f59042;

  /* Telegram blues, deepened so white label text keeps a 4.5:1 ratio. */
  --tg-1: #1a7cba;
  --tg-2: #0e5382;

  --card-max: 40rem;
  --radius-card: 28px;

  --safe-inline: max(1.25rem, env(safe-area-inset-left), env(safe-area-inset-right));
}

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

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

body {
  margin: 0;
  min-height: 100%;
  font-family: "Vazirmatn", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: clamp(0.975rem, 0.9rem + 0.35vw, 1.0625rem);
  line-height: 2;
  color: var(--ink-soft);
  background-color: var(--night-0);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

strong {
  color: var(--ink);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Night sky
   -------------------------------------------------------------------------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, #10193c 0%, rgba(16, 25, 60, 0) 60%),
    radial-gradient(100% 70% at 50% 115%, #0a1030 0%, rgba(10, 16, 48, 0) 65%),
    linear-gradient(180deg, var(--night-1) 0%, var(--night-2) 45%, var(--night-0) 100%);
}

/* Two oversized, very soft colour fields. Gradients are used instead of
   `filter: blur()` because blurring a full-screen layer is expensive on phones. */
.sky__aurora {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  will-change: transform;
}

.sky__aurora--blue {
  inset-inline-start: -20%;
  top: -25%;
  width: 90vmax;
  height: 90vmax;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(41, 106, 176, 0.34) 0%,
    rgba(31, 82, 150, 0.14) 38%,
    rgba(10, 16, 44, 0) 70%
  );
  animation: aurora-drift-a 46s ease-in-out infinite alternate;
}

.sky__aurora--violet {
  inset-inline-end: -25%;
  bottom: -30%;
  width: 85vmax;
  height: 85vmax;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(107, 84, 194, 0.3) 0%,
    rgba(76, 60, 152, 0.12) 40%,
    rgba(10, 16, 44, 0) 72%
  );
  animation: aurora-drift-b 58s ease-in-out infinite alternate;
}

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

@keyframes aurora-drift-b {
  from {
    transform: translate3d(0, 0, 0) scale(1.06);
  }
  to {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
}

/* Three seamless star tiles. Each layer drifts at its own speed, which reads as
   a gentle depth/parallax effect without any scroll listeners. */
.sky__stars {
  position: absolute;
  background-repeat: repeat;
  will-change: transform;
}

.sky__stars--far {
  inset: -512px;
  background-image: url("assets/stars-far.png");
  background-size: 512px 512px;
  opacity: 0.75;
  animation: drift-far 300s linear infinite, twinkle-layer 19s ease-in-out infinite;
}

.sky__stars--mid {
  inset: -683px;
  background-image: url("assets/stars-mid.png");
  background-size: 683px 683px;
  opacity: 0.8;
  animation: drift-mid 210s linear infinite, twinkle-layer 13s ease-in-out infinite -4s;
}

.sky__stars--near {
  inset: -887px;
  background-image: url("assets/stars-near.png");
  background-size: 887px 887px;
  opacity: 0.85;
  animation: drift-near 150s linear infinite, twinkle-layer 23s ease-in-out infinite -9s;
}

@keyframes drift-far {
  to {
    transform: translate3d(512px, 0, 0);
  }
}

@keyframes drift-mid {
  to {
    transform: translate3d(-683px, 0, 0);
  }
}

@keyframes drift-near {
  to {
    transform: translate3d(-887px, 0, 0);
  }
}

@keyframes twinkle-layer {
  0%,
  100% {
    opacity: 0.68;
  }
  50% {
    opacity: 0.92;
  }
}

/* A few larger stars with their own rhythm, so the sky is not uniform. */
.sky__accents {
  position: absolute;
  inset: 0;
}

.accent-star {
  position: absolute;
  inset-inline-start: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #eaf2ff;
  box-shadow: 0 0 6px 1px rgba(190, 214, 255, 0.55);
  opacity: 0.5;
  animation: twinkle-star 7.5s ease-in-out infinite var(--delay);
}

@keyframes twinkle-star {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.9;
    transform: scale(1);
  }
}

/* Soft radial halo sitting behind the content column. */
.sky__halo {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(120vw, 68rem);
  height: min(120vw, 68rem);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(63, 122, 190, 0.22) 0%,
    rgba(47, 78, 160, 0.1) 34%,
    rgba(6, 10, 26, 0) 66%
  );
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.page {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(2rem, 6vh, 4.5rem) var(--safe-inline);
  padding-block-start: max(clamp(2rem, 6vh, 4.5rem), env(safe-area-inset-top));
  padding-block-end: max(clamp(2rem, 6vh, 4.5rem), env(safe-area-inset-bottom));
}

.shell {
  width: 100%;
  max-width: var(--card-max);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */

.logo {
  position: relative;
  display: flex;
  justify-content: center;
  margin-block-end: clamp(1.5rem, 4vw, 2.5rem);
  animation: rise-in 1.1s cubic-bezier(0.22, 0.68, 0.32, 1) both;
}

/* Ambient glow that breathes with the floating motion. */
.logo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(111, 178, 216, 0.24) 0%,
    rgba(87, 132, 214, 0.1) 38%,
    rgba(8, 12, 30, 0) 68%
  );
  animation: glow-breathe 9s ease-in-out infinite;
}

.logo__image {
  position: relative;
  width: clamp(9.5rem, 34vw, 15rem);
  height: auto;
  filter: drop-shadow(0 18px 42px rgba(4, 8, 22, 0.7))
    drop-shadow(0 0 26px rgba(111, 178, 216, 0.22));
  animation: float 9s ease-in-out infinite;
  will-change: transform;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, -6px, 0) scale(1);
  }
  50% {
    transform: translate3d(0, 6px, 0) scale(0.994);
  }
}

@keyframes glow-breathe {
  0%,
  100% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(0.97);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

/* --------------------------------------------------------------------------
   Glass card
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  padding: clamp(1.5rem, 5vw, 2.75rem);
  border: 1px solid rgba(168, 196, 255, 0.14);
  border-radius: var(--radius-card);
  background:
    linear-gradient(
      180deg,
      rgba(28, 40, 78, 0.62) 0%,
      rgba(14, 21, 48, 0.58) 45%,
      rgba(9, 14, 34, 0.66) 100%
    );
  box-shadow: 0 28px 70px -30px rgba(2, 5, 16, 0.9), 0 2px 0 rgba(255, 255, 255, 0.04) inset;
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  animation: rise-in 1.1s cubic-bezier(0.22, 0.68, 0.32, 1) 0.14s both;
  overflow: hidden;
}

/* Subtle highlight along the top edge. */
.card::before {
  content: "";
  position: absolute;
  inset-inline: 12%;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(198, 220, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.card__title {
  margin: 0 0 clamp(1rem, 3vw, 1.35rem);
  font-size: clamp(1.5rem, 1.15rem + 2.1vw, 2.35rem);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -0.01em;
  text-align: center;
  text-wrap: balance;
  color: #fff;
  background: linear-gradient(180deg, #ffffff 0%, #cddcf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card__body p {
  margin: 0 0 0.9em;
  color: var(--ink-soft);
  text-align: start;
  text-wrap: pretty;
}

.card__body p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Existing subscribers
   -------------------------------------------------------------------------- */

.subscribers {
  position: relative;
  margin-block: clamp(1.65rem, 5vw, 2.25rem);
  padding: clamp(1.15rem, 4vw, 1.75rem);
  border: 1px solid rgba(120, 176, 226, 0.2);
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(43, 92, 140, 0.24) 0%,
    rgba(24, 46, 84, 0.16) 100%
  );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

/* Brand-coloured marker on the leading edge. */
.subscribers::before {
  content: "";
  position: absolute;
  inset-block: 22%;
  inset-inline-start: 0;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(111, 178, 216, 0) 0%,
    rgba(111, 178, 216, 0.85) 45%,
    rgba(111, 178, 216, 0) 100%
  );
}

.subscribers__title {
  margin: 0 0 0.7em;
  font-size: clamp(1.05rem, 0.95rem + 0.75vw, 1.3rem);
  font-weight: 700;
  line-height: 1.7;
  color: #f2f7ff;
}

.subscribers p {
  margin: 0 0 0.75em;
  text-wrap: pretty;
}

.subscribers__note {
  color: var(--ink-muted);
  font-size: 0.95em;
}

/* --------------------------------------------------------------------------
   Telegram call to action
   -------------------------------------------------------------------------- */

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  width: 100%;
  min-height: 3.5rem;
  margin-block-start: clamp(1.1rem, 3.5vw, 1.5rem);
  padding: 0.85rem 1.5rem;
  border-radius: 16px;
  font-family: inherit;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.1rem);
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--tg-1) 0%, var(--tg-2) 100%);
  box-shadow: 0 14px 34px -14px rgba(35, 140, 205, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 1px 0 rgba(255, 255, 255, 0.24) inset;
  transition: transform 0.25s cubic-bezier(0.22, 0.68, 0.32, 1),
    box-shadow 0.25s ease, filter 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cta__icon {
  flex: 0 0 auto;
  width: 1.4em;
  height: 1.4em;
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
  filter: saturate(112%) brightness(1.04);
  box-shadow: 0 18px 40px -12px rgba(45, 160, 225, 0.85),
    0 0 26px -4px rgba(56, 176, 227, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 1px 0 rgba(255, 255, 255, 0.32) inset;
}

.cta:focus-visible {
  outline: 2px solid #9fd4f5;
  outline-offset: 3px;
}

.cta:active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 8px 20px -12px rgba(35, 140, 205, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition-duration: 0.09s;
}

/* --------------------------------------------------------------------------
   Closing note
   -------------------------------------------------------------------------- */

.closing {
  padding-block-start: clamp(1.1rem, 3.5vw, 1.5rem);
  border-block-start: 1px solid rgba(160, 188, 245, 0.12);
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.95em;
}

.closing p {
  margin: 0 0 0.4em;
  text-wrap: balance;
}

.closing__team {
  margin-block-start: 0.9em;
  margin-bottom: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--brand-blue);
}

/* --------------------------------------------------------------------------
   Adaptations
   -------------------------------------------------------------------------- */

/* On laptops and larger the goal is a single-screen experience, so the vertical
   rhythm is tightened while the measure stays comfortable. */
@media (min-width: 64rem) {
  :root {
    --card-max: 42rem;
  }

  body {
    font-size: 1rem;
    line-height: 1.82;
  }

  .page {
    padding-block: clamp(1.75rem, 3.5vh, 2.75rem);
  }

  .logo {
    margin-block-end: 1.1rem;
  }

  .logo__image {
    width: 11rem;
  }

  .card {
    padding: 2rem 2.4rem;
  }

  .card__title {
    font-size: 2.05rem;
    margin-bottom: 0.9rem;
  }

  .subscribers {
    margin-block: 1.5rem;
    padding: 1.35rem 1.5rem;
  }

  .cta {
    margin-block-start: 1.15rem;
  }

  .closing {
    padding-block-start: 1.25rem;
  }
}

/* Shorter laptop screens: trim the rhythm further so the page still reads as a
   single screen instead of a scrolling document. */
@media (min-width: 64rem) and (max-height: 64rem) {
  body {
    font-size: 0.975rem;
    line-height: 1.72;
  }

  .page {
    padding-block: 1.5rem;
  }

  .logo {
    margin-block-end: 0.9rem;
  }

  .logo__image {
    width: 9rem;
  }

  .card {
    padding: 1.6rem 2.1rem;
  }

  .card__title {
    font-size: 1.8rem;
    margin-bottom: 0.7rem;
  }

  .card__body p,
  .subscribers p {
    margin-bottom: 0.65em;
  }

  .subscribers {
    margin-block: 1.15rem;
    padding: 1.15rem 1.35rem;
  }

  .cta {
    min-height: 3.25rem;
    margin-block-start: 1rem;
  }

  .closing {
    padding-block-start: 1rem;
  }
}

/* Large, tall displays: give the content a little more presence without ever
   letting the measure grow uncomfortable. */
@media (min-width: 100rem) and (min-height: 62rem) {
  :root {
    --card-max: 44rem;
  }

  body {
    font-size: 1.0625rem;
  }

  .logo__image {
    width: 13rem;
  }
}

/* Landscape phones and very short windows. */
@media (max-height: 34rem) and (min-width: 40rem) {
  .logo__image {
    width: 7rem;
  }

  .card__title {
    font-size: 1.6rem;
  }
}

/* Very narrow phones. */
@media (max-width: 22.5rem) {
  body {
    line-height: 1.95;
  }

  .card,
  .subscribers {
    padding-inline: 1.1rem;
  }

  /* Keep the button label on a single line on the narrowest phones. */
  .cta {
    gap: 0.5em;
    padding-inline: 0.75rem;
    font-size: 0.95rem;
  }
}

@media (hover: none) {
  .cta:hover {
    transform: none;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sky__aurora,
  .sky__stars,
  .accent-star,
  .logo,
  .logo::before,
  .logo__image,
  .card {
    animation: none !important;
  }

  .logo__image {
    transform: none;
  }

  .accent-star {
    opacity: 0.55;
  }

  .cta {
    transition: none;
  }

  .cta:hover,
  .cta:active {
    transform: none;
  }
}
