@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600&display=swap");

:root {
  --bg: #0b0c15;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.16);
  --orange: #f58529;
  --pink: #e8476c;
}

* {
  box-sizing: border-box;
  font-family: inherit;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: "Montserrat", "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(11, 12, 21, 0.94);
  transition: opacity 300ms ease, visibility 300ms ease;
}

.loader-spinner {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: conic-gradient(
    from 0deg,
    rgba(245, 133, 41, 1) 0deg,
    rgba(232, 71, 108, 1) 220deg,
    rgba(232, 71, 108, 0) 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 0);
  box-shadow: 0 0 14px rgba(232, 71, 108, 0.2);
  animation: loader-spin 0.9s linear infinite;
}

body.app-ready .page-loader {
  opacity: 0;
  visibility: hidden;
}

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

.bg-orb {
  position: absolute;
  fill: none;
  opacity: 0;
  animation: orb-enter 700ms ease forwards, orb-spin linear infinite;
  animation-duration: 700ms, var(--spin-duration, 100s);
  animation-delay: var(--orb-delay, 0ms), var(--spin-delay, 0ms);
  transform-origin: 50% 50%;
}

.bg-orb-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 1.8;
  stroke-dasharray: 10 6;
  animation: orb-dash linear infinite;
}

.bg-orb-1 {
  width: 670px;
  height: 670px;
  top: -260px;
  left: -220px;
  --orb-opacity: 0.52;
  --spin-duration: 90s;
  --orb-delay: 120ms;
}

.bg-orb-1 .bg-orb-ring {
  animation-duration: 7s;
  animation-delay: -2s;
}

.bg-orb-2 {
  width: 600px;
  height: 600px;
  top: 120px;
  left: calc(50% - 300px);
  --orb-opacity: 0.42;
  --spin-duration: 120s;
  --orb-delay: 260ms;
}

.bg-orb-2 .bg-orb-ring {
  animation-duration: 9s;
  animation-direction: reverse;
  animation-delay: -4s;
}

.bg-orb-3 {
  width: 480px;
  height: 480px;
  bottom: -160px;
  left: -120px;
  --orb-opacity: 0.46;
  --spin-duration: 100s;
  --orb-delay: 400ms;
}

.bg-orb-3 .bg-orb-ring {
  animation-duration: 8s;
  animation-delay: -1s;
}

.bg-orb-4 {
  width: 720px;
  height: 720px;
  top: -260px;
  right: -300px;
  --orb-opacity: 0.42;
  --spin-duration: 110s;
  --orb-delay: 540ms;
}

.bg-orb-4 .bg-orb-ring {
  animation-duration: 10s;
  animation-direction: reverse;
  animation-delay: -3s;
}

.bg-orb-5 {
  width: 540px;
  height: 540px;
  top: 220px;
  right: -240px;
  --orb-opacity: 0.34;
  --spin-duration: 95s;
  --orb-delay: 680ms;
}

.bg-orb-5 .bg-orb-ring {
  animation-duration: 8.5s;
  animation-delay: -5s;
}

.bg-orb-6 {
  width: 500px;
  height: 500px;
  bottom: -180px;
  right: 22%;
  --orb-opacity: 0.38;
  --spin-duration: 105s;
  --orb-delay: 820ms;
}

.bg-orb-6 .bg-orb-ring {
  animation-duration: 9s;
  animation-direction: reverse;
  animation-delay: -2s;
}

.bg-orb-7 {
  width: 520px;
  height: 520px;
  top: 240px;
  left: -220px;
  --orb-opacity: 0.36;
  --spin-duration: 108s;
  --orb-delay: 960ms;
}

.bg-orb-7 .bg-orb-ring {
  animation-duration: 8.8s;
  animation-delay: -3s;
}


.bg-center-fade {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 40% 30% at 50% 45%,
    rgba(11, 12, 21, 1) 0%,
    rgba(11, 12, 21, 0.6) 60%,
    rgba(11, 12, 21, 0) 100%
  );
}

@keyframes orb-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orb-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: var(--orb-opacity, 0.4);
  }
}

