/* ======================================================================
   PROROK — Welcome page 4.9.3
   Compact single-surface Digital Mysticism Luxe layout.
   ====================================================================== */

:root {
  color-scheme: dark;
  --welcome-bg: #080c19;
  --welcome-panel: rgba(16, 22, 42, .78);
  --welcome-border: rgba(184, 154, 255, .20);
  --welcome-text: #f5f2ff;
  --welcome-secondary: #aaa8bd;
  --welcome-muted: #777a91;
  --welcome-purple: #8b5cf6;
  --welcome-violet: #c45cff;
  --welcome-cyan: #4dd3ff;
  --welcome-gradient: linear-gradient(120deg, #8057f6 0%, #be58ef 48%, #40bff4 100%);
  --welcome-ui: Inter, Manrope, "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --welcome-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --welcome-ease: cubic-bezier(.2, .76, .25, 1);
}

/* The entry page must fit the real mobile viewport. The scoped border-box
   reset prevents width:100% elements plus padding from exceeding the screen. */
body.welcome-page,
body.welcome-page *,
body.welcome-page *::before,
body.welcome-page *::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100%;
  overflow-x: clip;
  background: #060913;
}

body.welcome-page {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--welcome-text);
  font-family: var(--welcome-ui);
  background:
    radial-gradient(circle at 15% 8%, rgba(133, 92, 246, .22), transparent 35%),
    radial-gradient(circle at 90% 34%, rgba(77, 211, 255, .10), transparent 38%),
    linear-gradient(180deg, #11142b 0%, #090d1c 48%, #060913 100%) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.welcome-page .pr-cosmic-bg {
  z-index: 0;
  opacity: 1;
}

.welcome-stage {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: start center;
  align-content: center;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  padding-right: max(10px, env(safe-area-inset-right, 0px));
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  padding-left: max(10px, env(safe-area-inset-left, 0px));
  overflow-x: clip;
}

.welcome-shell {
  position: relative;
  isolation: isolate;
  width: min(100%, 510px);
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid var(--welcome-border);
  border-radius: clamp(26px, 5vw, 34px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .058), rgba(255, 255, 255, .012)),
    var(--welcome-panel);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, .46),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  text-align: center;
  animation: welcomeAppear .58s var(--welcome-ease) both;
}

.welcome-shell::before,
.welcome-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.welcome-shell::before {
  width: 280px;
  height: 280px;
  left: -170px;
  top: -180px;
  background: radial-gradient(circle, rgba(139, 92, 246, .22), transparent 67%);
}

.welcome-shell::after {
  width: 230px;
  height: 230px;
  right: -155px;
  bottom: -150px;
  background: radial-gradient(circle, rgba(77, 211, 255, .12), transparent 67%);
}

.welcome-logo {
  position: relative;
  width: 82px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .19), transparent 28%),
    radial-gradient(circle, rgba(139, 92, 246, .24), rgba(8, 12, 25, .95) 71%);
  box-shadow:
    0 0 28px rgba(139, 92, 246, .30),
    0 0 52px rgba(77, 211, 255, .08);
  animation: welcomeLogoFloat 7s ease-in-out infinite;
}

.welcome-logo::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(196, 92, 255, .18);
  border-right-color: rgba(77, 211, 255, .34);
  border-radius: 50%;
  animation: welcomeLogoOrbit 18s linear infinite;
}

.welcome-logo::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  right: -2px;
  top: 16px;
  border-radius: 50%;
  background: #f5f2ff;
  box-shadow: 0 0 11px rgba(196, 92, 255, .88);
}

.welcome-logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, .34));
}

.welcome-brand {
  margin: 0;
  color: #cdb5ff;
  font-size: .69rem;
  font-weight: 780;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.welcome-shell h1 {
  margin: 5px 0 0;
  font-family: var(--welcome-display);
  font-size: clamp(3rem, 12vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: .92;
}

.welcome-tagline {
  margin: 15px 0 0;
  color: #fff;
  font-size: clamp(.98rem, 3.8vw, 1.12rem);
  font-weight: 720;
  line-height: 1.45;
  text-wrap: balance;
}

.welcome-description {
  max-width: 430px;
  margin: 9px auto 0;
  color: var(--welcome-secondary);
  font-size: .82rem;
  line-height: 1.58;
  text-wrap: balance;
}

.welcome-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px 13px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: #d8d2e5;
  font-size: .72rem;
  font-weight: 650;
}

.welcome-features li {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.welcome-features li:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 13px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--welcome-violet), var(--welcome-cyan));
  box-shadow: 0 0 8px rgba(196, 92, 255, .65);
}

