/* Cycle (سایکل) coming-soon page. One stylesheet for fa (rtl) and en (ltr): every inset,
   margin and padding is logical, so direction comes from <html dir> alone (D-104).
   No inline style anywhere: the Content-Security-Policy allows styles from this file only. */

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/vazirmatn-400.e6964f1ca4.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/vazirmatn-600.e166b7c9a6.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/vazirmatn-800.ab952c8cd2.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---- tokens: the palette comes from the app icon (purple diagonal gradient, white ring,
   one blush arc). Text pairs are AA or better on their own background (README). ---- */
:root {
  color-scheme: light dark;
  --icon-1: #d7affc;
  --icon-2: #b580f9;
  --icon-3: #a371ee;
  --icon-4: #8f5ae8;
  --blush: #efd2fd;

  --bg: #fcf9ff;
  --bg-deep: #f4ecff;
  --text: #1f1238;
  --text-2: #4d3f6b;
  --accent: #6633cc;
  --accent-ink: #ffffff;
  --chip: #f1e7ff;
  --chip-text: #4a2399;
  --line: rgba(102, 51, 204, 0.14);
  --card: rgba(255, 255, 255, 0.7);
  --card-line: rgba(102, 51, 204, 0.12);
  --glow-a: rgba(181, 128, 249, 0.42);
  --glow-b: rgba(239, 210, 253, 0.75);
  --glow-c: rgba(143, 90, 232, 0.2);
  --orbit: rgba(102, 51, 204, 0.22);
  --tile-shadow: 0 2.2rem 4.5rem -1.6rem rgba(84, 38, 170, 0.55), 0 0.8rem 1.6rem -0.8rem rgba(84, 38, 170, 0.35);
  --focus: #6633cc;

  --radius: 1.4rem;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --measure: 72rem;
  --font: "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0817;
    --bg-deep: #160d26;
    --text: #f5eeff;
    --text-2: #c9badf;
    --accent: #c9a6ff;
    --accent-ink: #1a0f2e;
    --chip: rgba(181, 128, 249, 0.14);
    --chip-text: #e4d2ff;
    --line: rgba(215, 175, 252, 0.14);
    --card: rgba(255, 255, 255, 0.045);
    --card-line: rgba(215, 175, 252, 0.13);
    --glow-a: rgba(143, 90, 232, 0.42);
    --glow-b: rgba(215, 175, 252, 0.12);
    --glow-c: rgba(181, 128, 249, 0.22);
    --orbit: rgba(215, 175, 252, 0.24);
    --tile-shadow: 0 2.2rem 5rem -1.4rem rgba(143, 90, 232, 0.55), 0 0 0 1px rgba(215, 175, 252, 0.12);
    --focus: #d9bfff;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.85;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 40rem at 85% -10%, var(--glow-b), transparent 60%),
    radial-gradient(50rem 36rem at 0% 30%, var(--glow-c), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-repeat: no-repeat;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
  line-height: 1.7;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 0.6rem;
}

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 0.8rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus-visible {
  transform: none;
}

.wrap {
  inline-size: 100%;
  max-inline-size: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- header ---- */
.top {
  position: relative;
  z-index: 2;
}

.top__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.brand__icon {
  inline-size: 2.4rem;
  block-size: 2.4rem;
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1.2rem -0.5rem rgba(84, 38, 170, 0.6);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lang:hover {
  border-color: var(--accent);
}

.lang svg {
  inline-size: 1.1rem;
  block-size: 1.1rem;
  opacity: 0.8;
}

/* ---- hero ---- */
main {
  flex: 1 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  padding-block: clamp(1rem, 0.5rem + 3vw, 3rem) clamp(1.5rem, 1rem + 2vw, 3rem);
}

.hero__visual {
  order: -1;
  justify-self: center;
}

.hero__text {
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  padding-block: 0.35rem;
  padding-inline: 0.9rem 1rem;
  border-radius: 999px;
  background: var(--chip);
  color: var(--chip-text);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.6;
  border: 1px solid var(--card-line);
}

.badge__dot {
  position: relative;
  inline-size: 0.6rem;
  block-size: 0.6rem;
  border-radius: 50%;
  background: var(--icon-3);
}

.badge__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--icon-3);
  animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(3.6rem, 2rem + 8vw, 8.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #5a2bbf 0%, #7744dd 50%, #9a63ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-block: 0.08em 0.12em;
}

@media (prefers-color-scheme: dark) {
  .title {
    background-image: linear-gradient(120deg, #ffffff 0%, var(--blush) 45%, var(--icon-2) 100%);
  }
}

@media (forced-colors: active) {
  .title {
    color: CanvasText;
    background: none;
  }
}

.nowrap {
  white-space: nowrap;
}

.lede {
  margin: 0.6rem 0 0;
  font-weight: 600;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2.1rem);
  line-height: 1.5;
  text-wrap: balance;
}

.intro {
  margin: 1rem auto 0;
  max-inline-size: 34rem;
  color: var(--text-2);
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem);
  text-wrap: balance;
}

.soon {
  margin-block-start: clamp(1.6rem, 1rem + 2vw, 2.4rem);
}

.soon__label {
  margin: 0 0 0.8rem;
  font-weight: 600;
  font-size: 1.02rem;
  text-wrap: balance;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  /* A label, not a button: no fill and a dashed edge, unlike the language switch (no link yet). */
  background: transparent;
  border: 1px dashed var(--orbit);
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.5;
}

.store svg {
  inline-size: 1.15rem;
  block-size: 1.15rem;
  color: var(--accent);
  flex: none;
}

/* ---- the mark: the app icon's ring, drawing itself, then breathing ---- */
.mark {
  position: relative;
  display: grid;
  place-items: center;
  inline-size: clamp(15rem, 10rem + 26vw, 30rem);
  aspect-ratio: 1;
}

.mark__halo {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-a), transparent 72%);
  filter: blur(8px);
  animation: halo 7s ease-in-out 2.2s infinite;
}

