@import url("https://db.onlinewebfonts.com/c/bb5de19d87c09a95216dc6ccd96e37c6?family=Nimbus+Sans+TW01");

:root {
  --landing-font: "Nimbus Sans TW01", "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
  --ink: #17191f;
  --muted: #5f6670;
  --line: rgba(23, 25, 31, 0.12);
  --pink: #ff3f7f;
  --cyan: #0ca8d8;
  --panel: #1a1a1d;
}

* { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background: #dbeef7;
  font-family: var(--landing-font);
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
svg { display: block; }

.download-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  background: #dbeef7 url("../images/questly-bg.webp") center top / auto 120% no-repeat;
}

.download-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.12) 48%, rgba(255,255,255,0));
}

.download-nav {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 20px 40px;
}

.download-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  font-size: 18px;
}

.download-brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  color: #fff;
  background: #1d2027;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(28, 31, 38, 0.16);
}

.download-brand strong { font-weight: 700; }

.download-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.download-nav-links a,
.download-text-link {
  position: relative;
  color: #525964;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.download-nav-links a::after,
.download-text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: #20232a;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.download-nav-links a:hover,
.download-text-link:hover { color: #17191f; }
.download-nav-links a:hover::after,
.download-text-link:hover::after { transform: scaleX(1); }

.download-nav-links a.active {
  color: #17191f;
  font-weight: 700;
}

.download-nav-links a.active::after { transform: scaleX(1); }

.download-nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 20px;
}

.download-nav-cta,
.download-primary,
.download-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.download-nav-cta {
  min-height: 39px;
  padding: 0 19px;
  color: #fff;
  background: #1b1d23;
  font-size: 13px;
}

.download-nav-cta:hover,
.download-primary:hover {
  background: #2a2d35;
  transform: translateY(-1px);
}

.download-nav-toggle {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.36);
  cursor: pointer;
}

.download-nav-toggle svg { width: 20px; height: 20px; }

.download-mobile-menu { display: none; }

.download-main {
  position: relative;
  z-index: 5;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  min-height: calc(100svh - 71px);
}

.download-top-spacer {
  flex: 0 0 clamp(24px, 4vh, 46px);
  min-height: 24px;
}

.download-copy {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - 32px, 850px);
  text-align: center;
}

.download-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  padding: 0 13px;
  border: 1px solid rgba(23,25,31,0.12);
  border-radius: 999px;
  color: #363b44;
  background: rgba(255,255,255,0.4);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.download-kicker svg { width: 15px; height: 15px; color: var(--pink); }

.download-copy h1 {
  margin: 14px 0 0;
  color: #17191f;
  font-size: 76px;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
}

.download-copy h1 span { display: block; }

.download-version-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 590px);
  min-height: 55px;
  margin-top: 22px;
  padding: 6px 7px 6px 20px;
  border-radius: 999px;
  color: #4e5661;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(23,25,31,0.11);
  box-shadow: 0 16px 50px rgba(31, 55, 67, 0.08);
  backdrop-filter: blur(12px);
}

.download-platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
}

.download-platform svg { width: 17px; height: 17px; }

.download-version-pill strong {
  margin-left: auto;
  color: #1c2028;
  font-size: 14px;
}

.download-round-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: #191b21;
  transition: transform 0.25s ease;
}

.download-round-icon svg { width: 18px; height: 18px; }
.download-version-pill:hover .download-round-icon { transform: scale(1.06); }

.download-description {
  max-width: 620px;
  margin: 17px 0 0;
  color: #5b636e;
  font-size: 16px;
  line-height: 1.75;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 17px;
}

.download-primary,
.download-secondary {
  min-height: 44px;
  padding: 0 22px;
  font-size: 14px;
}

.download-primary {
  color: #fff;
  background: #1b1d23;
  box-shadow: 0 12px 28px rgba(28,31,38,0.16);
}

.download-secondary {
  color: #3e454f;
  background: rgba(255,255,255,0.38);
  border: 1px solid rgba(23,25,31,0.14);
}

.download-secondary:hover {
  background: rgba(255,255,255,0.72);
  transform: translateY(-1px);
}

.download-primary svg,
.download-secondary svg { width: 17px; height: 17px; }

.download-requirements {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
  color: #68717b;
  font-size: 12px;
}