@keyframes orb-dash {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -220;
  }
}

@keyframes loader-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.topbar,
.container,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  letter-spacing: 0.35rem;
  font-weight: 300;
  text-transform: uppercase;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem;
  font-weight: 300;
}

nav a[aria-current="page"] {
  color: var(--text);
}

.container {
  flex: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  place-items: center;
}

.intro-stage {
  width: min(680px, 100%);
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.4rem;
  overflow: hidden;
}

.intro-circle-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  --circ: 754;
}

.intro-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-dashes {
  opacity: 0;
  animation: dash-fade 5s ease-out forwards;
}

.intro-dash-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.26);
  stroke-width: 1.4;
  stroke-dasharray: 6 4;
}

.intro-cover-ring {
  fill: none;
  stroke: var(--bg);
  stroke-width: 5;
  stroke-dasharray: var(--circ);
  stroke-dashoffset: 0;
  animation: cover-reveal 5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.intro-guide-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.2;
  stroke-dasharray: 6 4;
}

.intro-guide-cover {
  fill: none;
  stroke: var(--bg);
  stroke-width: 3.2;
  stroke-dasharray: var(--circ);
  stroke-dashoffset: var(--circ);
  animation: solid-draw 5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.intro-solid {
  opacity: 0;
  animation: solid-fade 5s linear forwards;
}

.intro-solid-ring {
  fill: none;
  stroke: url(#introGrad);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: var(--circ);
  stroke-dashoffset: var(--circ);
  animation: solid-draw 5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.intro-title-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(14px);
  animation: title-in 5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro-title {
  font-size: 30px;
  color: var(--text);
  letter-spacing: 0.5rem;
  text-transform: uppercase;
  font-weight: 200;
}

.intro-tagline {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(14px);
  animation: tagline-in 5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.appstore-button {
  display: inline-flex;
  opacity: 0;
  transform: translateY(14px);
  animation: appstore-in 5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.appstore-button img {
  height: 44px;
  width: auto;
  display: block;
}

@keyframes dash-fade {
  0%,
  2% {
    opacity: 0;
  }
  12%,
  100% {
    opacity: 0.45;
  }
}

@keyframes cover-reveal {
  0%,
  2% {
    stroke-dashoffset: 0;
  }
  30%,
  100% {
    stroke-dashoffset: calc(-1 * var(--circ));
  }
}

@keyframes solid-fade {
  0%,
  30% {
    opacity: 0;
  }
  33%,
  100% {
    opacity: 1;
  }
}

@keyframes solid-draw {
  0%,
  30% {
    stroke-dashoffset: var(--circ);
  }
  54%,
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes title-in {
  0%,
  50% {
    opacity: 0;
    transform: translateY(14px);
  }
  60%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tagline-in {
  0%,
  62% {
    opacity: 0;
    transform: translateY(14px);
  }
  72%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes appstore-in {
  0%,
  70% {
    opacity: 0;
    transform: translateY(14px);
  }
  80%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  color: var(--muted);
  font-size: 0.78rem;
}

h1 {
  margin: 0.7rem 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 200;
  letter-spacing: 0.05rem;
}

.lead {
  color: var(--muted);
  line-height: 1.6;
  max-width: 52ch;
}

.cta {
  margin-top: 1.4rem;
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(135deg, var(--orange), var(--pink));
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-weight: 400;
}

ul {
  line-height: 1.7;
  color: var(--muted);
  padding-left: 1.1rem;
}

.small {
  color: var(--muted);
  font-size: 0.92rem;
}

.support-mail-btn {
  display: inline-block;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(135deg, var(--orange), var(--pink));
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-weight: 400;
  margin: 0.35rem 0 0.8rem;
}

.support-content {
  opacity: 0;
  transform: translateY(10px);
}

body.app-ready .support-content,
body.app-ready .privacy-content {
  animation: support-fade-in 650ms ease forwards;
  animation-delay: 150ms;
}

.privacy-content {
  opacity: 0;
  transform: translateY(10px);
  max-width: 56ch;
}

@keyframes support-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-weight: 300;
}