.mark__orbit {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  overflow: visible;
}

.orbit__ring {
  fill: none;
  stroke: var(--orbit);
  stroke-width: 0.35;
}

.orbit__ring--dots {
  stroke-width: 0.6;
  stroke-linecap: round;
  stroke-dasharray: 0 2.4;
}

.orbit__spin {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: spin 36s linear infinite;
}

.orbit__dot {
  fill: var(--icon-3);
}

.orbit__dot--soft {
  fill: var(--icon-1);
}

.mark__tile {
  position: relative;
  inline-size: 56%;
  aspect-ratio: 1;
  border-radius: 23%;
  background: linear-gradient(135deg, var(--icon-1) 0%, var(--icon-2) 38%, var(--icon-3) 62%, var(--icon-4) 100%);
  box-shadow: var(--tile-shadow);
  animation: breathe 7s ease-in-out 2.2s infinite;
}

.mark__tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 42%);
  pointer-events: none;
}

.mark__ring {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
}

.arc {
  fill: none;
  stroke: #ffffff;
  stroke-width: 8.9;
  stroke-linecap: round;
  /* The gap is longer than the path, so no dash (a round-cap dot) starts at its far end. */
  stroke-dasharray: 100 200;
  stroke-dashoffset: 100;
  opacity: 0;
  animation: draw 1.15s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.arc--soft {
  stroke: var(--blush);
}

.arc:nth-child(1) {
  animation-delay: 0.25s;
}
.arc:nth-child(2) {
  animation-delay: 0.6s;
}
.arc:nth-child(3) {
  animation-delay: 0.95s;
}
.arc:nth-child(4) {
  animation-delay: 1.3s;
}

/* The blush arc is the current phase: drawn first, then it pulses softly. Both animations are
   listed here, because a second animation rule would replace the draw. */
.arc.ring__now {
  animation: draw 1.15s cubic-bezier(0.65, 0, 0.35, 1) 0.25s forwards, now 3.6s ease-in-out 2.6s infinite;
}

/* ---- sections ---- */
.section {
  padding-block: clamp(2rem, 1rem + 3vw, 4rem) clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

.section__head {
  max-inline-size: 40rem;
  margin: 0 auto clamp(1.8rem, 1.2rem + 2vw, 3rem);
  text-align: center;
}

.section__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.section__sub {
  margin: 0.6rem 0 0;
  color: var(--text-2);
}

.features {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.9rem, 0.6rem + 1vw, 1.4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  position: relative;
  padding: clamp(1.3rem, 1rem + 1vw, 1.9rem);
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-line);
  backdrop-filter: blur(14px);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: var(--line);
}

.feature__icon {
  display: grid;
  place-items: center;
  inline-size: 3rem;
  block-size: 3rem;
  margin-block-end: 1rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, var(--icon-3), #6633cc);
  color: #ffffff;
  box-shadow: 0 0.7rem 1.4rem -0.8rem rgba(84, 38, 170, 0.7);
}

.feature__icon svg {
  inline-size: 1.5rem;
  block-size: 1.5rem;
}

.feature__title {
  margin: 0 0 0.35rem;
  font-weight: 800;
  font-size: clamp(1.08rem, 1rem + 0.3vw, 1.22rem);
  line-height: 1.5;
}

.feature__text {
  margin: 0;
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.85;
}

html[lang="en"] .feature__text {
  line-height: 1.65;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  max-inline-size: 46rem;
  margin: clamp(2rem, 1.5rem + 2vw, 3rem) auto 0;
  padding: 1rem 1.2rem;
  border-radius: 1.1rem;
  border: 1px dashed var(--line);
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.8;
}

.note svg {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  flex: none;
  margin-block-start: 0.25rem;
  color: var(--accent);
}

.note p {
  margin: 0;
}

/* ---- footer ---- */
.foot {
  border-block-start: 1px solid var(--line);
  margin-block-start: clamp(1rem, 0.5rem + 2vw, 2rem);
}

.foot__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-block: 1.4rem 1.8rem;
  color: var(--text-2);
  font-size: 0.95rem;
}