.download-requirements span { display: inline-flex; align-items: center; gap: 5px; }
.download-requirements svg { width: 13px; height: 13px; color: #139b60; }

.download-bottom-spacer {
  flex: 0 0 24px;
  min-height: 24px;
}

.software-preview-wrap {
  position: relative;
  z-index: 12;
  width: min(60vw, 720px);
  margin: 0 auto;
}

.software-preview-image {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 42px rgba(23, 25, 31, 0.26));
}

.software-preview-link {
  position: absolute;
  top: 15px;
  right: 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 999px;
  color: #252933;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 10px 24px rgba(23,25,31,0.13);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 600;
}

.software-preview-link span {
  color: #0a8a57;
}

.software-preview-link svg {
  width: 14px;
  height: 14px;
}

.dashboard-scaler {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: min(72%, 896px);
  margin: 0 auto -168px;
  transform-origin: top left;
}

.dashboard-design {
  width: 896px;
  overflow: hidden;
  color: #fff;
  background: #1a1a1d;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -20px 80px rgba(0,0,0,0.3);
}

.dashboard-titlebar {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 43px;
  padding: 0 15px;
  background: #252528;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dashboard-lights,
.dashboard-history,
.dashboard-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dashboard-lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.dashboard-lights i:nth-child(2) { background: #febc2e; }
.dashboard-lights i:nth-child(3) { background: #28c840; }

.dashboard-history svg,
.dashboard-tools svg {
  width: 14px;
  height: 14px;
  color: rgba(255,255,255,0.35);
}

.dashboard-address {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 7px;
  width: 300px;
  min-height: 25px;
  border-radius: 6px;
  color: rgba(255,255,255,0.55);
  background: #19191c;
  font-size: 10px;
}

.dashboard-address svg { width: 13px; height: 13px; }

.dashboard-body {
  display: grid;
  grid-template-columns: 178px 1fr;
  min-height: 438px;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  padding: 16px 13px;
  background: #1e1e21;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.dashboard-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 11px;
}

.dashboard-sidebar-brand > span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  font-size: 11px;
}

.dashboard-sidebar-label {
  margin: 22px 8px 8px;
  color: rgba(255,255,255,0.28);
  font-size: 9px;
  letter-spacing: 1px;
}

.dashboard-sidebar-nav { display: grid; gap: 4px; }

.dashboard-sidebar-nav span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  padding: 0 9px;
  border-radius: 7px;
  color: rgba(255,255,255,0.52);
  font-size: 10px;
}

.dashboard-sidebar-nav span.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.dashboard-sidebar-nav svg { width: 13px; height: 13px; }

.dashboard-sidebar-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding: 10px;
  border-radius: 7px;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.035);
  font-size: 9px;
}

.dashboard-sidebar-status i,
.dashboard-live-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 10px rgba(40,200,64,0.7);
}

.dashboard-content { padding: 20px; }

.dashboard-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-content-head p {
  margin: 0 0 4px;
  color: rgba(255,255,255,0.3);
  font-size: 8px;
  letter-spacing: 1.5px;
}

.dashboard-content-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.dashboard-content-head button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), #ff665e);
  font-size: 10px;
}

.dashboard-content-head button svg { width: 12px; height: 12px; }

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
}

.dashboard-stats > div {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 13px 14px;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.dashboard-stats > div:last-child { border-right: 0; }
.dashboard-stats span { color: rgba(255,255,255,0.34); font-size: 8px; }
.dashboard-stats strong { font-size: 20px; font-weight: 600; }
.dashboard-stats small { color: rgba(255,255,255,0.28); font-size: 8px; }
.dashboard-stats .dashboard-ok { color: #5bdc72; font-size: 17px; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
  margin-top: 13px;
}

.dashboard-lottery-panel,
.dashboard-user-panel {
  min-height: 220px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
}

.dashboard-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-panel-title > div { display: grid; gap: 3px; }
.dashboard-panel-title span { font-size: 10px; }
.dashboard-panel-title small { color: rgba(255,255,255,0.28); font-size: 8px; }
.dashboard-panel-title > svg { width: 15px; height: 15px; color: rgba(255,255,255,0.35); }

.dashboard-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
  font-size: 8px !important;
}

.dashboard-avatar-row {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.dashboard-avatar-row span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: -5px;
  border: 2px solid #202024;
  border-radius: 50%;
  color: rgba(255,255,255,0.82);
  background: linear-gradient(135deg, rgba(255,63,127,0.7), rgba(12,168,216,0.65));
  font-size: 10px;
}

.dashboard-lottery-result {
  display: grid;
  gap: 5px;
  margin: 17px auto 0;
  padding: 12px;
  border-radius: 7px;
  text-align: center;
  background: rgba(255,255,255,0.035);
}