.welcome-actions {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.welcome-button {
  min-width: 0;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 17px;
  color: #fff;
  background: var(--welcome-gradient);
  box-shadow:
    0 13px 28px rgba(119, 72, 245, .28),
    inset 0 1px 0 rgba(255, 255, 255, .19);
  font: inherit;
  font-size: .87rem;
  font-weight: 760;
  text-decoration: none;
  transition: transform 160ms ease, filter 200ms ease, box-shadow 200ms ease;
}

.welcome-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.welcome-button:hover {
  filter: brightness(1.06);
}

.welcome-button:active {
  transform: scale(.985);
}

.welcome-button--secondary {
  color: var(--welcome-text);
  border-color: rgba(184, 154, 255, .18);
  background: rgba(255, 255, 255, .022);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.welcome-button--secondary:hover {
  border-color: rgba(170, 112, 255, .44);
  background: rgba(139, 92, 246, .07);
}

.welcome-recovery {
  display: inline-flex;
  justify-content: center;
  margin-top: 13px;
  color: #bbb4ca;
  font-size: .75rem;
  text-underline-offset: 4px;
  transition: color 180ms ease;
}

.welcome-recovery:hover {
  color: #eadfff;
}

.welcome-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--welcome-muted);
  font-size: .66rem;
  line-height: 1.4;
}

.welcome-trust svg {
  width: 16px;
  height: 16px;
  color: #b78cff;
  flex: 0 0 auto;
}

.welcome-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, .055);
  color: var(--welcome-muted);
  font-size: .65rem;
}

.welcome-footer a {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  opacity: .62;
}

.welcome-footer img {
  display: block;
  width: 56px;
  height: auto;
  opacity: .84;
  filter: grayscale(1) brightness(1.8);
}

@keyframes welcomeAppear {
  from { opacity: 0; transform: translateY(12px) scale(.994); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes welcomeLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

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


@media (min-width: 761px) and (min-height: 740px) {
  .welcome-stage {
    place-items: center;
  }
}

@media (max-width: 390px) {
  .welcome-stage {
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
  }

  .welcome-shell {
    padding: 20px 16px 17px;
    border-radius: 27px;
  }

  .welcome-logo {
    width: 74px;
    margin-bottom: 12px;
  }

  .welcome-shell h1 {
    font-size: clamp(2.9rem, 15vw, 3.7rem);
  }

  .welcome-tagline {
    margin-top: 12px;
    font-size: .94rem;
  }

  .welcome-description {
    font-size: .77rem;
  }

  .welcome-features {
    gap: 5px 10px;
    margin-top: 13px;
    font-size: .67rem;
  }

  .welcome-features li:not(:last-child)::after {
    margin-left: 10px;
  }

  .welcome-actions {
    margin-top: 17px;
  }

  .welcome-button {
    min-height: 47px;
    border-radius: 16px;
    font-size: .82rem;
  }

  .welcome-trust {
    font-size: .62rem;
  }
}

@media (max-height: 720px) and (max-width: 760px) {
  .welcome-stage {
    place-items: start center;
    padding-top: max(8px, env(safe-area-inset-top, 0px));
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }

  .welcome-shell {
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .welcome-logo {
    width: 64px;
    margin-bottom: 9px;
  }

  .welcome-brand {
    font-size: .62rem;
  }

  .welcome-shell h1 {
    font-size: 3rem;
  }

  .welcome-tagline {
    margin-top: 9px;
    font-size: .88rem;
  }

  .welcome-description {
    margin-top: 6px;
    font-size: .72rem;
    line-height: 1.45;
  }

  .welcome-features {
    margin-top: 10px;
  }

  .welcome-actions {
    margin-top: 13px;
  }

  .welcome-button {
    min-height: 44px;
  }

  .welcome-recovery {
    margin-top: 9px;
  }

  .welcome-trust {
    margin-top: 10px;
  }

  .welcome-footer {
    margin-top: 10px;
    padding-top: 9px;
  }
}

@media (max-height: 620px) and (max-width: 760px) {
  .welcome-description,
  .welcome-trust {
    display: none;
  }

  .welcome-features {
    margin-top: 8px;
  }

  .welcome-actions {
    margin-top: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-shell,
  .welcome-logo,
  .welcome-logo::before {
    animation: none !important;
  }

  .welcome-button {
    transition: none;
  }
}