.foot__bar p {
  margin: 0;
}

.foot a {
  color: var(--text);
  font-weight: 600;
  text-decoration-color: var(--line);
  text-underline-offset: 0.3em;
}

.foot a:hover {
  text-decoration-color: currentColor;
}

/* ---- 404 ---- */
.lost {
  display: grid;
  place-items: center;
  gap: 1rem;
  padding-block: clamp(3rem, 2rem + 6vw, 7rem);
  text-align: center;
}

.lost .mark {
  inline-size: clamp(12rem, 8rem + 14vw, 18rem);
}

.lost__code {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.6rem, 2rem + 3vw, 4rem);
  line-height: 1.1;
  color: var(--accent);
}

.lost__title {
  margin: 0;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 800;
}

.lost__text {
  margin: 0;
  color: var(--text-2);
  text-wrap: balance;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-block-start: 0.6rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0.8rem 1.6rem -0.9rem rgba(84, 38, 170, 0.8);
}

/* ---- entrance ---- */
.rise {
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.rise--1 {
  animation-delay: 0.1s;
}
.rise--2 {
  animation-delay: 0.22s;
}
.rise--3 {
  animation-delay: 0.34s;
}
.rise--4 {
  animation-delay: 0.46s;
}
.rise--5 {
  animation-delay: 0.58s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes draw {
  0% {
    opacity: 0;
    stroke-dashoffset: 100;
  }
  8% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

@keyframes halo {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes now {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.62;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  80%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* ---- wider screens ---- */
@media (min-width: 40rem) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1.1rem;
    align-content: start;
  }

  .feature__icon {
    grid-row: span 2;
    margin-block-end: 0;
  }

  .feature__title,
  .feature__text {
    grid-column: 2;
  }
}

@media (min-width: 62rem) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    min-block-size: min(40rem, calc(100dvh - 9rem));
  }

  .hero__visual {
    order: 0;
  }

  .hero__text {
    text-align: start;
  }

  .intro {
    margin-inline: 0;
  }

  .stores {
    justify-content: flex-start;
  }

  .features {
    max-inline-size: 62rem;
    margin-inline: auto;
  }
}

@media (min-width: 100rem) {
  :root {
    --measure: 84rem;
  }
}

/* ---- motion: everything still and complete when the visitor asks for less motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .arc {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}