.dashboard-lottery-result small { color: rgba(255,255,255,0.28); font-size: 8px; }
.dashboard-lottery-result strong { color: rgba(255,255,255,0.65); font-size: 10px; font-weight: 500; }

.dashboard-users { display: grid; gap: 6px; margin-top: 13px; }

.dashboard-users > div {
  display: grid;
  grid-template-columns: 23px 1fr auto;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(255,255,255,0.025);
}

.dashboard-users i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,63,127,0.65), rgba(12,168,216,0.55));
}

.dashboard-users span { color: rgba(255,255,255,0.68); font-size: 9px; }
.dashboard-users small { color: rgba(255,255,255,0.26); font-size: 7px; }

.download-grass {
  position: absolute;
  left: 0;
  bottom: clamp(-75px, -5vw, -40px);
  z-index: 13;
  width: 100%;
  min-width: 760px;
  pointer-events: none;
  user-select: none;
}

.entrance-up,
.entrance-down,
.entrance-dashboard { animation-fill-mode: both; }

.entrance-up { animation: download-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.entrance-down { animation: download-fade-down 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.entrance-dashboard { animation: download-hero-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both; }
.delay-100 { animation-delay: 100ms; }
.delay-220 { animation-delay: 220ms; }
.delay-340 { animation-delay: 340ms; }
.delay-460 { animation-delay: 460ms; }
.delay-520 { animation-delay: 520ms; }
.delay-620 { animation-delay: 620ms; }

@keyframes download-fade-up {
  from { opacity: 0; transform: translateY(24px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes download-fade-down {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes download-hero-rise {
  from { opacity: 0; transform: translateY(64px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1024px) {
  .download-nav { padding-inline: 28px; }
  .download-copy h1 { font-size: 64px; }
  .dashboard-scaler { width: min(82%, 896px); }
}

@media (max-width: 767px) {
  .download-nav {
    grid-template-columns: 1fr auto;
    padding: 16px 20px;
  }
  .download-nav-links,
  .download-text-link,
  .download-nav-cta { display: none; }
  .download-nav-toggle { display: grid; }
  .download-mobile-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% - 2px);
    display: grid;
    padding: 8px 16px;
    border: 1px solid rgba(23,25,31,0.1);
    border-radius: 14px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(18px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }
  .download-mobile-menu.open { visibility: visible; opacity: 1; transform: translateY(0); }
  .download-mobile-menu a {
    padding: 11px 2px;
    border-bottom: 1px solid rgba(23,25,31,0.08);
    color: #454c56;
    font-size: 14px;
  }
  .download-mobile-menu a.active { color: #17191f; font-weight: 700; }
  .download-mobile-menu a:last-child { border-bottom: 0; }
  .download-main { min-height: calc(100svh - 63px); }
  .download-top-spacer { flex-basis: 20px; min-height: 20px; }
  .download-copy h1 { font-size: 48px; }
  .download-description { font-size: 14px; }
  .download-description br { display: none; }
  .download-bottom-spacer { flex-basis: 18px; min-height: 18px; }
  .software-preview-wrap {
    width: min(94%, 430px);
  }
  .dashboard-scaler { width: 92%; margin-bottom: -72px; }
  .download-grass {
    left: 50%;
    bottom: clamp(18px, 4vh, 32px);
    min-width: 900px;
    transform: translateX(-50%);
  }
}

@media (max-width: 520px) {
  .download-brand { font-size: 16px; }
  .download-copy { width: min(100% - 24px, 460px); }
  .download-kicker { font-size: 11px; }
  .download-copy h1 { margin-top: 12px; font-size: 40px; line-height: 1.06; }
  .download-version-pill {
    gap: 8px;
    min-height: 51px;
    margin-top: 18px;
    padding-left: 14px;
  }
  .download-platform { font-size: 12px; }
  .download-version-pill strong { font-size: 12px; }
  .download-round-icon { flex-basis: 38px; width: 38px; height: 38px; }
  .download-description { margin-top: 14px; line-height: 1.65; }
  .download-actions { width: 100%; }
  .download-primary,
  .download-secondary { flex: 1 1 auto; min-height: 42px; padding-inline: 15px; font-size: 12px; }
  .download-requirements { gap: 8px 14px; margin-top: 13px; font-size: 10px; }
  .dashboard-scaler { width: 94%; }
  .software-preview-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .entrance-up,
  .entrance-down,
  .entrance-dashboard {
    animation: none !important;
  }
}
